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