Browse Source

morkBF

样式分支
NXX 2 years ago
parent
commit
13c72bc803
3 changed files with 10 additions and 11 deletions
  1. +5
    -5
      BPASmartClient.MorkBF/Control_MorkBF.cs
  2. +0
    -1
      BPASmartClient.MorkBF/GVL_MorkBF.cs
  3. +5
    -5
      BPASmartClient.MorkBF/Model/DataReport.cs

+ 5
- 5
BPASmartClient.MorkBF/Control_MorkBF.cs View File

@@ -1124,8 +1124,8 @@ namespace BPASmartClient.MorkBF
MaxWok_Dishes_2 = "海鲜大餐",
MaxWok_Task_1 = ((PotState)dataReport.FirePot1_PotState).ToString(),
MaxWok_Task_2 = ((PotState)dataReport.FirePot2_PotState).ToString(),
MaxWok_Process_1 = SetFirePotPorcess(new Random().Next(0,6)),
MaxWok_Process_2 = SetFirePotPorcess(dataReport.FirePot2_PotState),
MaxWok_Process_1 = SetFirePotPorcess(new Random().Next(0,11)),
MaxWok_Process_2 = SetFirePotPorcess(new Random().Next(0, 11)),
MaxWok_HeatGear_1 = morkBF.FirePot1_FireGear.ToString(),
MaxWok_HeatGear_2 = morkBF.FirePot2_FireGear.ToString(),
MaxWok_StirGear_1 = morkBF.FirePot1_StirGear.ToString(),
@@ -1176,12 +1176,12 @@ namespace BPASmartClient.MorkBF
{
for (int i = 0; i < dataReport.processModels.Count; i++)
{
if (i == c - 1)
if (i == c)
{
dataReport.processModels[i].Status = ProcessStatus.正在执行;
}
else if( i<c-1) dataReport.processModels[i].Status = ProcessStatus.执行完成;
else if (i > c - 1) dataReport.processModels[i].Status = ProcessStatus.未执行;
else if( i<c) dataReport.processModels[i].Status = ProcessStatus.执行完成;
else if (i > c ) dataReport.processModels[i].Status = ProcessStatus.未执行;
}
}
}


+ 0
- 1
BPASmartClient.MorkBF/GVL_MorkBF.cs View File

@@ -389,4 +389,3 @@ namespace BPASmartClient.MorkBF
public DateTime FirePan2_Date;
}
}
#endregion

+ 5
- 5
BPASmartClient.MorkBF/Model/DataReport.cs View File

@@ -22,11 +22,11 @@ namespace BPASmartClient.MorkBF.Model

public DataReport()
{
processModels.Add( new ProcessModel() { Id = 1, Name = "开始制作", Status = ProcessStatus.未执行 });
processModels.Add(new ProcessModel() { Id = 2, Name = "热油", Status = ProcessStatus.未执行 });
processModels.Add(new ProcessModel() { Id = 3, Name = "炒制中", Status = ProcessStatus.未执行 });
processModels.Add(new ProcessModel() { Id = 4, Name = "制作完成", Status = ProcessStatus.未执行 });
processModels.Add(new ProcessModel() { Id = 5, Name = "出餐完成", Status = ProcessStatus.未执行 });
processModels.Add( new ProcessModel() { Id = 0, Name = "开始", Status = ProcessStatus.未执行 });
processModels.Add(new ProcessModel() { Id = 1, Name = "热油", Status = ProcessStatus.未执行 });
processModels.Add(new ProcessModel() { Id = 2, Name = "炒制", Status = ProcessStatus.未执行 });
processModels.Add(new ProcessModel() { Id = 3, Name = "完成", Status = ProcessStatus.未执行 });
processModels.Add(new ProcessModel() { Id = 4, Name = "出餐", Status = ProcessStatus.未执行 });

}


Loading…
Cancel
Save