修改
This commit is contained in:
@@ -81,7 +81,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
{
|
||||
if (item.Tag == null)
|
||||
{
|
||||
item.Enabled = GlobalHelper.CheckRole(this.Name, item.Name);
|
||||
item.Enabled = Global.CheckRole(this.Name, item.Name);
|
||||
//DataRow[] drs = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{this.Name}' AND MENU_PID = '-1'");
|
||||
//DataRow[] drs1 = GlobalHelper.RoleMenuPermission.Select($" MENU_URL = '{item.Name}' AND MENU_PID = '{drs[0]["MENU_ID"]}'");
|
||||
//if (drs1.Length > 0)
|
||||
@@ -99,7 +99,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
private void RefreshPlcData(bool isContainHisData)
|
||||
{
|
||||
List<WarningLog> tmpWarningLogList = new List<WarningLog>();
|
||||
tmpWarningLogList.AddRange(GlobalHelper.CmWarningLogMd_List);
|
||||
tmpWarningLogList.AddRange(Global.CmWarningLogMd_List);
|
||||
if (isContainHisData)
|
||||
{
|
||||
string sql = $@"SELECT * FROM CM_WARNING_LOG";
|
||||
@@ -244,7 +244,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
}
|
||||
if (PlcOperationHelper.Instance.WritePlcItem("FrequencyMacAlarmClear", "True", PlcItemTypeDesc.M))
|
||||
{
|
||||
LogHelper.WriteLog($"用户:【{GlobalHelper.UserInfo.UserName}】发送PLC变频器报警清除信号成功。", LogTypeEum.Err);
|
||||
LogHelper.WriteLog($"用户:【{Global.UserInfo.UserName}】发送PLC变频器报警清除信号成功。", LogTypeEum.Err);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user