修改结构

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

@@ -70,7 +70,7 @@ namespace CleanMachineHMI.frmChild
}
catch (Exception ex)
{
KryptonMessageBox.Show(this.GetInfoText("新增污染类型界面加载异常", "LoadAddFrmExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.T("新增污染类型界面加载异常", "LoadAddFrmExp") + $":【{ex.Message}】!");
}
}
@@ -80,19 +80,19 @@ namespace CleanMachineHMI.frmChild
{
if (cmbCleanMode.SelectedIndex == 0)
{
KryptonMessageBox.Show(this.GetInfoText("请选择清洗方式!", "SelectCleanModeInfo"));
KryptonMessageBox.Show(this.T("请选择清洗方式!", "SelectCleanModeInfo"));
return;
}
if (string.IsNullOrEmpty(txtContaminationTypeCode.Text))
{
//KryptonMessageBox.Show("请输入污染类型编码!");
KryptonMessageBox.Show(this.GetInfoText("请输入污染类型编码!", "EnterContaminationTypeCodeInfo"));
KryptonMessageBox.Show(this.T("请输入污染类型编码!", "EnterContaminationTypeCodeInfo"));
return;
}
if (string.IsNullOrEmpty(txtContaminationTypeName.Text))
{
//KryptonMessageBox.Show("请输入污染类型名称!");
KryptonMessageBox.Show(this.GetInfoText("请输入污染类型名称!", "EnterContaminationTypeNameInfo"));
KryptonMessageBox.Show(this.T("请输入污染类型名称!", "EnterContaminationTypeNameInfo"));
return;
}
string sqlIsExistCode = $@"SELECT 1 FROM BAS_CONTAMINATION_TYPE WHERE CLEAN_MODE_CODE = '{((ListItem)cmbCleanMode.SelectedItem).Value}' AND CONTAMINATION_TYPE_CODE = '{txtContaminationTypeCode.Text}'";
@@ -143,18 +143,18 @@ namespace CleanMachineHMI.frmChild
int row = LeadDbHelperSQLite.ExecuteSql(sql);
if (row > 0)
{
KryptonMessageBox.Show(this.GetInfoText("新增污染类型数据成功!", "AddSuccessInfo"));
KryptonMessageBox.Show(this.T("新增污染类型数据成功!", "AddSuccessInfo"));
frmContaminationType.RefreshFrmHost();
this.Close();
}
else
{
KryptonMessageBox.Show(this.GetInfoText("新增污染类型数据失败!", "AddFailInfo"));
KryptonMessageBox.Show(this.T("新增污染类型数据失败!", "AddFailInfo"));
}
}
catch (Exception ex)
{
KryptonMessageBox.Show(this.GetInfoText("新增污染类型数据发生异常", "AddContaminationTypeDataExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.T("新增污染类型数据发生异常", "AddContaminationTypeDataExp") + $":【{ex.Message}】!");
}
}