修改结构

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

@@ -80,7 +80,7 @@ namespace CleanMachineHMI.frmChild
}
catch (Exception ex)
{
KryptonMessageBox.Show(this.GetInfoText("编辑污染类型界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.T("编辑污染类型界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
}
}
@@ -90,35 +90,35 @@ 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(this.GetInfoText("请输入污染类型编码!", "EnterContaminationTypeCodeInfo"));
KryptonMessageBox.Show(this.T("请输入污染类型编码!", "EnterContaminationTypeCodeInfo"));
return;
}
if (string.IsNullOrEmpty(txtContaminationTypeName.Text))
{
KryptonMessageBox.Show(this.GetInfoText("请输入污染类型名称!", "EnterContaminationTypeNameInfo"));
KryptonMessageBox.Show(this.T("请输入污染类型名称!", "EnterContaminationTypeNameInfo"));
return;
}
string sql = $@"update BAS_CONTAMINATION_TYPE set CONTAMINATION_TYPE_NAME = '{txtContaminationTypeName.Text}',UPDATE_BY = '{GlobalHelper.UserInfo.UserId}',UPDATE_TIME = datetime('now', 'localtime') where CONTAMINATION_TYPE_ID = '{ContaminationId}'";
int row = LeadDbHelperSQLite.ExecuteSql(sql);
if (row > 0)
{
KryptonMessageBox.Show(this.GetInfoText("编辑污染类型数据成功!", "EditSuccessInfo"));
KryptonMessageBox.Show(this.T("编辑污染类型数据成功!", "EditSuccessInfo"));
frmContaminationType.RefreshFrmHost();
this.Close();
}
else
{
KryptonMessageBox.Show(this.GetInfoText("编辑污染类型数据失败!", "EditFailInfo"));
KryptonMessageBox.Show(this.T("编辑污染类型数据失败!", "EditFailInfo"));
}
}
catch (Exception ex)
{
KryptonMessageBox.Show(this.GetInfoText("编辑污染类型数据发生异常", "EditContaminationTypeDataExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.T("编辑污染类型数据发生异常", "EditContaminationTypeDataExp") + $":【{ex.Message}】!");
}
}