sss
This commit is contained in:
@@ -92,18 +92,18 @@ namespace SamplePreSystem.UI.ViewModel.Monitor
|
|||||||
{
|
{
|
||||||
if (CurrentstandardActionList.Count <= 0) return;
|
if (CurrentstandardActionList.Count <= 0) return;
|
||||||
|
|
||||||
var item = CurrentstandardActionList.Where(p => p.process_id == actionID && p.ExecFinishFlag == false).FirstOrDefault();
|
//var item = CurrentstandardActionList.Where(p => p.process_id == actionID && p.ExecFinishFlag == false).FirstOrDefault();
|
||||||
if (item != null)
|
//if (item != null)
|
||||||
{
|
//{
|
||||||
item.ExecFinishFlag = true;
|
// item.ExecFinishFlag = true;
|
||||||
|
|
||||||
int finishcount = CurrentstandardActionList.Count(p => p.ExecFinishFlag == true);
|
// int finishcount = CurrentstandardActionList.Count(p => p.ExecFinishFlag == true);
|
||||||
int totalcount = CurrentstandardActionList.Count;
|
// 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>
|
/// </summary>
|
||||||
[ObservableProperty]
|
[ObservableProperty]
|
||||||
public double currentPercent = 10;
|
public double currentPercent = 40;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当前SOP动作
|
/// 当前SOP动作
|
||||||
|
|||||||
Reference in New Issue
Block a user