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.7 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_ALARM")]
  10. public class CfgAlarmDto : CommonDto
  11. {
  12. /// <summary>
  13. /// 異常代碼
  14. /// </summary>
  15. [Column(Name = "ALARM_CODE")]
  16. [Required, Key, StringLength(10), JsonPropertyName("ALARM_CODE"), JsonPropertyOrder(1)]
  17. public string ALARM_CODE { get; set; }
  18. /// <summary>
  19. /// 異常類別
  20. /// </summary>
  21. /// <value>
  22. /// AGV <br/>
  23. /// SHT <br/>
  24. /// PLC <br/>
  25. /// </value>
  26. [Column(Name = "ALARM_TYPE")]
  27. [Required, Key, StringLength(3), JsonPropertyName("ALARM_TYPE"), JsonPropertyOrder(2)]
  28. public string ALARM_TYPE { get; set; }
  29. /// <summary>
  30. /// 異常等級
  31. /// </summary>
  32. /// <value>
  33. /// 0 = Warning <br/>
  34. /// 1 = Alarm <br/>
  35. /// </value>
  36. [Column(Name = "ALARM_LEVEL"), Required, JsonPropertyName("ALARM_LEVEL"), JsonPropertyOrder(3)]
  37. public int ALARM_LEVEL { get; set; }
  38. /// <summary>
  39. /// 異常敘述
  40. /// </summary>
  41. [Column(Name = "ALARM_DESC"), Required, JsonPropertyName("ALARM_DESC"), JsonPropertyOrder(4)]
  42. public string ALARM_DESC { get; set; }
  43. /// <summary>
  44. /// 異常對策
  45. /// </summary>
  46. [Column(Name = "ALARM_CTS"), StringLength(255), JsonPropertyName("ALARM_CTS"), JsonPropertyOrder(5)]
  47. public string ALARM_CTS { get; set; }
  48. }
  49. }