TG.WXCRM.V4/Model/MAP/BAS_INNERUSER.cs

385 lines
12 KiB
C#

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<System.DateTime> map_DISMISSTIME { get { return this.DISMISSTIME; } set { this.DISMISSTIME = value; } }
[DisplayName("离职类型")]
[NotMapped]
public Nullable<decimal> map_DISMISSTYPE { get { return this.DISMISSTYPE; } set { this.DISMISSTYPE = value; } }
[DisplayName("入职时间")]
[NotMapped]
public Nullable<System.DateTime> map_ENTRYDATE { get { return this.ENTRYDATE; } set { this.ENTRYDATE = value; } }
[DisplayName("转正时间")]
[NotMapped]
public Nullable<System.DateTime> 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
{
/// <summary>
/// 组名次
/// </summary>
[DisplayName("销售组")]
public string GNAME { get; set; }
[DisplayName("部门Id")]
public decimal? DEPTID { get; set; }
/// <summary>
/// 部门
/// </summary>
[DisplayName("部门")]
public string DEPTNAME { get; set; }
/// <summary>
/// 角色名称
/// </summary>
[DisplayName("角色")]
public string ROLESNAMES { get; set; }
[DisplayName("状态")]
public Nullable<short> FUTURESSTATUS { get; set; }
[DisplayName("状态")]
public Nullable<short> TRADERSTATUS { get; set; }
[DisplayName("状态")]
public Nullable<short> TUTORSTATUS { get; set; }
[DisplayName("客户经理状态")]
public Nullable<short> MANAGERSTATUS { get; set; }
[DisplayName("客服状态")]
public Nullable<short> GENERALCUSTOMER { get; set; }
[DisplayName("高级客服状态")]
public Nullable<short> SENIORCUSTOMER { get; set; }
/// <summary>
/// 用户
/// </summary>
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<decimal> 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;
/// <summary>
///
/// </summary>
public int id
{
set { _id = value; }
get { return _id; }
}
/// <summary>
///
/// </summary>
public int eid
{
set { _eid = value; }
get { return _eid; }
}
/// <summary>
///
/// </summary>
public string password
{
set { _password = value; }
get { return _password; }
}
/// <summary>
///
/// </summary>
public string name
{
set { _name = value; }
get { return _name; }
}
/// <summary>
///
/// </summary>
public int? salesGroupId
{
set { _salesgroupid = value; }
get { return _salesgroupid; }
}
/// <summary>
///
/// </summary>
public string deptCode
{
set { _deptcode = value; }
get { return _deptcode; }
}
/// <summary>
/// 性别
/// </summary>
public string sex
{
set { _sex = value; }
get { return _sex; }
}
/// <summary>
/// 联系电话
/// </summary>
public string mobile
{
set { _mobile = value; }
get { return _mobile; }
}
/// <summary>
/// 电子邮箱
/// </summary>
public string email
{
set { _email = value; }
get { return _email; }
}
/// <summary>
/// 是否离职
/// </summary>
public bool IsDismiss
{
set { _isdismiss = value; }
get { return _isdismiss; }
}
/// <summary>
/// 创建时间
/// </summary>
public DateTime? creationDate
{
set { _creationdate = value; }
get { return _creationdate; }
}
/// <summary>
/// 修改时间
/// </summary>
public DateTime? updateDate
{
set { _updatedate = value; }
get { return _updatedate; }
}
/// <summary>
/// 创建人
/// </summary>
public int? creationBy
{
set { _creationby = value; }
get { return _creationby; }
}
/// <summary>
/// 修改人
/// </summary>
public int? updateBy
{
set { _updateby = value; }
get { return _updateby; }
}
/// <summary>
///
/// </summary>
public bool futuresStatus
{
set { _futuresstatus = value; }
get { return _futuresstatus; }
}
/// <summary>
///
/// </summary>
public int? traderStatus
{
set { _traderstatus = value; }
get { return _traderstatus; }
}
/// <summary>
///
/// </summary>
public int? tutorStatus
{
set { _tutorstatus = value; }
get { return _tutorstatus; }
}
/// <summary>
///
/// </summary>
public bool MiddleType
{
set { _middletype = value; }
get { return _middletype; }
}
/// <summary>
///
/// </summary>
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
}
}