修改结构

This commit is contained in:
gongxh
2022-05-06 08:45:56 +08:00
parent 74a05e7bb3
commit 7e9c7ca86f
50 changed files with 352 additions and 251 deletions

View File

@@ -29,13 +29,13 @@ namespace CleanMachineHMI.frmChild
if (string.IsNullOrEmpty(txtSheetTypeCode.Text))
{
//KryptonMessageBox.Show("请输入板材编码!");
KryptonMessageBox.Show(this.GetInfoText("请输入板材编码!", "EnterSheetTypeCodeInfo"));
KryptonMessageBox.Show(this.T("请输入板材编码!", "EnterSheetTypeCodeInfo"));
return;
}
if (string.IsNullOrEmpty(txtSheetTypeName.Text))
{
//KryptonMessageBox.Show("请输入板材名称!");
KryptonMessageBox.Show(this.GetInfoText("请输入板材名称!", "EnterSheetTypeNameInfo"));
KryptonMessageBox.Show(this.T("请输入板材名称!", "EnterSheetTypeNameInfo"));
return;
}
string sqlIsExistCode = $@"SELECT 1 FROM BAS_SHEET_TYPE WHERE SHEET_TYPE_CODE = '{txtSheetTypeCode.Text}'";
@@ -85,19 +85,19 @@ namespace CleanMachineHMI.frmChild
if (row > 0)
{
//KryptonMessageBox.Show("新增板材数据成功!");
KryptonMessageBox.Show(this.GetInfoText("新增板材数据成功!", "AddSuccessInfo"));
KryptonMessageBox.Show(this.T("新增板材数据成功!", "AddSuccessInfo"));
frmSheetType.RefreshFrmHost();
this.Close();
}
else
{
//KryptonMessageBox.Show("新增板材数据失败!");
KryptonMessageBox.Show(this.GetInfoText("新增板材数据失败!", "AddFailInfo"));
KryptonMessageBox.Show(this.T("新增板材数据失败!", "AddFailInfo"));
}
}
catch (Exception ex)
{
KryptonMessageBox.Show(this.GetInfoText("新增板材类型数据发生异常", "AddSheetTypeDataExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.T("新增板材类型数据发生异常", "AddSheetTypeDataExp") + $":【{ex.Message}】!");
}
}