ExamGradeInput.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 添加监测年级输入参数
  5. /// </summary>
  6. public class AddExamGradeInput
  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 short GradeId { get; set; }
  18. /// <summary>
  19. /// 年份(级)
  20. /// </summary>
  21. [Required]
  22. public short GradeBeginYear { get; set; }
  23. /// <summary>
  24. /// 年份(届)
  25. /// </summary>
  26. [Required]
  27. public short GradeEndYear { get; set; }
  28. /// <summary>
  29. /// 学段
  30. /// </summary>
  31. [Required]
  32. public EducationStage EducationStage { get; set; }
  33. /// <summary>
  34. /// 学制
  35. /// </summary>
  36. [Required]
  37. public short EducationYears { get; set; }
  38. }
  39. /// <summary>
  40. /// 添加监测年级输入参数
  41. /// </summary>
  42. public class AddExamGradeListInput
  43. {
  44. /// <summary>
  45. /// 监测计划ID
  46. /// </summary>
  47. [Required]
  48. public int ExamPlanId { get; set; }
  49. /// <summary>
  50. /// 年级ID列表
  51. /// </summary>
  52. [Required]
  53. public List<AddExamGradeInput> GradeList { get; set; }
  54. }
  55. /// <summary>
  56. /// 删除监测年级输入参数
  57. /// </summary>
  58. public class DelExamGradeInput
  59. {
  60. /// <summary>
  61. /// ID列表
  62. /// </summary>
  63. [Required]
  64. public List<int> IdList { get; set; }
  65. }
  66. /// <summary>
  67. /// 监测年级配置
  68. /// </summary>
  69. public class ExamGradeSettingInput : BaseId
  70. {
  71. /// <summary>
  72. /// 是否需要自编监测号
  73. /// </summary>
  74. [Required]
  75. public bool IsRequiredSelfExamNumber { get; set; }
  76. /// <summary>
  77. /// 自编监测号长度
  78. /// </summary>
  79. [Required]
  80. public short SelfExamNumberLength { get; set; }
  81. /// <summary>
  82. /// 是否需要抽样
  83. /// </summary>
  84. [Required]
  85. public bool IsRequiredSample { get; set; }
  86. /// <summary>
  87. /// 备注
  88. /// </summary>
  89. [StringLength(200)]
  90. public string Remark { get; set; } = "";
  91. }