This commit is contained in:
gongxh
2022-05-06 10:36:42 +08:00
parent 3acbcc78c7
commit c57ca69dfd
23 changed files with 534 additions and 375 deletions

View File

@@ -183,15 +183,19 @@ namespace CleanMachineHMI.FrmUserControl
{
if (GlobalHelper.RoleMenuPermission != null)
{
DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Tag.ToString()}' AND MENU_PID = '-1'");
if (drs.Length > 0)
{
item.Enabled = true;
}
else
{
item.Enabled = false;
}
//var drs = GlobalHelper.RoleMenuPermission.FirstOrDefault(m => m.MenuUrl == item.Tag.ToString() && m.MenuPid == -1);
//item.Enabled = drs != null;
item.Enabled = GlobalHelper.CheckRole(item.Tag.ToString());
//DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Tag.ToString()}' AND MENU_PID = '-1'");
//if (drs.Length > 0)
//{
// item.Enabled = true;
//}
//else
//{
// item.Enabled = false;
//}
}
}
}
@@ -1189,7 +1193,7 @@ namespace CleanMachineHMI.FrmUserControl
string userName = dt.Rows[0]["USER_NAME"].ToString();
DateTime dateMsg = Convert.ToDateTime(dt.Rows[0]["INPUT_TIME"]);
string IRNumber = dt.Rows[0]["IR_CODE"].ToString();
string MacCode = GlobalHelper.ParameterList.Select(" PARAMETER_CODE = 'CleanMachineName'")[0]["PARAMETER_VALUE"].ToString();
string MacCode = GlobalHelper.MacCode; //GlobalHelper.ParameterList.Select(" PARAMETER_CODE = 'CleanMachineName'")[0]["PARAMETER_VALUE"].ToString();
string sqlCleanedNum = $@"
SELECT
@@ -3037,7 +3041,7 @@ namespace CleanMachineHMI.FrmUserControl
CleanType md = basCleanTypeMsgList.Find(x => x.ContaminationDtlCode == kbtnMd.Name.Replace("kbtn_", "").Replace("_1", ""));
if (ktb_SaveIR.Enabled)
{
KryptonMessageBox.Show("The plate information and IR receiving number information are not entered, so the counting process cannot be carried out!");
KryptonMessageBox.Show("The plate information and IR receiving number information are not entered, \n so the counting process cannot be carried out!");
return;
}
KryptonNumericUpDown knudmd = this.Controls.Find("knud_" + kbtnMd.Name.Replace("kbtn_", "").Replace("_1", ""), true)[0] as KryptonNumericUpDown;