using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace EMIS.ViewModel.RetakeManage { /// /// 排序方式 /// public enum DivideClassOrderType { /// /// 学号 /// ByStudentLoginID = 0, /// /// 班级 /// ByClassmajor = 1 } public class RetakeDivideIntoClassesView { /// /// 重修计划ID /// [DisplayName("重修计划ID")] public Guid? RetakePlanID { get; set; } /// /// 重修班级名称 /// [Required] [DisplayName("重修班级名称")] public string ClassName { get; set; } /// /// 计划人数 /// [Required] [DisplayName("计划人数")] public int? StudentTotalNum { get; set; } /// /// 平均人数 /// [DisplayName("平均人数")] public bool IsAverageStudent { get; set; } /// /// 任务班数 /// [DisplayName("任务班数")] public bool IsGroup { get; set; } /// /// 每班人数 /// [Required] [DisplayName("每班人数")] [RegularExpression(@"^[0-9]*$", ErrorMessage = "请输入整数")] public int? StudentNum { get; set; } /// /// 任务班数 /// [Required] [DisplayName("任务班数")] [RegularExpression(@"^[0-9]*$", ErrorMessage = "请输入整数")] public int? GroupNum { get; set; } /// /// 按学号顺序进行分组 /// [DisplayName("排序方式")] public bool OrderType { get; set; } /// /// 成绩合并录入 /// [DisplayName("成绩合并录入")] public bool IsNotBuildEducationMission { get; set; } /// /// 备注 /// [DisplayName("备注")] public string Remark { get; set; } } }