123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257 |
- using System;
- using LeaRun.Application.Code;
- namespace LeaRun.Application.Entity.BaseManage
- {
- /// <summary>
- /// 版 本
- /// Copyright (c) 2013-2016 上海力软信息技术有限公司
- /// 创建人:佘赐雄
- /// 日 期:2015.11.03 10:58
- /// 描 述:用户管理
- /// </summary>
- public class UserEntity : BaseEntity
- {
- #region 实体成员
- /// <summary>
- /// 用户主键
- /// </summary>
- public string UserId { get; set; }
- /// <summary>
- /// 用户编码
- /// </summary>
- public string EnCode { get; set; }
- /// <summary>
- /// 登录账户
- /// </summary>
- public string Account { get; set; }
- /// <summary>
- /// 登录密码
- /// </summary>
- public string Password { get; set; }
- /// <summary>
- /// 密码秘钥
- /// </summary>
- public string Secretkey { get; set; }
- /// <summary>
- /// 真实姓名
- /// </summary>
- public string RealName { get; set; }
- /// <summary>
- /// 呢称
- /// </summary>
- public string NickName { get; set; }
- /// <summary>
- /// 头像
- /// </summary>
- public string HeadIcon { get; set; }
- /// <summary>
- /// 快速查询
- /// </summary>
- public string QuickQuery { get; set; }
- /// <summary>
- /// 简拼
- /// </summary>
- public string SimpleSpelling { get; set; }
- /// <summary>
- /// 性别
- /// </summary>
- public int? Gender { get; set; }
- /// <summary>
- /// 生日
- /// </summary>
- public DateTime? Birthday { get; set; }
- /// <summary>
- /// 手机
- /// </summary>
- public string Mobile { get; set; }
- /// <summary>
- /// 电话
- /// </summary>
- public string Telephone { get; set; }
- /// <summary>
- /// 电子邮件
- /// </summary>
- public string Email { get; set; }
- /// <summary>
- /// QQ号
- /// </summary>
- public string OICQ { get; set; }
- /// <summary>
- /// 微信号
- /// </summary>
- public string WeChat { get; set; }
- /// <summary>
- /// MSN
- /// </summary>
- public string MSN { get; set; }
- /// <summary>
- /// 主管主键
- /// </summary>
- public string ManagerId { get; set; }
- /// <summary>
- /// 主管
- /// </summary>
- public string Manager { get; set; }
- /// <summary>
- /// 机构主键
- /// </summary>
- public string OrganizeId { get; set; }
- /// <summary>
- /// 部门主键
- /// </summary>
- public string DepartmentId { get; set; }
- /// <summary>
- /// 角色主键
- /// </summary>
- public string RoleId { get; set; }
- /// <summary>
- /// 岗位主键
- /// </summary>
- public string DutyId { get; set; }
- /// <summary>
- /// 岗位名称
- /// </summary>
- public string DutyName { get; set; }
- /// <summary>
- /// 职位主键
- /// </summary>
- public string PostId { get; set; }
- /// <summary>
- /// 职位名称
- /// </summary>
- public string PostName { get; set; }
- /// <summary>
- /// 工作组主键
- /// </summary>
- public string WorkGroupId { get; set; }
- /// <summary>
- /// 安全级别
- /// </summary>
- public int? SecurityLevel { get; set; }
- /// <summary>
- /// 在线状态
- /// </summary>
- public int? UserOnLine { get; set; }
- /// <summary>
- /// 单点登录标识
- /// </summary>
- public int? OpenId { get; set; }
- /// <summary>
- /// 密码提示问题
- /// </summary>
- public string Question { get; set; }
- /// <summary>
- /// 密码提示答案
- /// </summary>
- public string AnswerQuestion { get; set; }
- /// <summary>
- /// 允许多用户同时登录
- /// </summary>
- public int? CheckOnLine { get; set; }
- /// <summary>
- /// 允许登录时间开始
- /// </summary>
- public DateTime? AllowStartTime { get; set; }
- /// <summary>
- /// 允许登录时间结束
- /// </summary>
- public DateTime? AllowEndTime { get; set; }
- /// <summary>
- /// 暂停用户开始日期
- /// </summary>
- public DateTime? LockStartDate { get; set; }
- /// <summary>
- /// 暂停用户结束日期
- /// </summary>
- public DateTime? LockEndDate { get; set; }
- /// <summary>
- /// 第一次访问时间
- /// </summary>
- public DateTime? FirstVisit { get; set; }
- /// <summary>
- /// 上一次访问时间
- /// </summary>
- public DateTime? PreviousVisit { get; set; }
- /// <summary>
- /// 最后访问时间
- /// </summary>
- public DateTime? LastVisit { get; set; }
- /// <summary>
- /// 登录次数
- /// </summary>
- public int? LogOnCount { get; set; }
- /// <summary>
- /// 排序码
- /// </summary>
- public int? SortCode { get; set; }
- /// <summary>
- /// 删除标记
- /// </summary>
- public int? DeleteMark { get; set; }
- /// <summary>
- /// 有效标志
- /// </summary>
- public int? EnabledMark { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- public string Description { get; set; }
- /// <summary>
- /// 创建日期
- /// </summary>
- public DateTime? CreateDate { get; set; }
- /// <summary>
- /// 创建用户主键
- /// </summary>
- public string CreateUserId { get; set; }
- /// <summary>
- /// 创建用户
- /// </summary>
- public string CreateUserName { get; set; }
- /// <summary>
- /// 修改日期
- /// </summary>
- public DateTime? ModifyDate { get; set; }
- /// <summary>
- /// 修改用户主键
- /// </summary>
- public string ModifyUserId { get; set; }
- /// <summary>
- /// 自增长 accountID
- /// </summary>
- //public Int64 AccoutId { get; set; }
- /// <summary>
- ///
- /// 修改用户
- /// </summary>
- public string ModifyUserName { get; set; }
- #endregion
- #region 扩展操作
- /// <summary>
- /// 新增调用
- /// </summary>
- public override void Create()
- {
- this.UserId = Guid.NewGuid().ToString();
- this.CreateDate = DateTime.Now;
- //this.CreateUserId = OperatorProvider.Provider.Current().UserId;
- //this.CreateUserName = OperatorProvider.Provider.Current().UserName;
- this.DeleteMark = 0;
- this.EnabledMark = 1;
- }
- /// <summary>
- /// 编辑调用
- /// </summary>
- /// <param name="keyValue"></param>
- public override void Modify(string keyValue)
- {
- this.UserId = keyValue;
- this.ModifyDate = DateTime.Now;
- this.ModifyUserId = OperatorProvider.Provider.Current().UserId;
- this.ModifyUserName = OperatorProvider.Provider.Current().UserName;
- }
- #endregion
- }
- }
|