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.
 
 
 
 
 

71 lines
2.5 KiB

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_LOC_STATUS")]
public class CurLocStatusDto
{
/// <summary>
/// 儲存區編號
/// </summary>
/// <remarks>STG[Floor][Sequence * 2]</remarks>
[Column(Name = "STORAGE_ID")]
[Required, Key, StringLength(6), JsonPropertyName("STORAGE_ID"), JsonPropertyOrder(1)]
public string STORAGE_ID { get; set; }
/// <summary>
/// 儲位編號
/// </summary>
[Column(Name = "LOC_ID")]
[Required, Key, StringLength(9), JsonPropertyName("LOC_ID"), JsonPropertyOrder(2)]
public string LOC_ID { get; set; }
/// <summary>
/// 儲位狀態
/// </summary>
/// <value>
/// N = 空庫位 <br/>
/// E = 空棧板 <br/>
/// S = 庫存庫位 <br/>
/// I = 入庫預約 <br/>
/// O = 出庫預約 <br/>
/// C = 盤點預約 <br/>
/// P = 盤點調帳 <br/>
/// X = 禁用庫位 <br/>
/// L = 鎖定 (Double Deep) <br/>
/// D = 二重格儲位 <br/>
/// </value>
[Column(Name = "LOC_STATUS")]
[Required, Key, StringLength(2), JsonPropertyName("LOC_STATUS"), JsonPropertyOrder(3)]
public string LOC_STATUS { get; set; } = "N";
/// <summary>
/// 載具編號
/// </summary>
/// <remarks>棧板編號/物流箱號</remarks>
[Column(Name = "CARRIER_ID")]
[Required, StringLength(64), JsonPropertyName("CARRIER_ID"), JsonPropertyOrder(4)]
public string CARRIER_ID { get; set; }
/// <summary>
/// 程式名稱
/// </summary>
[Column(Name = "PROGRAM_NAME")]
[Required, StringLength(30), JsonPropertyName("PROGRAM_NAME"), JsonPropertyOrder(5)]
public string PROGRAM_NAME { get; set; }
/// <summary>
/// 更新人員
/// </summary>
[Column(Name = "UPDATE_USER")]
[Required, StringLength(30), JsonPropertyName("UPDATE_USER"), JsonPropertyOrder(6)]
public string UPDATE_USER { get; set; }
/// <summary>
/// 更新時間
/// </summary>
[Column(Name = "UPDATE_TIME")]
[Required, JsonPropertyName("UPDATE_TIME"), JsonPropertyOrder(7)]
public DateTime UPDATE_TIME { get; set; } = DateTime.Now;
}
}