using YBEE.EQM.Core; namespace YBEE.EQM.Application; /// /// 添加抽样方案输入参数 /// public class AddExamSampleInput { /// /// 监测计划ID /// [Required] public int ExamPlanId { get; set; } /// /// 备注 /// [StringLength(200)] public string Remark { get; set; } = ""; /// /// 抽样配置 /// { /// percent: 40, /// onlyOneClassStudentMin: 40, /// gradeNoSampleStudentMin: 20, /// classStudentMin: 25, /// startPosition: 1, /// interval: 2, /// isExcludeSpecialStudent: true, /// isGradeSeatNumberRandom: true, /// } /// [Required] public ExamSampleConfig Config { get; set; } } /// /// 更新抽样方案输入参数 /// public class UpdateExamSampleInput : AddExamSampleInput { /// /// 主键 /// [Required] public int Id { get; set; } /// /// 名称 /// [Required, StringLength(100)] public string Name { get; set; } /// /// 全称 /// [Required, StringLength(200)] public string FullName { get; set; } /// /// 简称 /// [Required, StringLength(50)] public string ShortName { get; set; } } /// /// 保存全抽班级ID输入参数 /// public class SaveExamSampleAllClasses { /// /// 主键 /// [Required] public int Id { get; set; } /// /// 班级ID列表 /// [Required] public List ClassIds { get; set; } = new(); } /// /// 切换全抽班级输入参数 /// public class SwitchExamSampleAllClassInput { /// /// 抽样方案主键 /// [Required] public int Id { get; set; } /// /// 班级ID /// [Required] public long SchoolClassId { get; set; } /// /// true增加,false取消 /// [Required] public bool IsAdd { get; set; } }