修改结构
This commit is contained in:
@@ -57,7 +57,7 @@ namespace CleanMachineHMI.frmChild
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑板材数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("编辑板材数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace CleanMachineHMI.frmChild
|
||||
if (string.IsNullOrEmpty(txtSheetTypeName.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请输入板材名称!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入板材名称!", "EnterSheetTypeNameInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入板材名称!", "EnterSheetTypeNameInfo"));
|
||||
return;
|
||||
}
|
||||
string sql = $@"update BAS_SHEET_TYPE set SHEET_TYPE_NAME = '{txtSheetTypeName.Text}',UPDATE_BY = '{GlobalHelper.UserInfo.UserId}',UPDATE_TIME = datetime('now', 'localtime') where SHEET_TYPE_ID = '{SheetTypeId}'";
|
||||
@@ -76,19 +76,19 @@ namespace CleanMachineHMI.frmChild
|
||||
if (row > 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("修改板材数据成功!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑板材数据成功!", "EditSuccessInfo"));
|
||||
KryptonMessageBox.Show(this.T("编辑板材数据成功!", "EditSuccessInfo"));
|
||||
frmSheetType.RefreshFrmHost();
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
//KryptonMessageBox.Show("修改板材数据失败!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑板材数据失败!", "EditFailInfo"));
|
||||
KryptonMessageBox.Show(this.T("编辑板材数据失败!", "EditFailInfo"));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑板材类型数据发生异常", "EditSheetTypeDataExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("编辑板材类型数据发生异常", "EditSheetTypeDataExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user