diff --git a/SamplePreSystem.UI/ViewModel/Monitor/MonitorViewModel.cs b/SamplePreSystem.UI/ViewModel/Monitor/MonitorViewModel.cs index be9ead6..1c83548 100644 --- a/SamplePreSystem.UI/ViewModel/Monitor/MonitorViewModel.cs +++ b/SamplePreSystem.UI/ViewModel/Monitor/MonitorViewModel.cs @@ -92,18 +92,18 @@ namespace SamplePreSystem.UI.ViewModel.Monitor { if (CurrentstandardActionList.Count <= 0) return; - var item = CurrentstandardActionList.Where(p => p.process_id == actionID && p.ExecFinishFlag == false).FirstOrDefault(); - if (item != null) - { - item.ExecFinishFlag = true; + //var item = CurrentstandardActionList.Where(p => p.process_id == actionID && p.ExecFinishFlag == false).FirstOrDefault(); + //if (item != null) + //{ + // item.ExecFinishFlag = true; - int finishcount = CurrentstandardActionList.Count(p => p.ExecFinishFlag == true); - int totalcount = CurrentstandardActionList.Count; + // int finishcount = CurrentstandardActionList.Count(p => p.ExecFinishFlag == true); + // int totalcount = CurrentstandardActionList.Count; - double percent = (float)finishcount / totalcount; + // double percent = (float)finishcount / totalcount; - CurrentPercent = Math.Round(percent * 100,0); - } + // CurrentPercent = Math.Round(percent * 100,0); + //} } @@ -118,7 +118,7 @@ namespace SamplePreSystem.UI.ViewModel.Monitor /// 当前百分比 /// [ObservableProperty] - public double currentPercent = 10; + public double currentPercent = 40; /// /// 当前SOP动作