diff --git a/BPASmartClient.MorkMV1/Control_MorkMV1.cs b/BPASmartClient.MorkMV1/Control_MorkMV1.cs index d420d963..733dc452 100644 --- a/BPASmartClient.MorkMV1/Control_MorkMV1.cs +++ b/BPASmartClient.MorkMV1/Control_MorkMV1.cs @@ -136,11 +136,6 @@ namespace BPASmartClient.MorkMV1 goodName = res.MorkOrder.GoodsName; SortNum = res.MorkOrder.SortNum.ToString(); } - - //if (mORKS.doe.ContainsKey(subid)) - //{ - // goodName = mORKS.doe[subid].MorkOrder.GoodsName; - // SortNum = mORKS.doe[subid].MorkOrder.SortNum.ToString(); if (!string.IsNullOrEmpty(goodName) && !string.IsNullOrEmpty(SortNum)) { EventBus.EventBus.GetInstance().Publish(new OrderStatusChangedEvent() { SortNum = SortNum, GoodName = goodName, Status = oRDER_STATUS, SubOrderId = subid, deviceClientType = DeviceType }); @@ -178,57 +173,7 @@ namespace BPASmartClient.MorkMV1 StartTime = DateTime.Now.ToString("HH:mm:ss") }); } - //mORKS.doe.Remove(subid, out _); } - //} - - - - //var res = mORKS.doOrderEvents.FirstOrDefault(p => p.MorkOrder.SuborderId == subid); - //string goodName = string.Empty; - //string SortNum = string.Empty; - //if (res != null) - //{ - // goodName = res.MorkOrder.GoodsName; - // SortNum = res.MorkOrder.SortNum.ToString(); - //} - - //EventBus.EventBus.GetInstance().Publish(new OrderStatusChangedEvent() { SortNum = SortNum, GoodName = goodName, Status = oRDER_STATUS, SubOrderId = subid, deviceClientType = DeviceType }); - - //var index = DataServer.GetInstance.morkS.MakeOrder.FindIndex(p => p.SortNum == SortNum); - //if (index >= 0 && index < DataServer.GetInstance.morkS.MakeOrder.Count) - //{ - // if (oRDER_STATUS == ORDER_STATUS.COMPLETED_COOK) - // { - // DataServer.GetInstance.morkS.MakeOrder.RemoveAt(index); - // DataServer.GetInstance.morkS.MakeOrderOver.Add(new OrderMakeModel() - // { - // Status = oRDER_STATUS, - // GoodName = goodName, - // SortNum = SortNum, - // StopTime = DateTime.Now.ToString("HH:mm:ss") - // }); - // } - // else if (oRDER_STATUS == ORDER_STATUS.COMPLETED_TAKE) - // { - // var temp = DataServer.GetInstance.morkS.MakeOrderOver.FirstOrDefault(p => p.SortNum == SortNum); - // if (temp != null) DataServer.GetInstance.morkS.MakeOrderOver.Remove(temp); - // } - // else - // { - // DataServer.GetInstance.morkS.MakeOrder.ElementAt(index).Status = oRDER_STATUS; - // } - //} - //else - //{ - // DataServer.GetInstance.morkS.MakeOrder.Add(new OrderMakeModel() - // { - // Status = oRDER_STATUS, - // GoodName = goodName, - // SortNum = SortNum, - // StartTime = DateTime.Now.ToString("HH:mm:ss") - // }); - //} } private void GetStatus(string key, Action action) @@ -353,13 +298,6 @@ namespace BPASmartClient.MorkMV1 mORKM.CookNoodleCom[i] = true; } } - - //mORKS.CookNoodleCom[0] = tt[0].GetBitValue(1); - //mORKS.CookNoodleCom[1] = tt[0].GetBitValue(2); - //mORKS.CookNoodleCom[2] = tt[0].GetBitValue(3); - //mORKS.CookNoodleCom[3] = tt[0].GetBitValue(4); - //mORKS.CookNoodleCom[4] = tt[0].GetBitValue(5); - //mORKS.CookNoodleCom[5] = tt[0].GetBitValue(6); mORKM.Heating = ushorts[0].GetBitValue(15); mORKM.TemperatureReaches = ushorts[0].GetBitValue(16); @@ -399,7 +337,6 @@ namespace BPASmartClient.MorkMV1 if (@event is DoOrderEvent order) { mORKM.doOrderEvents.Add(order); - //mORKS.doe.TryAdd(order.MorkOrder.SuborderId, order); if (order.MorkOrder.GoodBatchings == null) return; if (mORKM.HistorySuborderId.Contains(order.MorkOrder.SuborderId)) return; OrderCount++; diff --git a/BPASmartClient.MorkMV1/Model/DishType.cs b/BPASmartClient.MorkMV1/Model/DishType.cs new file mode 100644 index 00000000..cb37511a --- /dev/null +++ b/BPASmartClient.MorkMV1/Model/DishType.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BPASmartClient.MorkMV1.Model +{ + public enum DishType : int + { + 荤菜 = 0, + 素菜 = 1 + } +} diff --git a/BPASmartClient.MorkMV1/Model/MorksPar.cs b/BPASmartClient.MorkMV1/Model/MorksPar.cs index 241eddce..661857f4 100644 --- a/BPASmartClient.MorkMV1/Model/MorksPar.cs +++ b/BPASmartClient.MorkMV1/Model/MorksPar.cs @@ -12,5 +12,6 @@ namespace BPASmartClient.MorkMV1.Model internal class MorksPar { public ObservableCollection parSets { get; set; } = new ObservableCollection(); + public ObservableCollection DishLibraryParSets { get; set; } = new ObservableCollection(); } } diff --git a/BPASmartClient.MorkMV1/Model/ParSet.cs b/BPASmartClient.MorkMV1/Model/ParSet.cs index 03261db1..7c348a76 100644 --- a/BPASmartClient.MorkMV1/Model/ParSet.cs +++ b/BPASmartClient.MorkMV1/Model/ParSet.cs @@ -4,9 +4,9 @@ using System.Linq; using System.Text; using System.Threading.Tasks; -namespace BPASmartClient.Model +namespace BPASmartClient.MorkMV1.Model { - public class ParSet + public class ParSet { public ushort Minute { get { return _mMinute; } set { _mMinute = value; } } private ushort _mMinute; @@ -18,6 +18,11 @@ namespace BPASmartClient.Model public bool IsShield { get { return _mIsShield; } set { _mIsShield = value; } } private bool _mIsShield; + /// + /// 库位菜品类型 + /// + public int LocDishType { get { return _mLocDishType; } set { _mLocDishType = value; } } + private int _mLocDishType; public string TextBlockContext { get { return _mTextBlockContext; } set { _mTextBlockContext = value; } } private string _mTextBlockContext; diff --git a/BPASmartClient.MorkMV1/Resource/MyStyle.xaml b/BPASmartClient.MorkMV1/Resource/MyStyle.xaml new file mode 100644 index 00000000..e034d950 --- /dev/null +++ b/BPASmartClient.MorkMV1/Resource/MyStyle.xaml @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/BPASmartClient.MorkMV1/View/ParSet.xaml b/BPASmartClient.MorkMV1/View/ParSet.xaml index bd6450b6..f0abe279 100644 --- a/BPASmartClient.MorkMV1/View/ParSet.xaml +++ b/BPASmartClient.MorkMV1/View/ParSet.xaml @@ -19,6 +19,9 @@ + + +