Pārlūkot izejas kodu

更新

JXJAgvReake
Mr_z pirms 1 gada
vecāks
revīzija
c3d46b40f0
1 mainītis faili ar 9 papildinājumiem un 9 dzēšanām
  1. +9
    -9
      DosingSystem/ViewModel/RecipeControlViewModel.cs

+ 9
- 9
DosingSystem/ViewModel/RecipeControlViewModel.cs Parādīt failu

@@ -732,13 +732,13 @@ namespace BPASmartClient.DosingSystem.ViewModel
if (recIndex >= 0 && recIndex < recipeProcesses.Count)
{
int index = recipeProcesses.ElementAt(recIndex).RawMaterials.ToList().FindIndex(p => p.RawMaterialName == tempRawMaterialName);
//if (index >= 0 && index < recipeProcesses.ElementAt(recIndex).RawMaterials.Count)
//{
// //测试使用
// recipeProcesses.ElementAt(recIndex).RawMaterials.ElementAt(index).RecipeStatus = RunStatus;
//}
if (index >= 0 && index < recipeProcesses.ElementAt(recIndex).RawMaterials.Count)
{
//测试使用
recipeProcesses.ElementAt(recIndex).RawMaterials.ElementAt(index).RecipeStatus = RunStatus;
}
for (int j = 0; j < GlobalDevice.PlcData.IsAllowIngredients.Length; j++)
{
if (GlobalDevice.PlcData.IsAllowIngredients[j])
@@ -813,14 +813,14 @@ namespace BPASmartClient.DosingSystem.ViewModel
{
StockStatus.ElementAt(St_index).IssueStatus = 1;
DeviceInquire.GetInstance.GetDevice(Recipes.ElementAt(i).RawMaterials.ElementAt(loc).DeviceIp).Start(weight);
recipeProcesses.ElementAt(recIndex).RawMaterials.ElementAt(loc).RecipeStatus = 2;
MessageNotify.GetInstance.ShowRunLog($"设备执行状态:{rrr}");
MessageNotify.GetInstance.ShowRunLog($"柔性味魔方{Recipes.ElementAt(i).RawMaterials.ElementAt(loc).DeviceIp},开始出料");
}
if (recipeProcesses.ElementAt(recIndex).RawMaterials.ElementAt(loc).RecipeStatus == 3 && StockStatus.ElementAt(St_index).IssueStatus == 1)
{
//GlobalDevice.PlcData.IsAllowIngredients[j] = false;//测试使用
recipeProcesses.ElementAt(recIndex).RawMaterials.ElementAt(loc).RecipeStatus = 3;
ComCount++;
StockStatus.ElementAt(St_index).IssueStatus = 2;
DeviceInquire.GetInstance.GetDevice(Recipes.ElementAt(i).RawMaterials.ElementAt(loc).DeviceIp).StatusReset();


Notiek ielāde…
Atcelt
Saglabāt