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
81 lines
2.8 KiB
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Mirle.Component.Database.Model.WES
|
|
{
|
|
/// <summary>
|
|
/// 即時異常資訊類別
|
|
/// </summary>
|
|
[Table("CUR_ALARM_DATA")]
|
|
public class CurAlarmDataDto
|
|
{
|
|
/// <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>
|
|
[Column(Name = "START_TIME")]
|
|
[Required, Key, JsonPropertyName("START_TIME"), JsonPropertyOrder(3)]
|
|
public DateTime START_TIME { get; set; }
|
|
/// <summary>
|
|
/// 異常敘述
|
|
/// </summary>
|
|
[Column(Name = "ALARM_DESC")]
|
|
[JsonPropertyName("ALARM_DESC"), JsonPropertyOrder(4)]
|
|
public string ALARM_DESC { get; set; }
|
|
/// <summary>
|
|
/// 軟體編號
|
|
/// </summary>
|
|
/// <remarks>[Sofeware Type]C[Floor][Sequence * 2]</remarks>
|
|
[Column(Name = "SOFTWARE_ID")]
|
|
[Required, JsonPropertyName("SOFTWARE_ID"), JsonPropertyOrder(5)]
|
|
public string SOFTWARE_ID { get; set; }
|
|
/// <summary>
|
|
/// 任務編號
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Warehouse Controller System Task ID <br/>
|
|
/// P[YYYYMMDDHH][Sequence * 5] (PLCC) <br/>
|
|
/// A[YYYYMMDDHH][Sequence * 5] (AGVC) <br/>
|
|
/// S[YYYYMMDDHH][Sequence * 5] (SHTC) <br/>
|
|
/// </remarks>
|
|
[Column(Name = "TASK_ID")]
|
|
[JsonPropertyName("TASK_ID"), JsonPropertyOrder(6)]
|
|
public string TASK_ID { get; set; }
|
|
/// <summary>
|
|
/// 設備編號
|
|
/// </summary>
|
|
[Column(Name = "VEHICLE_ID")]
|
|
[StringLength(16), JsonPropertyName("VEHICLE_ID"), JsonPropertyOrder(7)]
|
|
public string VEHICLE_ID { get; set; }
|
|
/// <summary>
|
|
/// 結束時間
|
|
/// </summary>
|
|
[Column(Name = "END_TIME")]
|
|
[JsonPropertyName("END_TIME"), JsonPropertyOrder(8)]
|
|
public DateTime? END_TIME { get; set; }
|
|
/// <summary>
|
|
/// 程式名稱
|
|
/// </summary>
|
|
[Column(Name = "PROGRAM_NAME")]
|
|
[Required, StringLength(30), JsonPropertyName("PROGRAM_NAME"), JsonPropertyOrder(9)]
|
|
public string PROGRAM_NAME { get; set; }
|
|
}
|
|
}
|