using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace WX.CRM.Model.Entity { public partial class BAS_SALESDEPARTMENT { [DisplayName("部门ID")] [NotMapped] public decimal map_SALEDEPTID { get { return this.SALEDEPTID; } set { this.SALEDEPTID = value; } } [DisplayName("公司")] [NotMapped] public Nullable map_COMPANYID { get { return this.COMPANYID; } set { this.COMPANYID = value; } } [DisplayName("部门编码")] //[StringLength(6)] [NotMapped] //[RegularExpression("[a-zA-Z0-9]{6}", ErrorMessage = "编码=公司编码+2位码")] [Required(ErrorMessage = "编码不能为空!")] public string map_SALEDEPTCODE { get { return this.SALEDEPTCODE; } set { this.SALEDEPTCODE = value; } } [DisplayName("部门名称")] [Required(ErrorMessage = "名称不能为空!")] [NotMapped] public string map_DEPTNAME { get { return this.DEPTNAME; } set { this.DEPTNAME = value; } } [DisplayName("营业部地址")] //[StringLength(255)] [NotMapped] public string map_ADDRESS { get { return this.ADDRESS; } set { this.ADDRESS = value; } } [DisplayName("联系人")] [NotMapped] public string map_LINKNAME { get { return this.LINKNAME; } set { this.LINKNAME = value; } } [DisplayName("邮编")] [NotMapped] public string map_AREACODE { get { return this.AREACODE; } set { this.AREACODE = value; } } [DisplayName("联系电话")] [NotMapped] public string map_PHONE { get { return this.PHONE; } set { this.PHONE = value; } } [DisplayName("创建时间")] [NotMapped] public Nullable map_CREATIONDATE { get { return this.CREATIONDATE; } set { this.CREATIONDATE = value; } } [DisplayName("创建人")] [NotMapped] public Nullable map_CREATIONBY { get { return this.CREATIONBY; } set { this.CREATIONBY = value; } } [DisplayName("修改时间")] [NotMapped] public Nullable map_UPDATEDATE { get { return this.UPDATEDATE; } set { this.UPDATEDATE = value; } } [DisplayName("修改人")] [NotMapped] public Nullable map_UPDATEBY { get { return this.UPDATEBY; } set { this.UPDATEBY = value; } } } }