ExamStudentInput.cs 9.6 KB

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