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