ExamTeacherInput.cs 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. using System.ComponentModel.DataAnnotations.Schema;
  2. using YBEE.EQM.Core;
  3. namespace YBEE.EQM.Application;
  4. /// <summary>
  5. /// 批量导入监测教师
  6. /// </summary>
  7. public class ImportExamTeacherItem
  8. {
  9. /// <summary>
  10. /// 监测计划ID
  11. /// </summary>
  12. [Required]
  13. public int ExamPlanId { get; set; }
  14. /// <summary>
  15. /// 机构ID
  16. /// </summary>
  17. public short? SysOrgId { get; set; }
  18. /// <summary>
  19. /// 姓名
  20. /// </summary>
  21. [Required]
  22. public string Name { get; set; }
  23. /// <summary>
  24. /// 校内职务ID
  25. /// </summary>
  26. [Required]
  27. public SchoolJobTitle SchoolJobTitle { get; set; } = SchoolJobTitle.TEACHER;
  28. /// <summary>
  29. /// 证件类型
  30. /// </summary>
  31. [Required]
  32. public CertificateType CertificateType { get; set; }
  33. /// <summary>
  34. /// 证件号码
  35. /// </summary>
  36. public string IdNumber { get; set; } = "";
  37. /// <summary>
  38. /// 性别
  39. /// </summary>
  40. public Gender? Gender { get; set; } = Core.Gender.UNKNOWN;
  41. /// <summary>
  42. /// 手机号码
  43. /// </summary>
  44. public string Mobile { get; set; } = "";
  45. /// <summary>
  46. /// 电子邮箱
  47. /// </summary>
  48. public string Email { get; set; } = "";
  49. /// <summary>
  50. /// 备注
  51. /// </summary>
  52. public string Remark { get; set; }
  53. }
  54. /// <summary>
  55. /// 批量导入监测教师输入参数
  56. /// </summary>
  57. public class ImportExamTeacherInput
  58. {
  59. /// <summary>
  60. /// 监测计划ID
  61. /// </summary>
  62. [Required]
  63. public int ExamPlanId { get; set; }
  64. /// <summary>
  65. /// 机构ID
  66. /// </summary>
  67. public short? SysOrgId { get; set; }
  68. /// <summary>
  69. /// 导入行
  70. /// </summary>
  71. [Required]
  72. public List<ImportExamTeacherItem> Items { get; set; }
  73. /// <summary>
  74. /// 数据导入模式
  75. /// </summary>
  76. [Required]
  77. public DataImportMode DataImportMode { get; set; }
  78. }
  79. /// <summary>
  80. /// 添加监测教师
  81. /// </summary>
  82. public class AddExamTeacherInput
  83. {
  84. /// <summary>
  85. /// 监测计划ID
  86. /// </summary>
  87. [Required]
  88. public int ExamPlanId { get; set; }
  89. /// <summary>
  90. /// 机构ID
  91. /// </summary>
  92. public short? SysOrgId { get; set; }
  93. /// <summary>
  94. /// 姓名
  95. /// </summary>
  96. [Required, StringLength(100)]
  97. public string Name { get; set; }
  98. /// <summary>
  99. /// 校内职务ID
  100. /// </summary>
  101. [Required]
  102. public SchoolJobTitle SchoolJobTitle { get; set; } = SchoolJobTitle.TEACHER;
  103. /// <summary>
  104. /// 证件类型
  105. /// </summary>
  106. [Required]
  107. public CertificateType CertificateType { get; set; } = CertificateType.NONE;
  108. /// <summary>
  109. /// 证件号码
  110. /// </summary>
  111. [StringLength(50)]
  112. public string IdNumber { get; set; } = "";
  113. /// <summary>
  114. /// 出生日期
  115. /// </summary>
  116. public DateTime? BirthDate { get; set; }
  117. /// <summary>
  118. /// 性别
  119. /// </summary>
  120. [Required]
  121. public Gender Gender { get; set; } = Gender.UNKNOWN;
  122. /// <summary>
  123. /// 手机号码
  124. /// </summary>
  125. [StringLength(50)]
  126. public string Mobile { get; set; } = "";
  127. /// <summary>
  128. /// 电子邮箱
  129. /// </summary>
  130. [StringLength(200)]
  131. public string Email { get; set; } = "";
  132. /// <summary>
  133. /// 备注
  134. /// </summary>
  135. [StringLength(200)]
  136. public string Remark { get; set; }
  137. }
  138. /// <summary>
  139. /// 更新监测教师
  140. /// </summary>
  141. public class UpdateExamTeacherInput : BaseId
  142. {
  143. /// <summary>
  144. /// 姓名
  145. /// </summary>
  146. [Required, StringLength(100)]
  147. public string Name { get; set; }
  148. /// <summary>
  149. /// 校内职务ID
  150. /// </summary>
  151. [Required]
  152. public SchoolJobTitle SchoolJobTitle { get; set; } = SchoolJobTitle.TEACHER;
  153. /// <summary>
  154. /// 证件类型
  155. /// </summary>
  156. [Required]
  157. public CertificateType CertificateType { get; set; } = CertificateType.NONE;
  158. /// <summary>
  159. /// 证件号码
  160. /// </summary>
  161. [StringLength(50)]
  162. public string IdNumber { get; set; } = "";
  163. /// <summary>
  164. /// 出生日期
  165. /// </summary>
  166. public DateTime? BirthDate { get; set; }
  167. /// <summary>
  168. /// 性别
  169. /// </summary>
  170. [Required]
  171. public Gender Gender { get; set; } = Gender.UNKNOWN;
  172. /// <summary>
  173. /// 手机号码
  174. /// </summary>
  175. [StringLength(50)]
  176. public string Mobile { get; set; } = "";
  177. /// <summary>
  178. /// 电子邮箱
  179. /// </summary>
  180. [StringLength(200)]
  181. public string Email { get; set; } = "";
  182. /// <summary>
  183. /// 备注
  184. /// </summary>
  185. [StringLength(200)]
  186. public string Remark { get; set; }
  187. }
  188. /// <summary>
  189. /// 清空监测教师
  190. /// </summary>
  191. public class ClearExamTeacherInput
  192. {
  193. /// <summary>
  194. /// 监测计划ID
  195. /// </summary>
  196. [Required]
  197. public int ExamPlanId { get; set; }
  198. }
  199. /// <summary>
  200. /// 分页查询监测教师
  201. /// </summary>
  202. public class ExamTeacherPageInput : PageInputBase
  203. {
  204. /// <summary>
  205. /// 监测计划ID
  206. /// </summary>
  207. [Required]
  208. public int ExamPlanId { get; set; }
  209. /// <summary>
  210. /// 姓名
  211. /// </summary>
  212. public string Name { get; set; }
  213. /// <summary>
  214. /// 校内职务ID
  215. /// </summary>
  216. public SchoolJobTitle? SchoolJobTitle { get; set; }
  217. /// <summary>
  218. /// 证件类型
  219. /// </summary>
  220. public CertificateType? CertificateType { get; set; }
  221. /// <summary>
  222. /// 证件号码
  223. /// </summary>
  224. public string IdNumber { get; set; }
  225. /// <summary>
  226. /// 性别
  227. /// </summary>
  228. public Gender? Gender { get; set; }
  229. /// <summary>
  230. /// 手机号码
  231. /// </summary>
  232. [StringLength(50)]
  233. public string Mobile { get; set; }
  234. /// <summary>
  235. /// 电子邮箱
  236. /// </summary>
  237. [StringLength(200)]
  238. public string Email { get; set; }
  239. }