修改结构
This commit is contained in:
@@ -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,17 +80,17 @@ namespace CleanMachineHMI.frmChild
|
||||
{
|
||||
if (cmbContaminationType.SelectedIndex == 0)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("请选择污染类型!", "SelectContaminationTypeInfo"));
|
||||
KryptonMessageBox.Show(this.T("请选择污染类型!", "SelectContaminationTypeInfo"));
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(txtContaminationDTLCode.Text))
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入污染明细编码!", "EnterContaminationDtlCodeInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入污染明细编码!", "EnterContaminationDtlCodeInfo"));
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(txtContaminationDTLName.Text))
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入污染明细名称!", "EnterContaminationDtlNameInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入污染明细名称!", "EnterContaminationDtlNameInfo"));
|
||||
return;
|
||||
}
|
||||
string sqlIsExistCode = $@"SELECT 1 FROM BAS_CONTAMINATION_DTL WHERE CONTAMINATION_TYPE_CODE = '{((ListItem)cmbContaminationType.SelectedItem).Value}' AND CONTAMINATION_DTL_CODE = '{txtContaminationDTLCode.Text}'";
|
||||
@@ -141,18 +141,18 @@ namespace CleanMachineHMI.frmChild
|
||||
int row = LeadDbHelperSQLite.ExecuteSql(sql);
|
||||
if (row > 0)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("新增污染明细数据成功!", "AddSuccessInfo"));
|
||||
KryptonMessageBox.Show(this.T("新增污染明细数据成功!", "AddSuccessInfo"));
|
||||
frmContaminationDTL.RefreshFrmHost();
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("新增污染明细数据失败!", "AddFailInfo"));
|
||||
KryptonMessageBox.Show(this.T("新增污染明细数据失败!", "AddFailInfo"));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("新增污染明细数据发生异常", "AddContaminationDtlDataExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("新增污染明细数据发生异常", "AddContaminationDtlDataExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user