终端一体化运控平台
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

176 Zeilen
5.3 KiB

  1. using BPA.Models;
  2. using System;
  3. using System.Collections.Concurrent;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace BPASmartClient.MorkF
  9. {
  10. internal class GVL_MorkF
  11. {
  12. /// <summary>
  13. /// 小炒菜单集合
  14. /// </summary>
  15. public List<StirFryGoods> LocalstirFryGoods =new List<StirFryGoods>();
  16. /// <summary>
  17. /// 小炒队列
  18. /// </summary>
  19. public ConcurrentQueue<OrderLocInfo> StirFryGoodsQuenes = new ConcurrentQueue<OrderLocInfo>();
  20. public bool IsAuto = true;
  21. #region 炒锅1
  22. /// <summary>
  23. /// 炒锅自动模式
  24. /// </summary>
  25. public bool AutoMode { get; set; }
  26. /// <summary>
  27. /// 炒锅1初始化完成
  28. /// </summary>
  29. public bool FryPot1_InitialComplete { get; set; }
  30. /// <summary>
  31. /// 炒锅1允许HBOT放盒
  32. /// </summary>
  33. public bool FryPot1_HOBTPut { get; set; }
  34. /// <summary>
  35. /// 炒锅1允许HBOT取盒
  36. /// </summary>
  37. public bool FryPot1_HOBTGet { get; set; }
  38. /// <summary>
  39. /// 往炒锅倒菜完成
  40. /// </summary>
  41. public bool FryPot1_MaterialIntoPot { get; set; }
  42. /// <summary>
  43. /// 出餐完成
  44. /// </summary>
  45. public bool OutFoodCompelete { get; set; }
  46. /// <summary>
  47. /// 允许出餐倒菜
  48. /// </summary>
  49. public bool CanOutFood { get; set; }
  50. /// <summary>
  51. /// 窗口取餐完成
  52. /// </summary>
  53. public bool GetFoodCompelete { set; get; }
  54. /// <summary>
  55. /// 允许倒洗锅水
  56. /// </summary>
  57. public bool CanOutPotWashingWater { get; set; }
  58. /// <summary>
  59. /// 搅拌臂在原点位
  60. /// </summary>
  61. public bool ArmOnOrigin { get; set; }
  62. /// <summary>
  63. /// 搅拌臂在工作位
  64. /// </summary>
  65. public bool ArmOnWorking { get; set; }
  66. /// <summary>
  67. /// 锅在原点位
  68. /// </summary>
  69. public bool PotOnOrigin { get; set; }
  70. #endregion
  71. #region 调料通道
  72. public bool PassWay1_1Compelete { get; set; }
  73. public bool PassWay1_2Compelete { get; set; }
  74. public bool PassWay1_3Compelete { get; set; }
  75. public bool PassWay1_4Compelete { get; set; }
  76. public bool PassWay1_5Compelete { get; set; }
  77. public bool PassWay1_6Compelete { get; set; }
  78. public bool PassWay1_7Compelete { get; set; }
  79. public bool PassWay1_8Compelete { get; set; }
  80. public bool PassWay1_9Compelete { get; set; }
  81. public bool PassWay1_10Compelete { get; set; }
  82. public bool PassWay1_11Compelete { get; set; }
  83. public bool PassWay1_12Compelete { get; set; }
  84. public bool PassWay1_13Compelete { get; set; }
  85. public bool PassWay1_14Compelete { get; set; }
  86. public Dictionary<int, bool> PassWay1_Compelete = new Dictionary<int, bool>();
  87. #endregion
  88. public GVL_MorkF()
  89. {
  90. PassWay1_Compelete.Add(1,PassWay1_1Compelete);
  91. PassWay1_Compelete.Add(2,PassWay1_2Compelete);
  92. PassWay1_Compelete.Add(3,PassWay1_3Compelete);
  93. PassWay1_Compelete.Add(4,PassWay1_4Compelete);
  94. PassWay1_Compelete.Add(5,PassWay1_5Compelete);
  95. PassWay1_Compelete.Add(6,PassWay1_6Compelete);
  96. PassWay1_Compelete.Add(7,PassWay1_7Compelete);
  97. PassWay1_Compelete.Add(8,PassWay1_8Compelete);
  98. PassWay1_Compelete.Add(9,PassWay1_9Compelete);
  99. PassWay1_Compelete.Add(10,PassWay1_10Compelete);
  100. PassWay1_Compelete.Add(11,PassWay1_11Compelete);
  101. PassWay1_Compelete.Add(12,PassWay1_12Compelete);
  102. PassWay1_Compelete.Add(13,PassWay1_13Compelete);
  103. PassWay1_Compelete.Add(14,PassWay1_14Compelete);
  104. }
  105. /// <summary>
  106. /// 订单取配料队列
  107. /// </summary>
  108. public ConcurrentQueue<OrderLocInfo> TakeMaterialQueue = new ConcurrentQueue<OrderLocInfo>();
  109. /// <summary>
  110. /// 订单供盘队列
  111. /// </summary>
  112. public ConcurrentQueue<OrderLocInfo> TakePlateQueue = new ConcurrentQueue<OrderLocInfo>();
  113. #region 单口锅逻辑变量
  114. /// <summary>
  115. /// 订单唯一ID
  116. /// </summary>
  117. public string CurrentOrderId { get; set; }
  118. #endregion
  119. public Dictionary<int,string> StartPassWay { get; set; } = new Dictionary<int, string>()
  120. {
  121. {1,"LB24" },
  122. {2,"LB25" },
  123. {3,"LB26" },
  124. {4,"LB27" },
  125. {5,"LB28" },
  126. {6,"LB29" },
  127. {7,"LB30" },
  128. {8,"LB31" },
  129. {9,"LB32" },
  130. {10,"LB33" },
  131. {11,"LB34" },
  132. {12,"LB35" },
  133. {13,"LB36" },
  134. {14,"LB37" },
  135. };
  136. public Dictionary<int, string> PassWayValue { get; set; } = new Dictionary<int, string>()
  137. {
  138. {1,"LW0" },
  139. {2,"LW1" },
  140. {3,"LW2" },
  141. {4,"LW3" },
  142. {5,"LW4" },
  143. {6,"LW5" },
  144. {7,"LW6" },
  145. {8,"LW7" },
  146. {9,"LW8" },
  147. {10,"LW9" },
  148. {11,"LW10" },
  149. {12,"LW11" },
  150. {13,"LW12" },
  151. {14,"LW13" },
  152. };
  153. }
  154. }