using System; namespace DI_Electrical.Models { /// /// 动作。和状态是两码事情。 /// public enum Action { 新增 = 0, 修改 = 1, 准备删除 = 2, 撤销删除 = 3, 删除 = 4, 关联通道 = 5, 审核 = 6, 重新打开 = 7, 关联解除 = 8, 回收站恢复 = 9 } public enum Department { 轮机 = 0, 电气 = 1 } public class ec_wire_group_notice { public ec_wire_group_notice() { } /// /// /// /// /// 接收方 /// public ec_wire_group_notice(Action action, Department departmentRetrieveNotice, string WireGroupID) { ActionID = action; CompanyID = departmentRetrieveNotice; this.WireGroupID = WireGroupID; } #region 实体成员 /// /// 信号表通知ID /// /// public string WireGroupNoticeID { get; set; } /// /// 信号ID /// /// public string WireGroupID { get; set; } = ""; /// /// 动作 /// /// public Action ActionID { get; set; } /// /// 额外的消息(如删除时,必须要给一个删除理由) /// /// public string Message { get; set; } = ""; /// /// 是否被确认。false未读。true已读。 /// public bool CheckFLG { get; set; } = false; /// /// 接收者的部门 /// public Department CompanyID { get; set; } /// /// 创建人(也就是发起通知的人) /// /// public string CreateUserID { get; set; } /// /// 创建时间 /// /// public DateTime? CreateTime { get; set; } /// /// 更新人(也就是确认这个消息已阅的人) /// /// public string UpdateUserID { get; set; } /// /// 更新时间 /// /// public DateTime? UpdateTime { get; set; } #endregion #region 扩展字段 /// /// 动作(描述) /// /// public string Action { get; set; } /// /// 创建人名称 /// /// public string CreateUserName { get; set; } /// /// 批准人名字 /// /// public string UpdateUserName { get; set; } #region 用于前端UI渲染,对应的信号的内容 public string Group_Name { get; set; } public string Group_Desc { get; set; } public string Group_Desc_EN { get; set; } public string IO_Type { get; set; } #endregion #endregion } }