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.
112 lines
3.9 KiB
112 lines
3.9 KiB
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Mirle.Component.Database.Model.WES
|
|
{
|
|
/// <summary>
|
|
/// 儲位基本資料類別
|
|
/// </summary>
|
|
[Table("CFG_LOC")]
|
|
public class CfgLocDto : CommonDto
|
|
{
|
|
/// <summary>
|
|
/// 儲存區編號
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// STAT[Floor][Sequence * 2] <br/>
|
|
/// AUTO[Floor][Sequence * 2] <br/>
|
|
/// TEMP[Floor][Sequence * 2] <br/>
|
|
/// </remarks>
|
|
[Column(Name = "STORAGE_ID")]
|
|
[Required, Key, StringLength(7), 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>
|
|
[Column(Name = "PRODUCT_TYPE")]
|
|
[Required, StringLength(10), JsonPropertyName("PRODUCT_TYPE"), JsonPropertyOrder(3)]
|
|
public string PRODUCT_TYPE { get; set; }
|
|
/// <summary>
|
|
/// 列 (X)
|
|
/// </summary>
|
|
[Column(Name = "ROW_X")]
|
|
[Required, StringLength(3), JsonPropertyName("ROW_X"), JsonPropertyOrder(4)]
|
|
public string ROW_X { get; set; }
|
|
/// <summary>
|
|
/// 行 (Y)
|
|
/// </summary>
|
|
[Column(Name = "BAY_Y")]
|
|
[Required, StringLength(3), JsonPropertyName("BAY_Y"), JsonPropertyOrder(5)]
|
|
public string BAY_Y { get; set; }
|
|
/// <summary>
|
|
/// 層 (Z)
|
|
/// </summary>
|
|
[Column(Name = "LEVEL_Z")]
|
|
[Required, StringLength(3), JsonPropertyName("LEVEL_Z"), JsonPropertyOrder(6)]
|
|
public string LEVEL_Z { get; set; }
|
|
/// <summary>
|
|
/// 儲位尺寸
|
|
/// </summary>
|
|
/// <value>
|
|
/// h = 大 <br/>
|
|
/// m = 中 <br/>
|
|
/// s = 小 <br/>
|
|
/// G = 不區分 <br/>
|
|
/// </value>
|
|
[Column(Name = "LOC_SIZE")]
|
|
[StringLength(1), JsonPropertyName("LOC_SIZE"), JsonPropertyOrder(7)]
|
|
public string LOC_SIZE { get; set; } = "G";
|
|
/// <summary>
|
|
/// 儲為寬度
|
|
/// </summary>
|
|
/// <remarks>單位: meter</remarks>
|
|
[Column(Name = "LOC_WEIGHT")]
|
|
[JsonPropertyName("LOC_WEIGHT"), JsonPropertyOrder(8)]
|
|
public int LOC_WEIGHT { get; set; }
|
|
/// <summary>
|
|
/// 儲位高度
|
|
/// </summary>
|
|
/// <remarks>單位: meter</remarks>
|
|
[Column(Name = "LOC_HEIGHT")]
|
|
[JsonPropertyName("LOC_HEIGHT"), JsonPropertyOrder(9)]
|
|
public int LOC_HEIGHT { get; set; }
|
|
/// <summary>
|
|
/// 儲位深度
|
|
/// </summary>
|
|
/// <remarks>單位: meter</remarks>
|
|
[Column(Name = "LOC_DEPTH")]
|
|
[JsonPropertyName("LOC_DEPTH"), JsonPropertyOrder(10)]
|
|
public int LOC_DEPTH { get; set; }
|
|
/// <summary>
|
|
/// 儲位可乘載重量
|
|
/// </summary>
|
|
/// <remarks>單位 : kgs</remarks>
|
|
[Column(Name = "LOC_LOADING")]
|
|
[JsonPropertyName("LOC_LOADING"), JsonPropertyOrder(11)]
|
|
public int LOC_LOADING { get; set; }
|
|
/// <summary>
|
|
/// 備註
|
|
/// </summary>
|
|
[Column(Name = "REMARKS")]
|
|
[StringLength(255), JsonPropertyName("REMARKS"), JsonPropertyOrder(12)]
|
|
public string REMARKS { get; set; }
|
|
/// <summary>
|
|
/// 圖座標 X
|
|
/// </summary>
|
|
[Column(Name = "AXIS_X")]
|
|
[JsonPropertyName("AXIS_X"), JsonPropertyOrder(13)]
|
|
public double AXIS_X { get; set; } = 0.0;
|
|
/// <summary>
|
|
/// 圖座標 Y
|
|
/// </summary>
|
|
[Column(Name = "AXIS_Y"), JsonPropertyName("AXIS_Y"), JsonPropertyOrder(14)]
|
|
public double AXIS_Y { get; set; } = 0.0;
|
|
}
|
|
}
|