ExamSampleInput.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 添加抽样方案输入参数
  5. /// </summary>
  6. public class AddExamSampleInput
  7. {
  8. /// <summary>
  9. /// 监测计划ID
  10. /// </summary>
  11. [Required]
  12. public int ExamPlanId { get; set; }
  13. /// <summary>
  14. /// 备注
  15. /// </summary>
  16. [StringLength(200)]
  17. public string Remark { get; set; } = "";
  18. /// <summary>
  19. /// 抽样配置
  20. /// {
  21. /// percent: 40,
  22. /// onlyOneClassStudentMin: 40,
  23. /// gradeNoSampleStudentMin: 20,
  24. /// classStudentMin: 25,
  25. /// startPosition: 1,
  26. /// interval: 2,
  27. /// isExcludeSpecialStudent: true,
  28. /// isGradeSeatNumberRandom: true,
  29. /// }
  30. /// </summary>
  31. [Required]
  32. public ExamSampleConfig Config { get; set; }
  33. }
  34. /// <summary>
  35. /// 更新抽样方案输入参数
  36. /// </summary>
  37. public class UpdateExamSampleInput : AddExamSampleInput
  38. {
  39. /// <summary>
  40. /// 主键
  41. /// </summary>
  42. [Required]
  43. public int Id { get; set; }
  44. /// <summary>
  45. /// 名称
  46. /// </summary>
  47. [Required, StringLength(100)]
  48. public string Name { get; set; }
  49. /// <summary>
  50. /// 全称
  51. /// </summary>
  52. [Required, StringLength(200)]
  53. public string FullName { get; set; }
  54. /// <summary>
  55. /// 简称
  56. /// </summary>
  57. [Required, StringLength(50)]
  58. public string ShortName { get; set; }
  59. }
  60. /// <summary>
  61. /// 保存全抽班级ID输入参数
  62. /// </summary>
  63. public class SaveExamSampleAllClasses
  64. {
  65. /// <summary>
  66. /// 主键
  67. /// </summary>
  68. [Required]
  69. public int Id { get; set; }
  70. /// <summary>
  71. /// 班级ID列表
  72. /// </summary>
  73. [Required]
  74. public List<long> ClassIds { get; set; } = new();
  75. }
  76. /// <summary>
  77. /// 切换全抽班级输入参数
  78. /// </summary>
  79. public class SwitchExamSampleAllClassInput
  80. {
  81. /// <summary>
  82. /// 抽样方案主键
  83. /// </summary>
  84. [Required]
  85. public int Id { get; set; }
  86. /// <summary>
  87. /// 班级ID
  88. /// </summary>
  89. [Required]
  90. public long SchoolClassId { get; set; }
  91. /// <summary>
  92. /// true增加,false取消
  93. /// </summary>
  94. [Required]
  95. public bool IsAdd { get; set; }
  96. }