WCS_TASK.cs 5.6 KB

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