修改结构

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

@@ -50,12 +50,12 @@ namespace CleanMachineHMI.frmChild
{
if (string.IsNullOrEmpty(txtCleanModeCode.Text))
{
KryptonMessageBox.Show(this.GetInfoText("请输入清洗方式编码!", "EnterCleanCodeInfo"));
KryptonMessageBox.Show(this.T("请输入清洗方式编码!", "EnterCleanCodeInfo"));
return;
}
if (string.IsNullOrEmpty(txtCleanModeName.Text))
{
KryptonMessageBox.Show(this.GetInfoText("请输入清洗方式名称!", "EnterCleanNameInfo"));
KryptonMessageBox.Show(this.T("请输入清洗方式名称!", "EnterCleanNameInfo"));
return;
}
string sqlIsExistCode = $@"SELECT 1 FROM BAS_CLEAN_MODE WHERE CLEAN_MODE_CODE = '{txtCleanModeCode.Text}'";
@@ -104,18 +104,18 @@ namespace CleanMachineHMI.frmChild
int row = LeadDbHelperSQLite.ExecuteSql(sql);
if (row > 0)
{
KryptonMessageBox.Show(this.GetInfoText("新增清洗方式数据成功!", "AddSuccessInfo"));
KryptonMessageBox.Show(this.T("新增清洗方式数据成功!", "AddSuccessInfo"));
frmCleanMode.RefreshFrmHost();
this.Close();
}
else
{
KryptonMessageBox.Show(this.GetInfoText("新增清洗方式数据失败!", "AddFailInfo"));
KryptonMessageBox.Show(this.T("新增清洗方式数据失败!", "AddFailInfo"));
}
}
catch (Exception ex)
{
KryptonMessageBox.Show(this.GetInfoText("新增清洗方式数据发生异常", "AddCleanModeDataExp") + $":【{ex.Message}】!");
KryptonMessageBox.Show(this.T("新增清洗方式数据发生异常", "AddCleanModeDataExp") + $":【{ex.Message}】!");
}
}