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.
 
 
 
 
 

62 lines
2.2 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_STATION")]
public class CfgStationDto : 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>
/// <remarks>[EQNO][Sequence * 2]</remarks>
[Column(Name = "STATION_ID")]
[Required, Key, StringLength(9), JsonPropertyName("STATION_ID"), JsonPropertyOrder(2)]
public string STATION_ID { get; set; }
/// <summary>
/// 站點名稱
/// </summary>
[Column(Name = "STATION_NAME")]
[StringLength(30), JsonPropertyName("STATION_NAME"), JsonPropertyOrder(3)]
public string STATION_NAME { get; set; }
/// <summary>
/// 站點敘述
/// </summary>
[Column(Name = "STATION_DESC")]
[StringLength(50), JsonPropertyName("STATION_DESC"), JsonPropertyOrder(4)]
public string STATION_DESC { get; set; }
/// <summary>
/// 層 (Z)
/// </summary>
[Column(Name = "LEVEL_Z")]
[Required, StringLength(1), JsonPropertyName("LEVEL_Z"), JsonPropertyOrder(5)]
public string LEVEL_Z { get; set; }
/// <summary>
/// 圖座標 X
/// </summary>
[Column(Name = "AXIS_X")]
[JsonPropertyName("AXIS_X"), JsonPropertyOrder(6)]
public double AXIS_X { get; set; }
/// <summary>
/// 圖座標 Y
/// </summary>
[Column(Name = "AXIS_Y")]
[JsonPropertyName("AXIS_Y"), JsonPropertyOrder(7)]
public double AXIS_Y { get; set; } = 0.0;
}
}