From 66539df917c69bd025e6777a27022e14004cc8e0 Mon Sep 17 00:00:00 2001 From: Admin Date: Mon, 16 Mar 2026 19:35:27 +0800 Subject: [PATCH] 1 --- ViewModel/MainWindowVM.cs | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/ViewModel/MainWindowVM.cs b/ViewModel/MainWindowVM.cs index 1871baa..b8e6003 100644 --- a/ViewModel/MainWindowVM.cs +++ b/ViewModel/MainWindowVM.cs @@ -2433,7 +2433,7 @@ namespace ViewModel } else { - + if (CurrXizui.Number == 1) { CacheLineList[0].State.StatusBackground = ColorStr.Green; @@ -2442,9 +2442,9 @@ namespace ViewModel { ProduceLineList[0].State.StatusBackground = ColorStr.Green; } - + } - + CurrXizui.State = new ShowInfo(); ClearBox = false; //清料完成 @@ -4407,7 +4407,7 @@ namespace ViewModel // return; //} - + ShowStatu.StatusBackground = ColorStr.Yellow; ShowStatu.StatusForeground = ColorStr.Red; @@ -4444,7 +4444,7 @@ namespace ViewModel { try { - + //if (ExcepNoIng) //{ // return; @@ -4452,15 +4452,19 @@ namespace ViewModel if (ShowStatu.StatuInfo == showMag) { - ShowStatu.StatusBackground = ColorStr.Green; - ShowStatu.StatuInfo = "运行中"; - } - else { + if (RunStatu == RunStatuEnum.Normal) + { + ShowStatu.StatusBackground = ColorStr.Green; + ShowStatu.StatuInfo = "运行中"; + } + else + { - ShowStatu.StatuInfo = "停止中"; + ShowStatu.StatuInfo = "停止中"; + } } - + ShowStatu.StatusForeground = ColorStr.Black; ShowStatu.StatuInfo = showMag; @@ -5436,7 +5440,7 @@ namespace ViewModel //后站要料,出料 if (NextStationReceive.RequestCache && NextStationReceive.Running) { - + MyFlow.RunStep++; MyFlow.RunTime = DateTime.Now; }