131 lines
3.4 KiB
C#
131 lines
3.4 KiB
C#
![]() |
using System;
|
|||
|
|
|||
|
namespace DI_Electrical.Models
|
|||
|
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 动作。和状态是两码事情。
|
|||
|
/// </summary>
|
|||
|
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()
|
|||
|
{
|
|||
|
}
|
|||
|
/// <summary>
|
|||
|
///
|
|||
|
/// </summary>
|
|||
|
/// <param name="action"></param>
|
|||
|
/// <param name="departmentRetrieveNotice">接收方</param>
|
|||
|
/// <param name="WireGroupID"></param>
|
|||
|
public ec_wire_group_notice(Action action, Department departmentRetrieveNotice, string WireGroupID)
|
|||
|
{
|
|||
|
ActionID = action;
|
|||
|
CompanyID = departmentRetrieveNotice;
|
|||
|
this.WireGroupID = WireGroupID;
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
#region 实体成员
|
|||
|
/// <summary>
|
|||
|
/// 信号表通知ID
|
|||
|
/// </summary>
|
|||
|
/// <returns></returns>
|
|||
|
public string WireGroupNoticeID { get; set; }
|
|||
|
/// <summary>
|
|||
|
/// 信号ID
|
|||
|
/// </summary>
|
|||
|
/// <returns></returns>
|
|||
|
public string WireGroupID { get; set; } = "";
|
|||
|
/// <summary>
|
|||
|
/// 动作
|
|||
|
/// </summary>
|
|||
|
/// <returns></returns>
|
|||
|
public Action ActionID { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 额外的消息(如删除时,必须要给一个删除理由)
|
|||
|
/// </summary>
|
|||
|
/// <returns></returns>
|
|||
|
public string Message { get; set; } = "";
|
|||
|
/// <summary>
|
|||
|
/// 是否被确认。false未读。true已读。
|
|||
|
/// </summary>
|
|||
|
public bool CheckFLG { get; set; } = false;
|
|||
|
/// <summary>
|
|||
|
/// 接收者的部门
|
|||
|
/// </summary>
|
|||
|
public Department CompanyID { get; set; }
|
|||
|
/// <summary>
|
|||
|
/// 创建人(也就是发起通知的人)
|
|||
|
/// </summary>
|
|||
|
/// <returns></returns>
|
|||
|
public string CreateUserID { get; set; }
|
|||
|
/// <summary>
|
|||
|
/// 创建时间
|
|||
|
/// </summary>
|
|||
|
/// <returns></returns>
|
|||
|
public DateTime? CreateTime { get; set; }
|
|||
|
/// <summary>
|
|||
|
/// 更新人(也就是确认这个消息已阅的人)
|
|||
|
/// </summary>
|
|||
|
/// <returns></returns>
|
|||
|
public string UpdateUserID { get; set; }
|
|||
|
/// <summary>
|
|||
|
/// 更新时间
|
|||
|
/// </summary>
|
|||
|
/// <returns></returns>
|
|||
|
public DateTime? UpdateTime { get; set; }
|
|||
|
#endregion
|
|||
|
|
|||
|
#region 扩展字段
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 动作(描述)
|
|||
|
/// </summary>
|
|||
|
/// <returns></returns>
|
|||
|
public string Action { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 创建人名称
|
|||
|
/// </summary>
|
|||
|
/// <returns></returns>
|
|||
|
public string CreateUserName { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 批准人名字
|
|||
|
/// </summary>
|
|||
|
/// <returns></returns>
|
|||
|
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
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
|