WCS_TASK.cs 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. using SqlSugar;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using static WCS_Client.Utility.CurrentHelper;
  8. namespace WCS_Client.Models
  9. {
  10. public class WCS_TASK
  11. {
  12. /// <summary>
  13. /// WCS任务号
  14. /// </summary>
  15. [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
  16. public int TASK_NO { get; set; }
  17. /// <summary>
  18. /// WMS任务号
  19. /// </summary>
  20. public string TASK_WMSNO { get; set; }
  21. /// <summary>
  22. /// 任务类型
  23. /// </summary>
  24. public int TASK_COMTYPE { get; set; }
  25. [SugarColumn(IsIgnore = true)]
  26. public ComTypeEnum TASK_COMTYPECh
  27. {
  28. get
  29. {
  30. return (ComTypeEnum)TASK_COMTYPE;
  31. }
  32. }
  33. public string TASK_SYSTYPE { get; set; }
  34. public string TASK_POSIDFROM { get; set; }
  35. public string TASK_POSIDCUR { get; set; }
  36. public string TASK_POSIDNEXT { get; set; }
  37. public string TASK_POSIDTO { get; set; }
  38. public string TASK_POSIDMOVE { get; set; }
  39. public int TASK_PRIORITY { get; set; }
  40. public int TASK_WKSTATUS { get; set; }
  41. public string TASK_WHID { get; set; }
  42. public string TASK_ADDUSERNO { get; set; }
  43. public DateTime TASK_ADDDATETIME { get; set; }
  44. public string TASK_EDITUSERNO { get; set; }
  45. public DateTime TASK_EDITDATETIME { get; set; }
  46. public string TASK_NOTES { get; set; }
  47. public string TASK_SRMNO { get; set; }
  48. /// <summary>
  49. /// rgv编号
  50. /// </summary>
  51. public string TASK_RGVNO { get; set; }
  52. public int TASK_ORDERTYPE { get; set; }
  53. public string TASK_BOXBARCODE { get; set; }
  54. /// <summary>
  55. /// 起始巷道号
  56. /// </summary>
  57. public string TASK_FromTunnelNum { get; set; }
  58. /// <summary>
  59. /// 目标巷道号
  60. /// </summary>
  61. public string TASK_EndTunnelNum { get; set; }
  62. /// <summary>
  63. /// 熟化类型(0=不需熟化、1=熟化房熟化、2=小烘房熟化)
  64. /// </summary>
  65. public int TASK_MatureType { get; set; }
  66. /// <summary>
  67. /// 熟化时间(小时:10,16)
  68. /// </summary>
  69. public decimal TASK_MatureDate { get; set; }
  70. /// <summary>
  71. /// 熟化温度(小数)
  72. /// </summary>
  73. public decimal TASK_MatureTemperat { get; set; }
  74. /// <summary>
  75. /// 进入熟化房时间
  76. /// </summary>
  77. public DateTime TASK_InMatureRoomDate { get; set; }
  78. /// <summary>
  79. /// 离开熟化房时间
  80. /// </summary>
  81. public DateTime TASK_OutMatureRoomDate { get; set; }
  82. /// <summary>
  83. /// 机械手:子托盘的尺寸编码
  84. /// </summary>
  85. public string PalletizingSonTraySize { get; set; }
  86. /// <summary>
  87. /// 机械手:码垛的箱子尺寸编码
  88. /// </summary>
  89. public string PalletizingBoxSize { get; set; }
  90. /// <summary>
  91. /// 预分配堆垛机出口输送线编号
  92. /// </summary>
  93. //public string TASK_SRMOUTCONVNO { get; set; }
  94. public string TASK_ITEM1 { get; set; }
  95. public string TASK_ITEM2 { get; set; }
  96. public string TASK_ITEM3 { get; set; }
  97. public string TASK_ITEM4 { get; set; }
  98. public string TASK_ITEM5 { get; set; }
  99. public string TASK_ITEM6 { get; set; }
  100. public string TASK_ITEM7 { get; set; }
  101. public string TASK_ITEM8 { get; set; }
  102. public string TASK_ITEM9 { get; set; }
  103. public string TASK_ITEM10 { get; set; }
  104. [SugarColumn(IsIgnore = true)]
  105. public List<string> FromLocation
  106. {
  107. get
  108. {
  109. return TASK_POSIDFROM.Split('-').ToList();
  110. }
  111. }
  112. [SugarColumn(IsIgnore = true)]
  113. public int FromRow
  114. {
  115. get
  116. {
  117. return Convert.ToInt32(FromLocation[1]);
  118. }
  119. }
  120. [SugarColumn(IsIgnore = true)]
  121. public int FromCol
  122. {
  123. get
  124. {
  125. return Convert.ToInt32(FromLocation[2]);
  126. }
  127. }
  128. [SugarColumn(IsIgnore = true)]
  129. public int FromLayer
  130. {
  131. get
  132. {
  133. return Convert.ToInt32(FromLocation[3]);
  134. }
  135. }
  136. [SugarColumn(IsIgnore = true)]
  137. public int FromDepth
  138. {
  139. get
  140. {
  141. return Convert.ToInt32(FromLocation[4]);
  142. }
  143. }
  144. [SugarColumn(IsIgnore = true)]
  145. public int FromSingleDepthRow
  146. {
  147. get
  148. {
  149. return 1;
  150. }
  151. }
  152. [SugarColumn(IsIgnore = true)]
  153. public List<string> ToLocation
  154. {
  155. get
  156. {
  157. return TASK_POSIDTO.Split('-').ToList();
  158. }
  159. }
  160. [SugarColumn(IsIgnore = true)]
  161. public int ToRow
  162. {
  163. get
  164. {
  165. return Convert.ToInt32(ToLocation[1]);
  166. }
  167. }
  168. [SugarColumn(IsIgnore = true)]
  169. public int ToCol
  170. {
  171. get
  172. {
  173. return Convert.ToInt32(ToLocation[2]);
  174. }
  175. }
  176. [SugarColumn(IsIgnore = true)]
  177. public int ToLayer
  178. {
  179. get
  180. {
  181. return Convert.ToInt32(ToLocation[3]);
  182. }
  183. }
  184. [SugarColumn(IsIgnore = true)]
  185. public int ToDepth
  186. {
  187. get
  188. {
  189. return Convert.ToInt32(ToLocation[4]);
  190. }
  191. }
  192. }
  193. public class WCS_TASK_DTL
  194. {
  195. [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
  196. public string ID { get; set; }
  197. public int PARENTID { get; set; }
  198. public string TASKNO { get; set; }
  199. public string POSIDCUR { get; set; }
  200. public string POSIDNEXT { get; set; }
  201. public string DESCRIPTION { get; set; }
  202. public string NOTES { get; set; }
  203. public DateTime EXECUTEDATE { get; set; }
  204. }
  205. public class WCS_EQUIPMENTLOCK
  206. {
  207. [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
  208. public string EQUIPMENTNO { get; set; }
  209. public bool ISLOCK { get; set; }
  210. public DateTime UPDATETIME { get; set; }
  211. public string ISENABLEI_IN { get; set; }
  212. public string ISENABLE_OUT { get; set; }
  213. public string EQUTYPE { get; set; }
  214. }
  215. }