修改
This commit is contained in:
@@ -71,7 +71,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)
|
||||
@@ -149,11 +149,11 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
List<PlcItem> tmpMdList;
|
||||
if (!string.IsNullOrEmpty(ktb_plcMsg.Text.Trim()))
|
||||
{
|
||||
tmpMdList = GlobalHelper.PlcItemMdList.FindAll(x => x.PlcItemCode.Contains(ktb_plcMsg.Text.Trim()) || x.PlcItemName.Contains(ktb_plcMsg.Text.Trim()));
|
||||
tmpMdList = Global.PlcItemMdList.FindAll(x => x.PlcItemCode.Contains(ktb_plcMsg.Text.Trim()) || x.PlcItemName.Contains(ktb_plcMsg.Text.Trim()));
|
||||
}
|
||||
else
|
||||
{
|
||||
tmpMdList = GlobalHelper.PlcItemMdList;
|
||||
tmpMdList = Global.PlcItemMdList;
|
||||
}
|
||||
if (tmpMdList != null && tmpMdList.Count > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user