修改结构
This commit is contained in:
@@ -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}】!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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}】!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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}】!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -83,25 +83,25 @@ namespace CleanMachineHMI.frmChild
|
||||
if (string.IsNullOrEmpty(ktb_plcItemCode.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请输入PLC编码");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入PLC变量编码!", "EnterPlcItemCodeInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入PLC变量编码!", "EnterPlcItemCodeInfo"));
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(ktb_plcItemName.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请输入PLC名称");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入PLC变量名称!", "EnterPlcItemNameInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入PLC变量名称!", "EnterPlcItemNameInfo"));
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(kcmb_plcItemType.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请选择PLC类型");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请选择PLC变量类型!", "SelectPlcItemTypeInfo"));
|
||||
KryptonMessageBox.Show(this.T("请选择PLC变量类型!", "SelectPlcItemTypeInfo"));
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(kcmb_plcItemDataType.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请选择PLC数据类型");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请选择PLC变量数据类型!", "SelectPlcItemDataTypeInfo"));
|
||||
KryptonMessageBox.Show(this.T("请选择PLC变量数据类型!", "SelectPlcItemDataTypeInfo"));
|
||||
return;
|
||||
}
|
||||
int addPriIndex = Convert.ToInt32(knud_plcItemPriAddress.Value);
|
||||
@@ -202,19 +202,19 @@ namespace CleanMachineHMI.frmChild
|
||||
if (row > 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("添加PLC变量数据成功!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("新增PLC变量数据成功!", "AddSuccessInfo"));
|
||||
KryptonMessageBox.Show(this.T("新增PLC变量数据成功!", "AddSuccessInfo"));
|
||||
frmPlcItemConfig.RefreshFrmHost();
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
//KryptonMessageBox.Show("添加PLC变量数据失败!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("新增PLC变量数据失败!", "AddFailInfo"));
|
||||
KryptonMessageBox.Show(this.T("新增PLC变量数据失败!", "AddFailInfo"));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("新增PLC变量数据发生异常", "AddPlcItemDataExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("新增PLC变量数据发生异常", "AddPlcItemDataExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -61,18 +61,18 @@ namespace CleanMachineHMI.frmChild
|
||||
{
|
||||
if (string.IsNullOrEmpty(txtRoleCode.Text))
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入角色编码!", "EnterRoleCodeInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入角色编码!", "EnterRoleCodeInfo"));
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(txtRoleName.Text))
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入角色名称!", "EnterRoleNameInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入角色名称!", "EnterRoleNameInfo"));
|
||||
return;
|
||||
}
|
||||
int roleGrade = 0;
|
||||
if (kcmb_roleGrade.SelectedIndex == 0)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("请选择角色级别!", "SelectRoleGradeInfo"));
|
||||
KryptonMessageBox.Show(this.T("请选择角色级别!", "SelectRoleGradeInfo"));
|
||||
return;
|
||||
}
|
||||
else if (kcmb_roleGrade.SelectedIndex == 1)
|
||||
@@ -81,7 +81,7 @@ namespace CleanMachineHMI.frmChild
|
||||
DataTable dtIsExistAdmin = LeadDbHelperSQLite.Query(sqlIsExistAdmin).Tables[0];
|
||||
if (dtIsExistAdmin != null && dtIsExistAdmin.Rows.Count > 0)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("管理员角色只能存在一个,请重新选择!", "AdminOnlyInfo"));
|
||||
KryptonMessageBox.Show(this.T("管理员角色只能存在一个,请重新选择!", "AdminOnlyInfo"));
|
||||
return;
|
||||
}
|
||||
roleGrade = 100;
|
||||
@@ -139,18 +139,18 @@ namespace CleanMachineHMI.frmChild
|
||||
int row = LeadDbHelperSQLite.ExecuteSql(sql);
|
||||
if (row > 0)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("新增角色数据成功!", "AddSuccessInfo"));
|
||||
KryptonMessageBox.Show(this.T("新增角色数据成功!", "AddSuccessInfo"));
|
||||
frmRole.RefreshFrmHost();
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("新增角色数据失败!", "AddFailInfo"));
|
||||
KryptonMessageBox.Show(this.T("新增角色数据失败!", "AddFailInfo"));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("新增角色数据发生异常", "AddRoleDataExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("新增角色数据发生异常", "AddRoleDataExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -29,13 +29,13 @@ namespace CleanMachineHMI.frmChild
|
||||
if (string.IsNullOrEmpty(txtSheetTypeCode.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请输入板材编码!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入板材编码!", "EnterSheetTypeCodeInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入板材编码!", "EnterSheetTypeCodeInfo"));
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(txtSheetTypeName.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请输入板材名称!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入板材名称!", "EnterSheetTypeNameInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入板材名称!", "EnterSheetTypeNameInfo"));
|
||||
return;
|
||||
}
|
||||
string sqlIsExistCode = $@"SELECT 1 FROM BAS_SHEET_TYPE WHERE SHEET_TYPE_CODE = '{txtSheetTypeCode.Text}'";
|
||||
@@ -85,19 +85,19 @@ namespace CleanMachineHMI.frmChild
|
||||
if (row > 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("新增板材数据成功!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("新增板材数据成功!", "AddSuccessInfo"));
|
||||
KryptonMessageBox.Show(this.T("新增板材数据成功!", "AddSuccessInfo"));
|
||||
frmSheetType.RefreshFrmHost();
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
//KryptonMessageBox.Show("新增板材数据失败!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("新增板材数据失败!", "AddFailInfo"));
|
||||
KryptonMessageBox.Show(this.T("新增板材数据失败!", "AddFailInfo"));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("新增板材类型数据发生异常", "AddSheetTypeDataExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("新增板材类型数据发生异常", "AddSheetTypeDataExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -90,42 +90,42 @@ namespace CleanMachineHMI.frmChild
|
||||
{
|
||||
if (string.IsNullOrEmpty(txtAccount.Text))
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入用户编码!", "EnterUserCodeInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入用户编码!", "EnterUserCodeInfo"));
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(txtName.Text))
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入用户名称!", "EnterUserNameInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入用户名称!", "EnterUserNameInfo"));
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(txtPS.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请输入用户密码!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入用户密码!", "EnterUserPasswordInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入用户密码!", "EnterUserPasswordInfo"));
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(txtPS1.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请确认用户密码!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请确认用户密码!", "ConfirmUserPasswordInfo"));
|
||||
KryptonMessageBox.Show(this.T("请确认用户密码!", "ConfirmUserPasswordInfo"));
|
||||
return;
|
||||
}
|
||||
if (cmbGender.SelectedIndex == 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("请选择性别!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请选择性别!", "SelectUserGenderInfo"));
|
||||
KryptonMessageBox.Show(this.T("请选择性别!", "SelectUserGenderInfo"));
|
||||
return;
|
||||
}
|
||||
if (kcmb_Role.SelectedIndex == 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("请选择所属角色!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请选择所属角色!", "SelectUserRoleInfo"));
|
||||
KryptonMessageBox.Show(this.T("请选择所属角色!", "SelectUserRoleInfo"));
|
||||
return;
|
||||
}
|
||||
if (txtPS1.Text != txtPS.Text)
|
||||
{
|
||||
//KryptonMessageBox.Show("两次输入的密码不同,请重新输入!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("两次输入的密码不同,请重新输入!", "ConfirmUserPasswordErrInfo"));
|
||||
KryptonMessageBox.Show(this.T("两次输入的密码不同,请重新输入!", "ConfirmUserPasswordErrInfo"));
|
||||
return;
|
||||
}
|
||||
string sqlIsExistCode = $@"SELECT 1 FROM SYS_USER WHERE USER_CODE = '{txtAccount.Text}'";
|
||||
@@ -184,19 +184,19 @@ namespace CleanMachineHMI.frmChild
|
||||
if (row > 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("新增用户数据成功!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("新增用户数据成功!", "AddSuccessInfo"));
|
||||
KryptonMessageBox.Show(this.T("新增用户数据成功!", "AddSuccessInfo"));
|
||||
frmUser.RefreshFrmHost();
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
//KryptonMessageBox.Show("新增用户数据失败!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("新增用户数据失败!", "AddFailInfo"));
|
||||
KryptonMessageBox.Show(this.T("新增用户数据失败!", "AddFailInfo"));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("新增用户数据发生异常", "AddUserDataExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("新增用户数据发生异常", "AddUserDataExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -67,19 +67,19 @@ namespace CleanMachineHMI.frmChild
|
||||
if (string.IsNullOrEmpty(txtWarningCode.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请输入报警条码!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入报警条码!", "EnterWarningCodeInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入报警条码!", "EnterWarningCodeInfo"));
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(txtWarningName.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请输入报警名称!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入报警名称!", "EnterWarningNameInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入报警名称!", "EnterWarningNameInfo"));
|
||||
return;
|
||||
}
|
||||
if (kcmb_WarningType.SelectedIndex == 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("请选择报警类型!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请选择报警类型!", "SelectWarningTypeInfo"));
|
||||
KryptonMessageBox.Show(this.T("请选择报警类型!", "SelectWarningTypeInfo"));
|
||||
return;
|
||||
}
|
||||
string sqlIsExistCode = $@"SELECT 1 FROM BAS_WARNING WHERE WARNING_TYPE = '{kcmb_WarningType.SelectedIndex}' AND PLC_ITEM_CODE = '{ktb_PlcCode.Text}' AND WARNING_CODE = '{txtWarningCode.Text}'";
|
||||
@@ -135,20 +135,20 @@ namespace CleanMachineHMI.frmChild
|
||||
if (row > 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("新增基础报警数据成功!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("新增基础报警数据成功!", "AddSuccessInfo"));
|
||||
KryptonMessageBox.Show(this.T("新增基础报警数据成功!", "AddSuccessInfo"));
|
||||
// frmWarning.RefreshFrmHost();
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
//KryptonMessageBox.Show("新增基础报警数据失败!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("新增基础报警数据失败!", "AddFailInfo"));
|
||||
KryptonMessageBox.Show(this.T("新增基础报警数据失败!", "AddFailInfo"));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
//KryptonMessageBox.Show(ex.Message);
|
||||
KryptonMessageBox.Show(this.GetInfoText("新增基础报警数据发生异常", "AddWarningDataExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("新增基础报警数据发生异常", "AddWarningDataExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace CleanMachineHMI.frmChild
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("修改清洁方式数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("修改清洁方式数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace CleanMachineHMI.frmChild
|
||||
if (string.IsNullOrEmpty(txtCleanModeName.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请输入板材名称!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入清洗方式名称!", "EnterCleanNameInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入清洗方式名称!", "EnterCleanNameInfo"));
|
||||
return;
|
||||
}
|
||||
string sql = $@"update BAS_CLEAN_MODE set CLEAN_MODE_NAME = '{txtCleanModeName.Text}',UPDATE_BY = '{GlobalHelper.UserInfo.UserId}',UPDATE_TIME = datetime('now', 'localtime') where CLEAN_MODE_ID = '{CleanModeId}'";
|
||||
@@ -82,7 +82,7 @@ namespace CleanMachineHMI.frmChild
|
||||
if (row > 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("修改清洗方式数据成功!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑清洗方式数据成功!", "EditSuccessInfo"));
|
||||
KryptonMessageBox.Show(this.T("编辑清洗方式数据成功!", "EditSuccessInfo"));
|
||||
|
||||
frmCleanMode.RefreshFrmHost();
|
||||
this.Close();
|
||||
@@ -90,12 +90,12 @@ namespace CleanMachineHMI.frmChild
|
||||
else
|
||||
{
|
||||
//KryptonMessageBox.Show("修改清洗方式数据失败!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑清洗方式数据失败!", "EditFailInfo"));
|
||||
KryptonMessageBox.Show(this.T("编辑清洗方式数据失败!", "EditFailInfo"));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑清洗方式数据发生异常", "EditCleanModeDataExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("编辑清洗方式数据发生异常", "EditCleanModeDataExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace CleanMachineHMI.frmChild
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑污染明细数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("编辑污染明细数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,19 +89,19 @@ namespace CleanMachineHMI.frmChild
|
||||
if (cmbContaminationType.SelectedIndex == 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("请选择污染类型!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请选择污染类型!", "SelectContaminationTypeInfo"));
|
||||
KryptonMessageBox.Show(this.T("请选择污染类型!", "SelectContaminationTypeInfo"));
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(txtContaminationDTLCode.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请输入污染明细编码!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入污染明细编码!", "EnterContaminationDtlCodeInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入污染明细编码!", "EnterContaminationDtlCodeInfo"));
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(txtContaminationDTLName.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请输入污染明细名称!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入污染明细名称!", "EnterContaminationDtlNameInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入污染明细名称!", "EnterContaminationDtlNameInfo"));
|
||||
return;
|
||||
}
|
||||
string sql = $@"update BAS_CONTAMINATION_DTL set CONTAMINATION_DTL_NAME = '{txtContaminationDTLName.Text}',UPDATE_BY = '{GlobalHelper.UserInfo.UserId}',UPDATE_TIME = datetime('now', 'localtime') where CONTAMINATION_DTL_ID = '{ContaminationDtlId}'";
|
||||
@@ -109,19 +109,19 @@ namespace CleanMachineHMI.frmChild
|
||||
if (row > 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("修改污染明细数据成功!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("新增污染明细数据成功!", "EditSuccessInfo"));
|
||||
KryptonMessageBox.Show(this.T("新增污染明细数据成功!", "EditSuccessInfo"));
|
||||
frmContaminationDTL.RefreshFrmHost();
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
//KryptonMessageBox.Show("修改污染明细数据失败!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("新增污染明细数据失败!", "EditFailInfo"));
|
||||
KryptonMessageBox.Show(this.T("新增污染明细数据失败!", "EditFailInfo"));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑污染明细数据发生异常", "EditContaminationDtlDataExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("编辑污染明细数据发生异常", "EditContaminationDtlDataExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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}】!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace CleanMachineHMI.frmChild
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑参数数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("编辑参数数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace CleanMachineHMI.frmChild
|
||||
if (string.IsNullOrEmpty(txtValue.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请输入参数值!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入参数值!", "EnterparamaterVlaueInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入参数值!", "EnterparamaterVlaueInfo"));
|
||||
return;
|
||||
}
|
||||
string sql = $@"update SYS_PARAMETER set PARAMETER_VALUE = '{txtValue.Text}',UPDATE_BY = '{GlobalHelper.UserInfo.UserId}',UPDATE_TIME = datetime('now', 'localtime') where PARAMETER_ID = '{ParamaterId}'";
|
||||
@@ -74,19 +74,19 @@ namespace CleanMachineHMI.frmChild
|
||||
if (row > 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("修改参数信息数据成功!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑参数数据成功!", "EditSuccessInfo"));
|
||||
KryptonMessageBox.Show(this.T("编辑参数数据成功!", "EditSuccessInfo"));
|
||||
frmParamater.RefreshFrmHost();
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
//KryptonMessageBox.Show("修改参数信息数据失败!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑参数数据失败!", "EditFailInfo"));
|
||||
KryptonMessageBox.Show(this.T("编辑参数数据失败!", "EditFailInfo"));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑参数数据发生异常", "EditParamaterDataExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("编辑参数数据发生异常", "EditParamaterDataExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace CleanMachineHMI.frmChild
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑PLC变量数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("编辑PLC变量数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@@ -102,25 +102,25 @@ namespace CleanMachineHMI.frmChild
|
||||
if (string.IsNullOrEmpty(ktb_plcItemCode.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请输入PLC编码");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入PLC变量编码!", "EnterPlcItemCodeInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入PLC变量编码!", "EnterPlcItemCodeInfo"));
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(ktb_plcItemName.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请输入PLC名称");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入PLC变量名称!", "EnterPlcItemNameInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入PLC变量名称!", "EnterPlcItemNameInfo"));
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(kcmb_plcItemType.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请选择PLC类型");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请选择PLC变量类型!", "SelectPlcItemTypeInfo"));
|
||||
KryptonMessageBox.Show(this.T("请选择PLC变量类型!", "SelectPlcItemTypeInfo"));
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(kcmb_plcItemDataType.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请选择PLC数据类型");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请选择PLC变量数据类型!", "SelectPlcItemDataTypeInfo"));
|
||||
KryptonMessageBox.Show(this.T("请选择PLC变量数据类型!", "SelectPlcItemDataTypeInfo"));
|
||||
return;
|
||||
}
|
||||
int addPriIndex = Convert.ToInt32(knud_plcItemPriAddress.Value);
|
||||
@@ -178,19 +178,19 @@ namespace CleanMachineHMI.frmChild
|
||||
if (row > 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("编辑PLC变量数据成功!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑PLC变量数据成功!", "EditSuccessInfo"));
|
||||
KryptonMessageBox.Show(this.T("编辑PLC变量数据成功!", "EditSuccessInfo"));
|
||||
frmPlcItemConfig.RefreshFrmHost();
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
//KryptonMessageBox.Show("编辑PLC变量数据失败!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑PLC变量数据失败!", "EditFailInfo"));
|
||||
KryptonMessageBox.Show(this.T("编辑PLC变量数据失败!", "EditFailInfo"));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑PLC变量数据发生异常", "EditPlcItemDataExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("编辑PLC变量数据发生异常", "EditPlcItemDataExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace CleanMachineHMI.frmChild
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑角色数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("编辑角色数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,14 +85,14 @@ namespace CleanMachineHMI.frmChild
|
||||
if (string.IsNullOrEmpty(txtRoleName.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请输入角色名称!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入角色名称!", "EnterRoleNameInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入角色名称!", "EnterRoleNameInfo"));
|
||||
return;
|
||||
}
|
||||
int roleGrade = 0;
|
||||
if (kcmb_roleGrade.SelectedIndex == 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("请选择角色级别!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请选择角色级别!", "SelectRoleGradeInfo"));
|
||||
KryptonMessageBox.Show(this.T("请选择角色级别!", "SelectRoleGradeInfo"));
|
||||
return;
|
||||
}
|
||||
else if (kcmb_roleGrade.SelectedIndex == 1)
|
||||
@@ -115,19 +115,19 @@ namespace CleanMachineHMI.frmChild
|
||||
if (row > 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("修改角色数据成功!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("修改角色数据成功!", "EditSuccessInfo"));
|
||||
KryptonMessageBox.Show(this.T("修改角色数据成功!", "EditSuccessInfo"));
|
||||
frmRole.RefreshFrmHost();
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
//KryptonMessageBox.Show("修改角色数据失败!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("修改角色数据失败!", "EditFailInfo"));
|
||||
KryptonMessageBox.Show(this.T("修改角色数据失败!", "EditFailInfo"));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑角色数据发生异常", "EditRoleDataExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("编辑角色数据发生异常", "EditRoleDataExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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}】!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ namespace CleanMachineHMI.frmChild
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑用户数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("编辑用户数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -103,36 +103,36 @@ namespace CleanMachineHMI.frmChild
|
||||
{
|
||||
if (string.IsNullOrEmpty(txtAccount.Text))
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入用户编码!", "EnterUserCodeInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入用户编码!", "EnterUserCodeInfo"));
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(txtName.Text))
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入用户名称!", "EnterUserNameInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入用户名称!", "EnterUserNameInfo"));
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(txtPS.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请输入用户密码!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入用户密码!", "EnterUserPasswordInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入用户密码!", "EnterUserPasswordInfo"));
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(txtPS1.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请确认用户密码!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请确认用户密码!", "ConfirmUserPasswordInfo"));
|
||||
KryptonMessageBox.Show(this.T("请确认用户密码!", "ConfirmUserPasswordInfo"));
|
||||
return;
|
||||
}
|
||||
if (cmbGender.SelectedIndex == 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("请选择性别!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请选择性别!", "SelectUserGenderInfo"));
|
||||
KryptonMessageBox.Show(this.T("请选择性别!", "SelectUserGenderInfo"));
|
||||
return;
|
||||
}
|
||||
if (txtPS1.Text != txtPS.Text)
|
||||
{
|
||||
//KryptonMessageBox.Show("两次输入的密码不同,请重新输入!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("两次输入的密码不同,请重新输入!", "ConfirmUserPasswordErrInfo"));
|
||||
KryptonMessageBox.Show(this.T("两次输入的密码不同,请重新输入!", "ConfirmUserPasswordErrInfo"));
|
||||
return;
|
||||
}
|
||||
string sql = $@"update SYS_USER set USER_CODE = '{txtAccount.Text}',USER_NAME = '{txtName.Text}',PASSWORD = '{txtPS1.Text}',GENDER = '{cmbGender.SelectedIndex}',ROLE_ID = '{((ListItem)kcmb_Role.SelectedItem).Value}',UPDATE_BY = '{GlobalHelper.UserInfo.UserId}',UPDATE_TIME = datetime('now', 'localtime') where USER_ID = '{UserId}'";
|
||||
@@ -140,19 +140,19 @@ namespace CleanMachineHMI.frmChild
|
||||
if (row > 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("修改用户数据成功!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("修改用户数据成功!", "EditSuccessInfo"));
|
||||
KryptonMessageBox.Show(this.T("修改用户数据成功!", "EditSuccessInfo"));
|
||||
frmUser.RefreshFrmHost();
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
//KryptonMessageBox.Show("修改用户数据失败!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("修改用户数据失败!", "EditFailInfo"));
|
||||
KryptonMessageBox.Show(this.T("修改用户数据失败!", "EditFailInfo"));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑用户数据发生异常", "EditUserDataExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("编辑用户数据发生异常", "EditUserDataExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ namespace CleanMachineHMI.frmChild
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑基础报警数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("编辑基础报警数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,19 +86,19 @@ namespace CleanMachineHMI.frmChild
|
||||
if (string.IsNullOrEmpty(txtWarningCode.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请输入报警条码!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入报警条码!", "EnterWarningCodeInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入报警条码!", "EnterWarningCodeInfo"));
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(txtWarningName.Text))
|
||||
{
|
||||
//KryptonMessageBox.Show("请输入报警名称!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请输入报警名称!", "EnterWarningNameInfo"));
|
||||
KryptonMessageBox.Show(this.T("请输入报警名称!", "EnterWarningNameInfo"));
|
||||
return;
|
||||
}
|
||||
if (kcmb_WarningType.SelectedIndex == 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("请选择报警类型!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("请选择报警类型!", "SelectWarningTypeInfo"));
|
||||
KryptonMessageBox.Show(this.T("请选择报警类型!", "SelectWarningTypeInfo"));
|
||||
return;
|
||||
}
|
||||
string sqlIsExistCode = $@"SELECT 1 FROM BAS_WARNING WHERE WARNING_TYPE = '{kcmb_WarningType.SelectedIndex}' AND PLC_ITEM_CODE = '{ktb_PlcCode.Text}' AND WARNING_CODE = '{txtWarningCode.Text}'";
|
||||
@@ -114,19 +114,19 @@ namespace CleanMachineHMI.frmChild
|
||||
if (row > 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("修改基础报警数据成功!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("修改基础报警数据成功!", "EditSuccessInfo"));
|
||||
KryptonMessageBox.Show(this.T("修改基础报警数据成功!", "EditSuccessInfo"));
|
||||
//frmWarning.RefreshFrmHost();
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
//KryptonMessageBox.Show("修改基础报警数据失败!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("修改基础报警数据失败!", "EditFailInfo"));
|
||||
KryptonMessageBox.Show(this.T("修改基础报警数据失败!", "EditFailInfo"));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑基础报警数据发生异常", "EditWarningDataExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("编辑基础报警数据发生异常", "EditWarningDataExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CleanMachineHMI.frmChild
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑作业托盘数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("编辑作业托盘数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ namespace CleanMachineHMI.frmChild
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑作业托盘数据异常", "EditWorkingPalletDataExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("编辑作业托盘数据异常", "EditWorkingPalletDataExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace CleanMachineHMI.frmChild
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("角色菜单权限配置界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("角色菜单权限配置界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -207,24 +207,24 @@ namespace CleanMachineHMI.frmChild
|
||||
if (rowSum > 0)
|
||||
{
|
||||
//KryptonMessageBox.Show("该角色菜单授权成功!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("该角色的菜单权限授权成功!", "EditSuccessInfo"));
|
||||
KryptonMessageBox.Show(this.T("该角色的菜单权限授权成功!", "EditSuccessInfo"));
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
//KryptonMessageBox.Show("该角色菜单授权失败!");
|
||||
KryptonMessageBox.Show(this.GetInfoText("该角色的菜单权限授权失败!", "EditFailInfo"));
|
||||
KryptonMessageBox.Show(this.T("该角色的菜单权限授权失败!", "EditFailInfo"));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//KryptonMessageBox.Show("未选择任何菜单项,无法配置权限。");
|
||||
KryptonMessageBox.Show(this.GetInfoText("未选择任何菜单项,无法配置权限!", "EmptyMenuDataInfo"));
|
||||
KryptonMessageBox.Show(this.T("未选择任何菜单项,无法配置权限!", "EmptyMenuDataInfo"));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("编辑角色的菜单权限授权异常", "EditRoleMenuPermissionExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("编辑角色的菜单权限授权异常", "EditRoleMenuPermissionExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ namespace CleanMachineHMI.frmChild
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("加载出料运行方向切换界面发生异常", "LoadSwitchRunDirectionExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("加载出料运行方向切换界面发生异常", "LoadSwitchRunDirectionExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ namespace CleanMachineHMI.frmChild
|
||||
{
|
||||
if (kcmb_SwitchRunDirection.SelectedIndex == 0)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("请选择切换方向!", "SelectSwitchDirectionInfo"));
|
||||
KryptonMessageBox.Show(this.T("请选择切换方向!", "SelectSwitchDirectionInfo"));
|
||||
return;
|
||||
}
|
||||
if (!PlcOperationHelper.Instance.isConn)
|
||||
@@ -88,17 +88,17 @@ namespace CleanMachineHMI.frmChild
|
||||
}
|
||||
if (PlcOperationHelper.Instance.WritePlcItem("DischargeDirectionSelection", (kcmb_SwitchRunDirection.SelectedIndex - 1).ToString(), PlcItemTypeDesc.D))
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("切换出料运行方向成功!", "SwitchDirectionSuccessInfo"));
|
||||
KryptonMessageBox.Show(this.T("切换出料运行方向成功!", "SwitchDirectionSuccessInfo"));
|
||||
this.Close();
|
||||
}
|
||||
else
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("切换出料运行方向失败!", "SwitchDirectionFailInfo"));
|
||||
KryptonMessageBox.Show(this.T("切换出料运行方向失败!", "SwitchDirectionFailInfo"));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
KryptonMessageBox.Show(this.GetInfoText("切换出料运行方向的函数发生异常", "SwitchRunDirectionExp") + $":【{ex.Message}】!");
|
||||
KryptonMessageBox.Show(this.T("切换出料运行方向的函数发生异常", "SwitchRunDirectionExp") + $":【{ex.Message}】!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user