UserInfoView.cs 4.5 KB

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