|
|
using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text.Json.Serialization;
namespace Mirle.Component.Database.Model.WES { /// <summary>
/// 即時命令主檔類別
/// </summary>
[Table("CUR_CMD_MST")] public class CurCommandMasterDto { /// <summary>
/// 命令序號
/// </summary>
/// <remarks>
/// Warehouse Executeing System Command Sequence Number <br/>
/// W[YYYYMMDDHH][Sequence * 5] <br/>
/// </remarks>
[Column(Name = "CMD_SNO")] [Required, Key, StringLength(20), JsonPropertyName("CMD_SNO"), JsonPropertyOrder(1)] public string CMD_SNO { get; set; } /// <summary>
/// 命令狀態
/// </summary>
/// <value>
/// 0 = 初始化 <br/>
/// 1 = WES 待執行 <br/>
/// 2 = WCS 待執行 <br/>
/// 3 = 執行中 <br/>
/// 4 = 完成 <br/>
/// 5 = 電腦強制完成 <br/>
/// 6 = 地上盤強制完成 <br/>
/// 7 = 失敗 <br/>
/// 8 = 取消 <br/>
/// 9 = 電腦強制取消 <br/>
/// 10 = 地上盤強制取消 <br/>
/// 11 = 空出庫 <br/>
/// 12 = 二重格 <br/>
/// </value>
[Column(Name = "CMD_STATUS")] [Required, JsonPropertyName("CMD_STATUS"), JsonPropertyOrder(2)] public int CMD_STATUS { get; set; } = 0; /// <summary>
/// 命令模式
/// </summary>
/// <value>
/// 1 = 入庫 <br/>
/// 2 = 出庫 <br/>
/// 3 = 撿料/盤點 <br/>
/// 4 = 站對站 <br/>
/// 5 = 庫對庫 <br/>
/// 6 = 盤點作業 <br/>
/// 7 = 盤點調帳 <br/>
/// 8 = 儲位維護 <br/>
/// </value>
[Column(Name = "CMD_MODE")] [Required, JsonPropertyName("CMD_MODE"), JsonPropertyOrder(3)] public string CMD_MODE { get; set; } /// <summary>
/// 命令優先權
/// </summary>
/// <value>0 - 9</value>
/// <remarks>0 最優先</remarks>
[Column(Name = "PRIORITY")] [Required, JsonPropertyName("PRIORITY"), JsonPropertyOrder(4)] public int PRIORITY { get; set; } = 9; /// <summary>
/// 起始儲存區編號
/// </summary>
[Column(Name = "SOURCE_STORAGE_ID")] [Required, StringLength(6), JsonPropertyName("SOURCE_STORAGE_ID"), JsonPropertyOrder(5)] public string SOURCE_STORAGE_ID { get; set; } /// <summary>
/// 起始位置
/// </summary>
[Column(Name = "SOURCE_POSITION")] [Required, StringLength(9), JsonPropertyName("SOURCE_POSITION"), JsonPropertyOrder(6)] public string SOURCE_POSITION { get; set; } /// <summary>
/// 目的儲存區編號
/// </summary>
[Column(Name = "DEST_STORAGE_ID")] [Required, StringLength(6), JsonPropertyName("DEST_STORAGE_ID"), JsonPropertyOrder(7)] public string DEST_STORAGE_ID { get; set; } /// <summary>
/// 目的位置
/// </summary>
[Column(Name = "DEST_POSITION")] [Required, StringLength(9), JsonPropertyName("dest_postion"), JsonPropertyOrder(8)] public string DestinationPosition { get; set; } /// <summary>
/// 載具編號
/// </summary>
/// <remarks>棧板編號/物流箱號</remarks>
[Column(Name = "CARRIER_ID")] [Required, StringLength(64), JsonPropertyName("CARRIER_ID"), JsonPropertyOrder(9)] public string CARRIER_ID { get; set; } /// <summary>
/// 建立時間
/// </summary>
[Column(Name = "CREATE_TIME")] [Required, JsonPropertyName("CREATE_TIME"), JsonPropertyOrder(10)] public DateTime CREATE_TIME { get; set; } = DateTime.Now; /// <summary>
/// 傳送時間
/// </summary>
[Column(Name = "SEND_TIME")] [JsonPropertyName("SEND_TIME"), JsonPropertyOrder(11)] public DateTime? SEND_TIME { get; set; } /// <summary>
/// 起始時間
/// </summary>
[Column(Name = "START_TIME")] [JsonPropertyName("START_TIME"), JsonPropertyOrder(12)] public DateTime? START_TIME { get; set; } /// <summary>
/// 結束時間
/// </summary>
[Column(Name = "END_TIME")] [JsonPropertyName("END_TIME"), JsonPropertyOrder(13)] public DateTime? END_TIME { get; set; } /// <summary>
/// 失敗原因
/// </summary>
[Column(Name = "FAILED_REASON")] [JsonPropertyName("FAILED_REASON"), JsonPropertyOrder(14)] public string FAILED_REASON { get; set; } /// <summary>
/// 程式名稱
/// </summary>
/// <remarks>寫入的程式名稱</remarks>
[Column(Name = "PROGRAM_NAME")] [Required, StringLength(30), JsonPropertyName("PROGRAM_NAME"), JsonPropertyOrder(15)] public string PROGRAM_NAME { get; set; } /// <summary>
/// 建立人員
/// </summary>
[Column(Name = "CREATE_USER")] [Required, StringLength(30), JsonPropertyName("CREATE_USER"), JsonPropertyOrder(16)] public string CREATE_USER { get; set; } /// <summary>
/// 更新人員
/// </summary>
[Column(Name = "UPDATE_USER")] [Required, StringLength(30), JsonPropertyName("UPDATE_USER"), JsonPropertyOrder(17)] public string UPDATE_USER { get; set; } } }
|