ExamSampleConfig.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. using System.Collections.Generic;
  2. namespace YBEE.EQM.Core;
  3. /// <summary>
  4. /// 监测抽样配置
  5. /// </summary>
  6. public class ExamSampleConfig
  7. {
  8. /// <summary>
  9. /// 抽样百分比
  10. /// </summary>
  11. public double Percent { get; set; } = 0;
  12. /// <summary>
  13. /// 开启年级只有一个班控制
  14. /// </summary>
  15. public bool IsEnabledOnlyOneClassStudentMin { get; set; } = false;
  16. /// <summary>
  17. /// 年级只有一个班时最少学生数
  18. /// </summary>
  19. public int OnlyOneClassStudentMin { get; set; } = 0;
  20. /// <summary>
  21. /// 开启年级多于一个班控制
  22. /// </summary>
  23. public bool IsEnabledGradeNoSampleStudentMin { get; set; } = false;
  24. /// <summary>
  25. /// 年级多于一个班时未抽样最少学生数
  26. /// </summary>
  27. public int GradeNoSampleStudentMin { get; set; } = 0;
  28. /// <summary>
  29. /// 开启班级最少学生数控制
  30. /// </summary>
  31. public bool IsEnabledClassStudentMin { get; set; } = false;
  32. /// <summary>
  33. /// 班级抽样最少学生数
  34. /// </summary>
  35. public int ClassStudentMin { get; set; } = 0;
  36. /// <summary>
  37. /// 是否排除特殊学生
  38. /// </summary>
  39. public bool IsExcludeSpecialStudent { get; set; } = true;
  40. /// <summary>
  41. /// 是否年级内随机排序
  42. /// </summary>
  43. public bool IsGradeSeatNumberRandom { get; set; } = false;
  44. /// <summary>
  45. /// 排除特殊学生必须是审核通过的,否则只要提交上报的就算
  46. /// </summary>
  47. public bool SpecialStudentMustApproved { get; set; } = false;
  48. /// <summary>
  49. /// 起始抽样位置
  50. /// </summary>
  51. public int StartPosition { get; set; } = 1;
  52. /// <summary>
  53. /// 抽样间距,抽样的两个学生之间隔多少人
  54. /// </summary>
  55. public int Interval { get; set; } = 2;
  56. /// <summary>
  57. /// 是否随机抽样
  58. /// </summary>
  59. public bool IsRandomSampling { get; set; } = false;
  60. /// <summary>
  61. /// 全抽班级ID列表
  62. /// </summary>
  63. public List<long> SampleAllSchoolClassIds { get; set; } = [];
  64. /// <summary>
  65. /// 排除不抽样学校ID列表
  66. /// </summary>
  67. public List<short> ExcludeSysOrgIds { get; set; } = [];
  68. }