using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sugar.Enties { public class SafeQualityCheckDTO { /// /// 主键 /// Default: /// Nullable:False /// public string CheckCode { get; set; } /// /// 检查类型 QualityCheck SafeCheck /// Default: /// Nullable:True /// public string CheckType { get; set; } /// /// Desc:工程名称 /// Default: /// Nullable:True /// public string ProjectName { get; set; } /// /// Desc:项目编号 /// Default: /// Nullable:True /// public string ProjectCode { get; set; } /// /// Desc:审核日期 /// Default: /// Nullable:True /// public DateTime? CheckDate { get; set; } /// /// 检查类型 /// public string InspectType { get; set; } public string CheckDateStr { get { return CheckDate?.ToShortDateString(); } } /// /// Desc:审核用户代码 /// Default: /// Nullable:True /// public string CheckUserCode { get; set; } /// /// Desc:状态 0:申请 1:审核中 2:审核通过 /// Default: /// Nullable:True /// public int Status { get; set; } /// /// 状态名 /// public string StatusName { get { var name = ""; switch (Status) { case 0: name = "申请"; break; case 1: name = "审核中"; break; case 2: name = "审核通过"; break; } return name; } } /// /// Desc:流程审核日期 /// Default: /// Nullable:True /// public DateTime? WorkFlowCheckDate { get; set; } /// /// Desc:审核编号 /// Default: /// Nullable:True /// public string CheckID { get; set; } /// /// Desc:审核意见 /// Default: /// Nullable:True /// public string CheckOpinion { get; set; } } }