using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Text.Json.Serialization; namespace Mirle.Component.Database.Model.WES { /// /// 異常基本資料類別 /// [Table("CFG_ALARM")] public class CfgAlarmDto : CommonDto { /// /// 異常代碼 /// [Column(Name = "ALARM_CODE")] [Required, Key, StringLength(10), JsonPropertyName("ALARM_CODE"), JsonPropertyOrder(1)] public string ALARM_CODE { get; set; } /// /// 異常類別 /// /// /// AGV
/// SHT
/// PLC
///
[Column(Name = "ALARM_TYPE")] [Required, Key, StringLength(3), JsonPropertyName("ALARM_TYPE"), JsonPropertyOrder(2)] public string ALARM_TYPE { get; set; } /// /// 異常等級 /// /// /// 0 = Warning
/// 1 = Alarm
///
[Column(Name = "ALARM_LEVEL"), Required, JsonPropertyName("ALARM_LEVEL"), JsonPropertyOrder(3)] public int ALARM_LEVEL { get; set; } /// /// 異常敘述 /// [Column(Name = "ALARM_DESC"), Required, JsonPropertyName("ALARM_DESC"), JsonPropertyOrder(4)] public string ALARM_DESC { get; set; } /// /// 異常對策 /// [Column(Name = "ALARM_CTS"), StringLength(255), JsonPropertyName("ALARM_CTS"), JsonPropertyOrder(5)] public string ALARM_CTS { get; set; } } }