diff --git a/CleanMachineHMI/CleanMachineHMI.csproj b/CleanMachineHMI/CleanMachineHMI.csproj
index 2fb23e2..5d3fc8f 100644
--- a/CleanMachineHMI/CleanMachineHMI.csproj
+++ b/CleanMachineHMI/CleanMachineHMI.csproj
@@ -17,6 +17,7 @@
+
@@ -42,10 +43,22 @@
+
+
+ True
+ True
+ Settings.settings
+
+
+
PreserveNewest
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
\ No newline at end of file
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmCleanMode.cs b/CleanMachineHMI/FrmUserControl/Base/frmCleanMode.cs
index 78e077d..9719f71 100644
--- a/CleanMachineHMI/FrmUserControl/Base/frmCleanMode.cs
+++ b/CleanMachineHMI/FrmUserControl/Base/frmCleanMode.cs
@@ -18,15 +18,12 @@ namespace CleanMachineHMI.FrmUserControl
[FormType(EnumFormType.CleanMode)]
public partial class frmCleanMode : UserControl
{
- private DataTable _InfoLanguageTextList;
public delegate void dlgRefreshFrmHost();
public static dlgRefreshFrmHost RefreshFrmHost;
public frmCleanMode()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
-
}
protected override CreateParams CreateParams
{
@@ -62,7 +59,7 @@ namespace CleanMachineHMI.FrmUserControl
dataGridView.Columns.Clear();
dataGridView.DataSource = dt;
- dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+ dataGridView.SetDataViewColumnText(this.Name);
}
private void txt_GotFocus(object sender, EventArgs e)
@@ -87,7 +84,7 @@ namespace CleanMachineHMI.FrmUserControl
try
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
@@ -117,7 +114,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载清洁方式界面发生异常", "LoadFrmCleanModeExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("加载清洁方式界面发生异常", "LoadFrmCleanModeExp") + $":【{ex.Message}】!");
}
}
@@ -129,7 +126,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询清洁方式数据发生异常", "QueryCleanModeData") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("查询清洁方式数据发生异常", "QueryCleanModeData") + $":【{ex.Message}】!");
}
}
@@ -159,7 +156,7 @@ namespace CleanMachineHMI.FrmUserControl
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的清洗方式数据行!", "SelectWantToEditRow"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择要编辑的清洗方式数据行!", "SelectWantToEditRow"));
}
}
@@ -169,7 +166,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (dataGridView.SelectedRows.Count > 0)
{
- DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的清洗方式数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ DialogResult dr = KryptonMessageBox.Show(this.GetInfoText("确定要删除所选的清洗方式数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
if (dr == DialogResult.OK)
{
string CleanModeId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
@@ -177,23 +174,23 @@ namespace CleanMachineHMI.FrmUserControl
int row = LeadDbHelperSQLite.ExecuteSql(sql);
if (row > 0)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除清洗方式数据成功!", "DeleteSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("删除清洗方式数据成功!", "DeleteSuccessInfo"));
RefreshFrmHost();
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除清洗方式数据失败!", "DeleteFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("删除清洗方式数据失败!", "DeleteFailInfo"));
}
}
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的清洗方式数据行!", "SelectWantToDeleteRow"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择要删除的清洗方式数据行!", "SelectWantToDeleteRow"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除清洁方式数据发生异常", "DeleteCleanModeDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("删除清洁方式数据发生异常", "DeleteCleanModeDataExp") + $":【{ex.Message}】!");
}
}
}
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmContaminationDTL.cs b/CleanMachineHMI/FrmUserControl/Base/frmContaminationDTL.cs
index 8918d8e..520142b 100644
--- a/CleanMachineHMI/FrmUserControl/Base/frmContaminationDTL.cs
+++ b/CleanMachineHMI/FrmUserControl/Base/frmContaminationDTL.cs
@@ -26,7 +26,6 @@ namespace CleanMachineHMI.FrmUserControl
public frmContaminationDTL()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
public void Init()
@@ -53,7 +52,7 @@ namespace CleanMachineHMI.FrmUserControl
dataGridView.Columns.Clear();
dataGridView.DataSource = dt;
- dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+ dataGridView.SetDataViewColumnText(this.Name);
}
private void txt_GotFocus(object sender, EventArgs e)
@@ -76,7 +75,7 @@ namespace CleanMachineHMI.FrmUserControl
try
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
string sql = $@"select CONTAMINATION_TYPE_CODE,CONTAMINATION_TYPE_NAME from BAS_CONTAMINATION_TYPE where DEL_FLAG=0";
DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
if (dt != null && dt.Rows.Count > 0)
@@ -122,7 +121,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载污染明细界面发生异常", "LoadContaminationDTLExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("加载污染明细界面发生异常", "LoadContaminationDTLExp") + $":【{ex.Message}】!");
}
}
@@ -134,7 +133,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询污染明细数据发生异常", "QueryContaminationDTLData") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("查询污染明细数据发生异常", "QueryContaminationDTLData") + $":【{ex.Message}】!");
}
}
@@ -164,7 +163,7 @@ namespace CleanMachineHMI.FrmUserControl
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的污染明细数据行!", "SelectWantToEditRow"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择要编辑的污染明细数据行!", "SelectWantToEditRow"));
}
}
@@ -174,7 +173,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (dataGridView.SelectedRows.Count > 0)
{
- DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的污染明细数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ DialogResult dr = KryptonMessageBox.Show(this.GetInfoText("确定要删除所选的污染明细数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
if (dr == DialogResult.OK)
{
string ContaminationDtlId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
@@ -182,23 +181,23 @@ namespace CleanMachineHMI.FrmUserControl
int row = LeadDbHelperSQLite.ExecuteSql(sql);
if (row > 0)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染明细数据成功!", "DeleteSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("删除污染明细数据成功!", "DeleteSuccessInfo"));
RefreshFrmHost();
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染明细数据失败!", "DeleteFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("删除污染明细数据失败!", "DeleteFailInfo"));
}
}
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的污染明细数据行!", "SelectWantToDeleteRow"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择要删除的污染明细数据行!", "SelectWantToDeleteRow"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染明细数据发生异常", "DeleteContaminationDTLDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("删除污染明细数据发生异常", "DeleteContaminationDTLDataExp") + $":【{ex.Message}】!");
}
}
}
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmContaminationType.cs b/CleanMachineHMI/FrmUserControl/Base/frmContaminationType.cs
index f4890be..a009189 100644
--- a/CleanMachineHMI/FrmUserControl/Base/frmContaminationType.cs
+++ b/CleanMachineHMI/FrmUserControl/Base/frmContaminationType.cs
@@ -26,7 +26,6 @@ namespace CleanMachineHMI.FrmUserControl
public frmContaminationType()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
protected override CreateParams CreateParams
@@ -63,7 +62,7 @@ namespace CleanMachineHMI.FrmUserControl
dataGridView.Columns.Clear();
dataGridView.DataSource = dt;
- dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+ dataGridView.SetDataViewColumnText(this.Name);
}
private void txt_GotFocus(object sender, EventArgs e)
@@ -86,7 +85,7 @@ namespace CleanMachineHMI.FrmUserControl
try
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
string sql = $@"select CLEAN_MODE_CODE,CLEAN_MODE_NAME from BAS_CLEAN_MODE where DEL_FLAG=0";
DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
if (dt != null && dt.Rows.Count > 0)
@@ -132,7 +131,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载污染类型界面发生异常", "LoadContaminationTypeExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("加载污染类型界面发生异常", "LoadContaminationTypeExp") + $":【{ex.Message}】!");
}
}
@@ -144,7 +143,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询污染类型数据发生异常", "QueryContaminationTypeData") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("查询污染类型数据发生异常", "QueryContaminationTypeData") + $":【{ex.Message}】!");
}
}
@@ -174,7 +173,7 @@ namespace CleanMachineHMI.FrmUserControl
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的污染类型数据行!", "SelectWantToEditRow"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择要编辑的污染类型数据行!", "SelectWantToEditRow"));
}
}
@@ -184,7 +183,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (dataGridView.SelectedRows.Count > 0)
{
- DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的污染类型数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ DialogResult dr = KryptonMessageBox.Show(this.GetInfoText("确定要删除所选的污染类型数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
if (dr == DialogResult.OK)
{
string ContaminationId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
@@ -192,23 +191,23 @@ namespace CleanMachineHMI.FrmUserControl
int row = LeadDbHelperSQLite.ExecuteSql(sql);
if (row > 0)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染类型数据成功!", "DeleteSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("删除污染类型数据成功!", "DeleteSuccessInfo"));
RefreshFrmHost();
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染类型数据失败!", "DeleteFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("删除污染类型数据失败!", "DeleteFailInfo"));
}
}
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的污染类型数据行!", "SelectWantToDeleteRow"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择要删除的污染类型数据行!", "SelectWantToDeleteRow"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染类型数据发生异常", "DeleteContaminationTypeDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("删除污染类型数据发生异常", "DeleteContaminationTypeDataExp") + $":【{ex.Message}】!");
}
}
}
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmRole.cs b/CleanMachineHMI/FrmUserControl/Base/frmRole.cs
index 86af426..e9eee69 100644
--- a/CleanMachineHMI/FrmUserControl/Base/frmRole.cs
+++ b/CleanMachineHMI/FrmUserControl/Base/frmRole.cs
@@ -21,11 +21,7 @@ namespace CleanMachineHMI.FrmUserControl
public frmRole()
{
InitializeComponent();
- _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _ComboBoxLanguageTextList;
- private DataTable _InfoLanguageTextList;
public delegate void dlgRefreshFrmHost();
public static dlgRefreshFrmHost RefreshFrmHost;
public void Init()
@@ -58,7 +54,7 @@ namespace CleanMachineHMI.FrmUserControl
dataGridView.Columns.Clear();
dataGridView.DataSource = dt;
- dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+ dataGridView.SetDataViewColumnText(this.Name);
}
private void txt_GotFocus(object sender, EventArgs e)
@@ -80,13 +76,13 @@ namespace CleanMachineHMI.FrmUserControl
try
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
- if (GlobalHelper.LanguageCode == "English")
+ this.SetFormControlText();
+
{
kcmb_roleGrade.Items.Clear();
- foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_roleGrade.Name, "KryptonComboBox"))
+ foreach (string item in this.GetComBoboxItemArr(kcmb_roleGrade.Name))
{
- kcmb_roleGrade.Items.Add(item["CONTROL_NAME"].ToString());
+ kcmb_roleGrade.Items.Add(item);
}
kcmb_roleGrade.SelectedIndex = 0;
}
@@ -116,7 +112,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载角色信息界面发生异常", "LoadRoleMsgExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("加载角色信息界面发生异常", "LoadRoleMsgExp") + $":【{ex.Message}】!");
}
}
@@ -136,7 +132,7 @@ namespace CleanMachineHMI.FrmUserControl
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的角色数据行!", "SelectWantToEditRow"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择要编辑的角色数据行!", "SelectWantToEditRow"));
}
}
@@ -146,7 +142,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (dataGridView.SelectedRows.Count > 0)
{
- DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的角色信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ DialogResult dr = KryptonMessageBox.Show(this.GetInfoText("确定要删除所选的角色信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
if (dr == DialogResult.OK)
{
string UserId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
@@ -154,30 +150,30 @@ namespace CleanMachineHMI.FrmUserControl
DataTable dtIsExistAdmin = LeadDbHelperSQLite.Query(sqlIsExistAdmin).Tables[0];
if (dtIsExistAdmin != null && dtIsExistAdmin.Rows.Count > 0)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("管理员角色不允许删除!", "DeleteAdminRoleInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("管理员角色不允许删除!", "DeleteAdminRoleInfo"));
return;
}
string sql = $@"DELETE FROM SYS_ROLE WHERE ROLE_ID = '{UserId}'";
int row = LeadDbHelperSQLite.ExecuteSql(sql);
if (row > 0)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除角色数据成功!", "DeleteSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("删除角色数据成功!", "DeleteSuccessInfo"));
RefreshFrmHost();
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除角色数据失败!", "DeleteFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("删除角色数据失败!", "DeleteFailInfo"));
}
}
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的角色数据行!", "SelectWantToDeleteRow"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择要删除的角色数据行!", "SelectWantToDeleteRow"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除角色数据发生异常", "DeleteRoleDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("删除角色数据发生异常", "DeleteRoleDataExp") + $":【{ex.Message}】!");
}
}
@@ -189,7 +185,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询角色信息数据发生异常", "QueryRoleMsgData") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("查询角色信息数据发生异常", "QueryRoleMsgData") + $":【{ex.Message}】!");
}
}
@@ -213,7 +209,7 @@ namespace CleanMachineHMI.FrmUserControl
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要授权菜单权限的角色数据行!", "SelectWantToPermissionRow"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择要授权菜单权限的角色数据行!", "SelectWantToPermissionRow"));
}
}
}
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmSheetType.cs b/CleanMachineHMI/FrmUserControl/Base/frmSheetType.cs
index 16125f6..5a07a72 100644
--- a/CleanMachineHMI/FrmUserControl/Base/frmSheetType.cs
+++ b/CleanMachineHMI/FrmUserControl/Base/frmSheetType.cs
@@ -21,9 +21,8 @@ namespace CleanMachineHMI.FrmUserControl
public frmSheetType()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _InfoLanguageTextList;
+
public delegate void dlgRefreshFrmHost();
public static dlgRefreshFrmHost RefreshFrmHost;
protected override CreateParams CreateParams
@@ -59,7 +58,7 @@ namespace CleanMachineHMI.FrmUserControl
dataGridView.Columns.Clear();
dataGridView.DataSource = dt;
- dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+ dataGridView.SetDataViewColumnText(this.Name);
}
private void txt_GotFocus(object sender, EventArgs e)
{
@@ -83,7 +82,7 @@ namespace CleanMachineHMI.FrmUserControl
try
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
@@ -112,7 +111,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载板材类型界面发生异常", "LoadSheetTypeExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("加载板材类型界面发生异常", "LoadSheetTypeExp") + $":【{ex.Message}】!");
}
}
@@ -124,7 +123,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询板材类型数据发生异常", "QuerySheetTypeData") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("查询板材类型数据发生异常", "QuerySheetTypeData") + $":【{ex.Message}】!");
}
}
@@ -154,7 +153,7 @@ namespace CleanMachineHMI.FrmUserControl
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的板材类型数据行!", "SelectWantToEditRow"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择要编辑的板材类型数据行!", "SelectWantToEditRow"));
}
}
@@ -164,7 +163,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (dataGridView.SelectedRows.Count > 0)
{
- DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的板材类型数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ DialogResult dr = KryptonMessageBox.Show(this.GetInfoText("确定要删除所选的板材类型数据吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
if (dr == DialogResult.OK)
{
string SheetTypeId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
@@ -172,23 +171,23 @@ namespace CleanMachineHMI.FrmUserControl
int row = LeadDbHelperSQLite.ExecuteSql(sql);
if (row > 0)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除板材类型数据成功!", "DeleteSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("删除板材类型数据成功!", "DeleteSuccessInfo"));
RefreshFrmHost();
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除板材类型数据失败!", "DeleteFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("删除板材类型数据失败!", "DeleteFailInfo"));
}
}
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的板材类型数据行!", "SelectWantToDeleteRow"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择要删除的板材类型数据行!", "SelectWantToDeleteRow"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除污染板材类型数据发生异常", "DeleteSheetTypeDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("删除污染板材类型数据发生异常", "DeleteSheetTypeDataExp") + $":【{ex.Message}】!");
}
}
}
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmUser.cs b/CleanMachineHMI/FrmUserControl/Base/frmUser.cs
index fcf0a1f..53c28ad 100644
--- a/CleanMachineHMI/FrmUserControl/Base/frmUser.cs
+++ b/CleanMachineHMI/FrmUserControl/Base/frmUser.cs
@@ -21,11 +21,7 @@ namespace CleanMachineHMI.FrmUserControl
public frmUser()
{
InitializeComponent();
- _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _ComboBoxLanguageTextList;
- private DataTable _InfoLanguageTextList;
public delegate void dlgRefreshFrmHost();
public static dlgRefreshFrmHost RefreshFrmHost;
@@ -56,7 +52,7 @@ namespace CleanMachineHMI.FrmUserControl
dataGridView.Columns.Clear();
dataGridView.DataSource = dt;
- dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+ dataGridView.SetDataViewColumnText(this.Name);
}
private void txt_GotFocus(object sender, EventArgs e)
@@ -79,19 +75,19 @@ namespace CleanMachineHMI.FrmUserControl
try
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
kdtp_CreateStartTime.Checked = false;
kdtp_CreateEndTime.Checked = false;
- if (GlobalHelper.LanguageCode == "English")
+
{
kcmb_gender.Items.Clear();
- foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_gender.Name, "KryptonComboBox"))
+ foreach (string item in this.GetComBoboxItemArr(kcmb_gender.Name))
{
- kcmb_gender.Items.Add(item["CONTROL_NAME"].ToString());
+ kcmb_gender.Items.Add(item);
}
}
kcmb_gender.SelectedIndex = 0;
@@ -117,7 +113,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载用户信息界面发生异常", "LoadUserMsgExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("加载用户信息界面发生异常", "LoadUserMsgExp") + $":【{ex.Message}】!");
}
}
@@ -129,7 +125,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询用户信息数据发生异常", "QueryUserMsgData") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("查询用户信息数据发生异常", "QueryUserMsgData") + $":【{ex.Message}】!");
}
}
@@ -159,7 +155,7 @@ namespace CleanMachineHMI.FrmUserControl
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的用户信息数据行!", "SelectWantToEditRow"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择要编辑的用户信息数据行!", "SelectWantToEditRow"));
}
}
@@ -169,7 +165,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (dataGridView.SelectedRows.Count > 0)
{
- DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的用户信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ DialogResult dr = KryptonMessageBox.Show(this.GetInfoText("确定要删除所选的用户信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
if (dr == DialogResult.OK)
{
string UserId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
@@ -177,23 +173,23 @@ namespace CleanMachineHMI.FrmUserControl
int row = LeadDbHelperSQLite.ExecuteSql(sql);
if (row > 0)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除用户数据成功!", "DeleteSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("删除用户数据成功!", "DeleteSuccessInfo"));
RefreshFrmHost();
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除用户数据失败!", "DeleteFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("删除用户数据失败!", "DeleteFailInfo"));
}
}
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的用户数据行!", "SelectWantToDeleteRow"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择要删除的用户数据行!", "SelectWantToDeleteRow"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除用户信息数据发生异常", "DeleteUserMsgDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("删除用户信息数据发生异常", "DeleteUserMsgDataExp") + $":【{ex.Message}】!");
}
}
}
diff --git a/CleanMachineHMI/FrmUserControl/Base/frmWarning.cs b/CleanMachineHMI/FrmUserControl/Base/frmWarning.cs
index cd032b1..e3cb86c 100644
--- a/CleanMachineHMI/FrmUserControl/Base/frmWarning.cs
+++ b/CleanMachineHMI/FrmUserControl/Base/frmWarning.cs
@@ -24,11 +24,7 @@ namespace CleanMachineHMI.FrmUserControl
public frmWarning()
{
InitializeComponent();
- _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _ComboBoxLanguageTextList;
- private DataTable _InfoLanguageTextList;
public void Init()
{
var sql = $@"select WARNING_ID 序号,WARNING_CODE 报警编码,WARNING_NAME 报警名称,PLC_ITEM_CODE 'PLC信息',CASE WARNING_TYPE WHEN '1' THEN 'Cleaning machine alarm' ELSE 'Frequency converter alarm' END '报警类型',WARNING_MESSAGE 报警描述,CREATE_TIME 创建时间 from BAS_WARNING where DEL_FLAG=0";
@@ -53,7 +49,7 @@ namespace CleanMachineHMI.FrmUserControl
dataGridView.Columns.Clear();
dataGridView.DataSource = dt;
- dataGridView.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+ dataGridView.SetDataViewColumnText(this.Name);
}
@@ -86,19 +82,19 @@ namespace CleanMachineHMI.FrmUserControl
try
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
kdtp_CreateStartTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00"));
kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
kdtp_CreateStartTime.Checked = false;
kdtp_CreateEndTime.Checked = false;
- if (GlobalHelper.LanguageCode == "English")
+
{
kcmb_WarningType.Items.Clear();
- foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_WarningType.Name, "KryptonComboBox"))
+ foreach (string item in this.GetComBoboxItemArr(kcmb_WarningType.Name))
{
- kcmb_WarningType.Items.Add(item["CONTROL_NAME"].ToString());
+ kcmb_WarningType.Items.Add(item);
}
}
kcmb_WarningType.SelectedIndex = 0;
@@ -125,7 +121,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载报警信息界面发生异常", "LoadWarningMsgExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("加载报警信息界面发生异常", "LoadWarningMsgExp") + $":【{ex.Message}】!");
}
}
@@ -137,7 +133,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询报警信息数据发生异常", "QueryWarningMsgDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("查询报警信息数据发生异常", "QueryWarningMsgDataExp") + $":【{ex.Message}】!");
}
}
@@ -167,7 +163,7 @@ namespace CleanMachineHMI.FrmUserControl
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的报警信息数据行!", "SelectWantToEditRow"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择要编辑的报警信息数据行!", "SelectWantToEditRow"));
}
}
@@ -177,7 +173,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (dataGridView.SelectedRows.Count > 0)
{
- DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的报警信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ DialogResult dr = KryptonMessageBox.Show(this.GetInfoText("确定要删除所选的报警信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
if (dr == DialogResult.OK)
{
string WarningId = dataGridView.SelectedRows[0].Cells[0].Value.ToString();
@@ -185,23 +181,23 @@ namespace CleanMachineHMI.FrmUserControl
int row = LeadDbHelperSQLite.ExecuteSql(sql);
if (row > 0)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除报警数据成功!", "DeleteSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("删除报警数据成功!", "DeleteSuccessInfo"));
RefreshFrmHost();
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除报警数据失败!", "DeleteFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("删除报警数据失败!", "DeleteFailInfo"));
}
}
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的报警数据行!", "SelectWantToDeleteRow"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择要删除的报警数据行!", "SelectWantToDeleteRow"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除报警信息数据发生异常", "DeleteWarningMsgDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("删除报警信息数据发生异常", "DeleteWarningMsgDataExp") + $":【{ex.Message}】!");
}
}
}
diff --git a/CleanMachineHMI/FrmUserControl/frmCurrWorkingIrMsg.cs b/CleanMachineHMI/FrmUserControl/frmCurrWorkingIrMsg.cs
index 75aecf4..46cf646 100644
--- a/CleanMachineHMI/FrmUserControl/frmCurrWorkingIrMsg.cs
+++ b/CleanMachineHMI/FrmUserControl/frmCurrWorkingIrMsg.cs
@@ -27,7 +27,7 @@ namespace CleanMachineHMI.FrmUserControl
{
try
{
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
string sql = $@"SELECT * FROM CM_WORKING_PALLET_DTL WHERE WORKING_DTL_STATUS = 0";
DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
if (dt != null && dt.Rows.Count > 0)
@@ -55,7 +55,7 @@ namespace CleanMachineHMI.FrmUserControl
kryptonTextBox1.Text = currPalletMsg;
kryptonTextBox2.Text = currIrMsg;
- kryptonDataGridView1.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+ kryptonDataGridView1.SetDataViewColumnText(this.Name);
}
else
{
diff --git a/CleanMachineHMI/FrmUserControl/frmIOMonitor.cs b/CleanMachineHMI/FrmUserControl/frmIOMonitor.cs
index 9d22f5c..736063d 100644
--- a/CleanMachineHMI/FrmUserControl/frmIOMonitor.cs
+++ b/CleanMachineHMI/FrmUserControl/frmIOMonitor.cs
@@ -20,12 +20,8 @@ namespace CleanMachineHMI.FrmUserControl
public frmIOMonitor()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "Label");
}
- ///
- /// 页面信息语言文本列表
- ///
- private DataTable _InfoLanguageTextList;
+
private void frmIOMonitorNew_Load(object sender, EventArgs e)
{
initControl();
@@ -91,7 +87,7 @@ namespace CleanMachineHMI.FrmUserControl
{
KryptonLabel label1 = this.Controls.Find("klb_X" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true)[0] as KryptonLabel;
- label1.Text = _InfoLanguageTextList.GetInfoText_1(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
+ label1.Text = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode);
}
}));
}
@@ -108,7 +104,7 @@ namespace CleanMachineHMI.FrmUserControl
{
KryptonLabel label1 = this.Controls.Find("klb_Y" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true)[0] as KryptonLabel;
- label1.Text = _InfoLanguageTextList.GetInfoText_1(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
+ label1.Text = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode);
}
}));
}
diff --git a/CleanMachineHMI/FrmUserControl/frmMainDetail.cs b/CleanMachineHMI/FrmUserControl/frmMainDetail.cs
index 3a96a67..6138622 100644
--- a/CleanMachineHMI/FrmUserControl/frmMainDetail.cs
+++ b/CleanMachineHMI/FrmUserControl/frmMainDetail.cs
@@ -24,12 +24,9 @@ namespace CleanMachineHMI.FrmUserControl
public frmMainDetail()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- ///
- /// 页面信息语言文本列表
- ///
- private readonly DataTable _InfoLanguageTextList;
+
+
private List basCleanTypeMsgList = new List();
///
/// 模板地址
@@ -114,7 +111,7 @@ namespace CleanMachineHMI.FrmUserControl
private void frmMainDetail_Load(object sender, EventArgs e)
{
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
try
{
InitControlEvent();
@@ -250,7 +247,7 @@ namespace CleanMachineHMI.FrmUserControl
//if (Convert.ToBoolean(PlcOperationHelper.Instance.ReadPlcItem("FullPalletMode", PlcItemTypeDesc.M)))
//{
// swtbtn_fullPalletMod.L_IsOpen = true;
- // if (GlobalHelper.LanguageCode == "English")
+ //
// {
// kryptonLabel12.Text = "Delay Full";
// }
@@ -262,7 +259,7 @@ namespace CleanMachineHMI.FrmUserControl
//else
//{
// swtbtn_fullPalletMod.L_IsOpen = false;
- // if (GlobalHelper.LanguageCode == "English")
+ //
// {
// kryptonLabel12.Text = "Count Full";
// }
@@ -291,7 +288,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("主业务界面加载发生异常", "LoadMainDetailFrmExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("主业务界面加载发生异常", "LoadMainDetailFrmExp") + $":【{ex.Message}】!");
LogHelper.WriteLog($"1111【{ex.Message}】", LogTypeEum.Err);
}
}
@@ -472,7 +469,7 @@ namespace CleanMachineHMI.FrmUserControl
}
- catch (Exception err)
+ catch
{
}
@@ -1586,19 +1583,19 @@ namespace CleanMachineHMI.FrmUserControl
if (string.IsNullOrEmpty(kcmb_SheetType.Text.Trim()))
{
//KryptonMessageBox.Show("请输入板材类型信息!!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入板材类型信息!", "EnterSheetTypeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入板材类型信息!", "EnterSheetTypeInfo"));
return;
}
if (string.IsNullOrEmpty(ktb_IR.Text.Trim()))
{
//KryptonMessageBox.Show("请输入IR收货编号信息!!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入IR收货编号信息!", "EnterIRMsgInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入IR收货编号信息!", "EnterIRMsgInfo"));
return;
}
if (!kdtp_RecordDate.Checked)
{
//KryptonMessageBox.Show("请选择录入时间!!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择录入时间!", "EnterInputTimeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择录入时间!", "EnterInputTimeInfo"));
return;
}
//string sqlWorkPallet = $@"SELECT * FROM CM_WORKING_PALLET WHERE WORKING_STATUS = 0";
@@ -1875,7 +1872,7 @@ namespace CleanMachineHMI.FrmUserControl
catch (Exception ex)
{
//KryptonMessageBox.Show("保存IR数据发生异常!" + ex.Message);
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("保存作业板材和IR数据发生异常", "SaveSheetIRDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("保存作业板材和IR数据发生异常", "SaveSheetIRDataExp") + $":【{ex.Message}】!");
}
}
@@ -2322,7 +2319,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (ktb_IR.Enabled)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("当前没有作业中的IR信息!", "CurrWorkingIsNoIrMsg"));
+ KryptonMessageBox.Show(this.GetInfoText("当前没有作业中的IR信息!", "CurrWorkingIsNoIrMsg"));
}
else
{
@@ -2935,7 +2932,7 @@ namespace CleanMachineHMI.FrmUserControl
//if (swtbtn_fullPalletMod.L_IsOpen)
//{
// PlcOperationHelper.Instance.WritePlcItem("FullPalletMode", "True", PlcItemTypeDesc.M);
- // if (GlobalHelper.LanguageCode == "English")
+ //
// {
// kryptonLabel12.Text = "Delay Full";
// }
@@ -2948,7 +2945,7 @@ namespace CleanMachineHMI.FrmUserControl
//else
//{
// PlcOperationHelper.Instance.WritePlcItem("FullPalletMode", "False", PlcItemTypeDesc.M);
- // if (GlobalHelper.LanguageCode == "English")
+ //
// {
// kryptonLabel12.Text = "Count Full";
// }
diff --git a/CleanMachineHMI/FrmUserControl/frmManual.cs b/CleanMachineHMI/FrmUserControl/frmManual.cs
index 702b17d..0525134 100644
--- a/CleanMachineHMI/FrmUserControl/frmManual.cs
+++ b/CleanMachineHMI/FrmUserControl/frmManual.cs
@@ -31,7 +31,7 @@ namespace CleanMachineHMI.FrmUserControl
try
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
LoadManualFrmData = new dlgLoadManualFrmData(GetManualPlcItemVlaue);
GetManualPlcItemVlaue();
GlobalHelper.OnSyncFinishPalletData += SyncFinishPalletData;
diff --git a/CleanMachineHMI/FrmUserControl/frmMechineCheck.cs b/CleanMachineHMI/FrmUserControl/frmMechineCheck.cs
index b7a7d8a..6d88e38 100644
--- a/CleanMachineHMI/FrmUserControl/frmMechineCheck.cs
+++ b/CleanMachineHMI/FrmUserControl/frmMechineCheck.cs
@@ -17,14 +17,9 @@ namespace CleanMachineHMI.FrmUserControl
[FormType(EnumFormType.MechineCheck)]
public partial class frmMechineCheck : UserControl
{
- ///
- /// 页面信息语言文本列表
- ///
- private DataTable _InfoLanguageTextList;
public frmMechineCheck()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
//注销退出
@@ -118,7 +113,7 @@ namespace CleanMachineHMI.FrmUserControl
private void frmMechineCheck_Load(object sender, EventArgs e)
{
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
Thread th1 = new Thread(MainDtlRunTh);
th1.IsBackground = true;
th1.Start();
@@ -246,7 +241,7 @@ namespace CleanMachineHMI.FrmUserControl
PlcOperationHelper.Instance.WritePlcItem("SelfCheckPassFlag", "False", PlcItemTypeDesc.M);
//测试未通过,请检查并重新测试
GlobalHelper.CanOperate = false;
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("测试未通过,请检查设备并重新测试!!", "NoPassShowMsg"));
+ KryptonMessageBox.Show(this.GetInfoText("测试未通过,请检查设备并重新测试!!", "NoPassShowMsg"));
}
catch (Exception ex)
{
diff --git a/CleanMachineHMI/FrmUserControl/frmParamater.cs b/CleanMachineHMI/FrmUserControl/frmParamater.cs
index f1b3353..da6ee82 100644
--- a/CleanMachineHMI/FrmUserControl/frmParamater.cs
+++ b/CleanMachineHMI/FrmUserControl/frmParamater.cs
@@ -25,7 +25,6 @@ namespace CleanMachineHMI.FrmUserControl
public frmParamater()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
@@ -53,7 +52,7 @@ namespace CleanMachineHMI.FrmUserControl
kryptonDataGridView1.Columns.Clear();
kryptonDataGridView1.DataSource = dt;
- kryptonDataGridView1.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+ kryptonDataGridView1.SetDataViewColumnText(this.Name);
}
@@ -83,7 +82,7 @@ namespace CleanMachineHMI.FrmUserControl
kdtp_CreateEndTime.Value = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 23:59:59"));
kdtp_CreateStartTime.Checked = false;
kdtp_CreateEndTime.Checked = false;
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
RefreshFrmHost = new dlgRefreshFrmHost(Init);
Init();
foreach (Control item in tableLayoutPanel2.Controls)
@@ -106,7 +105,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载系统参数界面发生异常", "LoadSysParamaterExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("加载系统参数界面发生异常", "LoadSysParamaterExp") + $":【{ex.Message}】!");
}
}
@@ -119,7 +118,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询系统参数数据发生异常", "QuerySysParamaterData") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("查询系统参数数据发生异常", "QuerySysParamaterData") + $":【{ex.Message}】!");
}
}
@@ -143,7 +142,7 @@ namespace CleanMachineHMI.FrmUserControl
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的参数信息数据行!", "SelectWantToEditRow"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择要编辑的参数信息数据行!", "SelectWantToEditRow"));
}
}
diff --git a/CleanMachineHMI/FrmUserControl/frmPlcAlarmLog.cs b/CleanMachineHMI/FrmUserControl/frmPlcAlarmLog.cs
index b996224..8eef08a 100644
--- a/CleanMachineHMI/FrmUserControl/frmPlcAlarmLog.cs
+++ b/CleanMachineHMI/FrmUserControl/frmPlcAlarmLog.cs
@@ -22,11 +22,7 @@ namespace CleanMachineHMI.FrmUserControl
public frmPlcAlarmLog()
{
InitializeComponent();
- _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _ComboBoxLanguageTextList;
- private DataTable _InfoLanguageTextList;
public delegate void dlgRefreshFrmHost(bool isContainHisData);
public static dlgRefreshFrmHost RefreshFrmHost;
@@ -38,7 +34,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载报警数据界面发生异常", "LoadFrmPlcAlarmExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("加载报警数据界面发生异常", "LoadFrmPlcAlarmExp") + $":【{ex.Message}】!");
}
}
@@ -65,19 +61,17 @@ namespace CleanMachineHMI.FrmUserControl
private void frmPlcAlarmLog_Load(object sender, EventArgs e)
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
kcmb_plcAlarmStatus.Items.Clear();
- if (GlobalHelper.LanguageCode == "English")
+
+ foreach (string item in this.GetComBoboxItemArr(kcmb_plcAlarmStatus.Name))
{
- foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_plcAlarmStatus.Name, "KryptonComboBox"))
- {
- kcmb_plcAlarmStatus.Items.Add(item["CONTROL_NAME"].ToString());
- }
- kcmb_plcAlarmHandleResult.Items.Clear();
- foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_plcAlarmHandleResult.Name, "KryptonComboBox"))
- {
- kcmb_plcAlarmHandleResult.Items.Add(item["CONTROL_NAME"].ToString());
- }
+ kcmb_plcAlarmStatus.Items.Add(item);
+ }
+ kcmb_plcAlarmHandleResult.Items.Clear();
+ foreach (string item in this.GetComBoboxItemArr(kcmb_plcAlarmHandleResult.Name))
+ {
+ kcmb_plcAlarmHandleResult.Items.Add(item);
}
kcmb_plcAlarmStatus.SelectedIndex = 0;
kcmb_plcAlarmHandleResult.SelectedIndex = 0;
@@ -229,7 +223,7 @@ namespace CleanMachineHMI.FrmUserControl
dt.DefaultView.Sort = "报警时间 DESC";
dt = dt.DefaultView.ToTable();
kryptonDataGridView1.DataSource = dt;
- kryptonDataGridView1.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+ kryptonDataGridView1.SetDataViewColumnText(this.Name);
}
else
{
diff --git a/CleanMachineHMI/FrmUserControl/frmPlcItemConfig.cs b/CleanMachineHMI/FrmUserControl/frmPlcItemConfig.cs
index db189aa..185c07c 100644
--- a/CleanMachineHMI/FrmUserControl/frmPlcItemConfig.cs
+++ b/CleanMachineHMI/FrmUserControl/frmPlcItemConfig.cs
@@ -21,11 +21,8 @@ namespace CleanMachineHMI.FrmUserControl
public frmPlcItemConfig()
{
InitializeComponent();
- _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _ComboBoxLanguageTextList;
- private DataTable _InfoLanguageTextList;
+
public delegate void dlgRefreshFrmHost();
public static dlgRefreshFrmHost RefreshFrmHost;
private void txt_GotFocus(object sender, EventArgs e)
@@ -50,18 +47,18 @@ namespace CleanMachineHMI.FrmUserControl
private void frmPlcItemConfig_Load(object sender, EventArgs e)
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
- if (GlobalHelper.LanguageCode == "English")
+ this.SetFormControlText();
+
{
kcmb_plcItemType.Items.Clear();
- foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_plcItemType.Name, "KryptonComboBox"))
+ foreach (string item in this.GetComBoboxItemArr(kcmb_plcItemType.Name))
{
- kcmb_plcItemType.Items.Add(item["CONTROL_NAME"].ToString());
+ kcmb_plcItemType.Items.Add(item);
}
kcmb_plcItemDateType.Items.Clear();
- foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_plcItemDateType.Name, "KryptonComboBox"))
+ foreach (string item in this.GetComBoboxItemArr(kcmb_plcItemDateType.Name))
{
- kcmb_plcItemDateType.Items.Add(item["CONTROL_NAME"].ToString());
+ kcmb_plcItemDateType.Items.Add(item);
}
}
kcmb_plcItemType.SelectedIndex = 0;
@@ -247,7 +244,7 @@ namespace CleanMachineHMI.FrmUserControl
}
kryptonDataGridView1.DataSource = dt;
kryptonDataGridView1.ClearSelection();
- kryptonDataGridView1.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+ kryptonDataGridView1.SetDataViewColumnText(this.Name);
}
else
{
@@ -256,7 +253,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载PLC变量数据界面发生异常", "LoadFrmPlcItemExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("加载PLC变量数据界面发生异常", "LoadFrmPlcItemExp") + $":【{ex.Message}】!");
}
}
private void kbt_Query_Click(object sender, EventArgs e)
@@ -290,7 +287,7 @@ namespace CleanMachineHMI.FrmUserControl
else
{
//KryptonMessageBox.Show("请选择要编辑的PLC变量数据行!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要编辑的PLC变量数据行!", "SelectWantToEditRow"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择要编辑的PLC变量数据行!", "SelectWantToEditRow"));
}
}
@@ -300,7 +297,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (kryptonDataGridView1.SelectedRows.Count > 0)
{
- DialogResult dr = KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("确定要删除所选的PLC变量信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
+ DialogResult dr = KryptonMessageBox.Show(this.GetInfoText("确定要删除所选的PLC变量信息吗?", "DeleteInfo"), "Prompt", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
if (dr == DialogResult.OK)
{
string PlcItemId = kryptonDataGridView1.SelectedRows[0].Cells[0].Value.ToString();
@@ -309,25 +306,25 @@ namespace CleanMachineHMI.FrmUserControl
if (row > 0)
{
//KryptonMessageBox.Show("删除PLC变量数据成功!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除PLC变量数据成功!", "DeleteSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("删除PLC变量数据成功!", "DeleteSuccessInfo"));
RefreshFrmHost();
}
else
{
//KryptonMessageBox.Show("删除PLC变量数据失败!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除PLC变量数据失败!", "DeleteFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("删除PLC变量数据失败!", "DeleteFailInfo"));
}
}
}
else
{
//KryptonMessageBox.Show("请选择要删除的PLC变量数据行!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择要删除的PLC变量数据行!", "SelectWantToDeleteRow"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择要删除的PLC变量数据行!", "SelectWantToDeleteRow"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("删除PLC变量数据发生异常", "DeletePlcItemDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("删除PLC变量数据发生异常", "DeletePlcItemDataExp") + $":【{ex.Message}】!");
}
}
}
diff --git a/CleanMachineHMI/FrmUserControl/frmPrinterMain.cs b/CleanMachineHMI/FrmUserControl/frmPrinterMain.cs
index 5e5af45..2a7e869 100644
--- a/CleanMachineHMI/FrmUserControl/frmPrinterMain.cs
+++ b/CleanMachineHMI/FrmUserControl/frmPrinterMain.cs
@@ -33,7 +33,6 @@ namespace CleanMachineHMI.FrmUserControl
public frmPrinterMain()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
public delegate void dlgRefreshFrmHost();
public static dlgRefreshFrmHost RefreshFrmHost;
@@ -44,7 +43,7 @@ namespace CleanMachineHMI.FrmUserControl
if (dt != null && dt.Rows.Count > 0)
{
kryptonDataGridView2.DataSource = dt;
- kryptonDataGridView2.SetDataViewColumnText(this.Name + "." + kryptonDataGridView2.Name, GlobalHelper.LanguageCode);
+ kryptonDataGridView2.SetDataViewColumnText(this.Name + "." + kryptonDataGridView2.Name);
}
else
{
@@ -100,13 +99,13 @@ namespace CleanMachineHMI.FrmUserControl
kryptonDataGridView1.Rows[index].Cells[4].Value = item["创建人"].ToString();
kryptonDataGridView1.Rows[index].Cells[5].Value = item["创建时间"].ToString();
}
- kryptonDataGridView1.SetDataViewColumnText(this.Name + "." + kryptonDataGridView1.Name, GlobalHelper.LanguageCode);
+ kryptonDataGridView1.SetDataViewColumnText(this.Name + "." + kryptonDataGridView1.Name);
isSlectRow = true;
kryptonDataGridView1_SelectionChanged(kryptonDataGridView1, new EventArgs());
}
else
{
- kryptonDataGridView1.SetDataViewColumnText(this.Name + "." + kryptonDataGridView1.Name, GlobalHelper.LanguageCode);
+ kryptonDataGridView1.SetDataViewColumnText(this.Name + "." + kryptonDataGridView1.Name);
kryptonDataGridView1.Rows.Clear();
}
}
@@ -132,7 +131,7 @@ namespace CleanMachineHMI.FrmUserControl
try
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
string sqlQuerySheetType = $@"SELECT SHEET_TYPE_CODE,SHEET_TYPE_NAME FROM BAS_SHEET_TYPE WHERE USED_FLAG = 1 and DEL_FLAG = 0 ORDER BY SHEET_TYPE_ID";
DataTable dtQuerySheetType = LeadDbHelperSQLite.Query(sqlQuerySheetType).Tables[0];
if (dtQuerySheetType != null && dtQuerySheetType.Rows.Count > 0)
@@ -180,7 +179,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载作业数据查询界面发生异常", "LoadQueryWorkingDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("加载作业数据查询界面发生异常", "LoadQueryWorkingDataExp") + $":【{ex.Message}】!");
}
}
#region 打印测试代码
@@ -334,7 +333,7 @@ namespace CleanMachineHMI.FrmUserControl
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("查询作业托盘数据发生异常", "QueryWorkingPalletDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("查询作业托盘数据发生异常", "QueryWorkingPalletDataExp") + $":【{ex.Message}】!");
}
}
@@ -409,12 +408,12 @@ namespace CleanMachineHMI.FrmUserControl
else
{
//KryptonMessageBox.Show("请勾选要打印的托盘数据行!!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请勾选要打印的托盘数据行!", "SelectWantToPrintRow"));
+ KryptonMessageBox.Show(this.GetInfoText("请勾选要打印的托盘数据行!", "SelectWantToPrintRow"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("打印作业托盘数据发生异常", "PrintWorkingPalletDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("打印作业托盘数据发生异常", "PrintWorkingPalletDataExp") + $":【{ex.Message}】!");
}
}
private void PrintWorkedIrMsg(string workingIrCodeMsg)
@@ -697,7 +696,7 @@ namespace CleanMachineHMI.FrmUserControl
else
{
//KryptonMessageBox.Show("请勾选要编辑的作业托盘数据行!!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请勾选要编辑的作业托盘数据行!", "SelectWantToEditRow"));
+ KryptonMessageBox.Show(this.GetInfoText("请勾选要编辑的作业托盘数据行!", "SelectWantToEditRow"));
}
}
}
diff --git a/CleanMachineHMI/Lang/en-US.json b/CleanMachineHMI/Lang/en-US.json
new file mode 100644
index 0000000..7df9c48
--- /dev/null
+++ b/CleanMachineHMI/Lang/en-US.json
@@ -0,0 +1,3827 @@
+[
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "btnPrinter",
+ "controlName": "Working Data Record"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "btnManual",
+ "controlName": "Manual"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "btnPLCConfig",
+ "controlName": "Variable Config"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "btnDataSearch",
+ "controlName": "Equiry"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "btnIR",
+ "controlName": "IR Information"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "btnParamater",
+ "controlName": "Parameter Setting"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "btnIO",
+ "controlName": "I / O"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "btnWarningLog",
+ "controlName": "Alarms"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "btnBase",
+ "controlName": "Common Setting"
+ },
+ {
+ "formCode": "frmBase",
+ "controlCode": "btnSheetType",
+ "controlName": "Sheet type "
+ },
+ {
+ "formCode": "frmBase",
+ "controlCode": "btnCleanMode",
+ "controlName": "Clean method"
+ },
+ {
+ "formCode": "frmBase",
+ "controlCode": "btnContaminationType",
+ "controlName": "Contamination Type"
+ },
+ {
+ "formCode": "frmBase",
+ "controlCode": "btnContaminationTypeDetail",
+ "controlName": "Contamination Type Detail"
+ },
+ {
+ "formCode": "frmBase",
+ "controlCode": "btnWarning",
+ "controlName": "Alarm"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "kryptonLabel2",
+ "controlName": "Clean method code:"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "kryptonLabel3",
+ "controlName": "Clean method name:"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "kryptonLabel3",
+ "controlName": "Contamination Type:"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "kryptonLabel2",
+ "controlName": "Contamination Detailed information:"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "kryptonLabel4",
+ "controlName": "Creation time:"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "kryptonLabel2",
+ "controlName": "Contamination type information:"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "kryptonLabel3",
+ "controlName": "Clean mode:"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "kryptonLabel4",
+ "controlName": "Creation time:"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "kryptonLabel2",
+ "controlName": "Sheet type code:"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "kryptonLabel3",
+ "controlName": "Sheet type name:"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "kryptonLabel4",
+ "controlName": "Creation time:"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "kryptonLabel5",
+ "controlName": "to"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "kbt_Query",
+ "controlName": "Query"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "kbt_Reset",
+ "controlName": "Reset"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "kryptonLabel5",
+ "controlName": "to"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "kbt_Query",
+ "controlName": "Query"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "kbt_Reset",
+ "controlName": "Reset"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "kbt_Add",
+ "controlName": "Add"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "kryptonLabel5",
+ "controlName": "to"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "kbt_Query",
+ "controlName": "Query"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "kbt_Reset",
+ "controlName": "Reset"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "kbt_Add",
+ "controlName": "Add"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "kryptonLabel4",
+ "controlName": "Creation time:"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "kryptonLabel5",
+ "controlName": "to"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "kbt_Query",
+ "controlName": "Query"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "kbt_Reset",
+ "controlName": "Reset"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "kryptonLabel2",
+ "controlName": "Alarm message:"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "kryptonLabel3",
+ "controlName": "Alarm type:"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "kryptonLabel4",
+ "controlName": "Creation time:"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "kryptonLabel5",
+ "controlName": "to"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "kbt_Query",
+ "controlName": "Query"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "kbt_Reset",
+ "controlName": "Reset"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "kbt_Add",
+ "controlName": "Add"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "kbt_Edit",
+ "controlName": "Edit"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "kbt_Edit",
+ "controlName": "Edit"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "kbt_Delete",
+ "controlName": "Delete"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "序号",
+ "controlName": "Serial Number"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "kbt_Edit",
+ "controlName": "Edit"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "kbt_Delete",
+ "controlName": "Delete"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "序号",
+ "controlName": "Serial Number"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "kbt_Add",
+ "controlName": "Add"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "kbt_Edit",
+ "controlName": "Edit"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "kbt_Delete",
+ "controlName": "Delete"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "序号",
+ "controlName": "Serial Number"
+ },
+ {
+ "formCode": "frmWarningLog",
+ "controlCode": "WARNING_CODE",
+ "controlName": "Alarm code"
+ },
+ {
+ "formCode": "frmWarningLog",
+ "controlCode": "WARNING_NAME",
+ "controlName": "Alarm detail"
+ },
+ {
+ "formCode": "frmWarningLog",
+ "controlCode": "WARNING_TYPE_NAME",
+ "controlName": "Alarm Type"
+ },
+ {
+ "formCode": "frmWarningLog",
+ "controlCode": "WARNING_MESSAGE",
+ "controlName": "Alarm Message"
+ },
+ {
+ "formCode": "frmWarningLog",
+ "controlCode": "WARNING_TIME",
+ "controlName": "Alarm Time"
+ },
+ {
+ "formCode": "frmWarningLog",
+ "controlCode": "WARNING_HANDLE_TIME",
+ "controlName": "Alarm resolve Time"
+ },
+ {
+ "formCode": "frmWarningLog",
+ "controlCode": "WARNING_HANDLE_RESULT_NAME",
+ "controlName": "Alarm resolve Result"
+ },
+ {
+ "formCode": "frmWarningLog",
+ "controlCode": "WARING_STATUS_NAME",
+ "controlName": "Alarm Status"
+ },
+ {
+ "formCode": "frmPrinter",
+ "controlCode": "btnPrinter",
+ "controlName": "Printer"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "报警编码",
+ "controlName": "Alarm Code"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "btnLogin",
+ "controlName": "Login/Login Out"
+ },
+ {
+ "formCode": "frmLogin",
+ "controlCode": "lbTitle",
+ "controlName": "Cleaning Control System"
+ },
+ {
+ "formCode": "frmLogin",
+ "controlCode": "lbAccount",
+ "controlName": "Login ID"
+ },
+ {
+ "formCode": "frmLogin",
+ "controlCode": "lbPs",
+ "controlName": "Password"
+ },
+ {
+ "formCode": "frmLogin",
+ "controlCode": "btnLogin",
+ "controlName": "Login "
+ },
+ {
+ "formCode": "frmLogin",
+ "controlCode": "btnExit",
+ "controlName": "Exit"
+ },
+ {
+ "formCode": "frmLogin",
+ "controlCode": "PleaseInputAccount",
+ "controlName": "Please enter login account!"
+ },
+ {
+ "formCode": "frmLogin",
+ "controlCode": "PleaseInputPassword",
+ "controlName": "Please enter login password!"
+ },
+ {
+ "formCode": "frmLogin",
+ "controlCode": "UserStop",
+ "controlName": "The user has been deactivated!"
+ },
+ {
+ "formCode": "frmLogin",
+ "controlCode": "UserDeleted",
+ "controlName": "The user has been deleted!"
+ },
+ {
+ "formCode": "frmLogin",
+ "controlCode": "PasswordFail",
+ "controlName": "Wrong password"
+ },
+ {
+ "formCode": "frmLogin",
+ "controlCode": "PleaseCorrectAccount",
+ "controlName": "Please enter the correct login account"
+ },
+ {
+ "formCode": "frmBase",
+ "controlCode": "btnUser",
+ "controlName": "User info"
+ },
+ {
+ "formCode": "frmBase",
+ "controlCode": "btnRole",
+ "controlName": "Role info"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "kryptonLabel2",
+ "controlName": "User information:"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "kryptonLabel3",
+ "controlName": "Gender:"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "kryptonLabel4",
+ "controlName": "Creation time:"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "kryptonLabel5",
+ "controlName": "to"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "kbt_Query",
+ "controlName": "Query"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "kbt_Reset",
+ "controlName": "Reset"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "kbt_Add",
+ "controlName": "Add"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "kbt_Edit",
+ "controlName": "Edit"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "kbt_Delete",
+ "controlName": "Delete"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "序号",
+ "controlName": "Serial Number"
+ },
+ {
+ "formCode": "frmSchedule",
+ "controlCode": "btnAdd",
+ "controlName": "Add"
+ },
+ {
+ "formCode": "frmSchedule",
+ "controlCode": "btnEdit",
+ "controlName": "Edit"
+ },
+ {
+ "formCode": "frmSchedule",
+ "controlCode": "btnSave",
+ "controlName": "Save"
+ },
+ {
+ "formCode": "frmSchedule",
+ "controlCode": "btnDeleted",
+ "controlName": "Delete"
+ },
+ {
+ "formCode": "frmSchedule",
+ "controlCode": "lbBegin",
+ "controlName": "Begin Time"
+ },
+ {
+ "formCode": "frmSchedule",
+ "controlCode": "lbEnd",
+ "controlName": "End Time"
+ },
+ {
+ "formCode": "frmSchedule",
+ "controlCode": "lbScheduleCode",
+ "controlName": "Shift Code"
+ },
+ {
+ "formCode": "frmSchedule",
+ "controlCode": "lbScheduleName",
+ "controlName": "Shift Name"
+ },
+ {
+ "formCode": "NULL",
+ "controlCode": "PleaseInputCode",
+ "controlName": "Please input ID!"
+ },
+ {
+ "formCode": "NULL",
+ "controlCode": "PleaseInputName",
+ "controlName": "Please input your name!"
+ },
+ {
+ "formCode": "NULL",
+ "controlCode": "PleaseInputCodeExists",
+ "controlName": "ID already exists, please enter another ID!"
+ },
+ {
+ "formCode": "NULL",
+ "controlCode": "AddSuccess",
+ "controlName": "Added successfully!"
+ },
+ {
+ "formCode": "NULL",
+ "controlCode": "EditSuccess",
+ "controlName": "Edit successfully!"
+ },
+ {
+ "formCode": "NULL",
+ "controlCode": "DeleteSuccess",
+ "controlName": "Delete successfully!"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "label1",
+ "controlName": "System Status"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "label2",
+ "controlName": "Function Select"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "cbt_StartTran",
+ "controlName": "START"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "cbt_StopTran",
+ "controlName": "STOP"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "cbt_ResetSys",
+ "controlName": "RESET"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonLabel2",
+ "controlName": "Sheet type"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonLabel1",
+ "controlName": "IR #"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "kbt_Add",
+ "controlName": "Add"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "kbt_Edit",
+ "controlName": "Edit"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonLabel3",
+ "controlName": "Record Date"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonButton1",
+ "controlName": "Re-enter"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "ktb_SaveIR",
+ "controlName": "Save IR"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonLabel4",
+ "controlName": "IR# Total Num"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonLabel5",
+ "controlName": "IR# Scrap Num"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "label7",
+ "controlName": "Scrap Count"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "label8",
+ "controlName": "Current IR#"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kbtn_Scrap",
+ "controlName": "SCRAP\r\n + 1"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel2",
+ "controlName": "Physical Contamination"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel6",
+ "controlName": "Glass/Wood shreds"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel7",
+ "controlName": "Metal shaving"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel8",
+ "controlName": "Dirt,Mud,Grass"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel9",
+ "controlName": "Rodents,insocts"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel21",
+ "controlName": "Tape/Stickers"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel3",
+ "controlName": "Chemical Contamination"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel10",
+ "controlName": "Oil/Grease or paint"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel11",
+ "controlName": "Strong odor"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel12",
+ "controlName": "Solvents"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel13",
+ "controlName": "Adhesives"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel4",
+ "controlName": "Microbiological Contamination"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel14",
+ "controlName": "Moisture/Wet"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel15",
+ "controlName": "Feces/Excreta"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel16",
+ "controlName": "Odor/Atypical smell"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel17",
+ "controlName": "Mold"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel5",
+ "controlName": "Others Contamination"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel19",
+ "controlName": "Others"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kbtn_FeedingDrumFrequency",
+ "controlName": "Feeding conveyor speed"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kbtn_DischargeDrumFrequency",
+ "controlName": "Empty pallet conveyor speed"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kbtn_FrequencyOfFeedingLiftingDrum",
+ "controlName": "Feeding lift conveyor speed"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kbtn_FrequencyOfDischargeLiftingDrum",
+ "controlName": "Finished lift conveyor speed"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kbtn_CleanMacInDrumFrequency",
+ "controlName": "Cleaner feeding conveyor speed"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kbtn_DischargeOutDrumFrequency",
+ "controlName": "Finished conveyor speed"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kbtn_CleanMacOutDrumFrequency",
+ "controlName": "Cleaner outfeeding conveyor speed"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kbtn_FeedingLiftingDrumRise",
+ "controlName": "Feeding lift table up"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kbtn_FeedingLiftingDrumDecline",
+ "controlName": "Feeding lift table down"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kbtn_DischargeLiftingDrumRise",
+ "controlName": "Finished lift table up"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kbtn_DischargeLiftingDrumDecline",
+ "controlName": "Finished lift table down"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kbtn_BlockingSolenoidValve",
+ "controlName": "Pallet stopper cylinder"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "NozzleCheck_IO",
+ "controlName": "Spray inspection"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeNum_IO",
+ "controlName": "Finished sheet counter inspection"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "StartSys_IO",
+ "controlName": "Start"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "StopSys_IO",
+ "controlName": "Stop"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CrashStop_IO",
+ "controlName": "E-Stop"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "VacuumingFull",
+ "controlName": "Dust collector full sensor"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CleanMac1ThermalProtection1_IO",
+ "controlName": "Brush 1 thermal protection 1"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CleanMac1ThermalProtection2_IO",
+ "controlName": "Brush 1 thermal protection 2"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CleanMac2ThermalProtection1_IO",
+ "controlName": "Brush 2 thermal protection 1"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CleanMac2ThermalProtection2_IO",
+ "controlName": "Brush 2 thermal protection 2"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CleanMac3ThermalProtection1_IO",
+ "controlName": "Brush 3 thermal protection 1"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CleanMac3ThermalProtection2_IO",
+ "controlName": "Brush 3 thermal protection 2"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingLiftingDrumUpperLimit_IO",
+ "controlName": "Feeding lift table up limit"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingLiftingDrumLowerLimit_IO",
+ "controlName": "Feeding lift table down limit"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingLiftingDrumSensor_IO",
+ "controlName": "Feeding lift sensor"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingLiftingDrumThermalProtection_IO",
+ "controlName": "Feeding lift motor thermal protection"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeLiftingDrumUpperLimit_IO",
+ "controlName": "Finished lift table up limit"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeLiftingDrumLowerLimit_IO",
+ "controlName": "Finished lift table down limit"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeLiftingDrumSensor_IO",
+ "controlName": "Finished lift sensor"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeLiftingDrumThermalProtection_IO",
+ "controlName": "Finished lift motor thermal protection"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingInDrumCheck_IO",
+ "controlName": "Feeding conveyor feeding inspection"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingOutDrumCheck_IO",
+ "controlName": "Feeding conveyor outgoing inspection"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Discharge1InDrumCheck_IO",
+ "controlName": "Empty pallet conveyor feeding inspection"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Discharge1OutDrumCheck_IO",
+ "controlName": "Empty pallet conveyor outgoing inspection"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Discharge2InDrumCheck_IO",
+ "controlName": "Finished conveyor feeding inspection"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Discharge2OutDrumCheck_IO",
+ "controlName": "Finished conveyor outgoing inspection"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeLiftingDrumHeightCheck_IO",
+ "controlName": "Finished lift height inspection"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingLiftingDrumRise_IO",
+ "controlName": "Feeding lift table up"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeLiftingDrumRise_IO",
+ "controlName": "Finished lift table up"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingLiftingDrumDecline_IO",
+ "controlName": "Feeding lift table down"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeLiftingDrumDecline_IO",
+ "controlName": "Finished lift table down"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "VacuumingStart_IO",
+ "controlName": "Dust collector Start"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CleanMacInDrum_IO",
+ "controlName": "Cleaner feeding conveyor"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CleanMacOutDrum_IO",
+ "controlName": "Cleaner outfeeding conveyor"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingInDrum_IO",
+ "controlName": "Feeding conveyor"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingLiftingDrum_IO",
+ "controlName": "Feeding lift conveyor"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeInDrum_IO",
+ "controlName": "Empty pallet conveyor"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeOutDrum_IO",
+ "controlName": "Finished conveyor"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeLiftingDrum_IO",
+ "controlName": "Finished lift conveyor"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "BlockingSolenoidValve_IO",
+ "controlName": "Pallet stopper solenoid valve"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "NozzleSolenoidValve_IO",
+ "controlName": "Spray solenoid valve"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "RunIndicatorLight_IO",
+ "controlName": "Working light"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "StopIndicatorLight_IO",
+ "controlName": "Stop light"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CleanMac1Start_IO",
+ "controlName": "Brush 1 ON"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CleanMac2Start_IO",
+ "controlName": "Brush 2 ON"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CleanMac3Start_IO",
+ "controlName": "Brush 3 ON"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "kryptonGroupBox1",
+ "controlName": "Query Operation"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "kryptonGroupBox2",
+ "controlName": "Data Field"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "kryptonLabel1",
+ "controlName": "Alarm Message:"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "kryptonLabel3",
+ "controlName": "Alarm Error Code:"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "kryptonLabel4",
+ "controlName": "Alarm Status:"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "kryptonLabel2",
+ "controlName": "Alarm Result Of Handle:"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "kbt_Query",
+ "controlName": "Query"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "kbt_Reset",
+ "controlName": "Reset Condition"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "kcmb_plcAlarmStatus",
+ "options": [ "Please Select", "Alarming Now", "Alarm Finish" ]
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "kcmb_plcAlarmHandleResult",
+ "options": [ "Please Select", "No Handle", "Is Handled" ]
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kryptonGroupBox1",
+ "controlName": "Enquiry"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kryptonGroupBox2",
+ "controlName": "Data Field"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kryptonLabel1",
+ "controlName": "PlcMessage:"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kryptonLabel2",
+ "controlName": "PlcItemModbusAddress:"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kryptonLabel3",
+ "controlName": "PlcItemType:"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kryptonLabel4",
+ "controlName": "PlcItemDataType:"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kryptonLabel5",
+ "controlName": "PlcItemRegisterAddress:"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kbt_Query",
+ "controlName": "Enquiry"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kbt_Reset",
+ "controlName": "Reset"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kbt_Add",
+ "controlName": "Add"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kbt_Edit",
+ "controlName": "edit"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kbt_Delete",
+ "controlName": "delete"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kcmb_plcItemType",
+ "options": [ "please select", "write variables", "read variables", "read and write variables" ]
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kcmb_plcItemDateType",
+ "options": [ "please select", "m", "d", "x", "y" ]
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "序号",
+ "controlName": "Numerical Order"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "PLC变量编码",
+ "controlName": "Plc_Item Code"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "PLC变量名称",
+ "controlName": "Plc_Item Name"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "PLC变量类型",
+ "controlName": "Plc_Item Type"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "PLC变量数据类型",
+ "controlName": "Plc_Item DataType"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "PLC寄存器地址",
+ "controlName": "Plc_Item Register Address"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "ModBus地址",
+ "controlName": "Plc_Item Modbus Address"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "当前值",
+ "controlName": "Plc_Item Value"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "序号",
+ "controlName": "Numerical Order"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "PLC变量地址",
+ "controlName": "PlcItem Address"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "报警条码",
+ "controlName": "Alarm Code"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "报警内容",
+ "controlName": "Alarm Name"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "报警时间",
+ "controlName": "Alarm Time"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "报警状态",
+ "controlName": "Alarm status"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "处理结果",
+ "controlName": "Alarm resolve Result"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "处理时间",
+ "controlName": "Alarm resolve Time"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "报警时长",
+ "controlName": "Alarm duration"
+ },
+ {
+ "formCode": "frmDataSearch",
+ "controlCode": "btnWork",
+ "controlName": "Historical Work Message"
+ },
+ {
+ "formCode": "frmWorkingPallet",
+ "controlCode": "lbCode",
+ "controlName": "Work Pallet Code:"
+ },
+ {
+ "formCode": "frmWorkingPallet",
+ "controlCode": "lbStatus",
+ "controlName": "Working Pallet Status:"
+ },
+ {
+ "formCode": "frmWorkingPallet",
+ "controlCode": "lbBeginTime",
+ "controlName": "Begin Time:"
+ },
+ {
+ "formCode": "frmWorkingPallet",
+ "controlCode": "lbEndTime",
+ "controlName": "End Time:"
+ },
+ {
+ "formCode": "frmWorkingPallet",
+ "controlCode": "kryptonButton1",
+ "controlName": "Reset Condition"
+ },
+ {
+ "formCode": "frmWorkingPallet",
+ "controlCode": "btnSearch",
+ "controlName": "Query"
+ },
+ {
+ "formCode": "frmWorkingPallet",
+ "controlCode": "cmbStatus",
+ "options": [ "Please Select", "Woring", "Woring Finish" ]
+ },
+ {
+ "formCode": "frmWorkingPallet",
+ "controlCode": "序号",
+ "controlName": "Numerical Order"
+ },
+ {
+ "formCode": "frmWorkingPallet",
+ "controlCode": "作业托盘",
+ "controlName": "Working Pallet"
+ },
+ {
+ "formCode": "frmWorkingPallet",
+ "controlCode": "作业状态",
+ "controlName": "Working Status"
+ },
+ {
+ "formCode": "frmWorkingPallet",
+ "controlCode": "板材编码",
+ "controlName": "Sheet Code"
+ },
+ {
+ "formCode": "frmWorkingPallet",
+ "controlCode": "收货编码",
+ "controlName": "IR Code"
+ },
+ {
+ "formCode": "frmWorkingPallet",
+ "controlCode": "录入时间",
+ "controlName": "enter Time"
+ },
+ {
+ "formCode": "frmWorkingPallet",
+ "controlCode": "清洁方式编码",
+ "controlName": "Clean Mode Code"
+ },
+ {
+ "formCode": "frmWorkingPallet",
+ "controlCode": "清洁方式名称",
+ "controlName": "Clean Mode Name"
+ },
+ {
+ "formCode": "frmWorkingPallet",
+ "controlCode": "污染类型编码",
+ "controlName": "Contamination Type Code"
+ },
+ {
+ "formCode": "frmWorkingPallet",
+ "controlCode": "污染类型名称",
+ "controlName": "Contamination Type Name"
+ },
+ {
+ "formCode": "frmWorkingPallet",
+ "controlCode": "当前计数",
+ "controlName": "Current Num"
+ },
+ {
+ "formCode": "frmWorkingPallet",
+ "controlCode": "操作员编码",
+ "controlName": "Operator Code"
+ },
+ {
+ "formCode": "frmWorkingPallet",
+ "controlCode": "操作员名称",
+ "controlName": "Operator Name"
+ },
+ {
+ "formCode": "frmMechineCheck",
+ "controlCode": "lbtitle",
+ "controlName": "Machine cleaning performalece test"
+ },
+ {
+ "formCode": "frmMechineCheck",
+ "controlCode": "btn_logout",
+ "controlName": "Exit system"
+ },
+ {
+ "formCode": "frmMechineCheck",
+ "controlCode": "kryptonGroupBox3",
+ "controlName": "System running"
+ },
+ {
+ "formCode": "frmMechineCheck",
+ "controlCode": "cbt_StartTran",
+ "controlName": "Start"
+ },
+ {
+ "formCode": "frmMechineCheck",
+ "controlCode": "cbt_StopTran",
+ "controlName": "Stop"
+ },
+ {
+ "formCode": "frmMechineCheck",
+ "controlCode": "cbt_ResetSys",
+ "controlName": "Reset"
+ },
+ {
+ "formCode": "frmMechineCheck",
+ "controlCode": "kryptonGroupBox5",
+ "controlName": "Function select"
+ },
+ {
+ "formCode": "frmMechineCheck",
+ "controlCode": "kryptonLabel1",
+ "controlName": "brush1"
+ },
+ {
+ "formCode": "frmMechineCheck",
+ "controlCode": "kryptonLabel7",
+ "controlName": "brush2"
+ },
+ {
+ "formCode": "frmMechineCheck",
+ "controlCode": "kryptonLabel2",
+ "controlName": "brush3"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kryptonLabel1",
+ "controlName": "Pallet Message:"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kryptonLabel4",
+ "controlName": "IR Code:"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kryptonLabel2",
+ "controlName": "Sheet Message:"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonLabel9",
+ "controlName": "Brush1"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonLabel8",
+ "controlName": "Brush2"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonLabel7",
+ "controlName": "Brush3"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonLabel6",
+ "controlName": "Spray"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "kryptonLabel2",
+ "controlName": "Paramater Code:"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "kryptonLabel3",
+ "controlName": "Paramater Name:"
+ },
+ {
+ "formCode": "frmMechineCheck",
+ "controlCode": "NoPassShowMsg",
+ "controlName": "The test failed, please check the equipment and re-test!!"
+ },
+ {
+ "formCode": "frmCurrWorkingIrMsg",
+ "controlCode": "kryptonLabel1",
+ "controlName": "Current job pallet:"
+ },
+ {
+ "formCode": "frmCurrWorkingIrMsg",
+ "controlCode": "kryptonLabel2",
+ "controlName": "Current job IR information:"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "CurrWorkingIsNoIrMsg",
+ "controlName": "There is no IR information in the assignment!"
+ },
+ {
+ "formCode": "frmCurrWorkingIrMsg",
+ "controlCode": "清洗方式编码",
+ "controlName": "Code of cleaning method"
+ },
+ {
+ "formCode": "frmCurrWorkingIrMsg",
+ "controlCode": "清洗方式名称",
+ "controlName": "Name of cleaning method"
+ },
+ {
+ "formCode": "frmCurrWorkingIrMsg",
+ "controlCode": "污染类型编码",
+ "controlName": "Pollution type code"
+ },
+ {
+ "formCode": "frmCurrWorkingIrMsg",
+ "controlCode": "污染类型名称",
+ "controlName": "Pollution type name"
+ },
+ {
+ "formCode": "frmCurrWorkingIrMsg",
+ "controlCode": "污染明细编码",
+ "controlName": "Pollution detail code"
+ },
+ {
+ "formCode": "frmCurrWorkingIrMsg",
+ "controlCode": "污染明细名称",
+ "controlName": "Pollution detail name"
+ },
+ {
+ "formCode": "frmCurrWorkingIrMsg",
+ "controlCode": "当前计数",
+ "controlName": "The current count"
+ },
+ {
+ "formCode": "frmCurrWorkingIrMsg",
+ "controlCode": "操作员编码",
+ "controlName": "Operator code"
+ },
+ {
+ "formCode": "frmCurrWorkingIrMsg",
+ "controlCode": "操作员名称",
+ "controlName": "Operator name"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "ktb_PalletFullModSel",
+ "controlName": "Finished lift conveyor delay"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kbtn_DischargeLiftingDrumTime",
+ "controlName": "Finished lift conveyor delay"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kbtn_DrumTimeOut",
+ "controlName": "Conveyor delay"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kbtn_NozzleDelayedCloseTime",
+ "controlName": "Spray time"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kryptonButton1",
+ "controlName": "Finished pallet delay"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kbtn_WorkedFullPalletNum",
+ "controlName": "Finished pallet counter"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "ktb_FeedingStartMac",
+ "controlName": "Feeding conveyor"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kryptonButton11",
+ "controlName": "Feeding lift conveyor"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "ktb_DischargeInTrayStartMac",
+ "controlName": "Empty pallet conveyor"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kryptonButton10",
+ "controlName": "Finished conveyor"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kryptonButton12",
+ "controlName": "Finished lift conveyor"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kbt_PushPalletValve",
+ "controlName": "PushingCylinderSolenoidValve"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FootSwitch_IO",
+ "controlName": "FootSwitch"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingLiftingDrumLightCurtain1_IO",
+ "controlName": "FeedingLiftingDrumLightCurtain1"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingLiftingDrumLightCurtain2_IO",
+ "controlName": "FeedingLiftingDrumLightCurtain2"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeLiftingDrumLightCurtain_IO",
+ "controlName": "DischargeLiftingDrumLightCurtain"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeLiftingDrumSensor2_IO",
+ "controlName": "Finished lift sensor 2"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "StaticStartOrStop_IO",
+ "controlName": "StaticStartOrStop"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "OutGoodsLiftingDrumDecline_IO",
+ "controlName": "Finished lift down"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "OutGoodsBlockSolenoidValve_IO",
+ "controlName": "Finished lift stopper solenoid valve"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "VacuumingStop_IO",
+ "controlName": "Dust collector Stop"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeLiftingDrumPushSolenoidValve_IO",
+ "controlName": "Finished lift pusher solenoid valve"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Remark9",
+ "controlName": "------"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Remark10",
+ "controlName": "------"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Remark11",
+ "controlName": "------"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Remark12",
+ "controlName": "------"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Remark13",
+ "controlName": "------"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Remark14",
+ "controlName": "------"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Remark15",
+ "controlName": "------"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Remark16",
+ "controlName": "------"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Remark17",
+ "controlName": "------"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Remark18",
+ "controlName": "------"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kryptonButton2",
+ "controlName": "Brush 1 motor"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kryptonButton3",
+ "controlName": "Brush 2 motor"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kryptonButton4",
+ "controlName": "Brush 3 motor"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kryptonButton5",
+ "controlName": "Cleaner feeding"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kryptonButton6",
+ "controlName": "Cleaner outfeeding"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kryptonButton7",
+ "controlName": "Spray"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kryptonButton8",
+ "controlName": "Static bars"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kryptonButton9",
+ "controlName": "Dust collector"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "kryptonLabel4",
+ "controlName": "Creation time:"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "kryptonLabel5",
+ "controlName": "to"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kbtn_forceFinish",
+ "controlName": "End of IR job"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonLabel11",
+ "controlName": "Static bar"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "kbtn_UuivertorAlarmClear",
+ "controlName": "Uuivertor Alarm Clear"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kryptonButton13",
+ "controlName": "Counter Reset Zero"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "kbt_Delete",
+ "controlName": "Delete"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "序号",
+ "controlName": "Serial Number"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "清洁方式编码",
+ "controlName": "Clean method code"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "清洁方式名称",
+ "controlName": "Clean method name"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "创建时间",
+ "controlName": "Creation time"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "污染类型编码",
+ "controlName": "Contamination Type Code"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "污染类型名称",
+ "controlName": "Contamination Type Name"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "污染明细编码",
+ "controlName": "Contamination Details Code"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "污染明细名称",
+ "controlName": "Contamination Details Name"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "创建时间",
+ "controlName": "Creation time"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "清洁方式编码",
+ "controlName": "Clean method code"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "清洁方式名称",
+ "controlName": "Clean method name"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "污染类型编码",
+ "controlName": "Contamination type code"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "污染类型名称",
+ "controlName": "Contamination type name"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "创建时间",
+ "controlName": "Creation time"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "kbt_Delete",
+ "controlName": "Delete"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "序号",
+ "controlName": "Serial Number"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "板材编码",
+ "controlName": "Sheet type code"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "板材名称",
+ "controlName": "Sheet type name"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "创建时间",
+ "controlName": "Creation time"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "用户编码",
+ "controlName": "User Code"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "用户名称",
+ "controlName": "User Name"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "密码",
+ "controlName": "Password"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "性别",
+ "controlName": "Gender"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "创建时间",
+ "controlName": "Creation time"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "报警名称",
+ "controlName": "Alarm Name"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "PLC信息",
+ "controlName": "PLC Information"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "报警类型",
+ "controlName": "Alarm Type"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "报警描述",
+ "controlName": "Alarm Description"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "创建时间",
+ "controlName": "Creation time"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "kcmb_gender",
+ "options": [ "Please Select", "male", "female" ]
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "kcmb_WarningType",
+ "options": [ "Please Select", "Cleaning machine alarm", "Frequency converter alarm" ]
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "kbt_Query",
+ "controlName": "Query"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "kbt_Reset",
+ "controlName": "Reset"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "kbt_Edit",
+ "controlName": "Edit"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "序号",
+ "controlName": "Serial Number"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "参数编码",
+ "controlName": "Paramater Code"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "参数名称",
+ "controlName": "Paramater Name"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "参数值",
+ "controlName": "Paramater Value"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "创建时间",
+ "controlName": "Creation time"
+ },
+ {
+ "formCode": "frmAddCleanCode",
+ "controlCode": "lbCleanModeCode",
+ "controlName": "Clean method code:"
+ },
+ {
+ "formCode": "frmAddCleanCode",
+ "controlCode": "lbCleanModeName",
+ "controlName": "Clean method name:"
+ },
+ {
+ "formCode": "frmAddCleanCode",
+ "controlCode": "btnAdd",
+ "controlName": "Confirm"
+ },
+ {
+ "formCode": "frmAddCleanCode",
+ "controlCode": "btnEdit",
+ "controlName": "Cancel"
+ },
+ {
+ "formCode": "frmEditCleanCode",
+ "controlCode": "lbCleanModeCode",
+ "controlName": "Clean method code:"
+ },
+ {
+ "formCode": "frmEditCleanCode",
+ "controlCode": "lbCleanModeName",
+ "controlName": "Clean method name:"
+ },
+ {
+ "formCode": "frmEditCleanCode",
+ "controlCode": "btnAdd",
+ "controlName": "Confirm"
+ },
+ {
+ "formCode": "frmEditCleanCode",
+ "controlCode": "btnEdit",
+ "controlName": "Cancel"
+ },
+ {
+ "formCode": "frmAddContaminationDtl",
+ "controlCode": "lbContaminationType",
+ "controlName": "Contamination Type:"
+ },
+ {
+ "formCode": "frmAddContaminationDtl",
+ "controlCode": "lbContaminationDTLCode",
+ "controlName": "Contamination Details Code:"
+ },
+ {
+ "formCode": "frmAddContaminationDtl",
+ "controlCode": "lbContaminationDTLName",
+ "controlName": "Contamination Details Name:"
+ },
+ {
+ "formCode": "frmAddContaminationDtl",
+ "controlCode": "btnAdd",
+ "controlName": "Confirm"
+ },
+ {
+ "formCode": "frmAddContaminationDtl",
+ "controlCode": "btnEdit",
+ "controlName": "Cancel"
+ },
+ {
+ "formCode": "frmEditContaminationDtl",
+ "controlCode": "lbContaminationType",
+ "controlName": "Contamination Type:"
+ },
+ {
+ "formCode": "frmEditContaminationDtl",
+ "controlCode": "lbContaminationDTLCode",
+ "controlName": "Contamination Details Code:"
+ },
+ {
+ "formCode": "frmEditContaminationDtl",
+ "controlCode": "lbContaminationDTLName",
+ "controlName": "Contamination Details Name:"
+ },
+ {
+ "formCode": "frmEditContaminationDtl",
+ "controlCode": "btnAdd",
+ "controlName": "Confirm"
+ },
+ {
+ "formCode": "frmEditContaminationDtl",
+ "controlCode": "btnEdit",
+ "controlName": "Cancel"
+ },
+ {
+ "formCode": "frmAddContaminationType",
+ "controlCode": "lbCleanMode",
+ "controlName": "Clean Mode:"
+ },
+ {
+ "formCode": "frmAddContaminationType",
+ "controlCode": "lbContaminationTypeCode",
+ "controlName": "Contamination Type Code:"
+ },
+ {
+ "formCode": "frmAddContaminationType",
+ "controlCode": "lbContaminationTypeName",
+ "controlName": "Contamination Type Name:"
+ },
+ {
+ "formCode": "frmAddContaminationType",
+ "controlCode": "btnAdd",
+ "controlName": "Confirm"
+ },
+ {
+ "formCode": "frmAddContaminationType",
+ "controlCode": "btnEdit",
+ "controlName": "Cancel"
+ },
+ {
+ "formCode": "frmEditContaminationType",
+ "controlCode": "lbCleanMode",
+ "controlName": "Clean Mode:"
+ },
+ {
+ "formCode": "frmEditContaminationType",
+ "controlCode": "lbContaminationTypeCode",
+ "controlName": "Contamination Type Code:"
+ },
+ {
+ "formCode": "frmEditContaminationType",
+ "controlCode": "lbContaminationTypeName",
+ "controlName": "Contamination Type Name:"
+ },
+ {
+ "formCode": "frmEditContaminationType",
+ "controlCode": "btnAdd",
+ "controlName": "Confirm"
+ },
+ {
+ "formCode": "frmEditContaminationType",
+ "controlCode": "btnEdit",
+ "controlName": "Cancel"
+ },
+ {
+ "formCode": "frmEditParamater",
+ "controlCode": "lbKey",
+ "controlName": "Paramater Name:"
+ },
+ {
+ "formCode": "frmEditParamater",
+ "controlCode": "lbValue",
+ "controlName": "Paramater Value:"
+ },
+ {
+ "formCode": "frmEditParamater",
+ "controlCode": "btnAdd",
+ "controlName": "Confirm"
+ },
+ {
+ "formCode": "frmEditParamater",
+ "controlCode": "btnEdit",
+ "controlName": "Cancel"
+ },
+ {
+ "formCode": "frmEditSheetType",
+ "controlCode": "lbSheetTypeCode",
+ "controlName": "Sheet Type Code:"
+ },
+ {
+ "formCode": "frmEditSheetType",
+ "controlCode": "lbSheetTypeName",
+ "controlName": "Sheet Type Name:"
+ },
+ {
+ "formCode": "frmEditSheetType",
+ "controlCode": "btnAdd",
+ "controlName": "Confirm"
+ },
+ {
+ "formCode": "frmEditSheetType",
+ "controlCode": "btnEdit",
+ "controlName": "Cancel"
+ },
+ {
+ "formCode": "frmAddSheetType",
+ "controlCode": "lbSheetTypeCode",
+ "controlName": "Sheet Type Code:"
+ },
+ {
+ "formCode": "frmAddSheetType",
+ "controlCode": "lbSheetTypeName",
+ "controlName": "Sheet Type Name:"
+ },
+ {
+ "formCode": "frmAddSheetType",
+ "controlCode": "btnAdd",
+ "controlName": "Confirm"
+ },
+ {
+ "formCode": "frmAddSheetType",
+ "controlCode": "btnEdit",
+ "controlName": "Cancel"
+ },
+ {
+ "formCode": "frmAddUser",
+ "controlCode": "lbAccount",
+ "controlName": "User Code:"
+ },
+ {
+ "formCode": "frmAddUser",
+ "controlCode": "lbName",
+ "controlName": "User Name:"
+ },
+ {
+ "formCode": "frmAddUser",
+ "controlCode": "lbPS",
+ "controlName": "Password:"
+ },
+ {
+ "formCode": "frmAddUser",
+ "controlCode": "lbPS1",
+ "controlName": "Confirm Password:"
+ },
+ {
+ "formCode": "frmAddUser",
+ "controlCode": "lbGender",
+ "controlName": "Gender:"
+ },
+ {
+ "formCode": "frmAddUser",
+ "controlCode": "cmbGender",
+ "options": [ "Please Select", "male", "female" ]
+ },
+ {
+ "formCode": "frmEditUser",
+ "controlCode": "lbAccount",
+ "controlName": "User Code:"
+ },
+ {
+ "formCode": "frmEditUser",
+ "controlCode": "lbName",
+ "controlName": "User Name:"
+ },
+ {
+ "formCode": "frmEditUser",
+ "controlCode": "lbPS",
+ "controlName": "Password:"
+ },
+ {
+ "formCode": "frmEditUser",
+ "controlCode": "lbPS1",
+ "controlName": "Confirm Password:"
+ },
+ {
+ "formCode": "frmEditUser",
+ "controlCode": "lbGender",
+ "controlName": "Gender:"
+ },
+ {
+ "formCode": "frmEditUser",
+ "controlCode": "cmbGender",
+ "options": [ "Please Select", "male", "female" ]
+ },
+ {
+ "formCode": "frmEditUser",
+ "controlCode": "btnAdd",
+ "controlName": "Confirm"
+ },
+ {
+ "formCode": "frmEditUser",
+ "controlCode": "btnClose",
+ "controlName": "Cancel"
+ },
+ {
+ "formCode": "frmAddUser",
+ "controlCode": "btnAdd",
+ "controlName": "Confirm"
+ },
+ {
+ "formCode": "frmAddUser",
+ "controlCode": "btnClose",
+ "controlName": "Cancel"
+ },
+ {
+ "formCode": "frmAddWaringMsg",
+ "controlCode": "lbWarningCode",
+ "controlName": "Alarm Code:"
+ },
+ {
+ "formCode": "frmAddWaringMsg",
+ "controlCode": "lbWarningName",
+ "controlName": "Alarm Name:"
+ },
+ {
+ "formCode": "frmAddWaringMsg",
+ "controlCode": "lbWarningMessage",
+ "controlName": "Alarm Description:"
+ },
+ {
+ "formCode": "frmAddWaringMsg",
+ "controlCode": "kryptonLabel1",
+ "controlName": "PLC Information:"
+ },
+ {
+ "formCode": "frmAddWaringMsg",
+ "controlCode": "kryptonLabel2",
+ "controlName": "Alarm Type:"
+ },
+ {
+ "formCode": "frmAddWaringMsg",
+ "controlCode": "kcmb_WarningType",
+ "options": [ "Please Select", "Cleaning machine alarm", "Frequency converter alarm" ]
+ },
+ {
+ "formCode": "frmAddWaringMsg",
+ "controlCode": "btnAdd",
+ "controlName": "Confirm"
+ },
+ {
+ "formCode": "frmAddWaringMsg",
+ "controlCode": "btnEdit",
+ "controlName": "Cancel"
+ },
+ {
+ "formCode": "frmEditWaringMsg",
+ "controlCode": "lbWarningCode",
+ "controlName": "Alarm Code:"
+ },
+ {
+ "formCode": "frmEditWaringMsg",
+ "controlCode": "lbWarningName",
+ "controlName": "Alarm Name:"
+ },
+ {
+ "formCode": "frmEditWaringMsg",
+ "controlCode": "lbWarningMessage",
+ "controlName": "Alarm Description:"
+ },
+ {
+ "formCode": "frmEditWaringMsg",
+ "controlCode": "kryptonLabel1",
+ "controlName": "PLC Information:"
+ },
+ {
+ "formCode": "frmEditWaringMsg",
+ "controlCode": "kryptonLabel2",
+ "controlName": "Alarm Type:"
+ },
+ {
+ "formCode": "frmEditWaringMsg",
+ "controlCode": "kcmb_WarningType",
+ "options": [ "Please Select", "Cleaning machine alarm", "Frequency converter alarm" ]
+ },
+ {
+ "formCode": "frmEditWaringMsg",
+ "controlCode": "btnAdd",
+ "controlName": "Confirm"
+ },
+ {
+ "formCode": "frmEditWaringMsg",
+ "controlCode": "btnEdit",
+ "controlName": "Cancel"
+ },
+ {
+ "formCode": "frmAddPlcItem",
+ "controlCode": "kryptonLabel1",
+ "controlName": "Plc Variable Code:"
+ },
+ {
+ "formCode": "frmAddPlcItem",
+ "controlCode": "kryptonLabel2",
+ "controlName": "Plc Variable Name:"
+ },
+ {
+ "formCode": "frmAddPlcItem",
+ "controlCode": "kryptonLabel3",
+ "controlName": "Plc Variable Type:"
+ },
+ {
+ "formCode": "frmAddPlcItem",
+ "controlCode": "kryptonLabel4",
+ "controlName": "Plc Variable Data Type:"
+ },
+ {
+ "formCode": "frmAddPlcItem",
+ "controlCode": "kryptonLabel5",
+ "controlName": "Plc Variable Register Address:"
+ },
+ {
+ "formCode": "frmAddPlcItem",
+ "controlCode": "kryptonLabel6",
+ "controlName": "Plc Variable Offset Position:"
+ },
+ {
+ "formCode": "frmAddPlcItem",
+ "controlCode": "kryptonButton1",
+ "controlName": "Confirm"
+ },
+ {
+ "formCode": "frmAddPlcItem",
+ "controlCode": "kryptonButton2",
+ "controlName": "Cancel"
+ },
+ {
+ "formCode": "frmAddPlcItem",
+ "controlCode": "kcmb_plcItemType",
+ "options": [ "write variables", "read variables", "read and write variables" ]
+ },
+ {
+ "formCode": "frmAddPlcItem",
+ "controlCode": "kcmb_plcItemDataType",
+ "options": [ "m", "d", "x", "y" ]
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "kryptonLabel1",
+ "controlName": "Plc Variable Code:"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "kryptonLabel2",
+ "controlName": "Plc Variable Name:"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "kryptonLabel3",
+ "controlName": "Plc Variable Type:"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "kryptonLabel4",
+ "controlName": "Plc Variable Data Type:"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "kryptonLabel5",
+ "controlName": "Plc Variable Register Address:"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "kryptonLabel6",
+ "controlName": "Plc Variable Offset Position:"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "kryptonButton1",
+ "controlName": "Confirm"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "kryptonButton2",
+ "controlName": "Cancel"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "kcmb_plcItemType",
+ "options": [ "write variables", "read variables", "read and write variables" ]
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "kcmb_plcItemDataType",
+ "options": [ "m", "d", "x", "y" ]
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kryptonLabel3",
+ "controlName": "Enter Time:"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kryptonLabel5",
+ "controlName": "to"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kbt_Query",
+ "controlName": "Qurey"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kbt_Reset",
+ "controlName": "Reset"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kryptonButton2",
+ "controlName": "Reprint Pallet Data"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kryptonGroupBox1",
+ "controlName": "Enquiry"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kryptonGroupBox2",
+ "controlName": "Pallet master table data"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kryptonGroupBox3",
+ "controlName": "Pallet details table data"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView1",
+ "controlCode": "序号",
+ "controlName": "Serial Number"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView1",
+ "controlCode": "托盘号",
+ "controlName": "Pallet Code"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView1",
+ "controlCode": "作业状态",
+ "controlName": "Working Status"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView1",
+ "controlCode": "创建人",
+ "controlName": "Creation Name"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView1",
+ "controlCode": "创建时间",
+ "controlName": "Creation Time"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView2",
+ "controlCode": "序号",
+ "controlName": "Serial Number"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView2",
+ "controlCode": "IR条码",
+ "controlName": "IR Code"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView2",
+ "controlCode": "板材信息",
+ "controlName": "Sheet Message"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView2",
+ "controlCode": "录入时间",
+ "controlName": "Enter Time"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView2",
+ "controlCode": "清洗方式",
+ "controlName": "Cleaning Mode"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView2",
+ "controlCode": "污染类型",
+ "controlName": "Contamination Type"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView2",
+ "controlCode": "污染明细",
+ "controlName": "Contamination Details"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView2",
+ "controlCode": "当前计数",
+ "controlName": "Current Number"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView2",
+ "controlCode": "操作用户",
+ "controlName": "Operation User"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "kryptonLabel2",
+ "controlName": "Role information:"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "kryptonLabel3",
+ "controlName": "Role Grade:"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "kryptonLabel4",
+ "controlName": "Creation time:"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "kryptonLabel5",
+ "controlName": "to"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "kbt_Query",
+ "controlName": "Query"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "kbt_Reset",
+ "controlName": "Reset"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "kbt_Add",
+ "controlName": "Add"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "kbt_Edit",
+ "controlName": "Edit"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "kbt_Delete",
+ "controlName": "Delete"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "ktb_setRoleMenuPermission",
+ "controlName": "Permission Set"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "序号",
+ "controlName": "Serial Number"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "角色编码",
+ "controlName": "Role Code"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "角色名称",
+ "controlName": "Role Name"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "角色级别",
+ "controlName": "Role Grade"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "创建时间",
+ "controlName": "Creation time"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "kcmb_roleGrade",
+ "options": [ "Please Select", "Administrator", "User" ]
+ },
+ {
+ "formCode": "frmAddRole",
+ "controlCode": "lbAccount",
+ "controlName": "Role Code:"
+ },
+ {
+ "formCode": "frmAddRole",
+ "controlCode": "lbName",
+ "controlName": "Role Name:"
+ },
+ {
+ "formCode": "frmAddRole",
+ "controlCode": "lbGender",
+ "controlName": "Role Grader:"
+ },
+ {
+ "formCode": "frmAddRole",
+ "controlCode": "btnAdd",
+ "controlName": "Confirm"
+ },
+ {
+ "formCode": "frmAddRole",
+ "controlCode": "btnClose",
+ "controlName": "Cancel"
+ },
+ {
+ "formCode": "frmAddRole",
+ "controlCode": "kcmb_roleGrade",
+ "options": [ "Please Select", "Administrator", "User" ]
+ },
+ {
+ "formCode": "frmEditRole",
+ "controlCode": "lbAccount",
+ "controlName": "Role Code:"
+ },
+ {
+ "formCode": "frmEditRole",
+ "controlCode": "lbName",
+ "controlName": "Role Name:"
+ },
+ {
+ "formCode": "frmEditRole",
+ "controlCode": "lbGender",
+ "controlName": "Role Grader:"
+ },
+ {
+ "formCode": "frmEditRole",
+ "controlCode": "btnAdd",
+ "controlName": "Confirm"
+ },
+ {
+ "formCode": "frmEditRole",
+ "controlCode": "btnClose",
+ "controlName": "Cancel"
+ },
+ {
+ "formCode": "frmEditRole",
+ "controlCode": "kcmb_roleGrade",
+ "options": [ "Please Select", "Administrator", "User" ]
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kbtn_EditWorkingPalletData",
+ "controlName": "Edit Working Pallet"
+ },
+ {
+ "formCode": "frmEditWorkingPalletData",
+ "controlCode": "kryptonGroupBox1",
+ "controlName": "Button action"
+ },
+ {
+ "formCode": "frmEditWorkingPalletData",
+ "controlCode": "kryptonGroupBox2",
+ "controlName": "Working Pallet Details Data:"
+ },
+ {
+ "formCode": "frmEditWorkingPalletData",
+ "controlCode": "kbtn_Confirm",
+ "controlName": "Confirm"
+ },
+ {
+ "formCode": "frmEditWorkingPalletData",
+ "controlCode": "kbtn_Cancel",
+ "controlName": "Cancel"
+ },
+ {
+ "formCode": "frmEditWorkingPalletData",
+ "controlCode": "序号",
+ "controlName": "Serial Number"
+ },
+ {
+ "formCode": "frmEditWorkingPalletData",
+ "controlCode": "清洁方式",
+ "controlName": "Clean Mode"
+ },
+ {
+ "formCode": "frmEditWorkingPalletData",
+ "controlCode": "污染类型",
+ "controlName": "Contamination Type"
+ },
+ {
+ "formCode": "frmEditWorkingPalletData",
+ "controlCode": "污染明细",
+ "controlName": "Contamination Details"
+ },
+ {
+ "formCode": "frmEditWorkingPalletData",
+ "controlCode": "当前数量",
+ "controlName": "Current Number"
+ },
+ {
+ "formCode": "frmEditWorkingPalletData",
+ "controlCode": "更改数量",
+ "controlName": "Change Number "
+ },
+ {
+ "formCode": "frmEditWorkingPalletData",
+ "controlCode": "IR条码",
+ "controlName": "IR Code"
+ },
+ {
+ "formCode": "frmEditWorkingPalletData",
+ "controlCode": "托盘号",
+ "controlName": "Pallet Code"
+ },
+ {
+ "formCode": "frmEditWorkingPalletData",
+ "controlCode": "板材号",
+ "controlName": "Sheet Type"
+ },
+ {
+ "formCode": "frmEditWorkingPalletData",
+ "controlCode": "录入时间",
+ "controlName": "enter Time"
+ },
+ {
+ "formCode": "frmSetRoleMenuPermission",
+ "controlCode": "kbtn_Confirm",
+ "controlName": "Confirm"
+ },
+ {
+ "formCode": "frmSetRoleMenuPermission",
+ "controlCode": "kbtn_Cancel",
+ "controlName": "Cancel"
+ },
+ {
+ "formCode": "frmMainNew",
+ "controlCode": "btnExit",
+ "controlName": "Back"
+ },
+ {
+ "formCode": "frmMainNew",
+ "controlCode": "lbSysTime",
+ "controlName": "System Time:"
+ },
+ {
+ "formCode": "frmMainNew",
+ "controlCode": "lbSysAlreadyRunning",
+ "controlName": "System Running time:"
+ },
+ {
+ "formCode": "frmMainNew",
+ "controlCode": "label3Professional_Success",
+ "controlName": "Serial port open success, PLC connect success!"
+ },
+ {
+ "formCode": "frmMainNew",
+ "controlCode": "label3Professional_Failed",
+ "controlName": "Serial port open fail, PLC connect fail!"
+ },
+ {
+ "formCode": "frmMainNew",
+ "controlCode": "label1",
+ "controlName": "Abnormal reject rate!!"
+ },
+ {
+ "formCode": "frmBase",
+ "controlCode": "LoadFrmBaseExp",
+ "controlName": "An error occurred while loading the underlying configuration interface"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "LoadFrmCleanModeExp",
+ "controlName": "An error occurs in the interface of loading cleaning mode"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "QueryCleanModeData",
+ "controlName": "An error occurred in the cleaning mode data query"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "SelectWantToEditRow",
+ "controlName": "Select the cleaning method data row that you want to edit!"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "DeleteInfo",
+ "controlName": "Are you sure you want to delete the selected cleaning mode information?"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "DeleteSuccessInfo",
+ "controlName": "Delete clean mode data successfully!"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "DeleteFailInfo",
+ "controlName": "Failed to delete clean mode data!"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "SelectWantToDeleteRow",
+ "controlName": "Please select the cleaning method to delete the data row!"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "DeleteCleanModeDataExp",
+ "controlName": "An error occurred when deleting clean mode data"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "LoadContaminationDTLExp",
+ "controlName": "An error has occurred in the loading pollution detail interface"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "QueryContaminationDTLData",
+ "controlName": "An error occurred in the query pollution detail data"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "SelectWantToEditRow",
+ "controlName": "Select the row of pollution details to edit!"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "DeleteInfo",
+ "controlName": "Are you sure you want to delete the selected pollution detail data?"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "DeleteSuccessInfo",
+ "controlName": "Delete pollution details data successfully!"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "DeleteFailInfo",
+ "controlName": "Failed to delete pollution details data!"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "SelectWantToDeleteRow",
+ "controlName": "Please select the pollution details to delete the data row!"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "DeleteContaminationDTLDataExp",
+ "controlName": "An error occurred when deleting pollution details data"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "LoadContaminationTypeExp",
+ "controlName": "An error has occurred in the loading pollution type interface"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "QueryContaminationTypeData",
+ "controlName": "An error occurred in the query pollution type data"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "SelectWantToEditRow",
+ "controlName": "Select the row of pollution type to edit!"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "DeleteInfo",
+ "controlName": "Are you sure you want to delete the selected pollution type data?"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "DeleteSuccessInfo",
+ "controlName": "Delete pollution type data successfully!"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "DeleteFailInfo",
+ "controlName": "Failed to delete pollution type data!"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "SelectWantToDeleteRow",
+ "controlName": "Please select the pollution type to delete the data row!"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "DeleteContaminationTypeDataExp",
+ "controlName": "An error occurred when deleting pollution type data"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "LoadSysParamaterExp",
+ "controlName": "An error occurs in the interface of loading system parameters"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "QuerySysParamaterData",
+ "controlName": "Select the row of system parameters to edit!"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "SelectWantToEditRow",
+ "controlName": "Please select the parameter information data row to edit!"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "LoadRoleMsgExp",
+ "controlName": "An error occurred when loading the role information interface"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "SelectWantToEditRow",
+ "controlName": "Please select the character data row that you want to edit!"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "DeleteInfo",
+ "controlName": "Are you sure you want to delete the selected role information?"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "DeleteAdminRoleInfo",
+ "controlName": "The administrator role is not allowed to be deleted!"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "DeleteSuccessInfo",
+ "controlName": "Role data deleted successfully!"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "DeleteFailInfo",
+ "controlName": "Role data deletion failed!"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "SelectWantToDeleteRow",
+ "controlName": "Please select the row of role data to delete!"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "DeleteRoleDataExp",
+ "controlName": "An error occurred when deleting role data"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "QueryRoleMsgData",
+ "controlName": "An error occurred in the query role information data"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "SelectWantToPermissionRow",
+ "controlName": "Please select the role data row to authorize menu permissions!"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "LoadSheetTypeExp",
+ "controlName": "An error has occurred in the loading sheet type interface"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "QuerySheetTypeData",
+ "controlName": "An error occurred in the query sheet type data"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "SelectWantToEditRow",
+ "controlName": "Select the row of sheet type to edit!"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "DeleteInfo",
+ "controlName": "Are you sure you want to delete the selected sheet type data?"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "DeleteSuccessInfo",
+ "controlName": "Delete sheet type data successfully!"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "DeleteFailInfo",
+ "controlName": "Failed to delete sheet type data!"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "SelectWantToDeleteRow",
+ "controlName": "Please select the sheet type to delete the data row!"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "DeleteSheetTypeDataExp",
+ "controlName": "An error occurred when deleting sheet type data"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "LoadUserMsgExp",
+ "controlName": "An error has occurred in the loading user information interface"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "QueryUserMsgData",
+ "controlName": "An error occurred in the query user information data"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "SelectWantToEditRow",
+ "controlName": "Please select the user information data row to edit!"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "DeleteInfo",
+ "controlName": "Are you sure you want to delete the selected user information?"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "DeleteSuccessInfo",
+ "controlName": "Delete user data successfully!"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "DeleteFailInfo",
+ "controlName": "Failed to delete user data!"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "SelectWantToDeleteRow",
+ "controlName": "Please select the user data row to delete!"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "DeleteUserMsgDataExp",
+ "controlName": "An error occurred when deleting user information data"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "LoadWarningMsgExp",
+ "controlName": "An error has occurred in the loading Alarm information interface"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "QueryWarningMsgDataExp",
+ "controlName": "An error occurred in the query Alarm information data"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "SelectWantToEditRow",
+ "controlName": "Please select the user Alarm data row to edit!"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "DeleteInfo",
+ "controlName": "Are you sure you want to delete the selected Alarm information?"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "DeleteSuccessInfo",
+ "controlName": "Delete Alarm data successfully!"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "DeleteFailInfo",
+ "controlName": "Failed to delete Alarm data!"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "SelectWantToDeleteRow",
+ "controlName": "Please select the Alarm data row to delete!"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "DeleteWarningMsgDataExp",
+ "controlName": "An error occurred when deleting Alarm information data"
+ },
+ {
+ "formCode": "frmWorkingPallet",
+ "controlCode": "LoadWorkingPalletExp",
+ "controlName": "An error has occurred at the loading working pallet interface"
+ },
+ {
+ "formCode": "frmWorkingPallet",
+ "controlCode": "QueryWorkingPalletDataExp",
+ "controlName": "An error occurred in the query working pallet data"
+ },
+ {
+ "formCode": "frmAddCleanCode",
+ "controlCode": "EnterCleanCodeInfo",
+ "controlName": "Please enter the code of cleaning method!"
+ },
+ {
+ "formCode": "frmAddCleanCode",
+ "controlCode": "EnterCleanNameInfo",
+ "controlName": "Please enter the name of cleaning method!"
+ },
+ {
+ "formCode": "frmAddCleanCode",
+ "controlCode": "AddSuccessInfo",
+ "controlName": "Added data of cleaning method is successful!"
+ },
+ {
+ "formCode": "frmAddCleanCode",
+ "controlCode": "AddFailInfo",
+ "controlName": "Added data of cleaning method is failed!"
+ },
+ {
+ "formCode": "frmAddCleanCode",
+ "controlCode": "AddCleanModeDataExp",
+ "controlName": "An error occurred in the newly added cleaning mode data"
+ },
+ {
+ "formCode": "frmAddContaminationDtl",
+ "controlCode": "LoadAddFrmExp",
+ "controlName": "Added pollution details interface loading exception"
+ },
+ {
+ "formCode": "frmAddContaminationDtl",
+ "controlCode": "SelectContaminationTypeInfo",
+ "controlName": "Please select the pollution type!"
+ },
+ {
+ "formCode": "frmAddContaminationDtl",
+ "controlCode": "EnterContaminationDtlCodeInfo",
+ "controlName": "Please enter the pollution detail code!"
+ },
+ {
+ "formCode": "frmAddContaminationDtl",
+ "controlCode": "EnterContaminationDtlNameInfo",
+ "controlName": "Please enter the pollution detail name!"
+ },
+ {
+ "formCode": "frmAddContaminationDtl",
+ "controlCode": "AddSuccessInfo",
+ "controlName": "Add pollution detail data successfully!"
+ },
+ {
+ "formCode": "frmAddContaminationDtl",
+ "controlCode": "AddFailInfo",
+ "controlName": "Add pollution detail data failed!"
+ },
+ {
+ "formCode": "frmAddContaminationDtl",
+ "controlCode": "AddContaminationDtlDataExp",
+ "controlName": "An error occurred in the newly added pollution detail data\r\n"
+ },
+ {
+ "formCode": "frmAddContaminationType",
+ "controlCode": "LoadAddFrmExp",
+ "controlName": "Added pollution type interface loading exception"
+ },
+ {
+ "formCode": "frmAddContaminationType",
+ "controlCode": "SelectCleanModeInfo",
+ "controlName": "Please select the clean mode!"
+ },
+ {
+ "formCode": "frmAddContaminationType",
+ "controlCode": "EnterContaminationTypeCodeInfo",
+ "controlName": "Please enter the pollution type code!"
+ },
+ {
+ "formCode": "frmAddContaminationType",
+ "controlCode": "EnterContaminationTypeNameInfo",
+ "controlName": "Please enter the pollution type name!"
+ },
+ {
+ "formCode": "frmAddContaminationType",
+ "controlCode": "AddSuccessInfo",
+ "controlName": "Add pollution type data successfully!"
+ },
+ {
+ "formCode": "frmAddContaminationType",
+ "controlCode": "AddFailInfo",
+ "controlName": "Add pollution type data failed!"
+ },
+ {
+ "formCode": "frmAddContaminationType",
+ "controlCode": "AddContaminationTypeDataExp",
+ "controlName": "An error occurred in the newly added pollution type data\r\n"
+ },
+ {
+ "formCode": "frmAddRole",
+ "controlCode": "EnterRoleCodeInfo",
+ "controlName": "Please enter role code!"
+ },
+ {
+ "formCode": "frmAddRole",
+ "controlCode": "EnterRoleNameInfo",
+ "controlName": "Please enter role name!"
+ },
+ {
+ "formCode": "frmAddRole",
+ "controlCode": "SelectRoleGradeInfo",
+ "controlName": "Please select the role level!"
+ },
+ {
+ "formCode": "frmAddRole",
+ "controlCode": "AdminOnlyInfo",
+ "controlName": "There can only be one administrator role, please select it again!"
+ },
+ {
+ "formCode": "frmAddRole",
+ "controlCode": "AddSuccessInfo",
+ "controlName": "Added role data successfully!"
+ },
+ {
+ "formCode": "frmAddRole",
+ "controlCode": "AddFailInfo",
+ "controlName": "Added role data failed!"
+ },
+ {
+ "formCode": "frmAddRole",
+ "controlCode": "AddRoleDataExp",
+ "controlName": "An error occurred when adding role data"
+ },
+ {
+ "formCode": "frmAddUser",
+ "controlCode": "EnterUserCodeInfo",
+ "controlName": "Please enter user code!"
+ },
+ {
+ "formCode": "frmAddUser",
+ "controlCode": "EnterUserNameInfo",
+ "controlName": "Please enter user name!"
+ },
+ {
+ "formCode": "frmAddUser",
+ "controlCode": "EnterUserPasswordInfo",
+ "controlName": "Please enter user password!"
+ },
+ {
+ "formCode": "frmAddUser",
+ "controlCode": "ConfirmUserPasswordInfo",
+ "controlName": "Please confirm the user password!"
+ },
+ {
+ "formCode": "frmAddUser",
+ "controlCode": "SelectUserGenderInfo",
+ "controlName": "Please choose gender!"
+ },
+ {
+ "formCode": "frmAddUser",
+ "controlCode": "ConfirmUserPasswordErrInfo",
+ "controlName": "The two passwords are different, please re-enter!"
+ },
+ {
+ "formCode": "frmAddUser",
+ "controlCode": "AddSuccessInfo",
+ "controlName": "Added user data successfully!"
+ },
+ {
+ "formCode": "frmAddUser",
+ "controlCode": "AddFailInfo",
+ "controlName": "Added user data failed!"
+ },
+ {
+ "formCode": "frmAddUser",
+ "controlCode": "AddUserDataExp",
+ "controlName": "An error occurred when adding user data"
+ },
+ {
+ "formCode": "frmAddSheetType",
+ "controlCode": "EnterSheetTypeCodeInfo",
+ "controlName": "Please enter the code of sheet type code!"
+ },
+ {
+ "formCode": "frmAddSheetType",
+ "controlCode": "EnterSheetTypeNameInfo",
+ "controlName": "Please enter the name of sheet type name!"
+ },
+ {
+ "formCode": "frmAddSheetType",
+ "controlCode": "AddSuccessInfo",
+ "controlName": "Added data of sheet type is successful!"
+ },
+ {
+ "formCode": "frmAddSheetType",
+ "controlCode": "AddFailInfo",
+ "controlName": "Added data of sheet type is failed!"
+ },
+ {
+ "formCode": "frmAddSheetType",
+ "controlCode": "AddSheetTypeDataExp",
+ "controlName": "An error occurred in the newly added sheet type data"
+ },
+ {
+ "formCode": "frmAddWaringMsg",
+ "controlCode": "EnterWarningCodeInfo",
+ "controlName": "Please enter the code of Alarm!"
+ },
+ {
+ "formCode": "frmAddWaringMsg",
+ "controlCode": "EnterWarningNameInfo",
+ "controlName": "Please enter the name of Alarm!"
+ },
+ {
+ "formCode": "frmAddWaringMsg",
+ "controlCode": "SelectWarningTypeInfo",
+ "controlName": "Please select the Alarm type!"
+ },
+ {
+ "formCode": "frmAddWaringMsg",
+ "controlCode": "AddSuccessInfo",
+ "controlName": "Add Alarm data successfully!"
+ },
+ {
+ "formCode": "frmAddWaringMsg",
+ "controlCode": "AddFailInfo",
+ "controlName": "Add Alarm data failed!"
+ },
+ {
+ "formCode": "frmAddWaringMsg",
+ "controlCode": "AddWarningDataExp",
+ "controlName": "An error occurred in the newly added Alarm data"
+ },
+ {
+ "formCode": "frmEditCleanCode",
+ "controlCode": "LoadEditFrmExp",
+ "controlName": "Modify clean mode data interface load error"
+ },
+ {
+ "formCode": "frmEditCleanCode",
+ "controlCode": "EnterCleanNameInfo",
+ "controlName": "Please enter the name of cleaning method!"
+ },
+ {
+ "formCode": "frmEditCleanCode",
+ "controlCode": "EditSuccessInfo",
+ "controlName": "Edited data of cleaning method is successful!"
+ },
+ {
+ "formCode": "frmEditCleanCode",
+ "controlCode": "EditFailInfo",
+ "controlName": "Edited data of cleaning method is failed!"
+ },
+ {
+ "formCode": "frmEditCleanCode",
+ "controlCode": "EditCleanModeDataExp",
+ "controlName": "An error occurred in the edited cleaning mode data"
+ },
+ {
+ "formCode": "frmEditContaminationDtl",
+ "controlCode": "LoadEditFrmExp",
+ "controlName": "Edited pollution details interface loading error"
+ },
+ {
+ "formCode": "frmEditContaminationDtl",
+ "controlCode": "SelectContaminationTypeInfo",
+ "controlName": "Please select the pollution type!"
+ },
+ {
+ "formCode": "frmEditContaminationDtl",
+ "controlCode": "EnterContaminationDtlCodeInfo",
+ "controlName": "Please enter the pollution detail code!"
+ },
+ {
+ "formCode": "frmEditContaminationDtl",
+ "controlCode": "EnterContaminationDtlNameInfo",
+ "controlName": "Please enter the pollution detail name!"
+ },
+ {
+ "formCode": "frmEditContaminationDtl",
+ "controlCode": "EditSuccessInfo",
+ "controlName": "Edit pollution detail data successfully!"
+ },
+ {
+ "formCode": "frmEditContaminationDtl",
+ "controlCode": "EditFailInfo",
+ "controlName": "Edit pollution detail data failed!"
+ },
+ {
+ "formCode": "frmEditContaminationDtl",
+ "controlCode": "EditContaminationDtlDataExp",
+ "controlName": "An error occurred in the edited pollution detail data"
+ },
+ {
+ "formCode": "frmEditContaminationType",
+ "controlCode": "LoadEditFrmExp",
+ "controlName": "Edited pollution type interface loading error"
+ },
+ {
+ "formCode": "frmEditContaminationType",
+ "controlCode": "SelectCleanModeInfo",
+ "controlName": "Please select the clean mode!"
+ },
+ {
+ "formCode": "frmEditContaminationType",
+ "controlCode": "EnterContaminationTypeCodeInfo",
+ "controlName": "Please enter the pollution type code!"
+ },
+ {
+ "formCode": "frmEditContaminationType",
+ "controlCode": "EnterContaminationTypeNameInfo",
+ "controlName": "Please enter the pollution type name!"
+ },
+ {
+ "formCode": "frmEditContaminationType",
+ "controlCode": "EditSuccessInfo",
+ "controlName": "Edit pollution type data successfully!"
+ },
+ {
+ "formCode": "frmEditContaminationType",
+ "controlCode": "EditFailInfo",
+ "controlName": "Edit pollution type data failed!"
+ },
+ {
+ "formCode": "frmEditContaminationType",
+ "controlCode": "EditContaminationTypeDataExp",
+ "controlName": "An error occurred in the edited pollution type data"
+ },
+ {
+ "formCode": "frmAddPlcItem",
+ "controlCode": "EnterPlcItemCodeInfo",
+ "controlName": "Please enter the PLC variable code!"
+ },
+ {
+ "formCode": "frmAddPlcItem",
+ "controlCode": "EnterPlcItemNameInfo",
+ "controlName": "Please enter the PLC variable name!"
+ },
+ {
+ "formCode": "frmAddPlcItem",
+ "controlCode": "SelectPlcItemTypeInfo",
+ "controlName": "Please select the type of PLC variable!"
+ },
+ {
+ "formCode": "frmAddPlcItem",
+ "controlCode": "SelectPlcItemDataTypeInfo",
+ "controlName": "Please select PLC variable data type!"
+ },
+ {
+ "formCode": "frmAddPlcItem",
+ "controlCode": "AddSuccessInfo",
+ "controlName": "Add PLC variable data successfully!"
+ },
+ {
+ "formCode": "frmAddPlcItem",
+ "controlCode": "AddFailInfo",
+ "controlName": "Add PLC variable data failed!"
+ },
+ {
+ "formCode": "frmAddPlcItem",
+ "controlCode": "AddPlcItemDataExp",
+ "controlName": "An error occurred in the newly added PLC variable data\r\n"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "LoadEditFrmExp",
+ "controlName": "Edit PLC variable data interface loading error"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "EnterPlcItemCodeInfo",
+ "controlName": "Please enter the PLC variable code!"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "EnterPlcItemNameInfo",
+ "controlName": "Please enter the PLC variable name!"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "SelectPlcItemTypeInfo",
+ "controlName": "Please select the type of PLC variable!"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "SelectPlcItemDataTypeInfo",
+ "controlName": "Please select PLC variable data type!"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "EditSuccessInfo",
+ "controlName": "Edit PLC variable data successfully!"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "EditFailInfo",
+ "controlName": "Edit PLC variable data failed!"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "EditPlcItemDataExp",
+ "controlName": "An error occurred in the edited PLC variable data"
+ },
+ {
+ "formCode": "frmEditParamater",
+ "controlCode": "LoadEditFrmExp",
+ "controlName": "Edit parameter data interface load error"
+ },
+ {
+ "formCode": "frmEditParamater",
+ "controlCode": "EnterparamaterVlaueInfo",
+ "controlName": "Please enter the parameter value!"
+ },
+ {
+ "formCode": "frmEditParamater",
+ "controlCode": "EditSuccessInfo",
+ "controlName": "Edit parameter data successfully!"
+ },
+ {
+ "formCode": "frmEditParamater",
+ "controlCode": "EditFailInfo",
+ "controlName": "Edit parameter data failed!"
+ },
+ {
+ "formCode": "frmEditParamater",
+ "controlCode": "EditParamaterDataExp",
+ "controlName": "An error occurred in the edited parameter data"
+ },
+ {
+ "formCode": "frmEditRole",
+ "controlCode": "LoadEditFrmExp",
+ "controlName": "Edit role data interface load error"
+ },
+ {
+ "formCode": "frmEditRole",
+ "controlCode": "EnterRoleNameInfo",
+ "controlName": "Please enter role name!"
+ },
+ {
+ "formCode": "frmEditRole",
+ "controlCode": "SelectRoleGradeInfo",
+ "controlName": "Please select the role level!"
+ },
+ {
+ "formCode": "frmEditRole",
+ "controlCode": "EditSuccessInfo",
+ "controlName": "Edited role data successfully!"
+ },
+ {
+ "formCode": "frmEditRole",
+ "controlCode": "EditFailInfo",
+ "controlName": "Edited role data failed!"
+ },
+ {
+ "formCode": "frmEditRole",
+ "controlCode": "EditRoleDataExp",
+ "controlName": "An error occurred when editing role data"
+ },
+ {
+ "formCode": "frmEditSheetType",
+ "controlCode": "LoadEditFrmExp",
+ "controlName": "Edit sheet data interface loading error"
+ },
+ {
+ "formCode": "frmEditSheetType",
+ "controlCode": "EnterSheetTypeNameInfo",
+ "controlName": "Please enter the name of sheet type name!"
+ },
+ {
+ "formCode": "frmEditSheetType",
+ "controlCode": "EditSuccessInfo",
+ "controlName": "Edited data of sheet type is successful!"
+ },
+ {
+ "formCode": "frmEditSheetType",
+ "controlCode": "EditFailInfo",
+ "controlName": "Edited data of sheet type is failed!"
+ },
+ {
+ "formCode": "frmEditSheetType",
+ "controlCode": "EditSheetTypeDataExp",
+ "controlName": "An error occurred in the edited sheet type data"
+ },
+ {
+ "formCode": "frmEditUser",
+ "controlCode": "LoadEditFrmExp",
+ "controlName": "An error occurred when edit user data interface"
+ },
+ {
+ "formCode": "frmEditUser",
+ "controlCode": "EnterUserCodeInfo",
+ "controlName": "Please enter user code!"
+ },
+ {
+ "formCode": "frmEditUser",
+ "controlCode": "EnterUserNameInfo",
+ "controlName": "Please enter user name!"
+ },
+ {
+ "formCode": "frmEditUser",
+ "controlCode": "EnterUserPasswordInfo",
+ "controlName": "Please enter user password!"
+ },
+ {
+ "formCode": "frmEditUser",
+ "controlCode": "ConfirmUserPasswordInfo",
+ "controlName": "Please confirm the user password!"
+ },
+ {
+ "formCode": "frmEditUser",
+ "controlCode": "SelectUserGenderInfo",
+ "controlName": "Please choose gender!"
+ },
+ {
+ "formCode": "frmEditUser",
+ "controlCode": "ConfirmUserPasswordErrInfo",
+ "controlName": "The two passwords are different, please re-enter!"
+ },
+ {
+ "formCode": "frmEditUser",
+ "controlCode": "EditSuccessInfo",
+ "controlName": "Edited user data successfully!"
+ },
+ {
+ "formCode": "frmEditUser",
+ "controlCode": "EditFailInfo",
+ "controlName": "Edited user data failed!"
+ },
+ {
+ "formCode": "frmEditUser",
+ "controlCode": "EditUserDataExp",
+ "controlName": "An error occurred when editing user data"
+ },
+ {
+ "formCode": "frmEditWaringMsg",
+ "controlCode": "LoadEditFrmExp",
+ "controlName": "Edit the basic alarm data interface to load errors"
+ },
+ {
+ "formCode": "frmEditWaringMsg",
+ "controlCode": "EnterWarningCodeInfo",
+ "controlName": "Please enter the code of Alarm!"
+ },
+ {
+ "formCode": "frmEditWaringMsg",
+ "controlCode": "EnterWarningNameInfo",
+ "controlName": "Please enter the name of Alarm!"
+ },
+ {
+ "formCode": "frmEditWaringMsg",
+ "controlCode": "SelectWarningTypeInfo",
+ "controlName": "Please select the Alarm type!"
+ },
+ {
+ "formCode": "frmEditWaringMsg",
+ "controlCode": "EditSuccessInfo",
+ "controlName": "Edit Alarm data successfully!"
+ },
+ {
+ "formCode": "frmEditWaringMsg",
+ "controlCode": "EditFailInfo",
+ "controlName": "Edit Alarm data failed!"
+ },
+ {
+ "formCode": "frmEditWaringMsg",
+ "controlCode": "EditWarningDataExp",
+ "controlName": "An error occurred in the edited Alarm data"
+ },
+ {
+ "formCode": "frmEditWorkingPalletData",
+ "controlCode": "LoadEditFrmExp",
+ "controlName": "An error occurred in Load Edit working pallet data interface"
+ },
+ {
+ "formCode": "frmEditWorkingPalletData",
+ "controlCode": "EditWorkingPalletDataExp",
+ "controlName": "Edit working pallet data error"
+ },
+ {
+ "formCode": "frmSetRoleMenuPermission",
+ "controlCode": "LoadEditFrmExp",
+ "controlName": "Abnormal loading of role menu permission configuration interface"
+ },
+ {
+ "formCode": "frmSetRoleMenuPermission",
+ "controlCode": "EditSuccessInfo",
+ "controlName": "Menu authority authorization successfully for this role!"
+ },
+ {
+ "formCode": "frmSetRoleMenuPermission",
+ "controlCode": "EditFailInfo",
+ "controlName": "Menu authority authorization failed for this role!"
+ },
+ {
+ "formCode": "frmSetRoleMenuPermission",
+ "controlCode": "EmptyMenuDataInfo",
+ "controlName": "No menu item is selected, permissions cannot be configured!"
+ },
+ {
+ "formCode": "frmSetRoleMenuPermission",
+ "controlCode": "EditRoleMenuPermissionExp",
+ "controlName": "Menu permission authorization error for edit roles"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "LoadQueryWorkingDataExp",
+ "controlName": "An error occurred in the loading job data query interface"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "SelectWantToPrintRow",
+ "controlName": "Please check the pallet data line you want to print!"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "PrintWorkingPalletDataExp",
+ "controlName": "An error has occurred to the print receiving pallet data"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "QueryWorkingPalletDataExp",
+ "controlName": "An error occurred in the query job tray data"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "SelectWantToEditRow",
+ "controlName": "Please check the job tray data row to edit"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "LoadFrmPlcItemExp",
+ "controlName": "An error occurs when loading PLC variable data interface"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "SelectWantToEditRow",
+ "controlName": "Please select the PLC variable data row that you want to edit!"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "DeleteInfo",
+ "controlName": "Are you sure you want to delete the selected PLC variable information?"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "DeleteSuccessInfo",
+ "controlName": "Delete PLC variable data successfully!"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "DeleteFailInfo",
+ "controlName": "Delete PLC variable data failed!"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "SelectWantToDeleteRow",
+ "controlName": "Please select the ROW of PLC variable data to delete!"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "DeletePlcItemDataExp",
+ "controlName": "An error occurred when deleting PLC variable data"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "LoadFrmPlcAlarmExp",
+ "controlName": "An error occurred in the interface of loading alarm data"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "LoadMainDetailFrmExp",
+ "controlName": "An error occurred when the main business interface was loaded"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "SaveSheetIRDataExp",
+ "controlName": "Abnormal data of the preservation sheet and IR data occurred"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "EnterSheetTypeInfo",
+ "controlName": "Failed to delete clean mode data!"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "EnterIRMsgInfo",
+ "controlName": "Please enter IR receiving number information!"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "EnterInputTimeInfo",
+ "controlName": "Please select the enter time!"
+ },
+ {
+ "formCode": "frmAddUser",
+ "controlCode": "klb_Role",
+ "controlName": "Subordinate Role:"
+ },
+ {
+ "formCode": "frmAddUser",
+ "controlCode": "SelectUserRoleInfo",
+ "controlName": "Please choose subordinate role!!"
+ },
+ {
+ "formCode": "frmEditUser",
+ "controlCode": "klb_Role",
+ "controlName": "Subordinate Role:"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "kryptonGroupBox3",
+ "controlName": "Data Field"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "kryptonGroupBox4",
+ "controlName": "Query Operation"
+ },
+ {
+ "formCode": "frmSwitchRunDirection",
+ "controlCode": "lbCleanModeCode",
+ "controlName": "Clean method code:"
+ },
+ {
+ "formCode": "frmSwitchRunDirection",
+ "controlCode": "lbCleanModeName",
+ "controlName": "Clean method name:"
+ },
+ {
+ "formCode": "frmSwitchRunDirection",
+ "controlCode": "btnAdd",
+ "controlName": "Confirm"
+ },
+ {
+ "formCode": "frmSwitchRunDirection",
+ "controlCode": "btnEdit",
+ "controlName": "Cancel"
+ },
+ {
+ "formCode": "frmSwitchRunDirection",
+ "controlCode": "LoadSwitchRunDirectionExp",
+ "controlName": "There is an abnormality on the switching interface of loading and discharging running direction."
+ },
+ {
+ "formCode": "frmSwitchRunDirection",
+ "controlCode": "SelectSwitchDirectionInfo",
+ "controlName": "Please select the switch direction !!"
+ },
+ {
+ "formCode": "frmSwitchRunDirection",
+ "controlCode": "SwitchDirectionSuccessInfo",
+ "controlName": "Switching discharge running direction is successful !!"
+ },
+ {
+ "formCode": "frmSwitchRunDirection",
+ "controlCode": "SwitchDirectionFailInfo",
+ "controlName": "Switching discharge running direction is failed !!"
+ },
+ {
+ "formCode": "frmSwitchRunDirection",
+ "controlCode": "SwitchRunDirectionExp",
+ "controlName": "There is an exception to the function that switches the discharge running direction."
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "kryptonButton1",
+ "controlName": "Switch running direction"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kbtn_WorkedFullPalletNum",
+ "controlName": "Finished pallet counter"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kryptonButton14",
+ "controlName": "Feeding lift reverse"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kryptonButton15",
+ "controlName": "Feeding reverse"
+ },
+ {
+ "formCode": "frmManual",
+ "controlCode": "kbtn_AlarmDelayedTime",
+ "controlName": "Alarm delayed time"
+ }
+]
\ No newline at end of file
diff --git a/CleanMachineHMI/Lang/zh-CN.json b/CleanMachineHMI/Lang/zh-CN.json
new file mode 100644
index 0000000..3b7ce01
--- /dev/null
+++ b/CleanMachineHMI/Lang/zh-CN.json
@@ -0,0 +1,1872 @@
+[
+ {
+ "formCode": "frmLogin",
+ "controlCode": "lbTitle",
+ "controlName": "清洁控制系统"
+ },
+ {
+ "formCode": "frmLogin",
+ "controlCode": "btnExit",
+ "controlName": "退出系统"
+ },
+ {
+ "formCode": "frmLogin",
+ "controlCode": "btnLogin",
+ "controlName": "登录"
+ },
+ {
+ "formCode": "frmLogin",
+ "controlCode": "lbPs",
+ "controlName": "登录密码:"
+ },
+ {
+ "formCode": "frmLogin",
+ "controlCode": "lbAccount",
+ "controlName": "登录用户:"
+ },
+ {
+ "formCode": "frmLogin",
+ "controlCode": "PasswordFail",
+ "controlName": "输入密码错误!"
+ },
+ {
+ "formCode": "frmMainNew",
+ "controlCode": "label1",
+ "controlName": "废品率异常!!"
+ },
+ {
+ "formCode": "frmMainNew",
+ "controlCode": "btnExit",
+ "controlName": "返回"
+ },
+ {
+ "formCode": "frmMainNew",
+ "controlCode": "lbSysAlreadyRunning",
+ "controlName": "系统运行时间:"
+ },
+ {
+ "formCode": "frmMainNew",
+ "controlCode": "lbSysTime",
+ "controlName": "系统时间:"
+ },
+ {
+ "formCode": "frmMainNew",
+ "controlCode": "label3Professional_Success",
+ "controlName": "串口打开成功,PLC连接成功!"
+ },
+ {
+ "formCode": "frmMechineCheck",
+ "controlCode": "kryptonGroupBox3",
+ "controlName": "系统运行中"
+ },
+ {
+ "formCode": "frmMechineCheck",
+ "controlCode": "cbt_ResetSys",
+ "controlName": "重置"
+ },
+ {
+ "formCode": "frmMechineCheck",
+ "controlCode": "cbt_StartTran",
+ "controlName": "开始"
+ },
+ {
+ "formCode": "frmMechineCheck",
+ "controlCode": "kryptonGroupBox5",
+ "controlName": "清洁毛刷选择"
+ },
+ {
+ "formCode": "frmMechineCheck",
+ "controlCode": "kryptonLabel2",
+ "controlName": "毛刷选择3"
+ },
+ {
+ "formCode": "frmMechineCheck",
+ "controlCode": "kryptonLabel7",
+ "controlName": "毛刷选择2"
+ },
+ {
+ "formCode": "frmMechineCheck",
+ "controlCode": "kryptonLabel1",
+ "controlName": "毛刷选择1"
+ },
+ {
+ "formCode": "frmMechineCheck",
+ "controlCode": "btn_logout",
+ "controlName": "退出系统"
+ },
+ {
+ "formCode": "frmMechineCheck",
+ "controlCode": "lbtitle",
+ "controlName": "清洁机操作自检测试"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel21",
+ "controlName": "胶带、贴纸"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel9",
+ "controlName": "啮齿动物、昆虫"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel8",
+ "controlName": "土、泥、草"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel7",
+ "controlName": "金属刨花"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel6",
+ "controlName": "玻璃/木屑"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel2",
+ "controlName": "物理污染"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel19",
+ "controlName": "其它污染"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel5",
+ "controlName": "其它污染"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel17",
+ "controlName": "霉菌"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel16",
+ "controlName": "臭味或异味"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel15",
+ "controlName": "粪便、排泄物"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel14",
+ "controlName": "有湿气或受潮"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel4",
+ "controlName": "微生物污染"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel13",
+ "controlName": "粘合剂"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel12",
+ "controlName": "溶剂"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel11",
+ "controlName": "强烈气味"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel10",
+ "controlName": "油/油脂或油漆"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonWrapLabel3",
+ "controlName": "化学污染"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kbtn_forceFinish",
+ "controlName": "End of IR job"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonLabel11",
+ "controlName": "静电棒"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "label2",
+ "controlName": "功能选择"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonLabel6",
+ "controlName": "喷头"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "label1",
+ "controlName": "系统运行"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "cbt_ResetSys",
+ "controlName": "重置"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonLabel7",
+ "controlName": "毛刷3"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "cbt_StopTran",
+ "controlName": "停止"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "cbt_StartTran",
+ "controlName": "开始"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonLabel8",
+ "controlName": "毛刷2"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonLabel9",
+ "controlName": "毛刷1"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kbtn_WorkedFullPalletNum",
+ "controlName": "满托数量"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kbtn_Scrap",
+ "controlName": "SCRAP\r\n + 1"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "label8",
+ "controlName": "Current IR"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonLabel5",
+ "controlName": "IR# Scrap Num"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonLabel4",
+ "controlName": "IR# Total Num"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "label7",
+ "controlName": "Scrap Count"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonButton1",
+ "controlName": "ReEntry"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "ktb_SaveIR",
+ "controlName": "SAVE IR"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonLabel3",
+ "controlName": "记录日期"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonLabel1",
+ "controlName": "IR #"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "kryptonLabel2",
+ "controlName": "图表类型"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "btnParamater",
+ "controlName": "参数配置"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "btnLogin",
+ "controlName": "注销登录"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "btnBase",
+ "controlName": "基础配置"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "btnWarningLog",
+ "controlName": "报警情况"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "btnPrinter",
+ "controlName": "作业数据记录"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "btnIR",
+ "controlName": "IR信息"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "btnPLCConfig",
+ "controlName": "PLC变量配置"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "btnIO",
+ "controlName": "I/O点位"
+ },
+ {
+ "formCode": "frmMainDetail",
+ "controlCode": "btnManual",
+ "controlName": "手动控制"
+ },
+ {
+ "formCode": "frmBase",
+ "controlCode": "btnRole",
+ "controlName": "角色信息"
+ },
+ {
+ "formCode": "frmBase",
+ "controlCode": "btnUser",
+ "controlName": "用户信息"
+ },
+ {
+ "formCode": "frmBase",
+ "controlCode": "btnContaminationTypeDetail",
+ "controlName": "污染明细表"
+ },
+ {
+ "formCode": "frmBase",
+ "controlCode": "btnWarning",
+ "controlName": "报警配置表"
+ },
+ {
+ "formCode": "frmBase",
+ "controlCode": "btnContaminationType",
+ "controlName": "污染类型表"
+ },
+ {
+ "formCode": "frmBase",
+ "controlCode": "btnSheetType",
+ "controlName": "板材类型表"
+ },
+ {
+ "formCode": "frmBase",
+ "controlCode": "btnCleanMode",
+ "controlName": "清洁方式表"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "kbt_Reset",
+ "controlName": "重置条件"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "kbt_Edit",
+ "controlName": "编辑"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "kbt_Delete",
+ "controlName": "删除"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "kbt_Query",
+ "controlName": "查询"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "kbt_Add",
+ "controlName": "新增"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "kryptonLabel2",
+ "controlName": "板材编码:"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "kryptonLabel5",
+ "controlName": "至"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "kryptonLabel4",
+ "controlName": "创建时间:"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "kryptonLabel3",
+ "controlName": "板材名称:"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "序号",
+ "controlName": "序号"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "板材编码",
+ "controlName": "板材编码"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "板材名称",
+ "controlName": "板材名称"
+ },
+ {
+ "formCode": "frmSheetType",
+ "controlCode": "创建时间",
+ "controlName": "创建时间"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "kbt_Reset",
+ "controlName": "重置条件"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "kbt_Edit",
+ "controlName": "编辑"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "kbt_Delete",
+ "controlName": "删除"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "kbt_Query",
+ "controlName": "查询"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "kbt_Add",
+ "controlName": "新增"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "kryptonLabel2",
+ "controlName": "用户信息:"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "kryptonLabel5",
+ "controlName": "至"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "kryptonLabel4",
+ "controlName": "创建时间:"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "kryptonLabel3",
+ "controlName": "性别:"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "kcmb_gender",
+ "options": [
+ "请选择",
+ "male",
+ "female"
+ ]
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "序号",
+ "controlName": "序号"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "用户编码",
+ "controlName": "用户编码"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "用户名称",
+ "controlName": "用户名称"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "密码",
+ "controlName": "密码"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "性别",
+ "controlName": "性别"
+ },
+ {
+ "formCode": "frmUser",
+ "controlCode": "创建时间",
+ "controlName": "创建时间"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "kbt_Add",
+ "controlName": "新增"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "kbt_Reset",
+ "controlName": "重置条件"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "kbt_Query",
+ "controlName": "查询"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "kbt_Edit",
+ "controlName": "编辑"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "kbt_Delete",
+ "controlName": "删除"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "ktb_setRoleMenuPermission",
+ "controlName": "权限配置"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "kryptonLabel2",
+ "controlName": "角色信息:"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "kryptonLabel5",
+ "controlName": "至"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "kryptonLabel4",
+ "controlName": "创建时间:"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "kryptonLabel3",
+ "controlName": "角色级别:"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "kcmb_roleGrade",
+ "options": [
+ "请选择",
+ "Administrator",
+ "User"
+ ]
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "序号",
+ "controlName": "序号"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "角色编码",
+ "controlName": "角色编码"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "角色名称",
+ "controlName": "角色名称"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "角色级别",
+ "controlName": "角色级别"
+ },
+ {
+ "formCode": "frmRole",
+ "controlCode": "创建时间",
+ "controlName": "创建时间"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "kbt_Reset",
+ "controlName": "重置条件"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "kbt_Edit",
+ "controlName": "编辑"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "kbt_Delete",
+ "controlName": "删除"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "kbt_Query",
+ "controlName": "查询"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "kbt_Add",
+ "controlName": "新增"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "kryptonLabel2",
+ "controlName": "清洁方式编码:"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "kryptonLabel5",
+ "controlName": "至"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "kryptonLabel4",
+ "controlName": "创建时间:"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "kryptonLabel3",
+ "controlName": "清洁方式名称:"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "序号",
+ "controlName": "序号"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "清洁方式编码",
+ "controlName": "清洁方式编码"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "清洁方式名称",
+ "controlName": "清洁方式名称"
+ },
+ {
+ "formCode": "frmCleanMode",
+ "controlCode": "创建时间",
+ "controlName": "创建时间"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "kbt_Reset",
+ "controlName": "重置条件"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "kbt_Edit",
+ "controlName": "编辑"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "kbt_Delete",
+ "controlName": "删除"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "kbt_Query",
+ "controlName": "查询"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "kbt_Add",
+ "controlName": "新增"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "kryptonLabel2",
+ "controlName": "污染类型信息:"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "kryptonLabel5",
+ "controlName": "至"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "kryptonLabel4",
+ "controlName": "创建时间:"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "kryptonLabel3",
+ "controlName": "清洁方式:"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "序号",
+ "controlName": "序号"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "清洁方式编码",
+ "controlName": "清洁方式编码"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "清洁方式名称",
+ "controlName": "清洁方式名称"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "污染类型编码",
+ "controlName": "污染类型编码"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "污染类型名称",
+ "controlName": "污染类型名称"
+ },
+ {
+ "formCode": "frmContaminationType",
+ "controlCode": "创建时间",
+ "controlName": "创建时间"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "kbt_Reset",
+ "controlName": "重置条件"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "kbt_Edit",
+ "controlName": "编辑"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "kbt_Delete",
+ "controlName": "删除"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "kbt_Query",
+ "controlName": "查询"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "kbt_Add",
+ "controlName": "新增"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "kryptonLabel2",
+ "controlName": "污染明细信息:"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "kryptonLabel5",
+ "controlName": "至"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "kryptonLabel4",
+ "controlName": "创建时间:"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "kryptonLabel3",
+ "controlName": "污染类型:"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "序号",
+ "controlName": "序号"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "污染类型编码",
+ "controlName": "污染类型编码"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "污染类型名称",
+ "controlName": "污染类型名称"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "污染明细编码",
+ "controlName": "污染明细编码"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "污染明细名称",
+ "controlName": "污染明细名称"
+ },
+ {
+ "formCode": "frmContaminationDTL",
+ "controlCode": "创建时间",
+ "controlName": "创建时间"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "kbt_Reset",
+ "controlName": "重置条件"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "kbt_Edit",
+ "controlName": "编辑"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "kbt_Delete",
+ "controlName": "删除"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "kbt_Query",
+ "controlName": "查询"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "kbt_Add",
+ "controlName": "新增"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "kryptonLabel2",
+ "controlName": "报警信息:"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "kryptonLabel5",
+ "controlName": "至"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "kryptonLabel4",
+ "controlName": "创建时间:"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "kryptonLabel3",
+ "controlName": "报警类型:"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "kcmb_WarningType",
+ "options": [
+ "请选择",
+ "Cleaning machine alarm",
+ "Frequency converter alarm"
+ ]
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "序号",
+ "controlName": "序号"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "报警编码",
+ "controlName": "报警编码"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "报警名称",
+ "controlName": "报警名称"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "PLC信息",
+ "controlName": "PLC信息"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "报警类型",
+ "controlName": "报警类型"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "报警描述",
+ "controlName": "报警描述"
+ },
+ {
+ "formCode": "frmWarning",
+ "controlCode": "创建时间",
+ "controlName": "创建时间"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "kryptonGroupBox3",
+ "controlName": "数据区:"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "kryptonGroupBox4",
+ "controlName": "查询操作:"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "kryptonButton1",
+ "controlName": "出料运行方向切换"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "kbt_Reset",
+ "controlName": "重置条件"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "kbt_Query",
+ "controlName": "查询"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "kbt_Edit",
+ "controlName": "编辑"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "kryptonLabel2",
+ "controlName": "参数编码:"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "kryptonLabel5",
+ "controlName": "至"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "kryptonLabel4",
+ "controlName": "创建时间:"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "kryptonLabel3",
+ "controlName": "参数名称:"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "序号",
+ "controlName": "序号"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "参数编码",
+ "controlName": "参数编码"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "参数名称",
+ "controlName": "参数名称"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "参数值",
+ "controlName": "参数值"
+ },
+ {
+ "formCode": "frmParamater",
+ "controlCode": "创建时间",
+ "controlName": "创建时间"
+ },
+ {
+ "formCode": "frmEditParamater",
+ "controlCode": "lbValue",
+ "controlName": "设定值:"
+ },
+ {
+ "formCode": "frmEditParamater",
+ "controlCode": "lbKey",
+ "controlName": "参数名称:"
+ },
+ {
+ "formCode": "frmEditParamater",
+ "controlCode": "btnEdit",
+ "controlName": "取消"
+ },
+ {
+ "formCode": "frmEditParamater",
+ "controlCode": "btnAdd",
+ "controlName": "确认"
+ },
+ {
+ "formCode": "frmSwitchRunDirection",
+ "controlCode": "lbCleanModeName",
+ "controlName": "选择切换方向:"
+ },
+ {
+ "formCode": "frmSwitchRunDirection",
+ "controlCode": "lbCleanModeCode",
+ "controlName": "当前运行方向:"
+ },
+ {
+ "formCode": "frmSwitchRunDirection",
+ "controlCode": "btnEdit",
+ "controlName": "取消"
+ },
+ {
+ "formCode": "frmSwitchRunDirection",
+ "controlCode": "btnAdd",
+ "controlName": "确认"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kryptonGroupBox2",
+ "controlName": "数据区:"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kryptonGroupBox1",
+ "controlName": "查询操作"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kbt_Reset",
+ "controlName": "重置条件"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kbt_Edit",
+ "controlName": "编辑"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kbt_Delete",
+ "controlName": "删除"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kbt_Query",
+ "controlName": "查询"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kbt_Add",
+ "controlName": "新增"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kryptonLabel1",
+ "controlName": "PLC信息:"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kryptonLabel2",
+ "controlName": "PLC变量Modbus地址:"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kryptonLabel3",
+ "controlName": "PLC变量类型:"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kryptonLabel4",
+ "controlName": "PLC变量数据类型:"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kryptonLabel5",
+ "controlName": "PLC变量寄存器地址:"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kcmb_plcItemType",
+ "options": [
+ "请选择",
+ "可写",
+ "可读",
+ "可读写"
+ ]
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "kcmb_plcItemDateType",
+ "options": [
+ "请选择",
+ "m",
+ "d",
+ "x",
+ "y"
+ ]
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "序号",
+ "controlName": "序号"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "PLC变量编码",
+ "controlName": "PLC变量编码"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "PLC变量名称",
+ "controlName": "PLC变量名称"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "当前值",
+ "controlName": "当前值"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "PLC变量类型",
+ "controlName": "PLC变量类型"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "PLC变量数据类型",
+ "controlName": "PLC变量数据类型"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "PLC寄存器地址",
+ "controlName": "PLC寄存器地址"
+ },
+ {
+ "formCode": "frmPlcItemConfig",
+ "controlCode": "ModBus地址",
+ "controlName": "ModBus地址"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "kryptonLabel6",
+ "controlName": "PLC变量偏移位置:"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "kryptonButton2",
+ "controlName": "取消"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "kryptonButton1",
+ "controlName": "确认"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "kryptonLabel5",
+ "controlName": "PLC变量寄存器地址:"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "kryptonLabel4",
+ "controlName": "PLC变量数据类型:"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "kryptonLabel3",
+ "controlName": "PLC变量类型:"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "kryptonLabel2",
+ "controlName": "PLC变量编码:"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "kryptonLabel1",
+ "controlName": "PLC变量编码:"
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "kcmb_plcItemType",
+ "options": [
+ "可写",
+ "可读",
+ "可读写"
+ ]
+ },
+ {
+ "formCode": "frmEditPlcItem",
+ "controlCode": "kcmb_plcItemDataType",
+ "options": [
+ "m",
+ "d",
+ "x",
+ "y"
+ ]
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FootSwitch_IO",
+ "controlName": "Foot pedal"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingLiftingDrumLightCurtain1_IO",
+ "controlName": "Finished lift feeding light bars 1"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingLiftingDrumLightCurtain2_IO",
+ "controlName": "Finished lift feeding light bars 2"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeLiftingDrumLightCurtain_IO",
+ "controlName": "Finished lift outgoing light bars"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "NozzleCheck_IO",
+ "controlName": "Spray inspection"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeNum_IO",
+ "controlName": "Finished couter inspection"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "StartSys_IO",
+ "controlName": "Start"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "StopSys_IO",
+ "controlName": "Stop"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CrashStop_IO",
+ "controlName": "E-stop"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "VacuumingFull",
+ "controlName": "Dust collector full sensor"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CleanMac1ThermalProtection1_IO",
+ "controlName": "Brush 1 thermal protection 1"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CleanMac1ThermalProtection2_IO",
+ "controlName": "Brush 1 thermal protection 2"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CleanMac2ThermalProtection1_IO",
+ "controlName": "Brush 2 thermal protection 1"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CleanMac2ThermalProtection2_IO",
+ "controlName": "Brush 2 thermal protection 2"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CleanMac3ThermalProtection1_IO",
+ "controlName": "Brush 3 thermal protection 1"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CleanMac3ThermalProtection2_IO",
+ "controlName": "Brush 3 thermal protection 2"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingLiftingDrumUpperLimit_IO",
+ "controlName": "Feeding lift table up limit"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingLiftingDrumLowerLimit_IO",
+ "controlName": "Feeding lift table down limit"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingLiftingDrumSensor_IO",
+ "controlName": "Feeding lift sensor"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingLiftingDrumThermalProtection_IO",
+ "controlName": "Feeding lift motor thermal protection"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeLiftingDrumUpperLimit_IO",
+ "controlName": "Finished lift table up limit"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeLiftingDrumLowerLimit_IO",
+ "controlName": "Finished lift table down limit"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeLiftingDrumSensor_IO",
+ "controlName": "Finished lift sensor"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeLiftingDrumThermalProtection_IO",
+ "controlName": "Finished lift motor thermal protection"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingInDrumCheck_IO",
+ "controlName": "Feeding conveyor feeding inspection"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingOutDrumCheck_IO",
+ "controlName": "Feeding conveyor outgoing inspection"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Discharge1InDrumCheck_IO",
+ "controlName": "Empty pallet conveyor feeding inspection"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Discharge1OutDrumCheck_IO",
+ "controlName": "Empty pallet conveyor outgoing inspection"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Discharge2InDrumCheck_IO",
+ "controlName": "Finished conveyor feeding inspection"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Discharge2OutDrumCheck_IO",
+ "controlName": "Finished conveyor outgoing inspection"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeLiftingDrumHeightCheck_IO",
+ "controlName": "Finished lift height inspection"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeLiftingDrumSensor2_IO",
+ "controlName": "Finished lift sensor 2"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Remark9",
+ "controlName": "Spare"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Remark10",
+ "controlName": "Spare"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Remark11",
+ "controlName": "Spare"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Remark12",
+ "controlName": "Spare"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CleanMacInDrum_IO",
+ "controlName": "Cleaner feeding conveyor"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CleanMacOutDrum_IO",
+ "controlName": "Cleaner outfeeding conveyor"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingInDrum_IO",
+ "controlName": "Feeding conveyor"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingLiftingDrum_IO",
+ "controlName": "Feeding lift conveyor"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeInDrum_IO",
+ "controlName": "Empty pallet conveyor"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeOutDrum_IO",
+ "controlName": "Finished conveyor"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeLiftingDrum_IO",
+ "controlName": "Finished lift conveyor"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Remark13",
+ "controlName": "Spare"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Remark14",
+ "controlName": "Spare"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "NozzleSolenoidValve_IO",
+ "controlName": "Spray"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "RunIndicatorLight_IO",
+ "controlName": "Working light"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "StopIndicatorLight_IO",
+ "controlName": "Stop light"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CleanMac1Start_IO",
+ "controlName": "Brush 1 ON"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CleanMac2Start_IO",
+ "controlName": "Brush 2 ON"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "CleanMac3Start_IO",
+ "controlName": "Brush 3 ON"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingLiftingDrumRise_IO",
+ "controlName": "Feeding lift table up"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeLiftingDrumRise_IO",
+ "controlName": "Finished lift table up"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "StaticStartOrStop_IO",
+ "controlName": "Static bars ON/OFF"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Remark15",
+ "controlName": "Spare"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Remark16",
+ "controlName": "Spare"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "FeedingLiftingDrumDecline_IO",
+ "controlName": "Feeding lift down"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "OutGoodsLiftingDrumDecline_IO",
+ "controlName": "Finished lift down"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "OutGoodsBlockSolenoidValve_IO",
+ "controlName": "Finished lift stopper"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "VacuumingStop_IO",
+ "controlName": "Dust collector Stop"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "VacuumingStart_IO",
+ "controlName": "Dust collector Start"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "DischargeLiftingDrumPushSolenoidValve_IO",
+ "controlName": "Finished lift pusher"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Remark17",
+ "controlName": "Spare"
+ },
+ {
+ "formCode": "frmIOMonitor",
+ "controlCode": "Remark18",
+ "controlName": "Spare"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "kryptonGroupBox2",
+ "controlName": "数据区:"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "kryptonGroupBox1",
+ "controlName": "查询操作"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "kbtn_UuivertorAlarmClear",
+ "controlName": "变频器报警清除"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "kbt_Reset",
+ "controlName": "重置条件"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "kbt_Query",
+ "controlName": "查询"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "kryptonLabel1",
+ "controlName": "报警信息:"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "kryptonLabel4",
+ "controlName": "报警状态:"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "kryptonLabel2",
+ "controlName": "报警处理结果:"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "kcmb_plcAlarmStatus",
+ "options": [
+ "请选择",
+ "Alarming Now",
+ "Alarm Finish"
+ ]
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "kcmb_plcAlarmHandleResult",
+ "options": [
+ "请选择",
+ "未处理",
+ "已处理"
+ ]
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "序号",
+ "controlName": "序号"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "PLC变量地址",
+ "controlName": "PLC变量地址"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "报警条码",
+ "controlName": "报警条码"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "报警内容",
+ "controlName": "报警内容"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "报警时间",
+ "controlName": "报警时间"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "报警状态",
+ "controlName": "报警状态"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "处理结果",
+ "controlName": "处理结果"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "处理时间",
+ "controlName": "处理时间"
+ },
+ {
+ "formCode": "frmPlcAlarmLog",
+ "controlCode": "报警时长",
+ "controlName": "报警时长"
+ },
+ {
+ "formCode": "frmCurrWorkingIrMsg",
+ "controlCode": "kryptonLabel2",
+ "controlName": "Current job IR information:"
+ },
+ {
+ "formCode": "frmCurrWorkingIrMsg",
+ "controlCode": "kryptonLabel1",
+ "controlName": "Current job pallet:"
+ },
+ {
+ "formCode": "frmCurrWorkingIrMsg",
+ "controlCode": "清洗方式编码",
+ "controlName": "清洗方式编码"
+ },
+ {
+ "formCode": "frmCurrWorkingIrMsg",
+ "controlCode": "清洗方式名称",
+ "controlName": "清洗方式名称"
+ },
+ {
+ "formCode": "frmCurrWorkingIrMsg",
+ "controlCode": "污染类型编码",
+ "controlName": "污染类型编码"
+ },
+ {
+ "formCode": "frmCurrWorkingIrMsg",
+ "controlCode": "污染类型名称",
+ "controlName": "污染类型名称"
+ },
+ {
+ "formCode": "frmCurrWorkingIrMsg",
+ "controlCode": "污染明细编码",
+ "controlName": "污染明细编码"
+ },
+ {
+ "formCode": "frmCurrWorkingIrMsg",
+ "controlCode": "污染明细名称",
+ "controlName": "污染明细名称"
+ },
+ {
+ "formCode": "frmCurrWorkingIrMsg",
+ "controlCode": "当前计数",
+ "controlName": "当前计数"
+ },
+ {
+ "formCode": "frmCurrWorkingIrMsg",
+ "controlCode": "操作员编码",
+ "controlName": "操作员编码"
+ },
+ {
+ "formCode": "frmCurrWorkingIrMsg",
+ "controlCode": "操作员名称",
+ "controlName": "操作员名称"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kryptonGroupBox3",
+ "controlName": "托盘明细表数据:"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kryptonGroupBox2",
+ "controlName": "托盘主表数据:"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kryptonGroupBox1",
+ "controlName": "查询操作"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kbt_Reset",
+ "controlName": "重置条件"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kbt_Query",
+ "controlName": "查询"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kryptonButton2",
+ "controlName": "补打IR单据"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kbtn_EditWorkingPalletData",
+ "controlName": "修改作业数据"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kryptonLabel3",
+ "controlName": "录入时间:"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kryptonLabel1",
+ "controlName": "托盘信息:"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kryptonLabel4",
+ "controlName": "IR信息:"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kryptonLabel2",
+ "controlName": "板材信息:"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "kryptonLabel5",
+ "controlName": "至"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView1",
+ "controlCode": "序号",
+ "controlName": "序号"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView1",
+ "controlCode": "托盘号",
+ "controlName": "托盘号"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView1",
+ "controlCode": "作业状态",
+ "controlName": "作业状态"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView1",
+ "controlCode": "创建人",
+ "controlName": "创建人"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView1",
+ "controlCode": "创建时间",
+ "controlName": "创建时间"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView2",
+ "controlCode": "序号",
+ "controlName": "序号"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView2",
+ "controlCode": "IR条码",
+ "controlName": "IR条码"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView2",
+ "controlCode": "板材信息",
+ "controlName": "板材信息"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView2",
+ "controlCode": "录入时间",
+ "controlName": "录入时间"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView2",
+ "controlCode": "清洗方式",
+ "controlName": "清洗方式"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView2",
+ "controlCode": "污染类型",
+ "controlName": "污染类型"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView2",
+ "controlCode": "污染明细",
+ "controlName": "污染明细"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView2",
+ "controlCode": "当前计数",
+ "controlName": "当前计数"
+ },
+ {
+ "formCode": "frmPrinterMain.kryptonDataGridView2",
+ "controlCode": "操作用户",
+ "controlName": "操作用户"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "SelectWantToEditRow",
+ "controlName": "请勾选要编辑的作业托盘数据行!"
+ },
+ {
+ "formCode": "frmPrinterMain",
+ "controlCode": "SelectWantToPrintRow",
+ "controlName": "请勾选要打印的托盘数据行!"
+ },
+ {
+ "formCode": "frmMainNew",
+ "controlCode": "MechineCheck",
+ "controlName": "机器检测"
+ },
+ {
+ "formCode": "frmMainNew",
+ "controlCode": "MainDetail",
+ "controlName": "主界面"
+ },
+ {
+ "formCode": "frmMainNew",
+ "controlCode": "Base",
+ "controlName": "基础配置"
+ },
+ {
+ "formCode": "frmMainNew",
+ "controlCode": "Parameter",
+ "controlName": "参数配置"
+ },
+ {
+ "formCode": "frmMainNew",
+ "controlCode": "PlcItemConfig",
+ "controlName": "PLC变量配置"
+ },
+ {
+ "formCode": "frmMainNew",
+ "controlCode": "IoMonitor",
+ "controlName": "I/O点位"
+ },
+ {
+ "formCode": "frmMainNew",
+ "controlCode": "PlcAlarmLog",
+ "controlName": "报警情况"
+ },
+ {
+ "formCode": "frmMainNew",
+ "controlCode": "WorkingDataRecord",
+ "controlName": "作业数据记录"
+ }
+]
\ No newline at end of file
diff --git a/CleanMachineHMI/Program.cs b/CleanMachineHMI/Program.cs
index 7ce5f3d..339c3d2 100644
--- a/CleanMachineHMI/Program.cs
+++ b/CleanMachineHMI/Program.cs
@@ -25,6 +25,9 @@ namespace CleanMachineHMI
if (canCreateNew)
{
Application.EnableVisualStyles();
+ //frmUtil.DB2Json();//语言字典从数据库转json
+ GlobalHelper.LoadTheme();
+ GlobalHelper.LoadzhCN();
Application.SetCompatibleTextRenderingDefault(false);
GlobalHelper.LoadAllFormData();
Application.Run(GlobalHelper.LoginForm);
diff --git a/CleanMachineHMI/Properties/Settings.Designer.cs b/CleanMachineHMI/Properties/Settings.Designer.cs
index d22e62b..ed97fbe 100644
--- a/CleanMachineHMI/Properties/Settings.Designer.cs
+++ b/CleanMachineHMI/Properties/Settings.Designer.cs
@@ -12,7 +12,7 @@ namespace CleanMachineHMI.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.0.3.0")]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.1.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
diff --git a/CleanMachineHMI/Utils/GlobalHelper.cs b/CleanMachineHMI/Utils/GlobalHelper.cs
index b26984c..7e6375c 100644
--- a/CleanMachineHMI/Utils/GlobalHelper.cs
+++ b/CleanMachineHMI/Utils/GlobalHelper.cs
@@ -8,6 +8,7 @@ using Krypton.Toolkit;
using System;
using System.Collections.Generic;
using System.Data;
+using System.IO;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;
@@ -22,7 +23,7 @@ namespace CleanMachineHMI
///
/// 主窗体_New
///
- public static frmMainNew MainFormNew{ get; set; }
+ public static frmMainNew MainFormNew { get; set; }
///
/// 登陆窗体
@@ -44,7 +45,12 @@ namespace CleanMachineHMI
///
/// 语言编码
///
- public static string LanguageCode { get; set; } = AppConfigHelper.Get("LanguageCode");
+ public static string LanguageCode { get; set; } = AppConfigHelper.Get("LanguageCode");
+
+ ///
+ /// 语言字典
+ ///
+ public static Dictionary ThemeLanguage = null;
///
/// 用户信息
@@ -77,7 +83,7 @@ namespace CleanMachineHMI
public static List CmWarningLogMd_List { get; set; }
public static List CmWarningLogMd_List_1 { get; set; }
-
+
///
/// 参数列表
///
@@ -131,8 +137,8 @@ namespace CleanMachineHMI
public static string GetPalletCode()
{
string currDateStr = DateTime.Now.ToString("yyyyMMdd");
- string PalletIndexPrefix = AppConfigHelper.Get("PalletIndexPrefix");
- string PalletIndexDateMsg = AppConfigHelper.Get("PalletIndexDateMsg");
+ string PalletIndexPrefix = AppConfigHelper.Get("PalletIndexPrefix");
+ string PalletIndexDateMsg = AppConfigHelper.Get("PalletIndexDateMsg");
int PalletIndexLen = Convert.ToInt32(AppConfigHelper.Get("PalletIndexLen"));
int PalletIndexValue = Convert.ToInt32(AppConfigHelper.Get("PalletIndexValue"));
if (currDateStr == PalletIndexDateMsg)
@@ -155,7 +161,7 @@ namespace CleanMachineHMI
/// 根据自定义特性和窗体的绑定原理,
/// 自动加载所有的窗体数据。
///
- public static void LoadAllFormData()
+ public static void LoadAllFormData()
{
var types = Assembly.GetExecutingAssembly().GetTypes().Where(x => x.GetCustomAttributes(typeof(FormTypeAttribute), false).Count() > 0);
FrmModelList = new List>();
@@ -176,5 +182,47 @@ namespace CleanMachineHMI
CanOperate = false;
}
+ ///
+ /// 加载主题
+ ///
+ public static void LoadTheme()
+ {
+ if (ThemeLanguage == null || ThemeLanguage.Count == 0)
+ {
+ var appPath = System.Windows.Forms.Application.StartupPath.Split(new string[] { @"bin\Debug" }, StringSplitOptions.RemoveEmptyEntries)[0];
+ var filePath = appPath + $"Lang\\{GlobalHelper.LanguageCode}.json";
+ var str = File.ReadAllText(filePath);
+ var lstLanguage = Newtonsoft.Json.JsonConvert.DeserializeObject>(str);
+ var tmpThemeLanguage = new Dictionary();
+ lstLanguage.ForEach(item =>
+ {
+ if (item.options != null && item.options.Count > 0)
+ {
+ tmpThemeLanguage.Add(item.formCode + "|" + item.controlCode, string.Join(",", item.options));
+ }
+ else
+ {
+ tmpThemeLanguage.Add(item.formCode + "|" + item.controlCode, item.controlName);
+ }
+ });
+ ThemeLanguage = tmpThemeLanguage;
+ }
+ }
+
+ public static void LoadzhCN()
+ {
+ if (Utils.frmUtil.znCNLang == null || Utils.frmUtil.znCNLang.Count == 0)
+ {
+ var appPath = System.Windows.Forms.Application.StartupPath.Split(new string[] { @"bin\Debug" }, StringSplitOptions.RemoveEmptyEntries)[0];
+ var filePath = appPath + $"Lang\\zh-CN.json";
+ if (!File.Exists(filePath))
+ {
+ return;
+ }
+ var str = File.ReadAllText(filePath);
+ Utils.frmUtil.znCNLang = Newtonsoft.Json.JsonConvert.DeserializeObject>(str);
+
+ }
+ }
}
}
diff --git a/CleanMachineHMI/Utils/PlcOperationHelper.cs b/CleanMachineHMI/Utils/PlcOperationHelper.cs
index e039f66..5f6abc5 100644
--- a/CleanMachineHMI/Utils/PlcOperationHelper.cs
+++ b/CleanMachineHMI/Utils/PlcOperationHelper.cs
@@ -809,7 +809,6 @@ namespace CleanMachineHMI
}
private int wcsToPlcHeartDataNew = 0;
private DateTime HeartbeatTime = new DateTime();
- private int ReConnNum = 1;
///
/// 心跳处理
diff --git a/CleanMachineHMI/Utils/frmUtil.cs b/CleanMachineHMI/Utils/frmUtil.cs
index 7799748..16c1964 100644
--- a/CleanMachineHMI/Utils/frmUtil.cs
+++ b/CleanMachineHMI/Utils/frmUtil.cs
@@ -2,10 +2,12 @@
using Krypton.Navigator;
using Krypton.Toolkit;
using LeadDataBaseUtility;
+using Newtonsoft.Json;
using NX_LogUtility;
using System;
using System.Collections.Generic;
using System.Data;
+using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Security.Cryptography;
@@ -19,6 +21,8 @@ namespace CleanMachineHMI.Utils
///
public static class frmUtil
{
+ public static List znCNLang = new List();
+
///
/// 给一个字符串进行MD5加密
///
@@ -116,22 +120,25 @@ namespace CleanMachineHMI.Utils
}
}
+
+
///
- /// object 选择返回值
+ /// 递归获取子控件
///
- ///
+ ///
///
- public static string GetObjToString(this object obj)
+ public static List GetAllControls(Control control)
{
- if (obj == null)
+ var list = new List();
+ foreach (Control con in control.Controls)
{
- return string.Empty;
+ list.Add(con);
+ if (con.Controls.Count > 0)
+ {
+ list.AddRange(GetAllControls(con));
+ }
}
- if (obj.ToString() == "")
- {
- return string.Empty;
- }
- return obj.ToString();
+ return list;
}
///
@@ -139,56 +146,51 @@ namespace CleanMachineHMI.Utils
///
/// 窗体对象
/// 语言编码
- public static void SetFormControlText(this Form form,string languageCode)
+ public static void SetFormControlText(this Control form)
{
-
try
{
- var sql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL
- WHERE USED_FLAG = 1 AND DEL_FLAG = 0
- AND FORM_CODE='{form.Name}' AND LANGUAGE_CODE='{languageCode}' AND CONTROL_TYPE !='DataSource'";
- DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
- ErgodicControlsText(form, dt);
+ var lstControls = GetAllControls(form);
+ lstControls.Add(form);
+ foreach (Control item in lstControls)
+ {
+ var key = form.Name + "|" + item.Name;
+ if (!GlobalHelper.ThemeLanguage.ContainsKey(key))
+ {
+ continue;
+ }
+ AddzhCN(key, item.Text, "");
+ if (item is KryptonGroupBox)
+ {
+ ((KryptonGroupBox)item).Values.Heading = GlobalHelper.ThemeLanguage[key];
+ }
+ else
+ {
+ item.Text = GlobalHelper.ThemeLanguage[key];
+ }
+
+
+ }
}
catch (Exception ex)
{
LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
}
}
- public static void SetFormControlText(this UserControl form, string languageCode)
- {
+ public static void SetSingleControlText(this Control form, Control control)
+ {
try
{
- var sql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL
- WHERE USED_FLAG = 1 AND DEL_FLAG = 0
- AND FORM_CODE='{form.Name}' AND LANGUAGE_CODE='{languageCode}' AND CONTROL_TYPE !='DataSource'";
- DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
- ErgodicControlsText(form, dt);
+ var key = form.Name + "|" + control.Name;
+ if (!GlobalHelper.ThemeLanguage.ContainsKey(key))
+ {
+ control.Text = control.Name;
+ }
+ AddzhCN(key, control.Text, "");
- }
- catch (Exception ex)
- {
- LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
- }
- }
- ///
- /// 设定数据视图列文本
- ///
- ///
- ///
- ///
- public static void SetDataViewColumnText(this DataGridView dataGrid ,string formName, string languageCode)
- {
+ control.Text = GlobalHelper.ThemeLanguage[key];
- try
- {
-
- var sql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL
- WHERE USED_FLAG = 1 AND DEL_FLAG = 0
- AND FORM_CODE='{formName}' AND LANGUAGE_CODE='{languageCode}' AND CONTROL_TYPE ='DataSource'";
- DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
- ErgodicColumnsText(dataGrid, dt);
}
catch (Exception ex)
{
@@ -202,119 +204,27 @@ namespace CleanMachineHMI.Utils
///
///
///
- public static DataTable GetInfoLanguageText(this Form form, string languageCode, string controlType = "Info")
+ public static void SetDataViewColumnText(this DataGridView dataGrid, string formName)
{
-
try
{
-
- var sql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL
- WHERE USED_FLAG = 1 AND DEL_FLAG = 0
- AND (FORM_CODE='{form.Name}' OR IFNULL(FORM_CODE,'')='') AND LANGUAGE_CODE='{languageCode}' AND CONTROL_TYPE = '{controlType}' ORDER BY LANGUAGE_CONTROL_ID";
- return LeadDbHelperSQLite.Query(sql).Tables[0];
+ foreach (DataGridViewColumn item in dataGrid.Columns)
+ {
+ var key = formName + "|" + item.Name;
+ if (!GlobalHelper.ThemeLanguage.ContainsKey(key))
+ {
+ continue;
+ }
+ AddzhCN(key, item.HeaderText, "");
+ item.HeaderText = GlobalHelper.ThemeLanguage[key];
+ }
}
catch (Exception ex)
{
LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
- return null;
- }
- }
- public static DataTable GetInfoLanguageText(this UserControl form, string languageCode, string controlType = "Info")
- {
-
- try
- {
-
- var sql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL
- WHERE USED_FLAG = 1 AND DEL_FLAG = 0
- AND (FORM_CODE='{form.Name}' OR IFNULL(FORM_CODE,'')='') AND LANGUAGE_CODE='{languageCode}' AND CONTROL_TYPE = '{controlType}' ORDER BY LANGUAGE_CONTROL_ID";
- return LeadDbHelperSQLite.Query(sql).Tables[0];
- }
- catch (Exception ex)
- {
- LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
- return null;
- }
- }
- public static DataTable GetInfoLanguageText_1(this Form form, string languageCode, string controlType = "Info")
- {
-
- try
- {
- var sql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL
- WHERE USED_FLAG = 1 AND DEL_FLAG = 0
- AND (FORM_CODE='{form.Name}' OR IFNULL(FORM_CODE,'')='') AND LANGUAGE_CODE='{languageCode}' AND CONTROL_TYPE like '{controlType}' ORDER BY LANGUAGE_CONTROL_ID";
- return LeadDbHelperSQLite.Query(sql).Tables[0];
- }
- catch (Exception ex)
- {
- LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
- return null;
- }
- }
- public static DataTable GetInfoLanguageText_1(this UserControl form, string languageCode, string controlType = "Info")
- {
-
- try
- {
- var sql = $@"SELECT * FROM SYS_LANGUAGE_CONTROL
- WHERE USED_FLAG = 1 AND DEL_FLAG = 0
- AND (FORM_CODE='{form.Name}' OR IFNULL(FORM_CODE,'')='') AND LANGUAGE_CODE='{languageCode}' AND CONTROL_TYPE like '{controlType}' ORDER BY LANGUAGE_CONTROL_ID";
- return LeadDbHelperSQLite.Query(sql).Tables[0];
- }
- catch (Exception ex)
- {
- LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
- return null;
- }
- }
- ///
- /// 获取等于查询行
- ///
- ///
- ///
- ///
- ///
- public static DataRow[] GetEqualSelectRow(this DataTable dataTable,string key,string value)
- {
-
- try
- {
- var likeSql = $"`{key}` = '{value}'";
- DataRow[] dataRow = dataTable.Select(likeSql);
- return dataRow;
-
- }
- catch (Exception ex)
- {
- LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
- return null;
}
}
- ///
- /// 获取包含查询行
- ///
- ///
- ///
- ///
- ///
- public static DataRow[] GetContainSelectRow(this DataTable dataTable, string key, string value)
- {
-
- try
- {
-
- var likeSql = $"`{key}` like '%{value}%'";
- DataRow[] dataRow = dataTable.Select(likeSql);
- return dataRow;
- }
- catch (Exception ex)
- {
- LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
- return null;
- }
- }
///
/// 获取信息文本
@@ -322,20 +232,19 @@ namespace CleanMachineHMI.Utils
///
///
///
- public static string GetInfoText(this DataTable dataTable,string defaultValue,string key)
+ public static string GetInfoText(this Control form, string defaultValue, string infoCode)
{
-
try
{
- var likeSql = $"`CONTROL_CODE` = '{key}' and `CONTROL_TYPE` = 'Info'";
- DataRow[] dataRow = dataTable.Select(likeSql);
- if (dataRow == null || !dataRow.Any())
+ var key = form.Name + "|" + infoCode;
+ if (!GlobalHelper.ThemeLanguage.ContainsKey(key))
{
return defaultValue;
}
else
{
- return dataRow[0]["CONTROL_NAME"].ToString();
+ AddzhCN(key, defaultValue, "");
+ return GlobalHelper.ThemeLanguage[key];
}
}
catch (Exception ex)
@@ -344,21 +253,28 @@ namespace CleanMachineHMI.Utils
return null;
}
}
- public static string GetInfoText_1(this DataTable dataTable, string defaultValue, string key, string controlType)
- {
+ public static List GetComBoboxItemArr(this Control form, string controlCode)
+ {
try
{
- var likeSql = $"`CONTROL_CODE` = '{key}' and `CONTROL_TYPE` = '{controlType}'";
- DataRow[] dataRow = dataTable.Select(likeSql);
- if (dataRow == null || !dataRow.Any())
+ var key = form.Name + "|" + controlCode;
+ if (!GlobalHelper.ThemeLanguage.ContainsKey(key))
{
- return defaultValue;
+ return new List();
}
else
{
- return dataRow[0]["CONTROL_NAME"].ToString();
+ var control = (KryptonComboBox)form.Controls.Find(controlCode,true)[0];
+ var str = "";
+ foreach (var item in control.Items) {
+ str += $"{item},";
+ }
+
+ AddzhCN(key, "", string.IsNullOrEmpty(str) ? GlobalHelper.ThemeLanguage[key] : str.TrimEnd(new char[] { ',' }));
+ return GlobalHelper.ThemeLanguage[key].Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).ToList();
}
+
}
catch (Exception ex)
{
@@ -366,69 +282,104 @@ namespace CleanMachineHMI.Utils
return null;
}
}
- public static DataRow[] GetComBoboxItemArr(this DataTable dataTable, string key, string controlType)
- {
+ public static void DB2Json()
+ {
+ var tmpThemeLanguage = new List();
+ var table = LeadDbHelperSQLite.Query("SELECT FORM_CODE,CONTROL_CODE,CONTROL_NAME FROM SYS_LANGUAGE_CONTROL WHERE FORM_CODE <> 'frmMain'").Tables[0];
+ foreach (DataRow row in table.Rows)
+ {
+
+ var part = tmpThemeLanguage.FirstOrDefault(x => x.formCode == row["FORM_CODE"].ToString() && x.controlCode == row["CONTROL_CODE"].ToString());
+ if (part == null)
+ {
+ tmpThemeLanguage.Add(new ThemeLanguage
+ {
+ formCode = row["FORM_CODE"].ToString(),
+ controlCode = row["CONTROL_CODE"].ToString(),
+ controlName = row["CONTROL_NAME"].ToString(),
+ });
+ }
+ else
+ {
+ if (part.options == null)
+ {
+ part.options = new List { part.controlName, row["CONTROL_NAME"].ToString() };
+ part.controlName = null;
+ }
+ else
+ {
+ part.options.Add(row["CONTROL_NAME"].ToString());
+ }
+ }
+ }
+ var str1 = Newtonsoft.Json.JsonConvert.SerializeObject(tmpThemeLanguage);
+ WriteLangFile("en.json", str1);
+ }
+
+ ///
+ /// 写文本文件
+ ///
+ ///
+ ///
+ private static void WriteLangFile(string fileName, string txt)
+ {
+ var fileDir = System.Windows.Forms.Application.StartupPath.Split(new string[] { @"bin\Debug" }, StringSplitOptions.RemoveEmptyEntries)[0] + "Lang\\";
try
{
- var likeSql = $"`CONTROL_CODE` = '{key}' and `CONTROL_TYPE` = '{controlType}'";
- DataRow[] dataRow = dataTable.Select(likeSql);
- return dataRow;
-
- }
- catch (Exception ex)
- {
- LogHelper.WriteLog(ex.Message, LogTypeEum.Err);
- return null;
- }
- }
- ///
- /// 遍历控制界面
- ///
- ///
- ///
- private static void ErgodicControlsText(Control container,DataTable dataTable)
- {
- for (int i = 0; i < dataTable.Rows.Count; i++)
- {
- Control[] tmpC = container.Controls.Find(dataTable.Rows[i]["CONTROL_CODE"].ToString(), true);
- if (tmpC.Length>0)
+ if (!Directory.Exists(fileDir))//如果文件夹不存在,就新建一个文件夹。
{
- if (tmpC[0] is KryptonGroupBox)
- {
- //Console.Write("模块名称"+ ((KryptonGroupBox)tmpC[0]).Values.Heading);
- //Console.Write("\r\n");
- ((KryptonGroupBox)tmpC[0]).Values.Heading = dataTable.Rows[i]["CONTROL_NAME"].ToString();
-
- continue;
- }
-
- //Console.Write("控件名称:"+ tmpC[0].Name+ ":控件中文名:" + tmpC[0].Text);
- //Console.Write("\r\n");
- tmpC[0].Text = dataTable.Rows[i]["CONTROL_NAME"].ToString();
-
+ Directory.CreateDirectory(fileDir);
}
+ File.WriteAllText(fileDir + fileName, txt);
+ }
+ catch (Exception)
+ {
+
}
}
- ///
- /// 遍历数据视图控件
- ///
- ///
- ///
- private static void ErgodicColumnsText(DataGridView dataGrid, DataTable dataTable)
+ private static void AddzhCN(string key, string name, string options)
{
- for(int k = 0; k < dataGrid.Columns.Count; k++)
+ if (string.IsNullOrEmpty(name) && string.IsNullOrEmpty(options)) {
+ Console.WriteLine(key+"空");
+ return;
+ }
+ var codes = key.Split(new string[] { "|" }, StringSplitOptions.RemoveEmptyEntries);
+
+ if (znCNLang.Any(x => x.formCode == codes[0] && x.controlCode == codes[1]))
{
- for (int i = 0; i < dataTable.Rows.Count; i++)
- {
- if (dataGrid.Columns[k].Name == dataTable.Rows[i]["CONTROL_CODE"].ToString())
- {
- dataGrid.Columns[k].HeaderText = dataTable.Rows[i]["CONTROL_NAME"].ToString();
- break;
- }
- }
- }
+ return;
+ }
+ znCNLang.Add(new ThemeLanguage
+ {
+ formCode = codes[0],
+ controlCode = codes[1],
+ controlName = string.IsNullOrEmpty(options) ? name : null,
+ options = string.IsNullOrEmpty(options) ? null : options.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).ToList(),
+ });
+ var str1 = Newtonsoft.Json.JsonConvert.SerializeObject(znCNLang);
+ WriteLangFile("zh-CN.json", str1);
}
}
+
+ public class ThemeLanguage
+ {
+ ///
+ /// 窗体编码
+ ///
+ public string formCode { get; set; }
+ ///
+ /// 控件编码
+ ///
+ public string controlCode { get; set; }
+ ///
+ /// 控件名称
+ ///
+ [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
+ public string controlName { get; set; }
+
+ [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
+ public List options { get; set; }
+ }
}
diff --git a/CleanMachineHMI/frmBase.cs b/CleanMachineHMI/frmBase.cs
index b176101..179757d 100644
--- a/CleanMachineHMI/frmBase.cs
+++ b/CleanMachineHMI/frmBase.cs
@@ -20,12 +20,7 @@ namespace CleanMachineHMI.forms
public frmBase()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- ///
- /// 页面信息语言文本列表
- ///
- private DataTable _InfoLanguageTextList;
protected override CreateParams CreateParams
{
@@ -71,7 +66,7 @@ namespace CleanMachineHMI.forms
{
try
{
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
foreach (Control item in kryptonPanel1.Controls)
{
if (item.Tag != null && item.Tag.ToString() != "")
@@ -91,7 +86,7 @@ namespace CleanMachineHMI.forms
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载基础配置界面发生异常", "LoadFrmBaseExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("加载基础配置界面发生异常", "LoadFrmBaseExp") + $":【{ex.Message}】!");
}
}
diff --git a/CleanMachineHMI/frmChild/frmAddCleanCode.cs b/CleanMachineHMI/frmChild/frmAddCleanCode.cs
index df78908..43e5e61 100644
--- a/CleanMachineHMI/frmChild/frmAddCleanCode.cs
+++ b/CleanMachineHMI/frmChild/frmAddCleanCode.cs
@@ -20,14 +20,12 @@ namespace CleanMachineHMI.frmChild
public frmAddCleanCode()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _InfoLanguageTextList;
private void frmAddCleanCode_Load(object sender, EventArgs e)
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
}
private void txt_GotFocus(object sender, EventArgs e)
{
@@ -52,12 +50,12 @@ namespace CleanMachineHMI.frmChild
{
if (string.IsNullOrEmpty(txtCleanModeCode.Text))
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入清洗方式编码!", "EnterCleanCodeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入清洗方式编码!", "EnterCleanCodeInfo"));
return;
}
if (string.IsNullOrEmpty(txtCleanModeName.Text))
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入清洗方式名称!", "EnterCleanNameInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入清洗方式名称!", "EnterCleanNameInfo"));
return;
}
string sqlIsExistCode = $@"SELECT 1 FROM BAS_CLEAN_MODE WHERE CLEAN_MODE_CODE = '{txtCleanModeCode.Text}'";
@@ -106,18 +104,18 @@ namespace CleanMachineHMI.frmChild
int row = LeadDbHelperSQLite.ExecuteSql(sql);
if (row > 0)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增清洗方式数据成功!", "AddSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("新增清洗方式数据成功!", "AddSuccessInfo"));
frmCleanMode.RefreshFrmHost();
this.Close();
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增清洗方式数据失败!", "AddFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("新增清洗方式数据失败!", "AddFailInfo"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增清洗方式数据发生异常", "AddCleanModeDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("新增清洗方式数据发生异常", "AddCleanModeDataExp") + $":【{ex.Message}】!");
}
}
diff --git a/CleanMachineHMI/frmChild/frmAddContaminationDtl.cs b/CleanMachineHMI/frmChild/frmAddContaminationDtl.cs
index e3bdb02..1684694 100644
--- a/CleanMachineHMI/frmChild/frmAddContaminationDtl.cs
+++ b/CleanMachineHMI/frmChild/frmAddContaminationDtl.cs
@@ -21,7 +21,6 @@ namespace CleanMachineHMI.frmChild
public frmAddContaminationDtl()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
private DataTable _InfoLanguageTextList;
private void txt_GotFocus(object sender, EventArgs e)
@@ -46,7 +45,7 @@ namespace CleanMachineHMI.frmChild
try
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
string sql = $@"select CONTAMINATION_TYPE_CODE,CONTAMINATION_TYPE_NAME from BAS_CONTAMINATION_TYPE where DEL_FLAG=0";
DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
cmbContaminationType.DisplayMember = "Text";
@@ -71,7 +70,7 @@ namespace CleanMachineHMI.frmChild
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增污染明细界面加载异常", "LoadAddFrmExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("新增污染明细界面加载异常", "LoadAddFrmExp") + $":【{ex.Message}】!");
}
}
@@ -81,17 +80,17 @@ namespace CleanMachineHMI.frmChild
{
if (cmbContaminationType.SelectedIndex == 0)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择污染类型!", "SelectContaminationTypeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择污染类型!", "SelectContaminationTypeInfo"));
return;
}
if (string.IsNullOrEmpty(txtContaminationDTLCode.Text))
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入污染明细编码!", "EnterContaminationDtlCodeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入污染明细编码!", "EnterContaminationDtlCodeInfo"));
return;
}
if (string.IsNullOrEmpty(txtContaminationDTLName.Text))
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入污染明细名称!", "EnterContaminationDtlNameInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入污染明细名称!", "EnterContaminationDtlNameInfo"));
return;
}
string sqlIsExistCode = $@"SELECT 1 FROM BAS_CONTAMINATION_DTL WHERE CONTAMINATION_TYPE_CODE = '{((ListItem)cmbContaminationType.SelectedItem).Value}' AND CONTAMINATION_DTL_CODE = '{txtContaminationDTLCode.Text}'";
@@ -142,18 +141,18 @@ namespace CleanMachineHMI.frmChild
int row = LeadDbHelperSQLite.ExecuteSql(sql);
if (row > 0)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增污染明细数据成功!", "AddSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("新增污染明细数据成功!", "AddSuccessInfo"));
frmContaminationDTL.RefreshFrmHost();
this.Close();
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增污染明细数据失败!", "AddFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("新增污染明细数据失败!", "AddFailInfo"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增污染明细数据发生异常", "AddContaminationDtlDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("新增污染明细数据发生异常", "AddContaminationDtlDataExp") + $":【{ex.Message}】!");
}
}
diff --git a/CleanMachineHMI/frmChild/frmAddContaminationType.cs b/CleanMachineHMI/frmChild/frmAddContaminationType.cs
index 21e2545..fe74764 100644
--- a/CleanMachineHMI/frmChild/frmAddContaminationType.cs
+++ b/CleanMachineHMI/frmChild/frmAddContaminationType.cs
@@ -21,9 +21,8 @@ namespace CleanMachineHMI.frmChild
public frmAddContaminationType()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _InfoLanguageTextList;
+
private void txt_GotFocus(object sender, EventArgs e)
{
KeyboardAutoPopUp.ShowInputPanel();
@@ -46,7 +45,7 @@ namespace CleanMachineHMI.frmChild
try
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
string sql = $@"select CLEAN_MODE_CODE,CLEAN_MODE_NAME from BAS_CLEAN_MODE where DEL_FLAG=0";
DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
cmbCleanMode.DisplayMember = "Text";
@@ -71,7 +70,7 @@ namespace CleanMachineHMI.frmChild
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增污染类型界面加载异常", "LoadAddFrmExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("新增污染类型界面加载异常", "LoadAddFrmExp") + $":【{ex.Message}】!");
}
}
@@ -81,19 +80,19 @@ namespace CleanMachineHMI.frmChild
{
if (cmbCleanMode.SelectedIndex == 0)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择清洗方式!", "SelectCleanModeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择清洗方式!", "SelectCleanModeInfo"));
return;
}
if (string.IsNullOrEmpty(txtContaminationTypeCode.Text))
{
//KryptonMessageBox.Show("请输入污染类型编码!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入污染类型编码!", "EnterContaminationTypeCodeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入污染类型编码!", "EnterContaminationTypeCodeInfo"));
return;
}
if (string.IsNullOrEmpty(txtContaminationTypeName.Text))
{
//KryptonMessageBox.Show("请输入污染类型名称!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入污染类型名称!", "EnterContaminationTypeNameInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入污染类型名称!", "EnterContaminationTypeNameInfo"));
return;
}
string sqlIsExistCode = $@"SELECT 1 FROM BAS_CONTAMINATION_TYPE WHERE CLEAN_MODE_CODE = '{((ListItem)cmbCleanMode.SelectedItem).Value}' AND CONTAMINATION_TYPE_CODE = '{txtContaminationTypeCode.Text}'";
@@ -144,18 +143,18 @@ namespace CleanMachineHMI.frmChild
int row = LeadDbHelperSQLite.ExecuteSql(sql);
if (row > 0)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增污染类型数据成功!", "AddSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("新增污染类型数据成功!", "AddSuccessInfo"));
frmContaminationType.RefreshFrmHost();
this.Close();
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增污染类型数据失败!", "AddFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("新增污染类型数据失败!", "AddFailInfo"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增污染类型数据发生异常", "AddContaminationTypeDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("新增污染类型数据发生异常", "AddContaminationTypeDataExp") + $":【{ex.Message}】!");
}
}
diff --git a/CleanMachineHMI/frmChild/frmAddPlcItem.cs b/CleanMachineHMI/frmChild/frmAddPlcItem.cs
index 1316c4d..9fa56ea 100644
--- a/CleanMachineHMI/frmChild/frmAddPlcItem.cs
+++ b/CleanMachineHMI/frmChild/frmAddPlcItem.cs
@@ -19,11 +19,7 @@ namespace CleanMachineHMI.frmChild
public frmAddPlcItem()
{
InitializeComponent();
- _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _ComboBoxLanguageTextList;
- private DataTable _InfoLanguageTextList;
private void txt_GotFocus(object sender, EventArgs e)
{
@@ -51,18 +47,18 @@ namespace CleanMachineHMI.frmChild
private void frmAddPlcItem_Load(object sender, EventArgs e)
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
- if (GlobalHelper.LanguageCode == "English")
+ this.SetFormControlText();
+
{
kcmb_plcItemType.Items.Clear();
- foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_plcItemType.Name, "KryptonComboBox"))
+ foreach (string item in this.GetComBoboxItemArr(kcmb_plcItemType.Name))
{
- kcmb_plcItemType.Items.Add(item["CONTROL_NAME"].ToString());
+ kcmb_plcItemType.Items.Add(item);
}
kcmb_plcItemDataType.Items.Clear();
- foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_plcItemDataType.Name, "KryptonComboBox"))
+ foreach (string item in this.GetComBoboxItemArr(kcmb_plcItemDataType.Name))
{
- kcmb_plcItemDataType.Items.Add(item["CONTROL_NAME"].ToString());
+ kcmb_plcItemDataType.Items.Add(item);
}
}
kcmb_plcItemType.SelectedIndex = 0;
@@ -87,25 +83,25 @@ namespace CleanMachineHMI.frmChild
if (string.IsNullOrEmpty(ktb_plcItemCode.Text))
{
//KryptonMessageBox.Show("请输入PLC编码");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入PLC变量编码!", "EnterPlcItemCodeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入PLC变量编码!", "EnterPlcItemCodeInfo"));
return;
}
if (string.IsNullOrEmpty(ktb_plcItemName.Text))
{
//KryptonMessageBox.Show("请输入PLC名称");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入PLC变量名称!", "EnterPlcItemNameInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入PLC变量名称!", "EnterPlcItemNameInfo"));
return;
}
if (string.IsNullOrEmpty(kcmb_plcItemType.Text))
{
//KryptonMessageBox.Show("请选择PLC类型");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择PLC变量类型!", "SelectPlcItemTypeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择PLC变量类型!", "SelectPlcItemTypeInfo"));
return;
}
if (string.IsNullOrEmpty(kcmb_plcItemDataType.Text))
{
//KryptonMessageBox.Show("请选择PLC数据类型");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择PLC变量数据类型!", "SelectPlcItemDataTypeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择PLC变量数据类型!", "SelectPlcItemDataTypeInfo"));
return;
}
int addPriIndex = Convert.ToInt32(knud_plcItemPriAddress.Value);
@@ -206,19 +202,19 @@ namespace CleanMachineHMI.frmChild
if (row > 0)
{
//KryptonMessageBox.Show("添加PLC变量数据成功!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增PLC变量数据成功!", "AddSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("新增PLC变量数据成功!", "AddSuccessInfo"));
frmPlcItemConfig.RefreshFrmHost();
this.Close();
}
else
{
//KryptonMessageBox.Show("添加PLC变量数据失败!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增PLC变量数据失败!", "AddFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("新增PLC变量数据失败!", "AddFailInfo"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增PLC变量数据发生异常", "AddPlcItemDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("新增PLC变量数据发生异常", "AddPlcItemDataExp") + $":【{ex.Message}】!");
}
}
diff --git a/CleanMachineHMI/frmChild/frmAddRole.cs b/CleanMachineHMI/frmChild/frmAddRole.cs
index c5c9aeb..00d00b3 100644
--- a/CleanMachineHMI/frmChild/frmAddRole.cs
+++ b/CleanMachineHMI/frmChild/frmAddRole.cs
@@ -20,11 +20,7 @@ namespace CleanMachineHMI.frmChild
public frmAddRole()
{
InitializeComponent();
- _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _ComboBoxLanguageTextList;
- private DataTable _InfoLanguageTextList;
private void txt_GotFocus(object sender, EventArgs e)
{
@@ -46,13 +42,13 @@ namespace CleanMachineHMI.frmChild
private void frmAddRole_Load(object sender, EventArgs e)
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
- if (GlobalHelper.LanguageCode == "English")
+ this.SetFormControlText();
+
{
kcmb_roleGrade.Items.Clear();
- foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_roleGrade.Name, "KryptonComboBox"))
+ foreach (string item in this.GetComBoboxItemArr(kcmb_roleGrade.Name))
{
- kcmb_roleGrade.Items.Add(item["CONTROL_NAME"].ToString());
+ kcmb_roleGrade.Items.Add(item);
}
}
kcmb_roleGrade.SelectedIndex = 0;
@@ -65,18 +61,18 @@ namespace CleanMachineHMI.frmChild
{
if (string.IsNullOrEmpty(txtRoleCode.Text))
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入角色编码!", "EnterRoleCodeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入角色编码!", "EnterRoleCodeInfo"));
return;
}
if (string.IsNullOrEmpty(txtRoleName.Text))
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入角色名称!", "EnterRoleNameInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入角色名称!", "EnterRoleNameInfo"));
return;
}
int roleGrade = 0;
if (kcmb_roleGrade.SelectedIndex == 0)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择角色级别!", "SelectRoleGradeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择角色级别!", "SelectRoleGradeInfo"));
return;
}
else if (kcmb_roleGrade.SelectedIndex == 1)
@@ -85,7 +81,7 @@ namespace CleanMachineHMI.frmChild
DataTable dtIsExistAdmin = LeadDbHelperSQLite.Query(sqlIsExistAdmin).Tables[0];
if (dtIsExistAdmin != null && dtIsExistAdmin.Rows.Count > 0)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("管理员角色只能存在一个,请重新选择!", "AdminOnlyInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("管理员角色只能存在一个,请重新选择!", "AdminOnlyInfo"));
return;
}
roleGrade = 100;
@@ -143,18 +139,18 @@ namespace CleanMachineHMI.frmChild
int row = LeadDbHelperSQLite.ExecuteSql(sql);
if (row > 0)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增角色数据成功!", "AddSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("新增角色数据成功!", "AddSuccessInfo"));
frmRole.RefreshFrmHost();
this.Close();
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增角色数据失败!", "AddFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("新增角色数据失败!", "AddFailInfo"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增角色数据发生异常", "AddRoleDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("新增角色数据发生异常", "AddRoleDataExp") + $":【{ex.Message}】!");
}
}
diff --git a/CleanMachineHMI/frmChild/frmAddSheetType.cs b/CleanMachineHMI/frmChild/frmAddSheetType.cs
index 65818c7..69d58d4 100644
--- a/CleanMachineHMI/frmChild/frmAddSheetType.cs
+++ b/CleanMachineHMI/frmChild/frmAddSheetType.cs
@@ -20,9 +20,7 @@ namespace CleanMachineHMI.frmChild
public frmAddSheetType()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _InfoLanguageTextList;
private void btnAdd_Click(object sender, EventArgs e)
{
@@ -31,13 +29,13 @@ namespace CleanMachineHMI.frmChild
if (string.IsNullOrEmpty(txtSheetTypeCode.Text))
{
//KryptonMessageBox.Show("请输入板材编码!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入板材编码!", "EnterSheetTypeCodeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入板材编码!", "EnterSheetTypeCodeInfo"));
return;
}
if (string.IsNullOrEmpty(txtSheetTypeName.Text))
{
//KryptonMessageBox.Show("请输入板材名称!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入板材名称!", "EnterSheetTypeNameInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入板材名称!", "EnterSheetTypeNameInfo"));
return;
}
string sqlIsExistCode = $@"SELECT 1 FROM BAS_SHEET_TYPE WHERE SHEET_TYPE_CODE = '{txtSheetTypeCode.Text}'";
@@ -87,19 +85,19 @@ namespace CleanMachineHMI.frmChild
if (row > 0)
{
//KryptonMessageBox.Show("新增板材数据成功!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增板材数据成功!", "AddSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("新增板材数据成功!", "AddSuccessInfo"));
frmSheetType.RefreshFrmHost();
this.Close();
}
else
{
//KryptonMessageBox.Show("新增板材数据失败!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增板材数据失败!", "AddFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("新增板材数据失败!", "AddFailInfo"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增板材类型数据发生异常", "AddSheetTypeDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("新增板材类型数据发生异常", "AddSheetTypeDataExp") + $":【{ex.Message}】!");
}
}
@@ -127,7 +125,7 @@ namespace CleanMachineHMI.frmChild
private void frmAddSheetType_Load(object sender, EventArgs e)
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
kryptonPanel1.Focus();
}
diff --git a/CleanMachineHMI/frmChild/frmAddUser.cs b/CleanMachineHMI/frmChild/frmAddUser.cs
index b627dda..d124304 100644
--- a/CleanMachineHMI/frmChild/frmAddUser.cs
+++ b/CleanMachineHMI/frmChild/frmAddUser.cs
@@ -21,11 +21,8 @@ namespace CleanMachineHMI.frmChild
public frmAddUser()
{
InitializeComponent();
- _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _ComboBoxLanguageTextList;
- private DataTable _InfoLanguageTextList;
+
private void txt_GotFocus(object sender, EventArgs e)
{
KeyboardAutoPopUp.ShowInputPanel();
@@ -52,13 +49,13 @@ namespace CleanMachineHMI.frmChild
private void frmAddUser_Load(object sender, EventArgs e)
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
- if (GlobalHelper.LanguageCode == "English")
+ this.SetFormControlText();
+
{
cmbGender.Items.Clear();
- foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(cmbGender.Name, "KryptonComboBox"))
+ foreach (string item in this.GetComBoboxItemArr(cmbGender.Name))
{
- cmbGender.Items.Add(item["CONTROL_NAME"].ToString());
+ cmbGender.Items.Add(item);
}
}
string sql = $"SELECT ROLE_ID,ROLE_CODE,ROLE_NAME FROM SYS_ROLE ";
@@ -93,42 +90,42 @@ namespace CleanMachineHMI.frmChild
{
if (string.IsNullOrEmpty(txtAccount.Text))
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入用户编码!", "EnterUserCodeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入用户编码!", "EnterUserCodeInfo"));
return;
}
if (string.IsNullOrEmpty(txtName.Text))
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入用户名称!", "EnterUserNameInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入用户名称!", "EnterUserNameInfo"));
return;
}
if (string.IsNullOrEmpty(txtPS.Text))
{
//KryptonMessageBox.Show("请输入用户密码!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入用户密码!", "EnterUserPasswordInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入用户密码!", "EnterUserPasswordInfo"));
return;
}
if (string.IsNullOrEmpty(txtPS1.Text))
{
//KryptonMessageBox.Show("请确认用户密码!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请确认用户密码!", "ConfirmUserPasswordInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请确认用户密码!", "ConfirmUserPasswordInfo"));
return;
}
if (cmbGender.SelectedIndex == 0)
{
//KryptonMessageBox.Show("请选择性别!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择性别!", "SelectUserGenderInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择性别!", "SelectUserGenderInfo"));
return;
}
if (kcmb_Role.SelectedIndex == 0)
{
//KryptonMessageBox.Show("请选择所属角色!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择所属角色!", "SelectUserRoleInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择所属角色!", "SelectUserRoleInfo"));
return;
}
if (txtPS1.Text != txtPS.Text)
{
//KryptonMessageBox.Show("两次输入的密码不同,请重新输入!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("两次输入的密码不同,请重新输入!", "ConfirmUserPasswordErrInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("两次输入的密码不同,请重新输入!", "ConfirmUserPasswordErrInfo"));
return;
}
string sqlIsExistCode = $@"SELECT 1 FROM SYS_USER WHERE USER_CODE = '{txtAccount.Text}'";
@@ -187,19 +184,19 @@ namespace CleanMachineHMI.frmChild
if (row > 0)
{
//KryptonMessageBox.Show("新增用户数据成功!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增用户数据成功!", "AddSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("新增用户数据成功!", "AddSuccessInfo"));
frmUser.RefreshFrmHost();
this.Close();
}
else
{
//KryptonMessageBox.Show("新增用户数据失败!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增用户数据失败!", "AddFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("新增用户数据失败!", "AddFailInfo"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增用户数据发生异常", "AddUserDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("新增用户数据发生异常", "AddUserDataExp") + $":【{ex.Message}】!");
}
}
diff --git a/CleanMachineHMI/frmChild/frmAddWaringMsg.cs b/CleanMachineHMI/frmChild/frmAddWaringMsg.cs
index 91900d4..9935d38 100644
--- a/CleanMachineHMI/frmChild/frmAddWaringMsg.cs
+++ b/CleanMachineHMI/frmChild/frmAddWaringMsg.cs
@@ -20,11 +20,7 @@ namespace CleanMachineHMI.frmChild
public frmAddWaringMsg()
{
InitializeComponent();
- _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _ComboBoxLanguageTextList;
- private DataTable _InfoLanguageTextList;
private void txt_GotFocus(object sender, EventArgs e)
{
KeyboardAutoPopUp.ShowInputPanel();
@@ -51,13 +47,13 @@ namespace CleanMachineHMI.frmChild
private void frmAddWaringMsg_Load(object sender, EventArgs e)
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
- if (GlobalHelper.LanguageCode == "English")
+ this.SetFormControlText();
+
{
kcmb_WarningType.Items.Clear();
- foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_WarningType.Name, "KryptonComboBox"))
+ foreach (string item in this.GetComBoboxItemArr(kcmb_WarningType.Name))
{
- kcmb_WarningType.Items.Add(item["CONTROL_NAME"].ToString());
+ kcmb_WarningType.Items.Add(item);
}
}
kcmb_WarningType.SelectedIndex = 0;
@@ -71,19 +67,19 @@ namespace CleanMachineHMI.frmChild
if (string.IsNullOrEmpty(txtWarningCode.Text))
{
//KryptonMessageBox.Show("请输入报警条码!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入报警条码!", "EnterWarningCodeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入报警条码!", "EnterWarningCodeInfo"));
return;
}
if (string.IsNullOrEmpty(txtWarningName.Text))
{
//KryptonMessageBox.Show("请输入报警名称!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入报警名称!", "EnterWarningNameInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入报警名称!", "EnterWarningNameInfo"));
return;
}
if (kcmb_WarningType.SelectedIndex == 0)
{
//KryptonMessageBox.Show("请选择报警类型!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择报警类型!", "SelectWarningTypeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择报警类型!", "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}'";
@@ -139,20 +135,20 @@ namespace CleanMachineHMI.frmChild
if (row > 0)
{
//KryptonMessageBox.Show("新增基础报警数据成功!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增基础报警数据成功!", "AddSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("新增基础报警数据成功!", "AddSuccessInfo"));
// frmWarning.RefreshFrmHost();
this.Close();
}
else
{
//KryptonMessageBox.Show("新增基础报警数据失败!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增基础报警数据失败!", "AddFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("新增基础报警数据失败!", "AddFailInfo"));
}
}
catch (Exception ex)
{
//KryptonMessageBox.Show(ex.Message);
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增基础报警数据发生异常", "AddWarningDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("新增基础报警数据发生异常", "AddWarningDataExp") + $":【{ex.Message}】!");
}
}
diff --git a/CleanMachineHMI/frmChild/frmEditCleanCode.cs b/CleanMachineHMI/frmChild/frmEditCleanCode.cs
index 0cdf30b..32a340d 100644
--- a/CleanMachineHMI/frmChild/frmEditCleanCode.cs
+++ b/CleanMachineHMI/frmChild/frmEditCleanCode.cs
@@ -20,14 +20,13 @@ namespace CleanMachineHMI.frmChild
public frmEditCleanCode()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _InfoLanguageTextList;
+
public string CleanModeId { get; set; }
private void frmAddCleanCode_Load(object sender, EventArgs e)
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
}
private void txt_GotFocus(object sender, EventArgs e)
{
@@ -59,12 +58,12 @@ namespace CleanMachineHMI.frmChild
txtCleanModeCode.Enabled = false;
txtCleanModeName.Text = dt.Rows[0]["CLEAN_MODE_NAME"].ToString();
}
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
kryptonPanel1.Focus();
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("修改清洁方式数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("修改清洁方式数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
}
}
@@ -75,7 +74,7 @@ namespace CleanMachineHMI.frmChild
if (string.IsNullOrEmpty(txtCleanModeName.Text))
{
//KryptonMessageBox.Show("请输入板材名称!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入清洗方式名称!", "EnterCleanNameInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入清洗方式名称!", "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}'";
@@ -83,7 +82,7 @@ namespace CleanMachineHMI.frmChild
if (row > 0)
{
//KryptonMessageBox.Show("修改清洗方式数据成功!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑清洗方式数据成功!", "EditSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("编辑清洗方式数据成功!", "EditSuccessInfo"));
frmCleanMode.RefreshFrmHost();
this.Close();
@@ -91,12 +90,12 @@ namespace CleanMachineHMI.frmChild
else
{
//KryptonMessageBox.Show("修改清洗方式数据失败!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑清洗方式数据失败!", "EditFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("编辑清洗方式数据失败!", "EditFailInfo"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑清洗方式数据发生异常", "EditCleanModeDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("编辑清洗方式数据发生异常", "EditCleanModeDataExp") + $":【{ex.Message}】!");
}
}
diff --git a/CleanMachineHMI/frmChild/frmEditContaminationDtl.cs b/CleanMachineHMI/frmChild/frmEditContaminationDtl.cs
index af213ef..22a43e0 100644
--- a/CleanMachineHMI/frmChild/frmEditContaminationDtl.cs
+++ b/CleanMachineHMI/frmChild/frmEditContaminationDtl.cs
@@ -21,9 +21,7 @@ namespace CleanMachineHMI.frmChild
public frmEditContaminationDtl()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _InfoLanguageTextList;
public string ContaminationDtlId { get; set; }
private void txt_GotFocus(object sender, EventArgs e)
{
@@ -46,7 +44,7 @@ namespace CleanMachineHMI.frmChild
try
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
string sql = $@"select CONTAMINATION_TYPE_CODE,CONTAMINATION_TYPE_NAME from BAS_CONTAMINATION_TYPE where DEL_FLAG=0";
DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
if (dt != null && dt.Rows.Count > 0)
@@ -80,7 +78,7 @@ namespace CleanMachineHMI.frmChild
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑污染明细数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("编辑污染明细数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
}
}
@@ -91,19 +89,19 @@ namespace CleanMachineHMI.frmChild
if (cmbContaminationType.SelectedIndex == 0)
{
//KryptonMessageBox.Show("请选择污染类型!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择污染类型!", "SelectContaminationTypeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择污染类型!", "SelectContaminationTypeInfo"));
return;
}
if (string.IsNullOrEmpty(txtContaminationDTLCode.Text))
{
//KryptonMessageBox.Show("请输入污染明细编码!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入污染明细编码!", "EnterContaminationDtlCodeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入污染明细编码!", "EnterContaminationDtlCodeInfo"));
return;
}
if (string.IsNullOrEmpty(txtContaminationDTLName.Text))
{
//KryptonMessageBox.Show("请输入污染明细名称!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入污染明细名称!", "EnterContaminationDtlNameInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入污染明细名称!", "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}'";
@@ -111,19 +109,19 @@ namespace CleanMachineHMI.frmChild
if (row > 0)
{
//KryptonMessageBox.Show("修改污染明细数据成功!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增污染明细数据成功!", "EditSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("新增污染明细数据成功!", "EditSuccessInfo"));
frmContaminationDTL.RefreshFrmHost();
this.Close();
}
else
{
//KryptonMessageBox.Show("修改污染明细数据失败!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("新增污染明细数据失败!", "EditFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("新增污染明细数据失败!", "EditFailInfo"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑污染明细数据发生异常", "EditContaminationDtlDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("编辑污染明细数据发生异常", "EditContaminationDtlDataExp") + $":【{ex.Message}】!");
}
}
diff --git a/CleanMachineHMI/frmChild/frmEditContaminationType.cs b/CleanMachineHMI/frmChild/frmEditContaminationType.cs
index b63b97b..33b5e6b 100644
--- a/CleanMachineHMI/frmChild/frmEditContaminationType.cs
+++ b/CleanMachineHMI/frmChild/frmEditContaminationType.cs
@@ -21,9 +21,8 @@ namespace CleanMachineHMI.frmChild
public frmEditContaminationType()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _InfoLanguageTextList;
+
private void txt_GotFocus(object sender, EventArgs e)
{
KeyboardAutoPopUp.ShowInputPanel();
@@ -46,7 +45,7 @@ namespace CleanMachineHMI.frmChild
try
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
string sql = $@"select CLEAN_MODE_CODE,CLEAN_MODE_NAME from BAS_CLEAN_MODE where DEL_FLAG=0";
DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
if (dt != null && dt.Rows.Count > 0)
@@ -81,7 +80,7 @@ namespace CleanMachineHMI.frmChild
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑污染类型界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("编辑污染类型界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
}
}
@@ -91,35 +90,35 @@ namespace CleanMachineHMI.frmChild
{
if (cmbCleanMode.SelectedIndex == 0)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择清洗方式!", "SelectCleanModeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择清洗方式!", "SelectCleanModeInfo"));
return;
}
if (string.IsNullOrEmpty(txtContaminationTypeCode.Text))
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入污染类型编码!", "EnterContaminationTypeCodeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入污染类型编码!", "EnterContaminationTypeCodeInfo"));
return;
}
if (string.IsNullOrEmpty(txtContaminationTypeName.Text))
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入污染类型名称!", "EnterContaminationTypeNameInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入污染类型名称!", "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(_InfoLanguageTextList.GetInfoText("编辑污染类型数据成功!", "EditSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("编辑污染类型数据成功!", "EditSuccessInfo"));
frmContaminationType.RefreshFrmHost();
this.Close();
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑污染类型数据失败!", "EditFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("编辑污染类型数据失败!", "EditFailInfo"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑污染类型数据发生异常", "EditContaminationTypeDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("编辑污染类型数据发生异常", "EditContaminationTypeDataExp") + $":【{ex.Message}】!");
}
}
diff --git a/CleanMachineHMI/frmChild/frmEditParamater.cs b/CleanMachineHMI/frmChild/frmEditParamater.cs
index 28e95e9..55172ed 100644
--- a/CleanMachineHMI/frmChild/frmEditParamater.cs
+++ b/CleanMachineHMI/frmChild/frmEditParamater.cs
@@ -20,9 +20,8 @@ namespace CleanMachineHMI.frmChild
public frmEditParamater()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _InfoLanguageTextList;
+
public string ParamaterId { get; set; }
private void txt_GotFocus(object sender, EventArgs e)
{
@@ -43,7 +42,7 @@ namespace CleanMachineHMI.frmChild
try
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
string sql = $@"SELECT * FROM SYS_PARAMETER WHERE PARAMETER_ID = '{ParamaterId}'";
DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
if (dt != null && dt.Rows.Count > 0)
@@ -56,7 +55,7 @@ namespace CleanMachineHMI.frmChild
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑参数数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("编辑参数数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
}
}
@@ -67,7 +66,7 @@ namespace CleanMachineHMI.frmChild
if (string.IsNullOrEmpty(txtValue.Text))
{
//KryptonMessageBox.Show("请输入参数值!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入参数值!", "EnterparamaterVlaueInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入参数值!", "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}'";
@@ -75,19 +74,19 @@ namespace CleanMachineHMI.frmChild
if (row > 0)
{
//KryptonMessageBox.Show("修改参数信息数据成功!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑参数数据成功!", "EditSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("编辑参数数据成功!", "EditSuccessInfo"));
frmParamater.RefreshFrmHost();
this.Close();
}
else
{
//KryptonMessageBox.Show("修改参数信息数据失败!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑参数数据失败!", "EditFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("编辑参数数据失败!", "EditFailInfo"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑参数数据发生异常", "EditParamaterDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("编辑参数数据发生异常", "EditParamaterDataExp") + $":【{ex.Message}】!");
}
}
diff --git a/CleanMachineHMI/frmChild/frmEditPlcItem.cs b/CleanMachineHMI/frmChild/frmEditPlcItem.cs
index a075ec5..cd2f226 100644
--- a/CleanMachineHMI/frmChild/frmEditPlcItem.cs
+++ b/CleanMachineHMI/frmChild/frmEditPlcItem.cs
@@ -19,11 +19,7 @@ namespace CleanMachineHMI.frmChild
public frmEditPlcItem()
{
InitializeComponent();
- _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _ComboBoxLanguageTextList;
- private DataTable _InfoLanguageTextList;
public string PlcItemId { get; set; }
int modbusMinIndex = 0;
private void txt_GotFocus(object sender, EventArgs e)
@@ -53,18 +49,18 @@ namespace CleanMachineHMI.frmChild
try
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
- if (GlobalHelper.LanguageCode == "English")
+ this.SetFormControlText();
+
{
kcmb_plcItemType.Items.Clear();
- foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_plcItemType.Name, "KryptonComboBox"))
+ foreach (string item in this.GetComBoboxItemArr(kcmb_plcItemType.Name))
{
- kcmb_plcItemType.Items.Add(item["CONTROL_NAME"].ToString());
+ kcmb_plcItemType.Items.Add(item);
}
kcmb_plcItemDataType.Items.Clear();
- foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_plcItemDataType.Name, "KryptonComboBox"))
+ foreach (string item in this.GetComBoboxItemArr(kcmb_plcItemDataType.Name))
{
- kcmb_plcItemDataType.Items.Add(item["CONTROL_NAME"].ToString());
+ kcmb_plcItemDataType.Items.Add(item);
}
}
kcmb_plcItemType.SelectedIndex = 0;
@@ -86,7 +82,7 @@ namespace CleanMachineHMI.frmChild
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑PLC变量数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("编辑PLC变量数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
}
}
///
@@ -106,25 +102,25 @@ namespace CleanMachineHMI.frmChild
if (string.IsNullOrEmpty(ktb_plcItemCode.Text))
{
//KryptonMessageBox.Show("请输入PLC编码");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入PLC变量编码!", "EnterPlcItemCodeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入PLC变量编码!", "EnterPlcItemCodeInfo"));
return;
}
if (string.IsNullOrEmpty(ktb_plcItemName.Text))
{
//KryptonMessageBox.Show("请输入PLC名称");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入PLC变量名称!", "EnterPlcItemNameInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入PLC变量名称!", "EnterPlcItemNameInfo"));
return;
}
if (string.IsNullOrEmpty(kcmb_plcItemType.Text))
{
//KryptonMessageBox.Show("请选择PLC类型");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择PLC变量类型!", "SelectPlcItemTypeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择PLC变量类型!", "SelectPlcItemTypeInfo"));
return;
}
if (string.IsNullOrEmpty(kcmb_plcItemDataType.Text))
{
//KryptonMessageBox.Show("请选择PLC数据类型");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择PLC变量数据类型!", "SelectPlcItemDataTypeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择PLC变量数据类型!", "SelectPlcItemDataTypeInfo"));
return;
}
int addPriIndex = Convert.ToInt32(knud_plcItemPriAddress.Value);
@@ -182,19 +178,19 @@ namespace CleanMachineHMI.frmChild
if (row > 0)
{
//KryptonMessageBox.Show("编辑PLC变量数据成功!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑PLC变量数据成功!", "EditSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("编辑PLC变量数据成功!", "EditSuccessInfo"));
frmPlcItemConfig.RefreshFrmHost();
this.Close();
}
else
{
//KryptonMessageBox.Show("编辑PLC变量数据失败!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑PLC变量数据失败!", "EditFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("编辑PLC变量数据失败!", "EditFailInfo"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑PLC变量数据发生异常", "EditPlcItemDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("编辑PLC变量数据发生异常", "EditPlcItemDataExp") + $":【{ex.Message}】!");
}
}
diff --git a/CleanMachineHMI/frmChild/frmEditRole.cs b/CleanMachineHMI/frmChild/frmEditRole.cs
index 6631073..82ac749 100644
--- a/CleanMachineHMI/frmChild/frmEditRole.cs
+++ b/CleanMachineHMI/frmChild/frmEditRole.cs
@@ -20,11 +20,7 @@ namespace CleanMachineHMI.frmChild
public frmEditRole()
{
InitializeComponent();
- _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _ComboBoxLanguageTextList;
- private DataTable _InfoLanguageTextList;
public string RoleId { get; set; }
private void txt_GotFocus(object sender, EventArgs e)
{
@@ -47,13 +43,13 @@ namespace CleanMachineHMI.frmChild
try
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
- if (GlobalHelper.LanguageCode == "English")
+ this.SetFormControlText();
+
{
kcmb_roleGrade.Items.Clear();
- foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_roleGrade.Name, "KryptonComboBox"))
+ foreach (string item in this.GetComBoboxItemArr(kcmb_roleGrade.Name))
{
- kcmb_roleGrade.Items.Add(item["CONTROL_NAME"].ToString());
+ kcmb_roleGrade.Items.Add(item);
}
}
kcmb_roleGrade.SelectedIndex = 0;
@@ -78,7 +74,7 @@ namespace CleanMachineHMI.frmChild
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑角色数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("编辑角色数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
}
}
@@ -89,14 +85,14 @@ namespace CleanMachineHMI.frmChild
if (string.IsNullOrEmpty(txtRoleName.Text))
{
//KryptonMessageBox.Show("请输入角色名称!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入角色名称!", "EnterRoleNameInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入角色名称!", "EnterRoleNameInfo"));
return;
}
int roleGrade = 0;
if (kcmb_roleGrade.SelectedIndex == 0)
{
//KryptonMessageBox.Show("请选择角色级别!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择角色级别!", "SelectRoleGradeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择角色级别!", "SelectRoleGradeInfo"));
return;
}
else if (kcmb_roleGrade.SelectedIndex == 1)
@@ -119,19 +115,19 @@ namespace CleanMachineHMI.frmChild
if (row > 0)
{
//KryptonMessageBox.Show("修改角色数据成功!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("修改角色数据成功!", "EditSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("修改角色数据成功!", "EditSuccessInfo"));
frmRole.RefreshFrmHost();
this.Close();
}
else
{
//KryptonMessageBox.Show("修改角色数据失败!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("修改角色数据失败!", "EditFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("修改角色数据失败!", "EditFailInfo"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑角色数据发生异常", "EditRoleDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("编辑角色数据发生异常", "EditRoleDataExp") + $":【{ex.Message}】!");
}
}
diff --git a/CleanMachineHMI/frmChild/frmEditSheetType.cs b/CleanMachineHMI/frmChild/frmEditSheetType.cs
index 3bcf315..cbe76ce 100644
--- a/CleanMachineHMI/frmChild/frmEditSheetType.cs
+++ b/CleanMachineHMI/frmChild/frmEditSheetType.cs
@@ -20,9 +20,7 @@ namespace CleanMachineHMI.frmChild
public frmEditSheetType()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _InfoLanguageTextList;
public string SheetTypeId { get; set; }
private void txt_GotFocus(object sender, EventArgs e)
{
@@ -46,7 +44,7 @@ namespace CleanMachineHMI.frmChild
try
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
string sql = $@"SELECT * FROM BAS_SHEET_TYPE WHERE SHEET_TYPE_ID = '{SheetTypeId}'";
DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
if (dt != null && dt.Rows.Count > 0)
@@ -59,7 +57,7 @@ namespace CleanMachineHMI.frmChild
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑板材数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("编辑板材数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
}
}
@@ -70,7 +68,7 @@ namespace CleanMachineHMI.frmChild
if (string.IsNullOrEmpty(txtSheetTypeName.Text))
{
//KryptonMessageBox.Show("请输入板材名称!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入板材名称!", "EnterSheetTypeNameInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入板材名称!", "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}'";
@@ -78,19 +76,19 @@ namespace CleanMachineHMI.frmChild
if (row > 0)
{
//KryptonMessageBox.Show("修改板材数据成功!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑板材数据成功!", "EditSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("编辑板材数据成功!", "EditSuccessInfo"));
frmSheetType.RefreshFrmHost();
this.Close();
}
else
{
//KryptonMessageBox.Show("修改板材数据失败!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑板材数据失败!", "EditFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("编辑板材数据失败!", "EditFailInfo"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑板材类型数据发生异常", "EditSheetTypeDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("编辑板材类型数据发生异常", "EditSheetTypeDataExp") + $":【{ex.Message}】!");
}
}
diff --git a/CleanMachineHMI/frmChild/frmEditUser.cs b/CleanMachineHMI/frmChild/frmEditUser.cs
index ef1f217..38bf60e 100644
--- a/CleanMachineHMI/frmChild/frmEditUser.cs
+++ b/CleanMachineHMI/frmChild/frmEditUser.cs
@@ -21,11 +21,7 @@ namespace CleanMachineHMI.frmChild
public frmEditUser()
{
InitializeComponent();
- _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _ComboBoxLanguageTextList;
- private DataTable _InfoLanguageTextList;
public string UserId { get; set; }
private void txt_GotFocus(object sender, EventArgs e)
{
@@ -56,13 +52,13 @@ namespace CleanMachineHMI.frmChild
try
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
- if (GlobalHelper.LanguageCode == "English")
+ this.SetFormControlText();
+
{
cmbGender.Items.Clear();
- foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(cmbGender.Name, "KryptonComboBox"))
+ foreach (string item in this.GetComBoboxItemArr(cmbGender.Name))
{
- cmbGender.Items.Add(item["CONTROL_NAME"].ToString());
+ cmbGender.Items.Add(item);
}
}
string sql1 = $"SELECT ROLE_ID,ROLE_CODE,ROLE_NAME FROM SYS_ROLE ";
@@ -97,7 +93,7 @@ namespace CleanMachineHMI.frmChild
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑用户数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("编辑用户数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
}
}
@@ -107,36 +103,36 @@ namespace CleanMachineHMI.frmChild
{
if (string.IsNullOrEmpty(txtAccount.Text))
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入用户编码!", "EnterUserCodeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入用户编码!", "EnterUserCodeInfo"));
return;
}
if (string.IsNullOrEmpty(txtName.Text))
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入用户名称!", "EnterUserNameInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入用户名称!", "EnterUserNameInfo"));
return;
}
if (string.IsNullOrEmpty(txtPS.Text))
{
//KryptonMessageBox.Show("请输入用户密码!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入用户密码!", "EnterUserPasswordInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入用户密码!", "EnterUserPasswordInfo"));
return;
}
if (string.IsNullOrEmpty(txtPS1.Text))
{
//KryptonMessageBox.Show("请确认用户密码!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请确认用户密码!", "ConfirmUserPasswordInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请确认用户密码!", "ConfirmUserPasswordInfo"));
return;
}
if (cmbGender.SelectedIndex == 0)
{
//KryptonMessageBox.Show("请选择性别!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择性别!", "SelectUserGenderInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择性别!", "SelectUserGenderInfo"));
return;
}
if (txtPS1.Text != txtPS.Text)
{
//KryptonMessageBox.Show("两次输入的密码不同,请重新输入!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("两次输入的密码不同,请重新输入!", "ConfirmUserPasswordErrInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("两次输入的密码不同,请重新输入!", "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}'";
@@ -144,19 +140,19 @@ namespace CleanMachineHMI.frmChild
if (row > 0)
{
//KryptonMessageBox.Show("修改用户数据成功!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("修改用户数据成功!", "EditSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("修改用户数据成功!", "EditSuccessInfo"));
frmUser.RefreshFrmHost();
this.Close();
}
else
{
//KryptonMessageBox.Show("修改用户数据失败!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("修改用户数据失败!", "EditFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("修改用户数据失败!", "EditFailInfo"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑用户数据发生异常", "EditUserDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("编辑用户数据发生异常", "EditUserDataExp") + $":【{ex.Message}】!");
}
}
diff --git a/CleanMachineHMI/frmChild/frmEditWaringMsg.cs b/CleanMachineHMI/frmChild/frmEditWaringMsg.cs
index f59bc36..95c0fbc 100644
--- a/CleanMachineHMI/frmChild/frmEditWaringMsg.cs
+++ b/CleanMachineHMI/frmChild/frmEditWaringMsg.cs
@@ -20,11 +20,7 @@ namespace CleanMachineHMI.frmChild
public frmEditWaringMsg()
{
InitializeComponent();
- _ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _ComboBoxLanguageTextList;
- private DataTable _InfoLanguageTextList;
public string WarningId { get; set; }
private void txt_GotFocus(object sender, EventArgs e)
{
@@ -54,13 +50,13 @@ namespace CleanMachineHMI.frmChild
try
{
InitControlEvent();
- this.SetFormControlText(GlobalHelper.LanguageCode);
- if (GlobalHelper.LanguageCode == "English")
+ this.SetFormControlText();
+
{
kcmb_WarningType.Items.Clear();
- foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_WarningType.Name, "KryptonComboBox"))
+ foreach (string item in this.GetComBoboxItemArr(kcmb_WarningType.Name))
{
- kcmb_WarningType.Items.Add(item["CONTROL_NAME"].ToString());
+ kcmb_WarningType.Items.Add(item);
}
}
kcmb_WarningType.SelectedIndex = 0;
@@ -79,7 +75,7 @@ namespace CleanMachineHMI.frmChild
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑基础报警数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("编辑基础报警数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
}
}
@@ -90,19 +86,19 @@ namespace CleanMachineHMI.frmChild
if (string.IsNullOrEmpty(txtWarningCode.Text))
{
//KryptonMessageBox.Show("请输入报警条码!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入报警条码!", "EnterWarningCodeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入报警条码!", "EnterWarningCodeInfo"));
return;
}
if (string.IsNullOrEmpty(txtWarningName.Text))
{
//KryptonMessageBox.Show("请输入报警名称!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入报警名称!", "EnterWarningNameInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请输入报警名称!", "EnterWarningNameInfo"));
return;
}
if (kcmb_WarningType.SelectedIndex == 0)
{
//KryptonMessageBox.Show("请选择报警类型!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择报警类型!", "SelectWarningTypeInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择报警类型!", "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}'";
@@ -118,19 +114,19 @@ namespace CleanMachineHMI.frmChild
if (row > 0)
{
//KryptonMessageBox.Show("修改基础报警数据成功!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("修改基础报警数据成功!", "EditSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("修改基础报警数据成功!", "EditSuccessInfo"));
//frmWarning.RefreshFrmHost();
this.Close();
}
else
{
//KryptonMessageBox.Show("修改基础报警数据失败!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("修改基础报警数据失败!", "EditFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("修改基础报警数据失败!", "EditFailInfo"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑基础报警数据发生异常", "EditWarningDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("编辑基础报警数据发生异常", "EditWarningDataExp") + $":【{ex.Message}】!");
}
}
diff --git a/CleanMachineHMI/frmChild/frmEditWorkingPalletData.cs b/CleanMachineHMI/frmChild/frmEditWorkingPalletData.cs
index 1b49781..26a6839 100644
--- a/CleanMachineHMI/frmChild/frmEditWorkingPalletData.cs
+++ b/CleanMachineHMI/frmChild/frmEditWorkingPalletData.cs
@@ -20,15 +20,14 @@ namespace CleanMachineHMI.frmChild
public frmEditWorkingPalletData()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _InfoLanguageTextList;
+
public string PalletCode { get; set; }
private void frmEditWorkingPalletData_Load(object sender, EventArgs e)
{
try
{
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
string sql = $@"select * from VW_WORKING_PALLET_MSG where WORKING_PALLET_CODE = '{PalletCode}'";
DataTable dt = LeadDbHelperSQLite.Query(sql).Tables[0];
if (dt != null && dt.Rows.Count > 0)
@@ -48,12 +47,12 @@ namespace CleanMachineHMI.frmChild
kryptonDataGridView1.Rows[index].Cells[9].Value = item["INPUT_TIME"].ToString();
}
- kryptonDataGridView1.SetDataViewColumnText(this.Name, GlobalHelper.LanguageCode);
+ kryptonDataGridView1.SetDataViewColumnText(this.Name);
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑作业托盘数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("编辑作业托盘数据界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
}
}
@@ -88,7 +87,7 @@ namespace CleanMachineHMI.frmChild
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑作业托盘数据异常", "EditWorkingPalletDataExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("编辑作业托盘数据异常", "EditWorkingPalletDataExp") + $":【{ex.Message}】!");
}
}
diff --git a/CleanMachineHMI/frmChild/frmSetRoleMenuPermission.cs b/CleanMachineHMI/frmChild/frmSetRoleMenuPermission.cs
index a944930..7a3ab52 100644
--- a/CleanMachineHMI/frmChild/frmSetRoleMenuPermission.cs
+++ b/CleanMachineHMI/frmChild/frmSetRoleMenuPermission.cs
@@ -18,16 +18,15 @@ namespace CleanMachineHMI.frmChild
public frmSetRoleMenuPermission()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _InfoLanguageTextList;
+
public string RoleId { get; set; }
DataTable allMenuData = new DataTable();
private void frmSetRoleMenuPermission_Load(object sender, EventArgs e)
{
try
{
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
string sql = $@"SELECT * FROM SYS_MENU";
allMenuData = LeadDbHelperSQLite.Query(sql).Tables[0];
if (allMenuData != null && allMenuData.Rows.Count > 0)
@@ -77,7 +76,7 @@ namespace CleanMachineHMI.frmChild
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("角色菜单权限配置界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("角色菜单权限配置界面加载异常", "LoadEditFrmExp") + $":【{ex.Message}】!");
}
}
@@ -208,24 +207,24 @@ namespace CleanMachineHMI.frmChild
if (rowSum > 0)
{
//KryptonMessageBox.Show("该角色菜单授权成功!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("该角色的菜单权限授权成功!", "EditSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("该角色的菜单权限授权成功!", "EditSuccessInfo"));
this.Close();
}
else
{
//KryptonMessageBox.Show("该角色菜单授权失败!");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("该角色的菜单权限授权失败!", "EditFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("该角色的菜单权限授权失败!", "EditFailInfo"));
}
}
else
{
//KryptonMessageBox.Show("未选择任何菜单项,无法配置权限。");
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("未选择任何菜单项,无法配置权限!", "EmptyMenuDataInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("未选择任何菜单项,无法配置权限!", "EmptyMenuDataInfo"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("编辑角色的菜单权限授权异常", "EditRoleMenuPermissionExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("编辑角色的菜单权限授权异常", "EditRoleMenuPermissionExp") + $":【{ex.Message}】!");
}
}
}
diff --git a/CleanMachineHMI/frmChild/frmSwitchRunDirection.cs b/CleanMachineHMI/frmChild/frmSwitchRunDirection.cs
index 95ac9b6..b341fd3 100644
--- a/CleanMachineHMI/frmChild/frmSwitchRunDirection.cs
+++ b/CleanMachineHMI/frmChild/frmSwitchRunDirection.cs
@@ -18,17 +18,15 @@ namespace CleanMachineHMI.frmChild
public frmSwitchRunDirection()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
- private DataTable _InfoLanguageTextList;
private void frmSwitchRunDirection_Load(object sender, EventArgs e)
{
try
{
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
int directNum = Convert.ToInt32(PlcOperationHelper.Instance.ReadPlcItem("DischargeDirectionSelection", PlcItemTypeDesc.D));
- if (GlobalHelper.LanguageCode == "English")
+ if (GlobalHelper.LanguageCode != "zh-CN")
{
if (directNum == 0)
{
@@ -70,7 +68,7 @@ namespace CleanMachineHMI.frmChild
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("加载出料运行方向切换界面发生异常", "LoadSwitchRunDirectionExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("加载出料运行方向切换界面发生异常", "LoadSwitchRunDirectionExp") + $":【{ex.Message}】!");
}
}
@@ -80,7 +78,7 @@ namespace CleanMachineHMI.frmChild
{
if (kcmb_SwitchRunDirection.SelectedIndex == 0)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请选择切换方向!", "SelectSwitchDirectionInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("请选择切换方向!", "SelectSwitchDirectionInfo"));
return;
}
if (!PlcOperationHelper.Instance.isConn)
@@ -90,17 +88,17 @@ namespace CleanMachineHMI.frmChild
}
if (PlcOperationHelper.Instance.WritePlcItem("DischargeDirectionSelection", (kcmb_SwitchRunDirection.SelectedIndex - 1).ToString(), PlcItemTypeDesc.D))
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("切换出料运行方向成功!", "SwitchDirectionSuccessInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("切换出料运行方向成功!", "SwitchDirectionSuccessInfo"));
this.Close();
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("切换出料运行方向失败!", "SwitchDirectionFailInfo"));
+ KryptonMessageBox.Show(this.GetInfoText("切换出料运行方向失败!", "SwitchDirectionFailInfo"));
}
}
catch (Exception ex)
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("切换出料运行方向的函数发生异常", "SwitchRunDirectionExp") + $":【{ex.Message}】!");
+ KryptonMessageBox.Show(this.GetInfoText("切换出料运行方向的函数发生异常", "SwitchRunDirectionExp") + $":【{ex.Message}】!");
}
}
diff --git a/CleanMachineHMI/frmIOMonitor_Old.cs b/CleanMachineHMI/frmIOMonitor_Old.cs
index 708c6f0..14244dd 100644
--- a/CleanMachineHMI/frmIOMonitor_Old.cs
+++ b/CleanMachineHMI/frmIOMonitor_Old.cs
@@ -24,13 +24,9 @@ namespace CleanMachineHMI
public frmIOMonitor_Old()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "Label");
InitControl();
}
- ///
- /// 页面信息语言文本列表
- ///
- private DataTable _InfoLanguageTextList;
+
bool isThRun = false;
List lstMoitor_X = new List();
List lstMoitor_Y = new List();
@@ -171,14 +167,7 @@ namespace CleanMachineHMI
int colSecondLocY = 8;
int panalTemplateWidth = 245;
- if (GlobalHelper.LanguageCode == "English")
- {
- panalTemplateWidth = 245;
- }
- else
- {
- panalTemplateWidth = 175;
- }
+
int panalTemplateHeight = 30;
int wdNum = kryptonPanel2.Width / 2;
@@ -212,7 +201,7 @@ namespace CleanMachineHMI
KryptonLabel label1 = new KryptonLabel();
label1.StateCommon.ShortText.Font = new Font("宋体", (float)8.5, FontStyle.Regular);
label1.Location = new Point(44, 6);
- label1.Text = _InfoLanguageTextList.GetInfoText_1(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
+ label1.Text = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode);
panel.Controls.Add(label);
panel.Controls.Add(button);
@@ -247,7 +236,7 @@ namespace CleanMachineHMI
label1.StateCommon.ShortText.Font = new Font("宋体", (float)8.5, FontStyle.Regular);
label1.Location = new Point(44, 6);
//label1.Text = item.PlcItemName.Replace("(I/O监控)", "");
- label1.Text = _InfoLanguageTextList.GetInfoText_1(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
+ label1.Text = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode);
panel.Controls.Add(label);
panel.Controls.Add(button);
@@ -295,14 +284,6 @@ namespace CleanMachineHMI
int colSecondLocY = 8;
int panalTemplateWidth = 245;
- if (GlobalHelper.LanguageCode == "English")
- {
- panalTemplateWidth = 245;
- }
- else
- {
- panalTemplateWidth = 175;
- }
int panalTemplateHeight = 30;
int wdNum = kryptonPanel3.Width / 2;
@@ -338,7 +319,7 @@ namespace CleanMachineHMI
KryptonLabel label1 = new KryptonLabel();
label1.StateCommon.ShortText.Font = new Font("宋体", (float)8.5, FontStyle.Regular);
label1.Location = new Point(44, 6);
- label1.Text = _InfoLanguageTextList.GetInfoText_1(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
+ label1.Text = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode);
panel.Controls.Add(label);
panel.Controls.Add(button);
@@ -372,7 +353,7 @@ namespace CleanMachineHMI
KryptonLabel label1 = new KryptonLabel();
label1.StateCommon.ShortText.Font = new Font("宋体", (float)8.5, FontStyle.Regular);
label1.Location = new Point(44, 6);
- label1.Text = _InfoLanguageTextList.GetInfoText_1(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
+ label1.Text = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode);
panel.Controls.Add(label);
panel.Controls.Add(button);
diff --git a/CleanMachineHMI/frmIoMonitorNew.cs b/CleanMachineHMI/frmIoMonitorNew.cs
index 8236072..1d5e009 100644
--- a/CleanMachineHMI/frmIoMonitorNew.cs
+++ b/CleanMachineHMI/frmIoMonitorNew.cs
@@ -17,13 +17,9 @@ namespace CleanMachineHMI
public frmIoMonitorNew()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "Label");
}
private object lockObj = new object();
- ///
- /// 页面信息语言文本列表
- ///
- private DataTable _InfoLanguageTextList;
+
public const int WM_SYSCOMMAND = 0x112;
public const int SC_MOVE = 0xF012;
protected override void WndProc(ref Message m)
@@ -179,7 +175,7 @@ namespace CleanMachineHMI
{
KryptonLabel label1 = this.Controls.Find("klb_X" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true)[0] as KryptonLabel;
- label1.Text = _InfoLanguageTextList.GetInfoText_1(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
+ label1.Text = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode);
}
}));
}
@@ -196,7 +192,7 @@ namespace CleanMachineHMI
{
KryptonLabel label1 = this.Controls.Find("klb_Y" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true)[0] as KryptonLabel;
- label1.Text = _InfoLanguageTextList.GetInfoText_1(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
+ label1.Text = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode);
}
}));
}
diff --git a/CleanMachineHMI/frmLogin.cs b/CleanMachineHMI/frmLogin.cs
index 7fdf4cc..4b31746 100644
--- a/CleanMachineHMI/frmLogin.cs
+++ b/CleanMachineHMI/frmLogin.cs
@@ -20,17 +20,11 @@ namespace CleanMachineHMI
[FormType(EnumFormType.Login)]
public partial class frmLogin : KryptonForm
{
- ///
- /// 页面信息语言文本列表
- ///
- private readonly DataTable _InfoLanguageTextList;
public frmLogin()
{
InitializeComponent();
-
- _InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
}
private void Init()
@@ -48,12 +42,12 @@ namespace CleanMachineHMI
{
if (string.IsNullOrWhiteSpace(txtAccount.Text))
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入登陆账号!", "PleaseInputAccount"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ KryptonMessageBox.Show(this.GetInfoText("请输入登陆账号!", "PleaseInputAccount"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
if (string.IsNullOrWhiteSpace(txtPs.Text))
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入登陆密码!", "PleaseInputPassword"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ KryptonMessageBox.Show(this.GetInfoText("请输入登陆密码!", "PleaseInputPassword"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
@@ -64,17 +58,17 @@ namespace CleanMachineHMI
var data = dt.Rows[0];
if (data["USED_FLAG"].ToString() == "0")
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("用户已被停用!", "UserStop"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ KryptonMessageBox.Show(this.GetInfoText("用户已被停用!", "UserStop"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
if (data["DEL_FLAG"].ToString() == "1")
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("用户已被删除!", "UserDeleted"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ KryptonMessageBox.Show(this.GetInfoText("用户已被删除!", "UserDeleted"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
if (data["PASSWORD"].ToString().ToLower() != txtPs.Text.ToLower())
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("输入密码错误!", "PasswordFail"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ KryptonMessageBox.Show(this.GetInfoText("输入密码错误!", "PasswordFail"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
AppConfigHelper.Update("LastTimeUserCode",txtAccount.Text.Trim());
@@ -107,7 +101,7 @@ namespace CleanMachineHMI
}
else
{
- KryptonMessageBox.Show(_InfoLanguageTextList.GetInfoText("请输入正确的登陆账号!", "PleaseCorrectAccount"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
+ KryptonMessageBox.Show(this.GetInfoText("请输入正确的登陆账号!", "PleaseCorrectAccount"), "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
}
diff --git a/CleanMachineHMI/frmMainNew.cs b/CleanMachineHMI/frmMainNew.cs
index 08df0dd..250be54 100644
--- a/CleanMachineHMI/frmMainNew.cs
+++ b/CleanMachineHMI/frmMainNew.cs
@@ -26,7 +26,6 @@ namespace CleanMachineHMI
public frmMainNew()
{
InitializeComponent();
- _InfoLanguageTextList = this.GetInfoLanguageText_1(GlobalHelper.LanguageCode, "Info%");
}
#region 全局变量
@@ -62,8 +61,9 @@ namespace CleanMachineHMI
if (isDefaultPage)
{
kryptonNavigator1.Pages[0].Controls.Clear();
- kryptonNavigator1.Pages[0].Text = enumFormType.ToString();
+ //kryptonNavigator1.Pages[0].Text = enumFormType.ToString();
kryptonNavigator1.Pages[0].Name = enumFormType.ToString();
+ this.SetSingleControlText(kryptonNavigator1.Pages[0]);
kryptonNavigator1.SelectedPage = kryptonNavigator1.Pages[0];
if (frmType.BaseType.Name == "UserControl")
{
@@ -93,6 +93,7 @@ namespace CleanMachineHMI
else
{
KryptonPage tmpPage1 = new KryptonPage { Text = enumFormType.ToString(), Name = enumFormType.ToString() };
+ this.SetSingleControlText(tmpPage1);
ButtonSpecAny bsa = new ButtonSpecAny();
bsa.Style = PaletteButtonStyle.FormClose;
bsa.Type = PaletteButtonSpecStyle.FormClose;
@@ -145,7 +146,7 @@ namespace CleanMachineHMI
{
try
{
- this.SetFormControlText(GlobalHelper.LanguageCode);
+ this.SetFormControlText();
SwitchFrmMenu = new dlgSwitchFrmMenu(AddFrmMenuPage);
string sql1 = $@" SELECT * FROM BAS_PLC_ITEM ";
@@ -186,7 +187,7 @@ namespace CleanMachineHMI
bool isInitStatus = PlcOperationHelper.Instance.PlcInit();
if (isInitStatus)
{
- label3Professional.Text = _InfoLanguageTextList.GetInfoText_1("串口打开成功,PLC连接成功!", "label3Professional", "Info_Success");
+ label3Professional.Text = this.GetInfoText("串口打开成功,PLC连接成功!", "label3Professional_Success");
label3Professional.BackColor = Color.Lime;
isPlcConnStatus = true;
@@ -233,7 +234,7 @@ namespace CleanMachineHMI
else
{
//label3Professional.Text = "串口打开失败,PLC连接失败!";
- label3Professional.Text = _InfoLanguageTextList.GetInfoText_1("串口打开失败,PLC连接失败!", "label3Professional", "Info_Failed");
+ label3Professional.Text = this.GetInfoText("串口打开失败,PLC连接失败!", "label3Professional_Failed");
label3Professional.BackColor = Color.Red;
isPlcConnStatus = false;