This commit is contained in:
gongxh
2022-05-13 14:55:10 +08:00
parent 617a205527
commit dfd71fe48c
9 changed files with 460 additions and 242 deletions

View File

@@ -1,4 +1,5 @@
using CleanMachineHMI.Domain.Enums;
using CleanMachine.Model.BAS;
using CleanMachineHMI.Domain.Enums;
using CleanMachineHMI.frmChild;
using CleanMachineHMI.Utils;
using Krypton.Toolkit;
@@ -89,7 +90,7 @@ namespace CleanMachineHMI.FrmUserControl
{
if (item.Tag == null)
{
item.Enabled = Global.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)
@@ -157,5 +158,14 @@ namespace CleanMachineHMI.FrmUserControl
frmSwitchRunDirection frm = new frmSwitchRunDirection();
frm.ShowDialog();
}
private void btnRestmaintenance_Click(object sender, EventArgs e)
{
int SysRunTime = (int)PlcOperationHelper.Instance.ReadPlcItem("SysRuningTime", PlcItemTypeDesc.D);
new CleanMachine.BLL.SYS.ParameterBLL().RestMaintainTime(SysRunTime);
Global.LoadParameters();
// PlcOperationHelper.Instance.WritePlcItem("SysRuningTime", "0", CleanMachine.Model.BAS.PlcItemTypeDesc.D);
}
}
}