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.

150 lines
5.5 KiB

8 months ago
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using System.Text.Json.Serialization;
  5. namespace Mirle.Component.Database.Model.WES
  6. {
  7. /// <summary>
  8. /// 即時命令主檔類別
  9. /// </summary>
  10. [Table("CUR_CMD_MST")]
  11. public class CurCommandMasterDto
  12. {
  13. /// <summary>
  14. /// 命令序號
  15. /// </summary>
  16. /// <remarks>
  17. /// Warehouse Executeing System Command Sequence Number <br/>
  18. /// W[YYYYMMDDHH][Sequence * 5] <br/>
  19. /// </remarks>
  20. [Column(Name = "CMD_SNO")]
  21. [Required, Key, StringLength(20), JsonPropertyName("CMD_SNO"), JsonPropertyOrder(1)]
  22. public string CMD_SNO { get; set; }
  23. /// <summary>
  24. /// 命令狀態
  25. /// </summary>
  26. /// <value>
  27. /// 0 = 初始化 <br/>
  28. /// 1 = WES 待執行 <br/>
  29. /// 2 = WCS 待執行 <br/>
  30. /// 3 = 執行中 <br/>
  31. /// 4 = 完成 <br/>
  32. /// 5 = 電腦強制完成 <br/>
  33. /// 6 = 地上盤強制完成 <br/>
  34. /// 7 = 失敗 <br/>
  35. /// 8 = 取消 <br/>
  36. /// 9 = 電腦強制取消 <br/>
  37. /// 10 = 地上盤強制取消 <br/>
  38. /// 11 = 空出庫 <br/>
  39. /// 12 = 二重格 <br/>
  40. /// </value>
  41. [Column(Name = "CMD_STATUS")]
  42. [Required, JsonPropertyName("CMD_STATUS"), JsonPropertyOrder(2)]
  43. public int CMD_STATUS { get; set; } = 0;
  44. /// <summary>
  45. /// 命令模式
  46. /// </summary>
  47. /// <value>
  48. /// 1 = 入庫 <br/>
  49. /// 2 = 出庫 <br/>
  50. /// 3 = 撿料/盤點 <br/>
  51. /// 4 = 站對站 <br/>
  52. /// 5 = 庫對庫 <br/>
  53. /// 6 = 盤點作業 <br/>
  54. /// 7 = 盤點調帳 <br/>
  55. /// 8 = 儲位維護 <br/>
  56. /// </value>
  57. [Column(Name = "CMD_MODE")]
  58. [Required, JsonPropertyName("CMD_MODE"), JsonPropertyOrder(3)]
  59. public string CMD_MODE { get; set; }
  60. /// <summary>
  61. /// 命令優先權
  62. /// </summary>
  63. /// <value>0 - 9</value>
  64. /// <remarks>0 最優先</remarks>
  65. [Column(Name = "PRIORITY")]
  66. [Required, JsonPropertyName("PRIORITY"), JsonPropertyOrder(4)]
  67. public int PRIORITY { get; set; } = 9;
  68. /// <summary>
  69. /// 起始儲存區編號
  70. /// </summary>
  71. [Column(Name = "SOURCE_STORAGE_ID")]
  72. [Required, StringLength(6), JsonPropertyName("SOURCE_STORAGE_ID"), JsonPropertyOrder(5)]
  73. public string SOURCE_STORAGE_ID { get; set; }
  74. /// <summary>
  75. /// 起始位置
  76. /// </summary>
  77. [Column(Name = "SOURCE_POSITION")]
  78. [Required, StringLength(9), JsonPropertyName("SOURCE_POSITION"), JsonPropertyOrder(6)]
  79. public string SOURCE_POSITION { get; set; }
  80. /// <summary>
  81. /// 目的儲存區編號
  82. /// </summary>
  83. [Column(Name = "DEST_STORAGE_ID")]
  84. [Required, StringLength(6), JsonPropertyName("DEST_STORAGE_ID"), JsonPropertyOrder(7)]
  85. public string DEST_STORAGE_ID { get; set; }
  86. /// <summary>
  87. /// 目的位置
  88. /// </summary>
  89. [Column(Name = "DEST_POSITION")]
  90. [Required, StringLength(9), JsonPropertyName("dest_postion"), JsonPropertyOrder(8)]
  91. public string DestinationPosition { get; set; }
  92. /// <summary>
  93. /// 載具編號
  94. /// </summary>
  95. /// <remarks>棧板編號/物流箱號</remarks>
  96. [Column(Name = "CARRIER_ID")]
  97. [Required, StringLength(64), JsonPropertyName("CARRIER_ID"), JsonPropertyOrder(9)]
  98. public string CARRIER_ID { get; set; }
  99. /// <summary>
  100. /// 建立時間
  101. /// </summary>
  102. [Column(Name = "CREATE_TIME")]
  103. [Required, JsonPropertyName("CREATE_TIME"), JsonPropertyOrder(10)]
  104. public DateTime CREATE_TIME { get; set; } = DateTime.Now;
  105. /// <summary>
  106. /// 傳送時間
  107. /// </summary>
  108. [Column(Name = "SEND_TIME")]
  109. [JsonPropertyName("SEND_TIME"), JsonPropertyOrder(11)]
  110. public DateTime? SEND_TIME { get; set; }
  111. /// <summary>
  112. /// 起始時間
  113. /// </summary>
  114. [Column(Name = "START_TIME")]
  115. [JsonPropertyName("START_TIME"), JsonPropertyOrder(12)]
  116. public DateTime? START_TIME { get; set; }
  117. /// <summary>
  118. /// 結束時間
  119. /// </summary>
  120. [Column(Name = "END_TIME")]
  121. [JsonPropertyName("END_TIME"), JsonPropertyOrder(13)]
  122. public DateTime? END_TIME { get; set; }
  123. /// <summary>
  124. /// 失敗原因
  125. /// </summary>
  126. [Column(Name = "FAILED_REASON")]
  127. [JsonPropertyName("FAILED_REASON"), JsonPropertyOrder(14)]
  128. public string FAILED_REASON { get; set; }
  129. /// <summary>
  130. /// 程式名稱
  131. /// </summary>
  132. /// <remarks>寫入的程式名稱</remarks>
  133. [Column(Name = "PROGRAM_NAME")]
  134. [Required, StringLength(30), JsonPropertyName("PROGRAM_NAME"), JsonPropertyOrder(15)]
  135. public string PROGRAM_NAME { get; set; }
  136. /// <summary>
  137. /// 建立人員
  138. /// </summary>
  139. [Column(Name = "CREATE_USER")]
  140. [Required, StringLength(30), JsonPropertyName("CREATE_USER"), JsonPropertyOrder(16)]
  141. public string CREATE_USER { get; set; }
  142. /// <summary>
  143. /// 更新人員
  144. /// </summary>
  145. [Column(Name = "UPDATE_USER")]
  146. [Required, StringLength(30), JsonPropertyName("UPDATE_USER"), JsonPropertyOrder(17)]
  147. public string UPDATE_USER { get; set; }
  148. }
  149. }