ExamTeacherCourseInput.cs 5.8 KB

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