|
|
@@ -3723,7 +3723,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
{ |
|
|
|
if (result.FlowProcess.fpModels.Count > 0) |
|
|
|
{ |
|
|
|
FryPotMonitorManage.GetInstance.fryThree.OilCapacity = result.FlowProcess.fpModels.FirstOrDefault(p => p.FryMaterialNum == (Json<FlowProcessNames>.Data.NameId.FirstOrDefault(s => s.Value == 1)).Key).FryWeight; |
|
|
|
FryPotMonitorManage.GetInstance.fryThree.OilCapacity = result.FlowProcess.fpModels.FirstOrDefault(p => p.FryMaterialNum == (Json<FlowProcessNames>.Data.NameId.FirstOrDefault(s => s.Value == 1)).Key)?.FryWeight; |
|
|
|
FryPotMonitorManage.GetInstance.fryThree.TotalOilCapactiy += FryPotMonitorManage.GetInstance.fryThree.OilCapacity; |
|
|
|
FryPotRecipeSetDown(headNum, result);//炒锅工艺数据下发 |
|
|
|
} |
|
|
@@ -3738,6 +3738,8 @@ namespace FryPot_DosingSystem.Control |
|
|
|
} |
|
|
|
catch (Exception) |
|
|
|
{ |
|
|
|
LThreeRecipeQuene.Clear(); |
|
|
|
Application.Current.Dispatcher.Invoke(new Action(() => { NoticeDemoViewModel.OpenMsg(EnumPromptType.Warn, App.MainWindow, "提示", $"炒锅工艺异常,配方下发失败"); })); |
|
|
|
return; |
|
|
|
|
|
|
|
//throw; |
|
|
@@ -3768,7 +3770,12 @@ namespace FryPot_DosingSystem.Control |
|
|
|
LThreeRecipeQuene.Clear(); |
|
|
|
|
|
|
|
} |
|
|
|
else if(LThreeRecipeQuene.Count > 0) |
|
|
|
{ |
|
|
|
Application.Current.Dispatcher.Invoke(new Action(() => { NoticeDemoViewModel.OpenMsg(EnumPromptType.Warn, App.MainWindow, "提示", $"配方下发失败"); })); |
|
|
|
LThreeRecipeQuene.Clear(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
/// <summary> |
|
|
@@ -3925,7 +3932,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
{ |
|
|
|
if (result.FlowProcess.fpModels.Count > 0) |
|
|
|
{ |
|
|
|
FryPotMonitorManage.GetInstance.fryTwo.OilCapacity = result.FlowProcess.fpModels.FirstOrDefault(p => p.FryMaterialNum == (Json<FlowProcessNames>.Data.NameId.FirstOrDefault(s => s.Value == 1)).Key).FryWeight; |
|
|
|
FryPotMonitorManage.GetInstance.fryTwo.OilCapacity = result.FlowProcess.fpModels.FirstOrDefault(p => p.FryMaterialNum == (Json<FlowProcessNames>.Data.NameId.FirstOrDefault(s => s.Value == 1)).Key)?.FryWeight; |
|
|
|
FryPotMonitorManage.GetInstance.fryTwo.TotalOilCapactiy += FryPotMonitorManage.GetInstance.fryTwo.OilCapacity; |
|
|
|
FryPotRecipeSetDown(headNum, result);//炒锅工艺下发 |
|
|
|
} |
|
|
@@ -3940,6 +3947,8 @@ namespace FryPot_DosingSystem.Control |
|
|
|
} |
|
|
|
catch (Exception) |
|
|
|
{ |
|
|
|
LTwoRecipeQuene.Clear(); |
|
|
|
Application.Current.Dispatcher.Invoke(new Action(() => { NoticeDemoViewModel.OpenMsg(EnumPromptType.Warn, App.MainWindow, "提示", $"炒锅工艺异常,配方下发失败"); })); |
|
|
|
return; |
|
|
|
// throw; |
|
|
|
} |
|
|
@@ -3950,7 +3959,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
{ |
|
|
|
if (result.FlowProcess.fpModels.Count > 0) |
|
|
|
{ |
|
|
|
FryPotMonitorManage.GetInstance.fryFive.OilCapacity = result.FlowProcess.fpModels.FirstOrDefault(p => p.FryMaterialNum == (Json<FlowProcessNames>.Data.NameId.FirstOrDefault(s => s.Value == 1)).Key).FryWeight; |
|
|
|
FryPotMonitorManage.GetInstance.fryFive.OilCapacity = result.FlowProcess.fpModels.FirstOrDefault(p => p.FryMaterialNum == (Json<FlowProcessNames>.Data.NameId.FirstOrDefault(s => s.Value == 1)).Key)?.FryWeight; |
|
|
|
FryPotMonitorManage.GetInstance.fryFive.TotalOilCapactiy += FryPotMonitorManage.GetInstance.fryFive.OilCapacity; |
|
|
|
FryPotRecipeSetDown(headNum, result);//炒锅工艺下发 |
|
|
|
} |
|
|
@@ -3965,6 +3974,8 @@ namespace FryPot_DosingSystem.Control |
|
|
|
} |
|
|
|
catch (Exception) |
|
|
|
{ |
|
|
|
LTwoRecipeQuene.Clear(); |
|
|
|
Application.Current.Dispatcher.Invoke(new Action(() => { NoticeDemoViewModel.OpenMsg(EnumPromptType.Warn, App.MainWindow, "提示", $"炒锅工艺异常,配方下发失败"); })); |
|
|
|
return; |
|
|
|
// throw; |
|
|
|
} |
|
|
@@ -3993,6 +4004,11 @@ namespace FryPot_DosingSystem.Control |
|
|
|
Application.Current.Dispatcher.Invoke(new Action(() => { NoticeDemoViewModel.OpenMsg(EnumPromptType.Warn, App.MainWindow, "提示", $"2号滚筒线处于集中洗桶模式,无法下发配方"); })); |
|
|
|
LTwoRecipeQuene.Clear(); |
|
|
|
} |
|
|
|
else if(LTwoRecipeQuene.Count > 0) |
|
|
|
{ |
|
|
|
Application.Current.Dispatcher.Invoke(new Action(() => { NoticeDemoViewModel.OpenMsg(EnumPromptType.Warn, App.MainWindow, "提示", $"配方下发失败"); })); |
|
|
|
LTwoRecipeQuene.Clear(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
@@ -4144,7 +4160,8 @@ namespace FryPot_DosingSystem.Control |
|
|
|
{ |
|
|
|
if (result.FlowProcess.fpModels.Count > 0) |
|
|
|
{ |
|
|
|
FryPotMonitorManage.GetInstance.fryOne.OilCapacity = result.FlowProcess.fpModels.FirstOrDefault(p => p.FryMaterialNum == (Json<FlowProcessNames>.Data.NameId.FirstOrDefault(s => s.Value == 1)).Key).FryWeight; |
|
|
|
|
|
|
|
FryPotMonitorManage.GetInstance.fryOne.OilCapacity = result.FlowProcess.fpModels.FirstOrDefault(p => p.FryMaterialNum == (Json<FlowProcessNames>.Data.NameId.FirstOrDefault(s => s.Value == 1)).Key)?.FryWeight; |
|
|
|
FryPotMonitorManage.GetInstance.fryOne.TotalOilCapactiy += FryPotMonitorManage.GetInstance.fryOne.OilCapacity; |
|
|
|
FryPotRecipeSetDown(headNum, result);//炒锅工艺下发 |
|
|
|
} |
|
|
@@ -4159,6 +4176,8 @@ namespace FryPot_DosingSystem.Control |
|
|
|
} |
|
|
|
catch (Exception) |
|
|
|
{ |
|
|
|
RecipeQuene.Clear(); |
|
|
|
Application.Current.Dispatcher.Invoke(new Action(() => { NoticeDemoViewModel.OpenMsg(EnumPromptType.Warn, App.MainWindow, "提示", $"炒股工艺异常,配方下发失败"); })); |
|
|
|
return; |
|
|
|
// throw; |
|
|
|
} |
|
|
@@ -4169,7 +4188,7 @@ namespace FryPot_DosingSystem.Control |
|
|
|
{ |
|
|
|
if (result.FlowProcess.fpModels.Count > 0) |
|
|
|
{ |
|
|
|
FryPotMonitorManage.GetInstance.fryFour.OilCapacity = result.FlowProcess.fpModels.FirstOrDefault(p => p.FryMaterialNum == (Json<FlowProcessNames>.Data.NameId.FirstOrDefault(s => s.Value == 1)).Key).FryWeight; |
|
|
|
FryPotMonitorManage.GetInstance.fryFour.OilCapacity = result.FlowProcess.fpModels.FirstOrDefault(p => p.FryMaterialNum == (Json<FlowProcessNames>.Data.NameId.FirstOrDefault(s => s.Value == 1)).Key)?.FryWeight; |
|
|
|
FryPotMonitorManage.GetInstance.fryFour.TotalOilCapactiy += FryPotMonitorManage.GetInstance.fryFour.OilCapacity; |
|
|
|
FryPotRecipeSetDown(headNum, result);//炒锅工艺下发 |
|
|
|
} |
|
|
@@ -4184,6 +4203,8 @@ namespace FryPot_DosingSystem.Control |
|
|
|
} |
|
|
|
catch (Exception) |
|
|
|
{ |
|
|
|
RecipeQuene.Clear(); |
|
|
|
Application.Current.Dispatcher.Invoke(new Action(() => { NoticeDemoViewModel.OpenMsg(EnumPromptType.Warn, App.MainWindow, "提示", $"炒锅工艺异常,配方下发失败"); })); |
|
|
|
return; |
|
|
|
//throw; |
|
|
|
} |
|
|
@@ -4210,7 +4231,12 @@ namespace FryPot_DosingSystem.Control |
|
|
|
Application.Current.Dispatcher.Invoke(new Action(() => { NoticeDemoViewModel.OpenMsg(EnumPromptType.Warn, App.MainWindow, "提示", $"1号滚筒线处于集中洗桶模式,无法下发配方"); })); |
|
|
|
RecipeQuene.Clear(); |
|
|
|
} |
|
|
|
|
|
|
|
else if (RecipeQuene.Count>0) |
|
|
|
{ |
|
|
|
Application.Current.Dispatcher.Invoke(new Action(() => { NoticeDemoViewModel.OpenMsg(EnumPromptType.Warn, App.MainWindow, "提示", $"配方下发失败"); })); |
|
|
|
RecipeQuene.Clear(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|