UserEntity.cs 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. using System;
  2. using LeaRun.Application.Code;
  3. namespace LeaRun.Application.Entity.BaseManage
  4. {
  5. /// <summary>
  6. /// 版 本
  7. /// Copyright (c) 2013-2016 上海力软信息技术有限公司
  8. /// 创建人:佘赐雄
  9. /// 日 期:2015.11.03 10:58
  10. /// 描 述:用户管理
  11. /// </summary>
  12. public class UserEntity : BaseEntity
  13. {
  14. #region 实体成员
  15. /// <summary>
  16. /// 用户主键
  17. /// </summary>
  18. public string UserId { get; set; }
  19. /// <summary>
  20. /// 用户编码
  21. /// </summary>
  22. public string EnCode { get; set; }
  23. /// <summary>
  24. /// 登录账户
  25. /// </summary>
  26. public string Account { get; set; }
  27. /// <summary>
  28. /// 登录密码
  29. /// </summary>
  30. public string Password { get; set; }
  31. /// <summary>
  32. /// 密码秘钥
  33. /// </summary>
  34. public string Secretkey { get; set; }
  35. /// <summary>
  36. /// 真实姓名
  37. /// </summary>
  38. public string RealName { get; set; }
  39. /// <summary>
  40. /// 呢称
  41. /// </summary>
  42. public string NickName { get; set; }
  43. /// <summary>
  44. /// 头像
  45. /// </summary>
  46. public string HeadIcon { get; set; }
  47. /// <summary>
  48. /// 快速查询
  49. /// </summary>
  50. public string QuickQuery { get; set; }
  51. /// <summary>
  52. /// 简拼
  53. /// </summary>
  54. public string SimpleSpelling { get; set; }
  55. /// <summary>
  56. /// 性别
  57. /// </summary>
  58. public int? Gender { get; set; }
  59. /// <summary>
  60. /// 生日
  61. /// </summary>
  62. public DateTime? Birthday { get; set; }
  63. /// <summary>
  64. /// 手机
  65. /// </summary>
  66. public string Mobile { get; set; }
  67. /// <summary>
  68. /// 电话
  69. /// </summary>
  70. public string Telephone { get; set; }
  71. /// <summary>
  72. /// 电子邮件
  73. /// </summary>
  74. public string Email { get; set; }
  75. /// <summary>
  76. /// QQ号
  77. /// </summary>
  78. public string OICQ { get; set; }
  79. /// <summary>
  80. /// 微信号
  81. /// </summary>
  82. public string WeChat { get; set; }
  83. /// <summary>
  84. /// MSN
  85. /// </summary>
  86. public string MSN { get; set; }
  87. /// <summary>
  88. /// 主管主键
  89. /// </summary>
  90. public string ManagerId { get; set; }
  91. /// <summary>
  92. /// 主管
  93. /// </summary>
  94. public string Manager { get; set; }
  95. /// <summary>
  96. /// 机构主键
  97. /// </summary>
  98. public string OrganizeId { get; set; }
  99. /// <summary>
  100. /// 部门主键
  101. /// </summary>
  102. public string DepartmentId { get; set; }
  103. /// <summary>
  104. /// 角色主键
  105. /// </summary>
  106. public string RoleId { get; set; }
  107. /// <summary>
  108. /// 岗位主键
  109. /// </summary>
  110. public string DutyId { get; set; }
  111. /// <summary>
  112. /// 岗位名称
  113. /// </summary>
  114. public string DutyName { get; set; }
  115. /// <summary>
  116. /// 职位主键
  117. /// </summary>
  118. public string PostId { get; set; }
  119. /// <summary>
  120. /// 职位名称
  121. /// </summary>
  122. public string PostName { get; set; }
  123. /// <summary>
  124. /// 工作组主键
  125. /// </summary>
  126. public string WorkGroupId { get; set; }
  127. /// <summary>
  128. /// 安全级别
  129. /// </summary>
  130. public int? SecurityLevel { get; set; }
  131. /// <summary>
  132. /// 在线状态
  133. /// </summary>
  134. public int? UserOnLine { get; set; }
  135. /// <summary>
  136. /// 单点登录标识
  137. /// </summary>
  138. public int? OpenId { get; set; }
  139. /// <summary>
  140. /// 密码提示问题
  141. /// </summary>
  142. public string Question { get; set; }
  143. /// <summary>
  144. /// 密码提示答案
  145. /// </summary>
  146. public string AnswerQuestion { get; set; }
  147. /// <summary>
  148. /// 允许多用户同时登录
  149. /// </summary>
  150. public int? CheckOnLine { get; set; }
  151. /// <summary>
  152. /// 允许登录时间开始
  153. /// </summary>
  154. public DateTime? AllowStartTime { get; set; }
  155. /// <summary>
  156. /// 允许登录时间结束
  157. /// </summary>
  158. public DateTime? AllowEndTime { get; set; }
  159. /// <summary>
  160. /// 暂停用户开始日期
  161. /// </summary>
  162. public DateTime? LockStartDate { get; set; }
  163. /// <summary>
  164. /// 暂停用户结束日期
  165. /// </summary>
  166. public DateTime? LockEndDate { get; set; }
  167. /// <summary>
  168. /// 第一次访问时间
  169. /// </summary>
  170. public DateTime? FirstVisit { get; set; }
  171. /// <summary>
  172. /// 上一次访问时间
  173. /// </summary>
  174. public DateTime? PreviousVisit { get; set; }
  175. /// <summary>
  176. /// 最后访问时间
  177. /// </summary>
  178. public DateTime? LastVisit { get; set; }
  179. /// <summary>
  180. /// 登录次数
  181. /// </summary>
  182. public int? LogOnCount { get; set; }
  183. /// <summary>
  184. /// 排序码
  185. /// </summary>
  186. public int? SortCode { get; set; }
  187. /// <summary>
  188. /// 删除标记
  189. /// </summary>
  190. public int? DeleteMark { get; set; }
  191. /// <summary>
  192. /// 有效标志
  193. /// </summary>
  194. public int? EnabledMark { get; set; }
  195. /// <summary>
  196. /// 备注
  197. /// </summary>
  198. public string Description { get; set; }
  199. /// <summary>
  200. /// 创建日期
  201. /// </summary>
  202. public DateTime? CreateDate { get; set; }
  203. /// <summary>
  204. /// 创建用户主键
  205. /// </summary>
  206. public string CreateUserId { get; set; }
  207. /// <summary>
  208. /// 创建用户
  209. /// </summary>
  210. public string CreateUserName { get; set; }
  211. /// <summary>
  212. /// 修改日期
  213. /// </summary>
  214. public DateTime? ModifyDate { get; set; }
  215. /// <summary>
  216. /// 修改用户主键
  217. /// </summary>
  218. public string ModifyUserId { get; set; }
  219. /// <summary>
  220. /// 自增长 accountID
  221. /// </summary>
  222. //public Int64 AccoutId { get; set; }
  223. /// <summary>
  224. ///
  225. /// 修改用户
  226. /// </summary>
  227. public string ModifyUserName { get; set; }
  228. #endregion
  229. #region 扩展操作
  230. /// <summary>
  231. /// 新增调用
  232. /// </summary>
  233. public override void Create()
  234. {
  235. this.UserId = Guid.NewGuid().ToString();
  236. this.CreateDate = DateTime.Now;
  237. //this.CreateUserId = OperatorProvider.Provider.Current().UserId;
  238. //this.CreateUserName = OperatorProvider.Provider.Current().UserName;
  239. this.DeleteMark = 0;
  240. this.EnabledMark = 1;
  241. }
  242. /// <summary>
  243. /// 编辑调用
  244. /// </summary>
  245. /// <param name="keyValue"></param>
  246. public override void Modify(string keyValue)
  247. {
  248. this.UserId = keyValue;
  249. this.ModifyDate = DateTime.Now;
  250. this.ModifyUserId = OperatorProvider.Provider.Current().UserId;
  251. this.ModifyUserName = OperatorProvider.Provider.Current().UserName;
  252. }
  253. #endregion
  254. }
  255. }