diff --git a/BPASmartClient.CustomResource/RecDictionarys/RecComboBox.xaml b/BPASmartClient.CustomResource/RecDictionarys/RecComboBox.xaml
index 2eeb9850..1f8882e5 100644
--- a/BPASmartClient.CustomResource/RecDictionarys/RecComboBox.xaml
+++ b/BPASmartClient.CustomResource/RecDictionarys/RecComboBox.xaml
@@ -202,4 +202,147 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/BPASmartClient.Model/FoodMenuModel.cs b/BPASmartClient.Model/FoodMenuModel.cs
index fdf8f812..6226543a 100644
--- a/BPASmartClient.Model/FoodMenuModel.cs
+++ b/BPASmartClient.Model/FoodMenuModel.cs
@@ -20,8 +20,9 @@ namespace BPASmartClient.Model
private int _bowLoc;
public int NoodleLoc { get { return _noodleLoc; } set { _noodleLoc = value; OnPropertyChanged(); } }
private int _noodleLoc;
- public double Frytime { get { return _frytime; } set { _frytime = value; OnPropertyChanged(); } }
- private double _frytime;
-
+ public int FrytimeMin { get { return _frytimeMin; } set { _frytimeMin = value; OnPropertyChanged(); } }
+ private int _frytimeMin;
+ public int FrytimeS { get { return _frytimeS; } set { _frytimeS = value; OnPropertyChanged(); } }
+ private int _frytimeS;
}
}
diff --git a/BPASmartClient.Model/订单/MorksSimorderModel.cs b/BPASmartClient.Model/订单/MorksSimorderModel.cs
index fe8c35fb..d3a98251 100644
--- a/BPASmartClient.Model/订单/MorksSimorderModel.cs
+++ b/BPASmartClient.Model/订单/MorksSimorderModel.cs
@@ -10,6 +10,7 @@ namespace BPASmartClient.Model
{
public int NoodleLoc { get; set ; }
public int Bowloc { get; set; }
- public double FryTime { get; set; }
+ public int FryTimeS { get; set; }
+ public int FryTimeMin { get; set; }
}
}
diff --git a/BPASmartClient.MorkSUpgradedVer/Control_MorkSUpgradedVer.cs b/BPASmartClient.MorkSUpgradedVer/Control_MorkSUpgradedVer.cs
index 70c2a924..121d016d 100644
--- a/BPASmartClient.MorkSUpgradedVer/Control_MorkSUpgradedVer.cs
+++ b/BPASmartClient.MorkSUpgradedVer/Control_MorkSUpgradedVer.cs
@@ -43,24 +43,42 @@ namespace BPASmartClient.MorkSUpgradedVer
{
if (FoodMenuViewModel.orderStatusLists.Count > 0)
{
- foreach (var item in FoodMenuViewModel.orderStatusLists)
+ for (int i = 0; i < FoodMenuViewModel.orderStatusLists.Count; i++)
{
- if (string.IsNullOrEmpty(item.OrderPush.SuborderId))
+ var res = FoodMenuViewModel.orderStatusLists.FirstOrDefault(o => o.OrderPush.SortNum == 1+i);
+ if (res != null)
{
- item.OrderPush.SuborderId = Guid.NewGuid().ToString();
- var res = mORKS.RBTakeNoodleTask.FirstOrDefault(o => o.SuborderId == item.OrderPush.SuborderId);
- if (res == null)
+ if (string.IsNullOrEmpty(res.OrderPush.SuborderId))
{
- mORKS.RBTakeNoodleTask.Enqueue(new OrderLocInfo() { Loc = (ushort)Json.Data.localOrder[item.OrderPush.GoodsName].NoodleLoc, SuborderId = item.OrderPush.SuborderId });
- MessageLog.GetInstance.Show($"添加订单:面条位置【{Json.Data.localOrder[item.OrderPush.GoodsName].NoodleLoc}】");
- mORKS.TakeBowlTask.Enqueue(new OrderLocInfo() { Loc = (ushort)Json.Data.localOrder[item.OrderPush.GoodsName].Bowloc, SuborderId = item.OrderPush.SuborderId });
- MessageLog.GetInstance.Show($"添加订单:碗位置【{Json.Data.localOrder[item.OrderPush.GoodsName].Bowloc}】");
+ NoodOrderCtrl.GetInstance.WorkList(res);
+ mORKS.RBTakeNoodleTask.Enqueue(new OrderLocInfo() { Loc = (ushort)Json.Data.localOrder[res.OrderPush.GoodsName].NoodleLoc, SuborderId = res.OrderPush.SuborderId });
+ MessageLog.GetInstance.Show($"添加订单:面条位置【{Json.Data.localOrder[res.OrderPush.GoodsName].NoodleLoc}】");
+ mORKS.TakeBowlTask.Enqueue(new OrderLocInfo() { Loc = (ushort)Json.Data.localOrder[res.OrderPush.GoodsName].Bowloc, SuborderId = res.OrderPush.SuborderId });
+ MessageLog.GetInstance.Show($"添加订单:碗位置【{Json.Data.localOrder[res.OrderPush.GoodsName].Bowloc}】");
Global.EnableLocalSimOrder = true;
}
-
}
-
+
}
+ //foreach (var item in FoodMenuViewModel.orderStatusLists)
+ //{
+ // if (string.IsNullOrEmpty(item.OrderPush.SuborderId))
+ // {
+ // item.OrderPush.SortNum = FoodMenuViewModel.SortNum++;
+ // item.OrderPush.SuborderId = Guid.NewGuid().ToString();
+ // var res = mORKS.RBTakeNoodleTask.FirstOrDefault(o => o.SuborderId == item.OrderPush.SuborderId);
+ // if (res == null)
+ // {
+ // mORKS.RBTakeNoodleTask.Enqueue(new OrderLocInfo() { Loc = (ushort)Json.Data.localOrder[item.OrderPush.GoodsName].NoodleLoc, SuborderId = item.OrderPush.SuborderId });
+ // MessageLog.GetInstance.Show($"添加订单:面条位置【{Json.Data.localOrder[item.OrderPush.GoodsName].NoodleLoc}】");
+ // mORKS.TakeBowlTask.Enqueue(new OrderLocInfo() { Loc = (ushort)Json.Data.localOrder[item.OrderPush.GoodsName].Bowloc, SuborderId = item.OrderPush.SuborderId });
+ // MessageLog.GetInstance.Show($"添加订单:碗位置【{Json.Data.localOrder[item.OrderPush.GoodsName].Bowloc}】");
+ // Global.EnableLocalSimOrder = true;
+ // }
+
+ // }
+
+ //}
}
}), "EnableForOrder");
@@ -785,8 +803,8 @@ namespace BPASmartClient.MorkSUpgradedVer
List values = new List();
if (Json.Data.localOrder.ContainsKey(re.OrderPush.GoodsName))
{
- values.Add((ushort)Json.Data.localOrder[re.OrderPush.GoodsName].FryTime);
- values.Add(0);
+ values.Add((ushort)Json.Data.localOrder[re.OrderPush.GoodsName].FryTimeMin);
+ values.Add((ushort)Json.Data.localOrder[re.OrderPush.GoodsName].FryTimeS);
}
else
{
diff --git a/BPASmartClient.ViewModel/EditRecipeViewModel.cs b/BPASmartClient.ViewModel/EditRecipeViewModel.cs
index 983facd5..d97b4f26 100644
--- a/BPASmartClient.ViewModel/EditRecipeViewModel.cs
+++ b/BPASmartClient.ViewModel/EditRecipeViewModel.cs
@@ -25,8 +25,8 @@ namespace BPASmartClient.ViewModel
EditOrder = new BPARelayCommand