using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace EMIS.ViewModel.EducationManage { public enum DivideClassOrderType { ByStudentLoginID = 0, ByClassmajor = 1 } public class DivideIntoClassesView { /// /// 任务班ID /// [DisplayName("任务班ID")] public Guid? EducationMissionClassID { get; set; } /// /// 班级名称 /// [DisplayName("班级名称")] public string ClassName { get; set; } /// /// 学生总数 /// [DisplayName("学生总数")] public int? StudentTotalNum { get; set; } /// /// 按平均人数进行分班 /// [DisplayName("按平均人数进行分班")] public bool IsAverageStudent { get; set; } /// /// 按班数平均分配 /// [DisplayName("按班数平均分配")] public bool IsGroup { get; set; } /// /// 平均每班学生人数 /// [DisplayName("平均每班学生人数")] [RegularExpression(@"^[0-9]*$", ErrorMessage = "请输整数")] public int? StudentNum { get; set; } /// /// 组数 /// [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; } } }