using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Web.Mvc; namespace WX.CRM.Model.Entity { public partial class CSVR_TODOITEM { [DisplayName("待办事项Id")] [NotMapped] public decimal map_PKID { get { return this.PKID; } set { this.PKID = value; } } [DisplayName("发起人")] [Required(ErrorMessage = "发起人不能为空")] [NotMapped] public decimal map_SENDEDUSERID { get { return this.SENDEDUSERID; } set { this.SENDEDUSERID = value; } } [DisplayName("接收人")] [Required(ErrorMessage = "接收人不能为空")] [NotMapped] [Remote("CheckUserByEid", "../Base/Inneruser", ErrorMessage = "工号不存在")] public decimal map_RECEIVEDUSERID { get { return this.RECEIVEDUSERID; } set { this.RECEIVEDUSERID = value; } } [DisplayName("私有事项")] [NotMapped] public short map_ISPRIVATE { get { return this.ISPRIVATE; } set { this.ISPRIVATE = value; } } [DisplayName("客户ID")] [NotMapped] //[Required(ErrorMessage = "客户ID不能为空")] [Remote("CheckRESID", "../Res/Customer", ErrorMessage = "客户ID不存在")] public string map_RESID { get { return this.RESID; } set { this.RESID = value; } } [DisplayName("待办事项内容")] [NotMapped] public string map_MEMO { get { return this.MEMO; } set { this.MEMO = value; } } [DisplayName("提醒时间")] [NotMapped] [Required(ErrorMessage = "提醒时间不能为空")] public string map_STARTTIME { get { return this.STARTTIME.ToString(); } set { this.STARTTIME = Convert.ToDateTime(value); } } [DisplayName("待办事项状态")] [NotMapped] public Nullable map_DOSTATUS { get { return this.DOSTATUS; } set { this.DOSTATUS = value; } } [DisplayName("处理结果")] [NotMapped] public string map_DOREMARK { get { return this.DOREMARK; } set { this.DOREMARK = value; } } [DisplayName("完成时间")] [NotMapped] public Nullable map_DOTIME { get { return this.DOTIME; } set { this.DOTIME = value; } } [DisplayName("完成人")] [NotMapped] public Nullable map_DOUSERID { get { return this.DOUSERID; } set { this.DOUSERID = value; } } [DisplayName("创建时间")] [NotMapped] public Nullable map_CTIME { get { return this.CTIME; } set { this.CTIME = value; } } } public class CSVR_TODOITEM_MAP { [NotMapped] public string CNAME { get; set; } public CSVR_TODOITEM todoitem { get; set; } } [NotMapped] public class CSVR_TODOITEM_extend : CSVR_TODOITEM { public Nullable SendEid { get; set; } public Nullable RecEid { get; set; } public Nullable ComEid { get; set; } public string SendName { get; set; } public string RecName { get; set; } public string ComName { get; set; } [NotMapped] public string DEPTNAME { get; set; } } [NotMapped] public class CSVR_TODOITEM_DTO { public decimal PKID { get; set; } public decimal SENDEDUSERID { get; set; } public decimal RECEIVEDUSERID { get; set; } public string RESID { get; set; } public string MEMO { get; set; } public DateTime? STARTTIME { get; set; } public decimal? DOSTATUS { get; set; } [StringLength(500)] public string DOREMARK { get; set; } public DateTime? DOTIME { get; set; } public decimal? DOUSERID { get; set; } public string URL { get; set; } public string URLTITLE { get; set; } public string RESOURCETAG { get; set; } public string REMARK { get; set; } [NotMapped] public int? DEPTID { get; set; } [NotMapped] public string DEPTNAME { get; set; } } }