ExamSampleConfig.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 int StartPosition { get; set; } = 1;
  48. /// <summary>
  49. /// 抽样间距,抽样的两个学生之间隔多少人
  50. /// </summary>
  51. public int Interval { get; set; } = 2;
  52. /// <summary>
  53. /// 全抽班级ID列表
  54. /// </summary>
  55. public List<long> SampleAllSchoolClassIds { get; set; } = new();
  56. /// <summary>
  57. /// 排除不抽样学校ID列表
  58. /// </summary>
  59. public List<short> ExcludeSysOrgIds { get; set; } = new();
  60. /// <summary>
  61. /// 监测抽样引用监测计划ID
  62. /// </summary>
  63. public int? ExamSampleRefExamPlanId { get; set; }
  64. }