UserInfoView.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. using OASystem.Domain.Attributes;
  2. using OASystem.Domain.Entities.System;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace OASystem.Domain.ViewModels.System
  9. {
  10. /// <summary>
  11. /// 用户数据 数据库返回数据实体接受类
  12. /// 查询返回View
  13. /// </summary>
  14. public class UserInfoWebView
  15. {
  16. /// <summary>
  17. /// 用户Id
  18. /// </summary>
  19. public int Id { get; set; }
  20. /// <summary>
  21. /// 公司Id
  22. /// </summary>
  23. public int CompanyId { get; set; }
  24. /// <summary>
  25. /// 公司名称
  26. /// </summary>
  27. public string CompanyName { get; set; }
  28. /// <summary>
  29. /// 部门Id
  30. /// </summary>
  31. public int DepId { get; set; }
  32. /// <summary>
  33. /// 部门名称
  34. /// </summary>
  35. public string DepName { get; set; }
  36. /// <summary>
  37. /// 岗位Id
  38. /// </summary>
  39. public int JobPostId { get; set; }
  40. /// <summary>
  41. /// 岗位名称
  42. /// </summary>
  43. public string JobName { get; set; }
  44. /// <summary>
  45. /// 中文姓名
  46. /// </summary>
  47. public string CnName { get; set; }
  48. /// <summary>
  49. /// 工号
  50. /// </summary>
  51. public string Number { get; set; }
  52. /// <summary>
  53. /// 分机号
  54. /// </summary>
  55. public string Ext { get; set; }
  56. /// <summary>
  57. /// 手机号
  58. /// </summary>
  59. [Encrypted]
  60. public string Phone { get; set; }
  61. /// <summary>
  62. /// 紧急联系人 手机号
  63. /// </summary>
  64. [Encrypted]
  65. public string UrgentPhone { get; set; }
  66. /// <summary>
  67. /// 邮箱
  68. /// </summary>
  69. public string Email { get; set; }
  70. /// <summary>
  71. /// 试用期
  72. /// </summary>
  73. public string UsePeriod { get; set; }
  74. /// <summary>
  75. /// 人事审核 0未审核(初始状态) 1 已通过(可用)2已拒绝
  76. /// </summary>
  77. public int HrAudit { get; set; }
  78. }
  79. /// <summary>
  80. /// 用户信息 - 个人基本信息 登陆时返回信息
  81. /// </summary>
  82. public class UserLoginInfoView
  83. {
  84. ///// <summary>
  85. ///// 工号
  86. ///// </summary>
  87. //public string Number { get; set; }
  88. /// <summary>
  89. /// 用户Id
  90. /// </summary>
  91. public int UserId { get; set; }
  92. /// <summary>
  93. /// 中文姓名
  94. /// </summary>
  95. public string CnName { get; set; }
  96. /// <summary>
  97. /// 性别
  98. /// 0 男 1 女 2 未设置
  99. /// </summary>
  100. public int Sex { get; set; }
  101. /// <summary>
  102. /// 公司名称
  103. /// </summary>
  104. public string CompanyName { get; set; }
  105. /// <summary>
  106. /// 部门名称
  107. /// </summary>
  108. public string DepName { get; set; }
  109. /// <summary>
  110. /// 岗位名称
  111. /// </summary>
  112. public string JobName { get; set; }
  113. /// <summary>
  114. /// 邮箱
  115. /// </summary>
  116. public string Email { get; set; }
  117. }
  118. /// <summary>
  119. /// 用户信息 - 个人基本信息
  120. /// </summary>
  121. public class UserBasicInfoView
  122. {
  123. /// <summary>
  124. /// 用户Id
  125. /// </summary>
  126. public string Id { get; set; }
  127. /// <summary>
  128. /// 岗位Id
  129. /// </summary>
  130. public int JobPostId { get; set; }
  131. /// <summary>
  132. /// 性别
  133. /// 0 男1 女 2 未设置
  134. /// </summary>
  135. public int Sex { get; set; }
  136. /// <summary>
  137. /// 工号
  138. /// </summary>
  139. public string Number { get; set; }
  140. /// <summary>
  141. /// 公司名称
  142. /// </summary>
  143. public string CompanyName { get; set; }
  144. /// <summary>
  145. /// 部门名称
  146. /// </summary>
  147. public string DepName { get; set; }
  148. /// <summary>
  149. /// 岗位名称
  150. /// </summary>
  151. public string JobName { get; set; }
  152. /// <summary>
  153. /// 邮箱
  154. /// </summary>
  155. public string Email { get; set; }
  156. }
  157. /// <summary>
  158. /// 查询用户名称
  159. /// </summary>
  160. public class UserNameView
  161. {
  162. /// <summary>
  163. /// 用户Id
  164. /// </summary>
  165. public int Id { get; set; }
  166. /// <summary>
  167. /// 用户中文名称
  168. /// </summary>
  169. public string CnName { get; set; }
  170. }
  171. }