using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text.Json.Serialization; namespace Mirle.Component.Database.Model.WES { /// /// 站點基本資料類別 /// [Table("CFG_STATION")] public class CfgStationDto : CommonDto { /// /// 儲存區編號 /// /// /// STAT[Floor][Sequence * 2]
/// AUTO[Floor][Sequence * 2]
/// TEMP[Floor][Sequence * 2]
///
[Column(Name = "STORAGE_ID")] [Required, Key, StringLength(7), JsonPropertyName("STORAGE_ID"), JsonPropertyOrder(1)] public string STORAGE_ID { get; set; } /// /// 站點編號 /// /// [EQNO][Sequence * 2] [Column(Name = "STATION_ID")] [Required, Key, StringLength(9), JsonPropertyName("STATION_ID"), JsonPropertyOrder(2)] public string STATION_ID { get; set; } /// /// 站點名稱 /// [Column(Name = "STATION_NAME")] [StringLength(30), JsonPropertyName("STATION_NAME"), JsonPropertyOrder(3)] public string STATION_NAME { get; set; } /// /// 站點敘述 /// [Column(Name = "STATION_DESC")] [StringLength(50), JsonPropertyName("STATION_DESC"), JsonPropertyOrder(4)] public string STATION_DESC { get; set; } /// /// 層 (Z) /// [Column(Name = "LEVEL_Z")] [Required, StringLength(1), JsonPropertyName("LEVEL_Z"), JsonPropertyOrder(5)] public string LEVEL_Z { get; set; } /// /// 圖座標 X /// [Column(Name = "AXIS_X")] [JsonPropertyName("AXIS_X"), JsonPropertyOrder(6)] public double AXIS_X { get; set; } /// /// 圖座標 Y /// [Column(Name = "AXIS_Y")] [JsonPropertyName("AXIS_Y"), JsonPropertyOrder(7)] public double AXIS_Y { get; set; } = 0.0; } }