using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace WX.CRM.Model.Entity { public partial class BAS_INNERUSER { [DisplayName("组别Id")] [NotMapped] public decimal map_PKID { get { return this.PKID; } set { this.PKID = value; } } [DisplayName("姓名")] [NotMapped] public string map_UNAME { get { return this.UNAME; } set { this.UNAME = value; } } [DisplayName("真实姓名")] [NotMapped] public string map_TRUENAME { get { return this.TRUENAME; } set { this.TRUENAME = value; } } [DisplayName("工号")] [NotMapped] [Required(ErrorMessage = "工号不能为空")] public decimal map_EID { get { return this.EID; } set { this.EID = value; } } [DisplayName("性别")] [NotMapped] public string map_GENDER { get { return this.GENDER; } set { this.GENDER = value; } } [DisplayName("生日")] [NotMapped] public System.DateTime map_BIRTHDAY { get { return this.BIRTHDAY; } set { this.BIRTHDAY = value; } } [DisplayName("密码")] [NotMapped] [Required(ErrorMessage = "密码不能为空")] [RegularExpression("^(?![^a-zA-Z]+$)(?!\\D+$).{6,20}$", ErrorMessage = "必须是数字和字母组成的6~20字符")] public string map_PASSWORD { get { return this.PASSWORD; } set { this.PASSWORD = value; } } [DisplayName("密码")] [NotMapped] [Required(ErrorMessage = "密码不能为空")] public string map_PASSWORD2 { get { return this.PASSWORD; } set { this.PASSWORD = value; } } [DisplayName("密码")] [NotMapped] [RegularExpression("^(?![^a-zA-Z]+$)(?!\\D+$).{6,20}$", ErrorMessage = "必须是数字和字母组成的6~20字符")] public string map_PASSWORD3 { get { return this.PASSWORD; } set { this.PASSWORD = value; } } [DisplayName("确认密码")] [NotMapped] [Compare("map_PASSWORD3", ErrorMessage = "密码不一致")] public string map_CPASSWORD2 { get; set; } [DisplayName("确认密码")] [NotMapped] [Required(ErrorMessage = "确认密码不能为空")] [Compare("map_PASSWORD", ErrorMessage = "密码不一致")] public string map_CPASSWORD { get; set; } [DisplayName("话机号")] [NotMapped] public int? map_FJH { get; set; } [DisplayName("验证码")] [NotMapped] [Required(ErrorMessage = "验证码不能为空")] public string map_SnCode { get; set; } [DisplayName("组别")] [NotMapped] public decimal? map_GID { get; set; } [DisplayName("是否离职")] [NotMapped] public short map_ISDISMISS { get { return this.ISDISMISS; } set { this.ISDISMISS = value; } } [DisplayName("离职时间")] [NotMapped] public Nullable map_DISMISSTIME { get { return this.DISMISSTIME; } set { this.DISMISSTIME = value; } } [DisplayName("离职类型")] [NotMapped] public Nullable map_DISMISSTYPE { get { return this.DISMISSTYPE; } set { this.DISMISSTYPE = value; } } [DisplayName("入职时间")] [NotMapped] public Nullable map_ENTRYDATE { get { return this.ENTRYDATE; } set { this.ENTRYDATE = value; } } [DisplayName("转正时间")] [NotMapped] public Nullable map_POSITIVETIME { get { return this.POSITIVETIME; } set { this.POSITIVETIME = value; } } [DisplayName("是否隐藏")] [NotMapped] public short map_ISHIDE { get { return this.ISHIDE; } set { this.ISHIDE = value; } } } public class BAS_INNERUSER_Extend { /// /// 组名次 /// [DisplayName("销售组")] public string GNAME { get; set; } [DisplayName("部门Id")] public decimal? DEPTID { get; set; } /// /// 部门 /// [DisplayName("部门")] public string DEPTNAME { get; set; } /// /// 角色名称 /// [DisplayName("角色")] public string ROLESNAMES { get; set; } [DisplayName("状态")] public Nullable FUTURESSTATUS { get; set; } [DisplayName("状态")] public Nullable TRADERSTATUS { get; set; } [DisplayName("状态")] public Nullable TUTORSTATUS { get; set; } [DisplayName("客户经理状态")] public Nullable MANAGERSTATUS { get; set; } [DisplayName("客服状态")] public Nullable GENERALCUSTOMER { get; set; } [DisplayName("高级客服状态")] public Nullable SENIORCUSTOMER { get; set; } /// /// 用户 /// public BAS_INNERUSER INNERUSER { get; set; } [DisplayName("最近登录时间")] public DateTime? LOGINTIME { get; set; } [DisplayName("登录IP")] public string LOGINIP { get; set; } [DisplayName("分机号")] public decimal? TELNUM { get; set; } } public class BAS_INNERUSER_SETTINGVIEW { //[RegularExpression("[0-9]*", ErrorMessage = "请选中销售组!")] /* [NotMapped] public Nullable ma_GID { get { return this.GID; } set { this.GID = value; } } *//*[Required(ErrorMessage = "调动时间不能为空!")]*//* [NotMapped] public DateTime? inDate { get; set; } = DateTime.Now; public decimal? GID { get; set; }*/ public string INNERUSERIDLIST { get; set; } public string ulRoleIds { get; set; } = ""; } public class USER_EDITPASSWORDVIEW { [DisplayName("姓名")] public string Name { get; set; } public string Pkid { get; set; } [Required] [StringLength(200)] public string PASSWORD { get; set; } [DisplayName("密码")] [NotMapped] [Required(ErrorMessage = "密码不能为空")] [RegularExpression("^(?![^a-zA-Z]+$)(?!\\D+$).{6,20}$", ErrorMessage = "必须是数字和字母组成的6~20字符")] public string map_PASSWORD { get { return this.PASSWORD; } set { this.PASSWORD = value; } } [DisplayName("密码")] [NotMapped] [Required(ErrorMessage = "密码不能为空")] public string map_PASSWORD2 { get { return this.PASSWORD; } set { this.PASSWORD = value; } } [DisplayName("密码")] [NotMapped] [RegularExpression("^(?![^a-zA-Z]+$)(?!\\D+$).{6,20}$", ErrorMessage = "必须是数字和字母组成的6~20字符")] public string map_PASSWORD3 { get { return this.PASSWORD; } set { this.PASSWORD = value; } } [DisplayName("确认密码")] [NotMapped] [Compare("map_PASSWORD3", ErrorMessage = "密码不一致")] public string map_CPASSWORD2 { get; set; } [DisplayName("确认密码")] [NotMapped] [Required(ErrorMessage = "确认密码不能为空")] [Compare("map_PASSWORD", ErrorMessage = "密码不一致")] public string map_CPASSWORD { get; set; } } [Serializable] public class SysUser { #region Model private int _id; private int _eid; private string _password; private string _name; private int? _salesgroupid; private string _deptcode; private string _sex; private string _mobile; private string _email; private bool _isdismiss; private DateTime? _creationdate; private DateTime? _updatedate; private int? _creationby; private int? _updateby; private bool _futuresstatus; private int? _traderstatus; private int? _tutorstatus; private bool _middletype; private DateTime? _dismisstime; private DateTime? _entryDate; private int? _dismissType; /// /// /// public int id { set { _id = value; } get { return _id; } } /// /// /// public int eid { set { _eid = value; } get { return _eid; } } /// /// /// public string password { set { _password = value; } get { return _password; } } /// /// /// public string name { set { _name = value; } get { return _name; } } /// /// /// public int? salesGroupId { set { _salesgroupid = value; } get { return _salesgroupid; } } /// /// /// public string deptCode { set { _deptcode = value; } get { return _deptcode; } } /// /// 性别 /// public string sex { set { _sex = value; } get { return _sex; } } /// /// 联系电话 /// public string mobile { set { _mobile = value; } get { return _mobile; } } /// /// 电子邮箱 /// public string email { set { _email = value; } get { return _email; } } /// /// 是否离职 /// public bool IsDismiss { set { _isdismiss = value; } get { return _isdismiss; } } /// /// 创建时间 /// public DateTime? creationDate { set { _creationdate = value; } get { return _creationdate; } } /// /// 修改时间 /// public DateTime? updateDate { set { _updatedate = value; } get { return _updatedate; } } /// /// 创建人 /// public int? creationBy { set { _creationby = value; } get { return _creationby; } } /// /// 修改人 /// public int? updateBy { set { _updateby = value; } get { return _updateby; } } /// /// /// public bool futuresStatus { set { _futuresstatus = value; } get { return _futuresstatus; } } /// /// /// public int? traderStatus { set { _traderstatus = value; } get { return _traderstatus; } } /// /// /// public int? tutorStatus { set { _tutorstatus = value; } get { return _tutorstatus; } } /// /// /// public bool MiddleType { set { _middletype = value; } get { return _middletype; } } /// /// /// public DateTime? DismissTime { set { _dismisstime = value; } get { return _dismisstime; } } public DateTime? EntryDate { set { _entryDate = value; } get { return _entryDate; } } public int? DismissType { set { _dismissType = value; } get { return _dismissType; } } #endregion Model } }