ExamAbsentReplaceInput.cs 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 导入缺测替补输入参数
  5. /// </summary>
  6. public class ImportExamAbsentReplaceItem
  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. /// 缺测学生姓名
  30. /// </summary>
  31. [Required, StringLength(100)]
  32. public string AbsentName { get; set; }
  33. /// <summary>
  34. /// 缺测学生监测号
  35. /// </summary>
  36. [Required, StringLength(20)]
  37. public string AbsentExamNumber { get; set; }
  38. /// <summary>
  39. /// 缺测科目
  40. /// </summary>
  41. [Required]
  42. public string AbsentCourses { get; set; }
  43. /// <summary>
  44. /// 缺测原因
  45. /// </summary>
  46. [Required, StringLength(200)]
  47. public string AbsentReason { get; set; }
  48. /// <summary>
  49. /// 是否有替补
  50. /// </summary>
  51. [Required]
  52. public bool IsReplaced { get; set; } = false;
  53. /// <summary>
  54. /// 替补学生姓名
  55. /// </summary>
  56. [StringLength(100)]
  57. public string ReplaceName { get; set; }
  58. /// <summary>
  59. /// 替补学生监测号
  60. /// </summary>
  61. [StringLength(20)]
  62. public string ReplaceExamNumber { get; set; }
  63. /// <summary>
  64. /// 家长姓名
  65. /// </summary>
  66. [StringLength(100)]
  67. public string PatriarchName { get; set; }
  68. /// <summary>
  69. /// 家长电话
  70. /// </summary>
  71. [StringLength(50)]
  72. public string PatriarchTel { get; set; }
  73. /// <summary>
  74. /// 备注
  75. /// </summary>
  76. public string Remark { get; set; }
  77. }
  78. /// <summary>
  79. /// 导入缺测替补输入参数
  80. /// </summary>
  81. public class ImportExamAbsentReplaceInput
  82. {
  83. /// <summary>
  84. /// 监测计划ID
  85. /// </summary>
  86. [Required]
  87. public int ExamPlanId { get; set; }
  88. /// <summary>
  89. /// 机构ID
  90. /// </summary>
  91. public short? SysOrgId { get; set; }
  92. /// <summary>
  93. /// 校区ID
  94. /// </summary>
  95. public short? SysOrgBranchId { get; set; }
  96. /// <summary>
  97. /// 导入行
  98. /// </summary>
  99. [Required]
  100. public List<ImportExamAbsentReplaceItem> Items { get; set; }
  101. /// <summary>
  102. /// 数据导入模式
  103. /// </summary>
  104. [Required]
  105. public DataImportMode DataImportMode { get; set; }
  106. }
  107. /// <summary>
  108. /// 添加缺测替补上报输入参数
  109. /// </summary>
  110. public class AddExamAbsentReplaceInput
  111. {
  112. /// <summary>
  113. /// 监测计划ID
  114. /// </summary>
  115. [Required]
  116. public int ExamPlanId { get; set; }
  117. /// <summary>
  118. /// 机构ID
  119. /// </summary>
  120. [Required]
  121. public short SysOrgId { get; set; }
  122. /// <summary>
  123. /// 校区ID
  124. /// </summary>
  125. public short? SysOrgBranchId { get; set; }
  126. /// <summary>
  127. /// 监测年级ID
  128. /// </summary>
  129. [Required]
  130. public int ExamGradeId { get; set; }
  131. /// <summary>
  132. /// 年级ID
  133. /// </summary>
  134. [Required]
  135. public short GradeId { get; set; }
  136. /// <summary>
  137. /// 班级ID
  138. /// </summary>
  139. [Required]
  140. public long SchoolClassId { get; set; }
  141. /// <summary>
  142. /// 班号
  143. /// </summary>
  144. [Required]
  145. public short ClassNumber { get; set; }
  146. /// <summary>
  147. /// 缺测学生姓名
  148. /// </summary>
  149. [Required, StringLength(100)]
  150. public string AbsentName { get; set; }
  151. /// <summary>
  152. /// 缺测学生监测号
  153. /// </summary>
  154. [Required, StringLength(20)]
  155. public string AbsentExamNumber { get; set; }
  156. /// <summary>
  157. /// 缺测科目
  158. /// </summary>
  159. [Required]
  160. public string AbsentCourses { get; set; } = "[]";
  161. /// <summary>
  162. /// 缺测原因
  163. /// </summary>
  164. [Required, StringLength(200)]
  165. public string AbsentReason { get; set; }
  166. /// <summary>
  167. /// 是否有替补
  168. /// </summary>
  169. [Required]
  170. public bool IsReplaced { get; set; } = false;
  171. /// <summary>
  172. /// 替补学生姓名
  173. /// </summary>
  174. [StringLength(100)]
  175. public string ReplaceName { get; set; }
  176. /// <summary>
  177. /// 替补学生监测号
  178. /// </summary>
  179. [StringLength(20)]
  180. public string ReplaceExamNumber { get; set; }
  181. /// <summary>
  182. /// 家长姓名
  183. /// </summary>
  184. [StringLength(100)]
  185. public string PatriarchName { get; set; }
  186. /// <summary>
  187. /// 家长电话
  188. /// </summary>
  189. [StringLength(50)]
  190. public string PatriarchTel { get; set; }
  191. /// <summary>
  192. /// 备注
  193. /// </summary>
  194. [StringLength(200)]
  195. public string Remark { get; set; }
  196. }
  197. /// <summary>
  198. /// 更新缺测替补上报输入参数
  199. /// </summary>
  200. public class UpdateExamAbsentReplaceInput : AddExamAbsentReplaceInput
  201. {
  202. /// <summary>
  203. /// 主键
  204. /// </summary>
  205. [Required]
  206. public int Id { get; set; }
  207. }
  208. /// <summary>
  209. /// 清空缺测替补输入参数
  210. /// </summary>
  211. public class ClearExamAbsentReplaceInput
  212. {
  213. /// <summary>
  214. /// 监测计划ID
  215. /// </summary>
  216. [Required]
  217. public int ExamPlanId { get; set; }
  218. }
  219. /// <summary>
  220. /// 分页查询缺测替补输入参数
  221. /// </summary>
  222. public class ExamAbsentReplacePageInput : PageInputBase
  223. {
  224. /// <summary>
  225. /// 监测计划ID
  226. /// </summary>
  227. [Required]
  228. public int ExamPlanId { get; set; }
  229. /// <summary>
  230. /// 机构ID
  231. /// </summary>
  232. public short? SysOrgId { get; set; }
  233. /// <summary>
  234. /// 校区ID
  235. /// </summary>
  236. public short? SysOrgBranchId { get; set; }
  237. /// <summary>
  238. /// 年级ID
  239. /// </summary>
  240. public short? GradeId { get; set; }
  241. /// <summary>
  242. /// 班级号
  243. /// </summary>
  244. public short? ClassNumber { get; set; }
  245. /// <summary>
  246. /// 缺测学生姓名
  247. /// </summary>
  248. [StringLength(100)]
  249. public string AbsentName { get; set; }
  250. /// <summary>
  251. /// 缺测学生监测号
  252. /// </summary>
  253. [StringLength(20)]
  254. public string AbsentExamNumber { get; set; }
  255. /// <summary>
  256. /// 缺测科目
  257. /// </summary>
  258. public short? AbentCourseId { get; set; }
  259. /// <summary>
  260. /// 缺测原因
  261. /// </summary>
  262. [StringLength(200)]
  263. public string AbsentReason { get; set; }
  264. /// <summary>
  265. /// 是否有替补
  266. /// </summary>
  267. public bool? IsReplaced { get; set; }
  268. /// <summary>
  269. /// 替补学生姓名
  270. /// </summary>
  271. [StringLength(100)]
  272. public string ReplaceName { get; set; }
  273. /// <summary>
  274. /// 替补学生监测号
  275. /// </summary>
  276. [StringLength(20)]
  277. public string ReplaceExamNumber { get; set; }
  278. /// <summary>
  279. /// 家长电话
  280. /// </summary>
  281. [StringLength(50)]
  282. public string PatriarchTel { get; set; }
  283. /// <summary>
  284. /// 备注
  285. /// </summary>
  286. public string Remark { get; set; }
  287. /// <summary>
  288. /// 状态
  289. /// </summary>
  290. public AuditStatus? Status { get; set; }
  291. }
  292. /// <summary>
  293. /// 缺测替补审核输入参数
  294. /// </summary>
  295. public class ExamAbsentReplaceAuditInput
  296. {
  297. /// <summary>
  298. /// 缺测替补学生ID列表
  299. /// </summary>
  300. public List<int> Ids { get; set; }
  301. /// <summary>
  302. /// 是否通过
  303. /// </summary>
  304. public bool IsApproved { get; set; }
  305. /// <summary>
  306. /// 审核意见
  307. /// </summary>
  308. public string Remark { get; set; }
  309. }