SchoolClassInput.cs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 添加单个学校班级输入参数
  5. /// </summary>
  6. public class AddSchoolClassInput
  7. {
  8. /// <summary>
  9. /// 学校ID
  10. /// </summary>
  11. [Required]
  12. public short SysOrgId { get; set; }
  13. /// <summary>
  14. /// 校区ID
  15. /// </summary>
  16. public short? SysOrgBranchId { get; set; }
  17. /// <summary>
  18. /// 入学年份(级)
  19. /// </summary>
  20. [Required]
  21. public short GradeBeginYear { get; set; }
  22. /// <summary>
  23. /// 毕业年份(级)
  24. /// </summary>
  25. [Required]
  26. public short GradeEndYear { get; set; }
  27. /// <summary>
  28. /// 学制
  29. /// </summary>
  30. [Required]
  31. public short EducationYears { get; set; }
  32. /// <summary>
  33. /// 学段
  34. /// </summary>
  35. [Required]
  36. public EducationStage EducationStage { get; set; }
  37. /// <summary>
  38. /// 班号
  39. /// </summary>
  40. [Required]
  41. public short ClassNumber { get; set; }
  42. /// <summary>
  43. /// 名称:入学年份+级+班号+班,如2025级1班
  44. /// </summary>
  45. [Required]
  46. [StringLength(50)]
  47. public string Name { get; set; }
  48. /// <summary>
  49. /// 全称:学段名+入学年份+级+班号+班,如小学2025级1班
  50. /// </summary>
  51. [Required]
  52. [StringLength(200)]
  53. public string FullName { get; set; }
  54. /// <summary>
  55. /// 简称:班号+班,如1班
  56. /// </summary>
  57. [Required]
  58. [StringLength(50)]
  59. public string ShortName { get; set; }
  60. /// <summary>
  61. /// 备注
  62. /// </summary>
  63. [StringLength(200)]
  64. public string Remark { get; set; }
  65. /// <summary>
  66. /// 状态
  67. /// </summary>
  68. [Required]
  69. public CommonStatus Status { get; set; }
  70. }
  71. /// <summary>
  72. /// 批量添加学校班级输入参数
  73. /// </summary>
  74. public class BatchAddSchoolClassInput
  75. {
  76. /// <summary>
  77. /// 学校ID
  78. /// </summary>
  79. [Required]
  80. public short SysOrgId { get; set; }
  81. /// <summary>
  82. /// 校区ID
  83. /// </summary>
  84. public short? SysOrgBranchId { get; set; }
  85. /// <summary>
  86. /// 入学年份(级)
  87. /// </summary>
  88. [Required]
  89. public short GradeBeginYear { get; set; }
  90. /// <summary>
  91. /// 毕业年份(级)
  92. /// </summary>
  93. [Required]
  94. public short GradeEndYear { get; set; }
  95. /// <summary>
  96. /// 学制
  97. /// </summary>
  98. [Required]
  99. public short EducationYears { get; set; }
  100. /// <summary>
  101. /// 学段
  102. /// </summary>
  103. [Required]
  104. public EducationStage EducationStage { get; set; }
  105. /// <summary>
  106. /// 添加班级数量
  107. /// </summary>
  108. [Required, Range(1, 50, ErrorMessage = "班级数量限制为1至50")]
  109. public short ClassCount { get; set; }
  110. /// <summary>
  111. /// 状态
  112. /// </summary>
  113. [Required]
  114. public CommonStatus Status { get; set; }
  115. }
  116. /// <summary>
  117. /// 分页查询班级输入参数
  118. /// </summary>
  119. public class SchoolClassPageInput : PageInputBase
  120. {
  121. /// <summary>
  122. /// 学校ID
  123. /// </summary>
  124. public short? SysOrgId { get; set; }
  125. /// <summary>
  126. /// 校区ID
  127. /// </summary>
  128. public short? SysOrgBranchId { get; set; }
  129. /// <summary>
  130. /// 入学年份(级)
  131. /// </summary>
  132. public short? GradeBeginYear { get; set; }
  133. /// <summary>
  134. /// 班号
  135. /// </summary>
  136. public short? ClassNumber { get; set; }
  137. /// <summary>
  138. /// 班名
  139. /// </summary>
  140. public string Name { get; set; }
  141. /// <summary>
  142. /// 状态
  143. /// </summary>
  144. public CommonStatus? Status { get; set; }
  145. }
  146. /// <summary>
  147. /// 导入批量生成班级输入参数
  148. /// </summary>
  149. public class ImportSchoolClassInput
  150. {
  151. /// <summary>
  152. /// 学校ID
  153. /// </summary>
  154. [Required]
  155. public short SysOrgId { get; set; }
  156. /// <summary>
  157. /// 校区ID
  158. /// </summary>
  159. public short? SysOrgBranchId { get; set; }
  160. /// <summary>
  161. /// 监测年级
  162. /// </summary>
  163. [Required]
  164. public ExamGradeOutput ExamGrade { get; set; }
  165. /// <summary>
  166. /// 班号列表
  167. /// </summary>
  168. [Required]
  169. public List<short> ClassNumberList { get; set; }
  170. }
  171. /// <summary>
  172. /// 批量插入输入参数
  173. /// </summary>
  174. public class BatchInsertSchoolClassInput: AddSchoolClassInput
  175. {
  176. /// <summary>
  177. /// 主键
  178. /// </summary>
  179. public long Id { get; set;}
  180. }