using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text.Json.Serialization; namespace Mirle.Component.Database.Model.Warroom.Config { /// /// 設備基本資料類別 /// public class CfgEqptDto : CommonDto { /// /// 設備編號 /// [Column(Name = "eqpt_id"), JsonPropertyName("eqpt_id")] [Required, Key] public string EquipmentID { get; set; } /// /// 設備類別編號 /// [Column(Name = "eqpt_type_id"), JsonPropertyName("eqpt_type_id")] [Required, ForeignKey("[cfg_eqpt_type].eqpt_type_uid")] public int EquipmentTypeID { get; set; } /// /// 上位控制系統編號 /// [Column(Name = "controller"), JsonPropertyName("controller")] public string Controller { get; set; } /// /// 設備別名 /// [Column(Name = "eqpt_alias"), JsonPropertyName("eqpt_alias")] public string EquipmentAlias { get; set; } /// /// 設備敘述 /// [Column(Name = "eqpt_desc"), JsonPropertyName("eqpt_desc")] public string EquipmentDescription { get; set; } /// /// 設備負責部門 /// [Column(Name = "dept_in_charge"), JsonPropertyName("dept_in_charge")] public string DepartmentInCharge { get; set; } /// /// 設備保管人 /// [Column(Name = "depositary"), JsonPropertyName("depositary")] public string Depositary { get; set; } /// /// 設備啟用日期 /// [Column(Name = "startup_dt"), JsonPropertyName("startup_dt")] public DateTime StartupDate { get; set; } /// /// 設備使用年限 /// [Column(Name = "exp_year"), JsonPropertyName("exp_year")] public int ExpireYear { get; set; } /// /// 設備照片路徑(一) /// [Column(Name = "image_path_1"), JsonPropertyName("image_path_1")] public string ImagePath1 { get; set; } /// /// 設備照片路徑(二) /// [Column(Name = "image_path_2"), JsonPropertyName("image_path_2")] public string ImagePath2 { get; set; } /// /// 設備照片路徑(三) /// [Column(Name = "image_path_3"), JsonPropertyName("image_path_3")] public string ImagePath3 { get; set; } /// /// 圖片X座標 /// [Column(Name = "map_x"), JsonPropertyName("map_x")] public decimal MapX { get; set; } /// /// 圖片Y座標 /// [Column(Name = "map_y"), JsonPropertyName("map_y")] public decimal MapY { get; set; } } }