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.

81 lines
2.8 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.WES
  6. {
  7. /// <summary>
  8. /// 即時異常資訊類別
  9. /// </summary>
  10. [Table("CUR_ALARM_DATA")]
  11. public class CurAlarmDataDto
  12. {
  13. /// <summary>
  14. /// 異常代碼
  15. /// </summary>
  16. [Column(Name = "ALARM_CODE")]
  17. [Required, Key, StringLength(10), JsonPropertyName("ALARM_CODE"), JsonPropertyOrder(1)]
  18. public string ALARM_CODE { get; set; }
  19. /// <summary>
  20. /// 異常類別
  21. /// </summary>
  22. /// <value>
  23. /// AGV <br/>
  24. /// SHT <br/>
  25. /// PLC <br/>
  26. /// </value>
  27. [Column(Name = "ALARM_TYPE")]
  28. [Required, Key, StringLength(3), JsonPropertyName("ALARM_TYPE"), JsonPropertyOrder(2)]
  29. public string ALARM_TYPE { get; set; }
  30. /// <summary>
  31. /// 起始時間
  32. /// </summary>
  33. [Column(Name = "START_TIME")]
  34. [Required, Key, JsonPropertyName("START_TIME"), JsonPropertyOrder(3)]
  35. public DateTime START_TIME { get; set; }
  36. /// <summary>
  37. /// 異常敘述
  38. /// </summary>
  39. [Column(Name = "ALARM_DESC")]
  40. [JsonPropertyName("ALARM_DESC"), JsonPropertyOrder(4)]
  41. public string ALARM_DESC { get; set; }
  42. /// <summary>
  43. /// 軟體編號
  44. /// </summary>
  45. /// <remarks>[Sofeware Type]C[Floor][Sequence * 2]</remarks>
  46. [Column(Name = "SOFTWARE_ID")]
  47. [Required, JsonPropertyName("SOFTWARE_ID"), JsonPropertyOrder(5)]
  48. public string SOFTWARE_ID { get; set; }
  49. /// <summary>
  50. /// 任務編號
  51. /// </summary>
  52. /// <remarks>
  53. /// Warehouse Controller System Task ID <br/>
  54. /// P[YYYYMMDDHH][Sequence * 5] (PLCC) <br/>
  55. /// A[YYYYMMDDHH][Sequence * 5] (AGVC) <br/>
  56. /// S[YYYYMMDDHH][Sequence * 5] (SHTC) <br/>
  57. /// </remarks>
  58. [Column(Name = "TASK_ID")]
  59. [JsonPropertyName("TASK_ID"), JsonPropertyOrder(6)]
  60. public string TASK_ID { get; set; }
  61. /// <summary>
  62. /// 設備編號
  63. /// </summary>
  64. [Column(Name = "VEHICLE_ID")]
  65. [StringLength(16), JsonPropertyName("VEHICLE_ID"), JsonPropertyOrder(7)]
  66. public string VEHICLE_ID { get; set; }
  67. /// <summary>
  68. /// 結束時間
  69. /// </summary>
  70. [Column(Name = "END_TIME")]
  71. [JsonPropertyName("END_TIME"), JsonPropertyOrder(8)]
  72. public DateTime? END_TIME { get; set; }
  73. /// <summary>
  74. /// 程式名稱
  75. /// </summary>
  76. [Column(Name = "PROGRAM_NAME")]
  77. [Required, StringLength(30), JsonPropertyName("PROGRAM_NAME"), JsonPropertyOrder(9)]
  78. public string PROGRAM_NAME { get; set; }
  79. }
  80. }