using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace EMIS.ViewModel.DQPSystem { public enum GroupWay { ByStudentNo = 0, ByRandom = 1, ByManual = 2, } public enum GroupType { ByStudent = 0, ByGroup = 1, } public class GroupSOCDetailView { public Guid? SOCDetailID { get; set; } /// /// 学生总数 /// [DisplayName("学生总数")] public int? StudentTotalNum { get; set; } /// /// 按学号顺序分组 /// [DisplayName("按学号顺序分组")] public bool IsStudentNo { get; set; } /// /// 随机分组 /// [DisplayName("随机分组")] public bool IsRandom { get; set; } /// /// 手动分组 /// [DisplayName("手动分组")] public bool IsManual { get; set; } /// /// 组数 /// [DisplayName("组数")] [DisplayFormat(DataFormatString = "{0:#.0}")] [RegularExpression(@"^[-+]?\d*$", ErrorMessage = "请输入整数")] public int? GroupNum { get; set; } /// /// 每组人数 /// [DisplayName("每组人数")] [DisplayFormat(DataFormatString = "{0:#.0}")] [RegularExpression(@"^[-+]?\d*$", ErrorMessage = "请输入整数")] public int? StudentNum { get; set; } /// /// 按组数 /// [DisplayName("按组数")] public bool GroupByGroup { get; set; } /// /// 按人数 /// [DisplayName("按人数")] public bool GroupByStudent { get; set; } /// /// 分组方式 /// [DisplayName("分组方式")] public int? GroupWay { get; set; } } }