You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

294 line
8.4 KiB

  1. using Learun.Util;
  2. using System;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. namespace Learun.Application.Organization
  5. {
  6. /// <summary>
  7. /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
  8. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  9. /// 创建人:陈彬彬
  10. /// 日 期:2017.03.04
  11. /// 描 述:用户数据库实体类
  12. /// </summary>
  13. public class UserEntity
  14. {
  15. #region 实体成员
  16. /// <summary>
  17. /// 用户主键
  18. /// </summary>
  19. [Column("F_USERID")]
  20. public string F_UserId { get; set; }
  21. /// <summary>
  22. /// 工号
  23. /// </summary>
  24. [Column("F_ENCODE")]
  25. public string F_EnCode { get; set; }
  26. /// <summary>
  27. /// 账户
  28. /// </summary>
  29. [Column("F_ACCOUNT")]
  30. public string F_Account { get; set; }
  31. /// <summary>
  32. /// 登录密码
  33. /// </summary>
  34. [Column("F_PASSWORD")]
  35. public string F_Password { get; set; }
  36. /// <summary>
  37. /// 密码秘钥
  38. /// </summary>
  39. [Column("F_SECRETKEY")]
  40. public string F_Secretkey { get; set; }
  41. /// <summary>
  42. /// 真实姓名
  43. /// </summary>
  44. [Column("F_REALNAME")]
  45. public string F_RealName { get; set; }
  46. /// <summary>
  47. /// 呢称
  48. /// </summary>
  49. [Column("F_NICKNAME")]
  50. public string F_NickName { get; set; }
  51. /// <summary>
  52. /// 头像
  53. /// </summary>
  54. [Column("F_HEADICON")]
  55. public string F_HeadIcon { get; set; }
  56. /// <summary>
  57. /// 快速查询
  58. /// </summary>
  59. [Column("F_QUICKQUERY")]
  60. public string F_QuickQuery { get; set; }
  61. /// <summary>
  62. /// 简拼
  63. /// </summary>
  64. [Column("F_SIMPLESPELLING")]
  65. public string F_SimpleSpelling { get; set; }
  66. /// <summary>
  67. /// 性别
  68. /// </summary>
  69. [Column("F_GENDER")]
  70. public int? F_Gender { get; set; }
  71. /// <summary>
  72. /// 生日
  73. /// </summary>
  74. [Column("F_BIRTHDAY")]
  75. public DateTime? F_Birthday { get; set; }
  76. /// <summary>
  77. /// 手机
  78. /// </summary>
  79. [Column("F_MOBILE")]
  80. public string F_Mobile { get; set; }
  81. /// <summary>
  82. /// 电话
  83. /// </summary>
  84. [Column("F_TELEPHONE")]
  85. public string F_Telephone { get; set; }
  86. /// <summary>
  87. /// 电子邮件
  88. /// </summary>
  89. [Column("F_EMAIL")]
  90. public string F_Email { get; set; }
  91. /// <summary>
  92. /// QQ号
  93. /// </summary>
  94. [Column("F_OICQ")]
  95. public string F_OICQ { get; set; }
  96. /// <summary>
  97. /// 微信号
  98. /// </summary>
  99. [Column("F_WECHAT")]
  100. public string F_WeChat { get; set; }
  101. /// <summary>
  102. /// MSN
  103. /// </summary>
  104. [Column("F_MSN")]
  105. public string F_MSN { get; set; }
  106. /// <summary>
  107. /// 公司主键
  108. /// </summary>
  109. [Column("F_COMPANYID")]
  110. public string F_CompanyId { get; set; }
  111. /// <summary>
  112. /// 部门主键
  113. /// </summary>
  114. [Column("F_DEPARTMENTID")]
  115. public string F_DepartmentId { get; set; }
  116. /// <summary>
  117. /// 安全级别
  118. /// </summary>
  119. [Column("F_SECURITYLEVEL")]
  120. public int? F_SecurityLevel { get; set; }
  121. /// <summary>
  122. /// 单点登录标识
  123. /// </summary>
  124. [Column("F_OPENID")]
  125. public int? F_OpenId { get; set; }
  126. /// <summary>
  127. /// 密码提示问题
  128. /// </summary>
  129. [Column("F_QUESTION")]
  130. public string F_Question { get; set; }
  131. /// <summary>
  132. /// 密码提示答案
  133. /// </summary>
  134. [Column("F_ANSWERQUESTION")]
  135. public string F_AnswerQuestion { get; set; }
  136. /// <summary>
  137. /// 允许多用户同时登录
  138. /// </summary>
  139. [Column("F_CHECKONLINE")]
  140. public int? F_CheckOnLine { get; set; }
  141. /// <summary>
  142. /// 允许登录时间开始
  143. /// </summary>
  144. [Column("F_ALLOWSTARTTIME")]
  145. public DateTime? F_AllowStartTime { get; set; }
  146. /// <summary>
  147. /// 允许登录时间结束
  148. /// </summary>
  149. [Column("F_ALLOWENDTIME")]
  150. public DateTime? F_AllowEndTime { get; set; }
  151. /// <summary>
  152. /// 暂停用户开始日期
  153. /// </summary>
  154. [Column("F_LOCKSTARTDATE")]
  155. public DateTime? F_LockStartDate { get; set; }
  156. /// <summary>
  157. /// 暂停用户结束日期
  158. /// </summary>
  159. [Column("F_LOCKENDDATE")]
  160. public DateTime? F_LockEndDate { get; set; }
  161. /// <summary>
  162. /// 排序码
  163. /// </summary>
  164. [Column("F_SORTCODE")]
  165. public int? F_SortCode { get; set; }
  166. /// <summary>
  167. /// 删除标记
  168. /// </summary>
  169. [Column("F_DELETEMARK")]
  170. public int? F_DeleteMark { get; set; }
  171. /// <summary>
  172. /// 有效标志
  173. /// </summary>
  174. [Column("F_ENABLEDMARK")]
  175. public int? F_EnabledMark { get; set; }
  176. /// <summary>
  177. /// 备注
  178. /// </summary>
  179. [Column("F_DESCRIPTION")]
  180. public string F_Description { get; set; }
  181. /// <summary>
  182. /// 创建日期
  183. /// </summary>
  184. [Column("F_CREATEDATE")]
  185. public DateTime? F_CreateDate { get; set; }
  186. /// <summary>
  187. /// 创建用户主键
  188. /// </summary>
  189. [Column("F_CREATEUSERID")]
  190. public string F_CreateUserId { get; set; }
  191. /// <summary>
  192. /// 创建用户
  193. /// </summary>
  194. [Column("F_CREATEUSERNAME")]
  195. public string F_CreateUserName { get; set; }
  196. /// <summary>
  197. /// 修改日期
  198. /// </summary>
  199. [Column("F_MODIFYDATE")]
  200. public DateTime? F_ModifyDate { get; set; }
  201. /// <summary>
  202. /// 修改用户主键
  203. /// </summary>
  204. [Column("F_MODIFYUSERID")]
  205. public string F_ModifyUserId { get; set; }
  206. /// <summary>
  207. /// 修改用户
  208. /// </summary>
  209. [Column("F_MODIFYUSERNAME")]
  210. public string F_ModifyUserName { get; set; }
  211. /// <summary>
  212. /// 设备号
  213. /// </summary>
  214. [Column("F_DEVICEID")]
  215. public string F_DeviceId { get; set; }
  216. [Column("F_IdentityCardNo")]
  217. public string F_IdentityCardNo { get; set; }
  218. [Column("OPENIDFORWEIXIN")]
  219. public string OpenIdForWeixin { get; set; }
  220. [Column("OPENIDFORWEIXINPC")]
  221. public string OpenIdForWeixinPC { get; set; }
  222. [Column("OPENIDFORQQ")]
  223. public string OpenIdForQQ { get; set; }
  224. [Column("LASTIP")]
  225. public string LastIp { get; set; }
  226. [Column("PERSIGNATURE")]
  227. public string PerSignature { get; set; }
  228. #endregion
  229. #region 扩展操作
  230. /// <summary>
  231. /// 新增调用
  232. /// </summary>
  233. public void Create()
  234. {
  235. UserInfo userInfo = LoginUserInfo.Get();
  236. this.F_CreateUserId = userInfo.userId;
  237. this.F_CreateUserName = userInfo.realName;
  238. this.F_UserId = Guid.NewGuid().ToString();
  239. this.F_CreateDate = DateTime.Now;
  240. this.F_DeleteMark = 0;
  241. this.F_EnabledMark = 1;
  242. }
  243. /// <summary>
  244. /// 编辑调用
  245. /// </summary>
  246. /// <param name="keyValue">主键</param>
  247. public void Modify(string keyValue)
  248. {
  249. UserInfo userInfo = LoginUserInfo.Get();
  250. if (userInfo != null)
  251. {
  252. this.F_ModifyUserId = userInfo.userId;
  253. this.F_ModifyUserName = userInfo.realName;
  254. }
  255. this.F_UserId = keyValue;
  256. this.F_ModifyDate = DateTime.Now;
  257. }
  258. #endregion
  259. #region 扩展属性
  260. /// <summary>
  261. /// 登录信息
  262. /// </summary>
  263. [NotMapped]
  264. public string LoginMsg { get; set; }
  265. /// <summary>
  266. /// 登录状态
  267. /// </summary>
  268. [NotMapped]
  269. public bool LoginOk { get; set; }
  270. [NotMapped]
  271. public string Source { get; set; }
  272. [NotMapped]
  273. public string F_UserId_Log { get; set; }
  274. [NotMapped]
  275. public string Photo { get; set; }
  276. #endregion
  277. }
  278. }