You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

139 rivejä
3.7 KiB

  1. using BPASmartClient.CustomResource.Pages.Model;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace HKControl
  8. {
  9. public class DataModel
  10. {
  11. public WindowDataModel LeftWindowData { get; set; } = new WindowDataModel();
  12. public WindowDataModel RightWindowData { get; set; } = new WindowDataModel();
  13. [Alarm("1号通道缺碗")]
  14. public bool LackBowl1 { get; set; }
  15. [Alarm("2号通道缺碗")]
  16. public bool LackBowl2 { get; set; }
  17. [Alarm("3号通道缺碗")]
  18. public bool LackBowl3 { get; set; }
  19. [Alarm("4号通道缺碗")]
  20. public bool LackBowl4 { get; set; }
  21. [Alarm("水温过低")]
  22. public bool WaterTemperatureLow { get; set; }
  23. [Alarm("变频器故障")]
  24. public bool FrequencyConverterFault { get; set; }
  25. [Alarm("机器人通讯异常")]
  26. public bool RobotCommFault { get; set; }
  27. public RobotStatus RBStatus { get; set; }
  28. }
  29. public class WindowDataModel
  30. {
  31. /// <summary>
  32. /// 是否允许刷卡
  33. /// </summary>
  34. public bool IsSwipe { get; set; }
  35. /// <summary>
  36. /// 开始配餐
  37. /// </summary>
  38. public bool Start { get; set; }
  39. /// <summary>
  40. /// 配餐完成状态
  41. /// </summary>
  42. public bool Complete { get; set; }
  43. /// <summary>
  44. /// 刷卡机编号
  45. /// </summary>
  46. public string CarNum { get; set; }
  47. [Alarm("警告左侧机构餐盘无盘")]
  48. public bool L1 { get; set; }
  49. [Alarm("左侧机构餐盘掉落无餐盘报警")]
  50. public bool L2 { get; set; }
  51. [Alarm("左侧升降气缸下降不到位报警")]
  52. public bool L3 { get; set; }
  53. [Alarm("左侧升降气缸中间位置不到位报警")]
  54. public bool L4 { get; set; }
  55. [Alarm("左侧升降气缸上升不到位报警")]
  56. public bool L5 { get; set; }
  57. [Alarm("左侧机构推空餐盘不到位报警")]
  58. public bool L6 { get; set; }
  59. [Alarm("左侧机构推空餐盘回退不到位报警")]
  60. public bool L7 { get; set; }
  61. [Alarm("左侧出餐推不到位报警")]
  62. public bool L8 { get; set; }
  63. [Alarm("左侧出餐回退不到位报警")]
  64. public bool L9 { get; set; }
  65. [Alarm("左餐盘掉落位置有餐盘报警")]
  66. public bool L10 { get; set; }
  67. [Alarm("左侧套餐完成")]
  68. public bool L11 { get; set; }
  69. [Alarm("警告右侧机构餐盘无盘")]
  70. public bool R1 { get; set; }
  71. [Alarm("右侧机构餐盘掉落无餐盘报警")]
  72. public bool R2 { get; set; }
  73. [Alarm("右侧升降气缸下降不到位报警")]
  74. public bool R3 { get; set; }
  75. [Alarm("右侧升降气缸中间位置不到位报警")]
  76. public bool R4 { get; set; }
  77. [Alarm("右侧升降气缸上升不到位报警")]
  78. public bool R5 { get; set; }
  79. [Alarm("右侧机构推空餐盘不到位报警")]
  80. public bool R6 { get; set; }
  81. [Alarm("右侧机构推空餐盘回退不到位报警")]
  82. public bool R7 { get; set; }
  83. [Alarm("右侧出餐推不到位报警")]
  84. public bool R8 { get; set; }
  85. [Alarm("右侧出餐回退不到位报警")]
  86. public bool R9 { get; set; }
  87. [Alarm("右餐盘掉落位置有餐盘报警")]
  88. public bool R10 { get; set; }
  89. [Alarm("右侧套餐完成")]
  90. public bool R11 { get; set; }
  91. }
  92. public enum RobotStatus
  93. {
  94. 运行,
  95. 停止,
  96. 暂停,
  97. 准备,
  98. 故障,
  99. }
  100. }