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

8 months ago
  1. using System.ComponentModel.DataAnnotations;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using System.Text.Json.Serialization;
  4. namespace Mirle.Component.Database.Model.WES
  5. {
  6. /// <summary>
  7. /// 站點基本資料類別
  8. /// </summary>
  9. [Table("CFG_STATION")]
  10. public class CfgStationDto : CommonDto
  11. {
  12. /// <summary>
  13. /// 儲存區編號
  14. /// </summary>
  15. /// <remarks>
  16. /// STAT[Floor][Sequence * 2] <br/>
  17. /// AUTO[Floor][Sequence * 2] <br/>
  18. /// TEMP[Floor][Sequence * 2] <br/>
  19. /// </remarks>
  20. [Column(Name = "STORAGE_ID")]
  21. [Required, Key, StringLength(7), JsonPropertyName("STORAGE_ID"), JsonPropertyOrder(1)]
  22. public string STORAGE_ID { get; set; }
  23. /// <summary>
  24. /// 站點編號
  25. /// </summary>
  26. /// <remarks>[EQNO][Sequence * 2]</remarks>
  27. [Column(Name = "STATION_ID")]
  28. [Required, Key, StringLength(9), JsonPropertyName("STATION_ID"), JsonPropertyOrder(2)]
  29. public string STATION_ID { get; set; }
  30. /// <summary>
  31. /// 站點名稱
  32. /// </summary>
  33. [Column(Name = "STATION_NAME")]
  34. [StringLength(30), JsonPropertyName("STATION_NAME"), JsonPropertyOrder(3)]
  35. public string STATION_NAME { get; set; }
  36. /// <summary>
  37. /// 站點敘述
  38. /// </summary>
  39. [Column(Name = "STATION_DESC")]
  40. [StringLength(50), JsonPropertyName("STATION_DESC"), JsonPropertyOrder(4)]
  41. public string STATION_DESC { get; set; }
  42. /// <summary>
  43. /// 層 (Z)
  44. /// </summary>
  45. [Column(Name = "LEVEL_Z")]
  46. [Required, StringLength(1), JsonPropertyName("LEVEL_Z"), JsonPropertyOrder(5)]
  47. public string LEVEL_Z { get; set; }
  48. /// <summary>
  49. /// 圖座標 X
  50. /// </summary>
  51. [Column(Name = "AXIS_X")]
  52. [JsonPropertyName("AXIS_X"), JsonPropertyOrder(6)]
  53. public double AXIS_X { get; set; }
  54. /// <summary>
  55. /// 圖座標 Y
  56. /// </summary>
  57. [Column(Name = "AXIS_Y")]
  58. [JsonPropertyName("AXIS_Y"), JsonPropertyOrder(7)]
  59. public double AXIS_Y { get; set; } = 0.0;
  60. }
  61. }