ExamStudentInput.cs 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 导入监测学生输入参数
  5. /// </summary>
  6. public class ImportExamStudentItem
  7. {
  8. /// <summary>
  9. /// 监测计划ID
  10. /// </summary>
  11. [Required]
  12. public int ExamPlanId { get; set; }
  13. /// <summary>
  14. /// 监测年级ID
  15. /// </summary>
  16. [Required]
  17. public int ExamGradeId { get; set; }
  18. /// <summary>
  19. /// 年级ID
  20. /// </summary>
  21. [Required]
  22. public short GradeId { get; set; }
  23. /// <summary>
  24. /// 班级号
  25. /// </summary>
  26. [Required]
  27. public short ClassNumber { get; set; }
  28. /// <summary>
  29. /// 选科组合ID
  30. /// </summary>
  31. public short? CourseCombId { get; set; }
  32. /// <summary>
  33. /// 姓名
  34. /// </summary>
  35. [Required]
  36. public string Name { get; set; }
  37. /// <summary>
  38. /// 证件类型
  39. /// </summary>
  40. [Required]
  41. public CertificateType CertificateType { get; set; }
  42. /// <summary>
  43. /// 证件号码
  44. /// </summary>
  45. public string IdNumber { get; set; } = "";
  46. /// <summary>
  47. /// 性别
  48. /// </summary>
  49. public Gender? Gender { get; set; } = Core.Gender.UNKNOWN;
  50. /// <summary>
  51. /// 学籍号
  52. /// </summary>
  53. public string StudentNumber { get; set; }
  54. /// <summary>
  55. /// 自编监测号
  56. /// </summary>
  57. public string ExamNumber { get; set; }
  58. /// <summary>
  59. /// 考场号
  60. /// </summary>
  61. public string RoomNumber { get; set; } = "";
  62. /// <summary>
  63. /// 座位号
  64. /// </summary>
  65. public string SeatNumber { get; set; }
  66. /// <summary>
  67. /// 备注
  68. /// </summary>
  69. public string Remark { get; set; }
  70. }
  71. /// <summary>
  72. /// 导入监测学生输入参数
  73. /// </summary>
  74. public class ImportExamStudentInput
  75. {
  76. /// <summary>
  77. /// 监测计划ID
  78. /// </summary>
  79. [Required]
  80. public int ExamPlanId { get; set; }
  81. /// <summary>
  82. /// 监测年级ID
  83. /// </summary>
  84. [Required]
  85. public int ExamGradeId { get; set; }
  86. /// <summary>
  87. /// 年级ID
  88. /// </summary>
  89. [Required]
  90. public int GradeId { get; set; }
  91. /// <summary>
  92. /// 机构ID
  93. /// </summary>
  94. public short? SysOrgId { get; set; }
  95. /// <summary>
  96. /// 校区ID
  97. /// </summary>
  98. public short? SysOrgBranchId { get; set; }
  99. /// <summary>
  100. /// 导入行
  101. /// </summary>
  102. [Required]
  103. public List<ImportExamStudentItem> Items { get; set; }
  104. /// <summary>
  105. /// 数据导入模式
  106. /// </summary>
  107. [Required]
  108. public DataImportMode DataImportMode { get; set; }
  109. }
  110. /// <summary>
  111. /// 添加监测学生输入参数
  112. /// </summary>
  113. public class AddExamStudentInput
  114. {
  115. /// <summary>
  116. /// 监测计划ID
  117. /// </summary>
  118. [Required]
  119. public int ExamPlanId { get; set; }
  120. /// <summary>
  121. /// 机构ID
  122. /// </summary>
  123. public short? SysOrgId { get; set; }
  124. /// <summary>
  125. /// 校区ID
  126. /// </summary>
  127. public short? SysOrgBranchId { get; set; }
  128. /// <summary>
  129. /// 监测年级ID
  130. /// </summary>
  131. [Required]
  132. public int ExamGradeId { get; set; }
  133. /// <summary>
  134. /// 年级ID
  135. /// </summary>
  136. [Required]
  137. public short GradeId { get; set; }
  138. /// <summary>
  139. /// 班号
  140. /// </summary>
  141. [Required]
  142. public short ClassNumber { get; set; }
  143. /// <summary>
  144. /// 高中选科组合ID
  145. /// </summary>
  146. public short? CourseCombId { get; set; }
  147. /// <summary>
  148. /// 自编监测号
  149. /// </summary>
  150. [StringLength(20)]
  151. public string ExamNumber { get; set; } = "";
  152. /// <summary>
  153. /// 学籍号
  154. /// </summary>
  155. [StringLength(100)]
  156. public string StudentNumber { get; set; } = "";
  157. /// <summary>
  158. /// 考场号
  159. /// </summary>
  160. [StringLength(20)]
  161. public string RoomNumber { get; set; } = "";
  162. /// <summary>
  163. /// 座位号
  164. /// </summary>
  165. [StringLength(20)]
  166. public string SeatNumber { get; set; } = "";
  167. /// <summary>
  168. /// 姓名
  169. /// </summary>
  170. [Required, StringLength(100)]
  171. public string Name { get; set; }
  172. /// <summary>
  173. /// 证件类型
  174. /// </summary>
  175. [Required]
  176. public CertificateType CertificateType { get; set; } = CertificateType.NONE;
  177. /// <summary>
  178. /// 证件号码
  179. /// </summary>
  180. [StringLength(50)]
  181. public string IdNumber { get; set; } = "";
  182. /// <summary>
  183. /// 出生日期
  184. /// </summary>
  185. public DateTime? BirthDate { get; set; }
  186. /// <summary>
  187. /// 性别
  188. /// </summary>
  189. [Required]
  190. public Gender Gender { get; set; } = Gender.UNKNOWN;
  191. /// <summary>
  192. /// 备注
  193. /// </summary>
  194. [StringLength(200)]
  195. public string Remark { get; set; }
  196. }
  197. /// <summary>
  198. /// 更新监测学生输入参数
  199. /// </summary>
  200. public class UpdateExamStudentInput
  201. {
  202. /// <summary>
  203. /// 主键
  204. /// </summary>
  205. [Required]
  206. public long Id { get; set; }
  207. /// <summary>
  208. /// 校区ID
  209. /// </summary>
  210. public short? SysOrgBranchId { get; set; }
  211. /// <summary>
  212. /// 班号
  213. /// </summary>
  214. [Required]
  215. public short ClassNumber { get; set; }
  216. /// <summary>
  217. /// 高中选科组合ID
  218. /// </summary>
  219. public short? CourseCombId { get; set; }
  220. /// <summary>
  221. /// 自编监测号
  222. /// </summary>
  223. [StringLength(20)]
  224. public string ExamNumber { get; set; } = "";
  225. /// <summary>
  226. /// 学籍号
  227. /// </summary>
  228. [StringLength(100)]
  229. public string StudentNumber { get; set; } = "";
  230. /// <summary>
  231. /// 考场号
  232. /// </summary>
  233. [StringLength(20)]
  234. public string RoomNumber { get; set; } = "";
  235. /// <summary>
  236. /// 座位号
  237. /// </summary>
  238. [StringLength(20)]
  239. public string SeatNumber { get; set; } = "";
  240. /// <summary>
  241. /// 姓名
  242. /// </summary>
  243. [Required, StringLength(100)]
  244. public string Name { get; set; }
  245. /// <summary>
  246. /// 证件类型
  247. /// </summary>
  248. [Required]
  249. public CertificateType CertificateType { get; set; } = CertificateType.NONE;
  250. /// <summary>
  251. /// 证件号码
  252. /// </summary>
  253. [StringLength(50)]
  254. public string IdNumber { get; set; } = "";
  255. /// <summary>
  256. /// 出生日期
  257. /// </summary>
  258. public DateTime? BirthDate { get; set; }
  259. /// <summary>
  260. /// 性别
  261. /// </summary>
  262. [Required]
  263. public Gender Gender { get; set; } = Gender.UNKNOWN;
  264. /// <summary>
  265. /// 备注
  266. /// </summary>
  267. [StringLength(200)]
  268. public string Remark { get; set; }
  269. }
  270. /// <summary>
  271. /// 清空监测学生输入参数
  272. /// </summary>
  273. public class ClearExamStudentInput
  274. {
  275. /// <summary>
  276. /// 监测计划ID
  277. /// </summary>
  278. [Required]
  279. public int ExamPlanId { get; set; }
  280. }
  281. /// <summary>
  282. /// 分页查询监测学生输入参数
  283. /// </summary>
  284. public class ExamStudentPageInput : PageInputBase
  285. {
  286. /// <summary>
  287. /// 监测计划ID
  288. /// </summary>
  289. [Required]
  290. public int ExamPlanId { get; set; }
  291. /// <summary>
  292. /// 校区ID
  293. /// </summary>
  294. public short? SysOrgBranchId { get; set; }
  295. /// <summary>
  296. /// 年级ID
  297. /// </summary>
  298. public short? GradeId { get; set; }
  299. /// <summary>
  300. /// 班级号
  301. /// </summary>
  302. public short? ClassNumber { get; set; }
  303. /// <summary>
  304. /// 选科组合ID
  305. /// </summary>
  306. public short? CourseCombId { get; set; }
  307. /// <summary>
  308. /// 姓名
  309. /// </summary>
  310. public string Name { get; set; }
  311. /// <summary>
  312. /// 证件类型
  313. /// </summary>
  314. public CertificateType? CertificateType { get; set; }
  315. /// <summary>
  316. /// 证件号码
  317. /// </summary>
  318. public string IdNumber { get; set; }
  319. /// <summary>
  320. /// 性别
  321. /// </summary>
  322. public Gender? Gender { get; set; }
  323. /// <summary>
  324. /// 学籍号
  325. /// </summary>
  326. public string StudentNumber { get; set; }
  327. /// <summary>
  328. /// 自编监测号
  329. /// </summary>
  330. public string ExamNumber { get; set; }
  331. /// <summary>
  332. /// 考场号
  333. /// </summary>
  334. public string RoomNumber { get; set; }
  335. /// <summary>
  336. /// 座位号
  337. /// </summary>
  338. public string SeatNumber { get; set; }
  339. }