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.

50 lines
1.6 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. /// <remarks>tsmc customization</remarks>
  10. [Table("CFG_EARTHQUAKE_NOTIFY")]
  11. public class CfgEarthquakeNotifyDto : CommonDto
  12. {
  13. /// <summary>
  14. /// 異常編號
  15. /// </summary>
  16. /// <remarks>tsmc definition</remarks>
  17. [Column(Name = "ALARM_ID")]
  18. [Required, Key, StringLength(30), JsonPropertyName("ALARM_ID"), JsonPropertyOrder(1)]
  19. public string ALARM_ID { get; set; }
  20. /// <summary>
  21. /// 地震等級
  22. /// </summary>
  23. [Column(Name = "PLANT")]
  24. [Required, JsonPropertyName("PLANT"), JsonPropertyOrder(2)]
  25. public int PLANT { get; set; }
  26. /// <summary>
  27. /// 最小加速度
  28. /// </summary>
  29. [Column(Name = "GAL_MIN")]
  30. [Required, JsonPropertyName("GAL_MIN"), JsonPropertyOrder(3)]
  31. public int GAL_MIN { get; set; }
  32. /// <summary>
  33. /// 最大加速度
  34. /// </summary>
  35. [Column(Name = "GAL_MAX")]
  36. [Required, JsonPropertyName("GAL_MAX"), JsonPropertyOrder(4)]
  37. public int GAL_MAX { get; set; }
  38. /// <summary>
  39. /// 是否通知
  40. /// </summary>
  41. /// <value>
  42. /// Y <br/>
  43. /// N <br/>
  44. /// </value>
  45. [Column(Name = "USE_NOTIFY")]
  46. [Required, JsonPropertyName("USE_NOTIFY"), JsonPropertyOrder(5)]
  47. public string USE_NOTIFY { get; set; }
  48. }
  49. }