|
|
@@ -242,16 +242,17 @@ namespace FurnaceRT.Equipments.PMs
|
|
|
if (item != null && item.Item == MaintenanceItemEnum.BoatRecipeThickness1.ToString())
|
|
|
{
|
|
|
var currentValue = Singleton<ScheduleMaintenanceDataManager>.Instance.GetItem(item.Item).CurrentValue;
|
|
|
- if ((currentValue + thickness) <= 0)
|
|
|
+ var newData = (currentValue + thickness);
|
|
|
+ if (newData <= 0)
|
|
|
{
|
|
|
Singleton<ScheduleMaintenanceDataManager>.Instance.SetValue(item.Item, 0);
|
|
|
currentValue = 0;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- Singleton<ScheduleMaintenanceDataManager>.Instance.Increase(item.Item, thickness);
|
|
|
+ Singleton<ScheduleMaintenanceDataManager>.Instance.SetValue(item.Item, newData);
|
|
|
}
|
|
|
- SetCurrentFilmThickness(currentValue);
|
|
|
+ SetCurrentFilmThickness(newData);
|
|
|
|
|
|
}
|
|
|
}
|
|
|
@@ -262,7 +263,7 @@ namespace FurnaceRT.Equipments.PMs
|
|
|
/// <param name="recipeName"></param>
|
|
|
public void UpdateRecipeStepGroupThickness(string stepName, float thickness)
|
|
|
{
|
|
|
- if (string.IsNullOrEmpty(stepName) )
|
|
|
+ if (string.IsNullOrEmpty(stepName))
|
|
|
return;
|
|
|
var stepNo = stepName.Split(':').FirstOrDefault();
|
|
|
var list = _dbRecords
|
|
|
@@ -338,8 +339,14 @@ namespace FurnaceRT.Equipments.PMs
|
|
|
continue;
|
|
|
|
|
|
Singleton<ScheduleMaintenanceDataManager>.Instance.Increase(item.Item);
|
|
|
- }
|
|
|
+ if (item.Item == MaintenanceItemEnum.RecipeStepExecuteFreq2.ToString())
|
|
|
+ {
|
|
|
+ var currentValue = Singleton<ScheduleMaintenanceDataManager>.Instance.GetItem(item.Item).CurrentValue;
|
|
|
+ SetDryClearCount(currentValue);
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
+ }
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 根据RecipeName统计 Recipe执行 累计次数
|