EquipmentAlarmRecord.cs
1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System.ComponentModel.DataAnnotations;
using ColumnAttribute = System.ComponentModel.DataAnnotations.Schema.ColumnAttribute;
using TableAttribute = System.ComponentModel.DataAnnotations.Schema.TableAttribute;
namespace HHECS.Model.Entities
{
/// <summary>
/// 设备报警记录
/// </summary>
[Table("wcs_equipmentalarm")]
public class EquipmentAlarmRecord : BaseEntityCU<int>
{
[Column(Order = 2)]
[MaxLength(50)]
public string EquipmentCode { get; set; }
[Column(Order = 3)]
[MaxLength(50)]
public string EquipmentName { get; set; }
[Column(Order = 4)]
[MaxLength(50)]
public string EquipmentPropCode { get; set; }
[Column(Order = 5)]
[MaxLength(50)]
public string EquipmentPropName { get; set; }
[Column(Order = 6)]
[MaxLength(2000)]
public string Alarm { get; set; }
/// <summary>
/// 报警记录是否结束,默认超过5秒没有接收到报警更新,则结束此条持续报警
/// </summary>
[Column(Order = 7)]
public bool IsEnd { get; set; }
}
}