sss
This commit is contained in:
@@ -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
|
||||
/// 当前百分比
|
||||
/// </summary>
|
||||
[ObservableProperty]
|
||||
public double currentPercent = 10;
|
||||
public double currentPercent = 40;
|
||||
|
||||
/// <summary>
|
||||
/// 当前SOP动作
|
||||
|
||||
Reference in New Issue
Block a user