diff --git a/Aucma.Core.BoxFoam/ViewModels/MainWindowViewModel.cs b/Aucma.Core.BoxFoam/ViewModels/MainWindowViewModel.cs index 5e6ed735..81e02125 100644 --- a/Aucma.Core.BoxFoam/ViewModels/MainWindowViewModel.cs +++ b/Aucma.Core.BoxFoam/ViewModels/MainWindowViewModel.cs @@ -117,10 +117,13 @@ namespace Aucma.Core.BoxFoam.ViewModels } } - for (int i = PlcUIColor.Count - 1; i < 4; i++) + else { - PlcUIColor.Add("Red"); - PlcUIIcon.Add("Assets/Images/Red.png"); + PlcUIColor.Clear(); + PlcState(false); + PlcState(false); + PlcState(false); + PlcState(false); } } /// diff --git a/Aucma.Core.ProductOffLine/Business/offLineBusiness.cs b/Aucma.Core.ProductOffLine/Business/offLineBusiness.cs index 6065bd3e..23e85517 100644 --- a/Aucma.Core.ProductOffLine/Business/offLineBusiness.cs +++ b/Aucma.Core.ProductOffLine/Business/offLineBusiness.cs @@ -148,7 +148,7 @@ namespace Aucma.Core.ProductOffLine.Business if (plcResult) { TempOffLineInfo1.MsgInfo = TempOffLineInfo1.MsgInfo + "plc放行成功"; - TempOffLineInfo1.MsgAlarmFlag = true; + //界面刷新 TempOffLineInfo1.ProductRefreshFlag = true; } @@ -181,7 +181,7 @@ namespace Aucma.Core.ProductOffLine.Business if (plcResult) { TempOffLineInfo2.MsgInfo = TempOffLineInfo2.MsgInfo + "plc放行成功"; - TempOffLineInfo2.MsgAlarmFlag = true; + //界面刷新 TempOffLineInfo2.ProductRefreshFlag = true; }