using iWare.Wms.Core.Enum; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace iWare.Wms.Core { /// /// 设备报警记录表 /// [Table("ware_device_wareing")] [Comment("设备报警记录表")] public class WareDeviceWarning : DEntityBase { /// /// 报警开始时间 /// [Comment("报警时间")] public DateTime? WarningTime { get; set; } /// /// 设备编号 /// [StringLength(50)] [Comment("设备编号")] public string DeviceCode { get; set; } /// /// 设备名称 /// [StringLength(500)] [Comment("设备名称")] public string DeviceName { get; set; } /// /// 报警编号 /// [StringLength(255)] [Comment("报警编号")] public string WarningCode { get; set; } /// /// 报警地址 /// [StringLength(255)] [Comment("报警地址")] public string WarningDbAddress { get; set; } /// /// 报警名称 /// [StringLength(255)] [Comment("报警名称")] public string WarningContent { get; set; } /// /// 状态(0:新建 1:已处理) /// [Comment("状态")] public int? Status { get; set; } /// /// 状态名称 /// [StringLength(255)] [Comment("状态名称")] public string StatusName { get; set; } ///// ///// ///// //[Comment("设备编号")] //public int? IsKnow { get; set; } /// /// /// [StringLength(255)] [Comment("设备编号")] public string CloseContent { get; set; } /// /// 报警结束时间 /// [Comment("报警结束时间")] public DateTime? FinishTime { get; set; } /// /// 持续时间 /// [StringLength(255)] [Comment("持续时间")] public string DurationTime { get; set; } ///// ///// 持续时间分钟 ///// //[Comment("持续时间分钟")] //public decimal? DurationMinuteTime { get; set; } /// /// 操作备注 /// [StringLength(500)] [Comment("操作备注")] public string OperationRemark { get; set; } /// /// 设备类型编码 /// [Comment("设备类型编码")] public int? DeviceType { get; set; } /// /// 设备类型名称 /// [StringLength(50)] [Comment("设备类型名称")] public string DeviceTypeName { get; set; } } }