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.

86 lines
3.0 KiB

8 months ago
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using System.Text.Json.Serialization;
  5. namespace Mirle.Component.Database.Model.Warroom.Config
  6. {
  7. /// <summary>
  8. /// 設備基本資料類別
  9. /// </summary>
  10. public class CfgEqptDto : CommonDto
  11. {
  12. /// <summary>
  13. /// 設備編號
  14. /// </summary>
  15. [Column(Name = "eqpt_id"), JsonPropertyName("eqpt_id")]
  16. [Required, Key]
  17. public string EquipmentID { get; set; }
  18. /// <summary>
  19. /// 設備類別編號
  20. /// </summary>
  21. [Column(Name = "eqpt_type_id"), JsonPropertyName("eqpt_type_id")]
  22. [Required, ForeignKey("[cfg_eqpt_type].eqpt_type_uid")]
  23. public int EquipmentTypeID { get; set; }
  24. /// <summary>
  25. /// 上位控制系統編號
  26. /// </summary>
  27. [Column(Name = "controller"), JsonPropertyName("controller")]
  28. public string Controller { get; set; }
  29. /// <summary>
  30. /// 設備別名
  31. /// </summary>
  32. [Column(Name = "eqpt_alias"), JsonPropertyName("eqpt_alias")]
  33. public string EquipmentAlias { get; set; }
  34. /// <summary>
  35. /// 設備敘述
  36. /// </summary>
  37. [Column(Name = "eqpt_desc"), JsonPropertyName("eqpt_desc")]
  38. public string EquipmentDescription { get; set; }
  39. /// <summary>
  40. /// 設備負責部門
  41. /// </summary>
  42. [Column(Name = "dept_in_charge"), JsonPropertyName("dept_in_charge")]
  43. public string DepartmentInCharge { get; set; }
  44. /// <summary>
  45. /// 設備保管人
  46. /// </summary>
  47. [Column(Name = "depositary"), JsonPropertyName("depositary")]
  48. public string Depositary { get; set; }
  49. /// <summary>
  50. /// 設備啟用日期
  51. /// </summary>
  52. [Column(Name = "startup_dt"), JsonPropertyName("startup_dt")]
  53. public DateTime StartupDate { get; set; }
  54. /// <summary>
  55. /// 設備使用年限
  56. /// </summary>
  57. [Column(Name = "exp_year"), JsonPropertyName("exp_year")]
  58. public int ExpireYear { get; set; }
  59. /// <summary>
  60. /// 設備照片路徑(一)
  61. /// </summary>
  62. [Column(Name = "image_path_1"), JsonPropertyName("image_path_1")]
  63. public string ImagePath1 { get; set; }
  64. /// <summary>
  65. /// 設備照片路徑(二)
  66. /// </summary>
  67. [Column(Name = "image_path_2"), JsonPropertyName("image_path_2")]
  68. public string ImagePath2 { get; set; }
  69. /// <summary>
  70. /// 設備照片路徑(三)
  71. /// </summary>
  72. [Column(Name = "image_path_3"), JsonPropertyName("image_path_3")]
  73. public string ImagePath3 { get; set; }
  74. /// <summary>
  75. /// 圖片X座標
  76. /// </summary>
  77. [Column(Name = "map_x"), JsonPropertyName("map_x")]
  78. public decimal MapX { get; set; }
  79. /// <summary>
  80. /// 圖片Y座標
  81. /// </summary>
  82. [Column(Name = "map_y"), JsonPropertyName("map_y")]
  83. public decimal MapY { get; set; }
  84. }
  85. }