change - 添加计时灯判断

dep
wangsr 10 months ago
parent 346e9c78f2
commit 4e60abd5f1

@ -525,41 +525,73 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
switch (deviceNo) switch (deviceNo)
{ {
case 1: case 1:
if (HslLanternSimpleE.HslLanternSimple1.LanternBackground == Color.DarkGray)
{
break;
}
LedDisplayE.WetWaitDisPlay1.DisplayText = MixWaitTimeLed(record); LedDisplayE.WetWaitDisPlay1.DisplayText = MixWaitTimeLed(record);
LedDisplayE.WetWaitDisPlay1.ForeColor = MixTimeBackColor(record); LedDisplayE.WetWaitDisPlay1.ForeColor = MixTimeBackColor(record);
LedDisplayE.RGVWaitDisPlay1.DisplayText = "00:00"; LedDisplayE.RGVWaitDisPlay1.DisplayText = "00:00";
break; break;
case 2: case 2:
if (HslLanternSimpleE.HslLanternSimple2.LanternBackground == Color.DarkGray)
{
break;
}
LedDisplayE.WetWaitDisPlay2.DisplayText = MixWaitTimeLed(record); LedDisplayE.WetWaitDisPlay2.DisplayText = MixWaitTimeLed(record);
LedDisplayE.WetWaitDisPlay2.ForeColor = MixTimeBackColor(record); LedDisplayE.WetWaitDisPlay2.ForeColor = MixTimeBackColor(record);
LedDisplayE.RGVWaitDisPlay2.DisplayText = "00:00"; LedDisplayE.RGVWaitDisPlay2.DisplayText = "00:00";
break; break;
case 3: case 3:
if (HslLanternSimpleE.HslLanternSimple3.LanternBackground == Color.DarkGray)
{
break;
}
LedDisplayE.WetWaitDisPlay3.DisplayText = MixWaitTimeLed(record); LedDisplayE.WetWaitDisPlay3.DisplayText = MixWaitTimeLed(record);
LedDisplayE.WetWaitDisPlay3.ForeColor = MixTimeBackColor(record); LedDisplayE.WetWaitDisPlay3.ForeColor = MixTimeBackColor(record);
LedDisplayE.RGVWaitDisPlay3.DisplayText = "00:00"; LedDisplayE.RGVWaitDisPlay3.DisplayText = "00:00";
break; break;
case 4: case 4:
if (HslLanternSimpleE.HslLanternSimple4.LanternBackground == Color.DarkGray)
{
break;
}
LedDisplayE.WetWaitDisPlay4.DisplayText = MixWaitTimeLed(record); LedDisplayE.WetWaitDisPlay4.DisplayText = MixWaitTimeLed(record);
LedDisplayE.WetWaitDisPlay4.ForeColor = MixTimeBackColor(record); LedDisplayE.WetWaitDisPlay4.ForeColor = MixTimeBackColor(record);
LedDisplayE.RGVWaitDisPlay4.DisplayText = "00:00"; LedDisplayE.RGVWaitDisPlay4.DisplayText = "00:00";
break; break;
case 5: case 5:
if (HslLanternSimpleE.HslLanternSimple5.LanternBackground == Color.DarkGray)
{
break;
}
LedDisplayE.WetWaitDisPlay5.DisplayText = MixWaitTimeLed(record); LedDisplayE.WetWaitDisPlay5.DisplayText = MixWaitTimeLed(record);
LedDisplayE.WetWaitDisPlay5.ForeColor = MixTimeBackColor(record); LedDisplayE.WetWaitDisPlay5.ForeColor = MixTimeBackColor(record);
LedDisplayE.RGVWaitDisPlay5.DisplayText = "00:00"; LedDisplayE.RGVWaitDisPlay5.DisplayText = "00:00";
break; break;
case 6: case 6:
if (HslLanternSimpleE.HslLanternSimple6.LanternBackground == Color.DarkGray)
{
break;
}
LedDisplayE.WetWaitDisPlay6.DisplayText = MixWaitTimeLed(record); LedDisplayE.WetWaitDisPlay6.DisplayText = MixWaitTimeLed(record);
LedDisplayE.WetWaitDisPlay6.ForeColor = MixTimeBackColor(record); LedDisplayE.WetWaitDisPlay6.ForeColor = MixTimeBackColor(record);
LedDisplayE.RGVWaitDisPlay6.DisplayText = "00:00"; LedDisplayE.RGVWaitDisPlay6.DisplayText = "00:00";
break; break;
case 7: case 7:
if (HslLanternSimpleE.HslLanternSimple7.LanternBackground == Color.DarkGray)
{
break;
}
LedDisplayE.WetWaitDisPlay7.DisplayText = MixWaitTimeLed(record); LedDisplayE.WetWaitDisPlay7.DisplayText = MixWaitTimeLed(record);
LedDisplayE.WetWaitDisPlay7.ForeColor = MixTimeBackColor(record); LedDisplayE.WetWaitDisPlay7.ForeColor = MixTimeBackColor(record);
LedDisplayE.RGVWaitDisPlay7.DisplayText = "00:00"; LedDisplayE.RGVWaitDisPlay7.DisplayText = "00:00";
break; break;
case 8: case 8:
if (HslLanternSimpleE.HslLanternSimple8.LanternBackground == Color.DarkGray)
{
break;
}
LedDisplayE.WetWaitDisPlay8.DisplayText = MixWaitTimeLed(record); LedDisplayE.WetWaitDisPlay8.DisplayText = MixWaitTimeLed(record);
LedDisplayE.WetWaitDisPlay8.ForeColor = MixTimeBackColor(record); LedDisplayE.WetWaitDisPlay8.ForeColor = MixTimeBackColor(record);
LedDisplayE.RGVWaitDisPlay8.DisplayText = "00:00"; LedDisplayE.RGVWaitDisPlay8.DisplayText = "00:00";
@ -574,34 +606,66 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl
switch (deviceNo) switch (deviceNo)
{ {
case 1: case 1:
if (HslAlarmE.HslLanternAlarm1.NormalColor == Color.DarkGray)
{
break;
}
LedDisplayE.RGVWaitDisPlay1.DisplayText = RGVWaitTimeLed(record); LedDisplayE.RGVWaitDisPlay1.DisplayText = RGVWaitTimeLed(record);
LedDisplayE.RGVWaitDisPlay1.ForeColor = RGVTimeBackColor(record); LedDisplayE.RGVWaitDisPlay1.ForeColor = RGVTimeBackColor(record);
break; break;
case 2: case 2:
if (HslAlarmE.HslLanternAlarm2.NormalColor == Color.DarkGray)
{
break;
}
LedDisplayE.RGVWaitDisPlay2.DisplayText = RGVWaitTimeLed(record); LedDisplayE.RGVWaitDisPlay2.DisplayText = RGVWaitTimeLed(record);
LedDisplayE.RGVWaitDisPlay2.ForeColor = RGVTimeBackColor(record); LedDisplayE.RGVWaitDisPlay2.ForeColor = RGVTimeBackColor(record);
break; break;
case 3: case 3:
if (HslAlarmE.HslLanternAlarm3.NormalColor == Color.DarkGray)
{
break;
}
LedDisplayE.RGVWaitDisPlay3.DisplayText = RGVWaitTimeLed(record); LedDisplayE.RGVWaitDisPlay3.DisplayText = RGVWaitTimeLed(record);
LedDisplayE.RGVWaitDisPlay3.ForeColor = RGVTimeBackColor(record); LedDisplayE.RGVWaitDisPlay3.ForeColor = RGVTimeBackColor(record);
break; break;
case 4: case 4:
if (HslAlarmE.HslLanternAlarm4.NormalColor == Color.DarkGray)
{
break;
}
LedDisplayE.RGVWaitDisPlay4.DisplayText = RGVWaitTimeLed(record); LedDisplayE.RGVWaitDisPlay4.DisplayText = RGVWaitTimeLed(record);
LedDisplayE.RGVWaitDisPlay4.ForeColor = RGVTimeBackColor(record); LedDisplayE.RGVWaitDisPlay4.ForeColor = RGVTimeBackColor(record);
break; break;
case 5: case 5:
if (HslAlarmE.HslLanternAlarm5.NormalColor == Color.DarkGray)
{
break;
}
LedDisplayE.RGVWaitDisPlay5.DisplayText = RGVWaitTimeLed(record); LedDisplayE.RGVWaitDisPlay5.DisplayText = RGVWaitTimeLed(record);
LedDisplayE.RGVWaitDisPlay5.ForeColor = RGVTimeBackColor(record); LedDisplayE.RGVWaitDisPlay5.ForeColor = RGVTimeBackColor(record);
break; break;
case 6: case 6:
if (HslAlarmE.HslLanternAlarm6.NormalColor == Color.DarkGray)
{
break;
}
LedDisplayE.RGVWaitDisPlay6.DisplayText = RGVWaitTimeLed(record); LedDisplayE.RGVWaitDisPlay6.DisplayText = RGVWaitTimeLed(record);
LedDisplayE.RGVWaitDisPlay6.ForeColor = RGVTimeBackColor(record); LedDisplayE.RGVWaitDisPlay6.ForeColor = RGVTimeBackColor(record);
break; break;
case 7: case 7:
if (HslAlarmE.HslLanternAlarm7.NormalColor == Color.DarkGray)
{
break;
}
LedDisplayE.RGVWaitDisPlay7.DisplayText = RGVWaitTimeLed(record); LedDisplayE.RGVWaitDisPlay7.DisplayText = RGVWaitTimeLed(record);
LedDisplayE.RGVWaitDisPlay7.ForeColor = RGVTimeBackColor(record); LedDisplayE.RGVWaitDisPlay7.ForeColor = RGVTimeBackColor(record);
break; break;
case 8: case 8:
if (HslAlarmE.HslLanternAlarm8.NormalColor == Color.DarkGray)
{
break;
}
LedDisplayE.RGVWaitDisPlay8.DisplayText = RGVWaitTimeLed(record); LedDisplayE.RGVWaitDisPlay8.DisplayText = RGVWaitTimeLed(record);
LedDisplayE.RGVWaitDisPlay8.ForeColor = RGVTimeBackColor(record); LedDisplayE.RGVWaitDisPlay8.ForeColor = RGVTimeBackColor(record);
break; break;

Loading…
Cancel
Save