添加维修提醒
This commit is contained in:
@@ -525,6 +525,10 @@ namespace CleanMachineHMI
|
|||||||
|
|
||||||
|
|
||||||
long lastTick = DateTime.Now.Ticks;
|
long lastTick = DateTime.Now.Ticks;
|
||||||
|
var sysParameters = new CleanMachine.BLL.SYS.ParameterBLL().GetList("");
|
||||||
|
int maintainAlarmTime = int.Parse(sysParameters.FirstOrDefault(m => m.ParameterCode == "MaintainAlarmTime").ParameterValue);
|
||||||
|
|
||||||
|
|
||||||
while (Global.SysThIsRunFlag)
|
while (Global.SysThIsRunFlag)
|
||||||
{
|
{
|
||||||
#if !DEBUG
|
#if !DEBUG
|
||||||
@@ -576,6 +580,9 @@ namespace CleanMachineHMI
|
|||||||
{
|
{
|
||||||
|
|
||||||
kryptonLabel1.Text = Minutes + " Minutes";
|
kryptonLabel1.Text = Minutes + " Minutes";
|
||||||
|
pictureBox1.Visible = Minutes >= maintainAlarmTime;
|
||||||
|
|
||||||
|
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user