diff --git a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs index 83b0432..af3ed28 100644 --- a/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs +++ b/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MainDetailControl/MainDetailControlAction.cs @@ -237,10 +237,10 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl SetHslLanternSimple(hslLanternSimpleEntity.HslLanternSimpleM3, MinAnPlc.ReqD3); SetHslLanternSimple(hslLanternSimpleEntity.HslLanternSimpleM4, MinAnPlc.ReqD4); - SetHslLanternSimple(hslLanternSimpleEntity.HslLanternSimpleReq1, MinAnPlc.Heir1); - SetHslLanternSimple(hslLanternSimpleEntity.HslLanternSimpleReq2, MinAnPlc.Heir2); - SetHslLanternSimple(hslLanternSimpleEntity.HslLanternSimpleReq3, MinAnPlc.Heir3); - SetHslLanternSimple(hslLanternSimpleEntity.HslLanternSimpleReq4, MinAnPlc.Heir4); + SetHslLanternSimpleRequest(hslLanternSimpleEntity.HslLanternSimpleReq1, MinAnPlc.Heir1); + SetHslLanternSimpleRequest(hslLanternSimpleEntity.HslLanternSimpleReq2, MinAnPlc.Heir2); + SetHslLanternSimpleRequest(hslLanternSimpleEntity.HslLanternSimpleReq3, MinAnPlc.Heir3); + SetHslLanternSimpleRequest(hslLanternSimpleEntity.HslLanternSimpleReq4, MinAnPlc.Heir4); @@ -2464,6 +2464,21 @@ namespace Mesnac.Action.ChemicalWeighing.MainDetailControl } + + public void SetHslLanternSimpleRequest(HslLanternSimple lanternSimple, bool su) + { + + if (su == true) + { + lanternSimple.LanternBackground = Color.SlateBlue; + } + else + { + lanternSimple.LanternBackground = Color.Transparent; + } + + } + //HslLanternSimpleEntity private void FillControlHslLanternAlarm()