1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- 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; }
- /// <summary>
- /// 学生总数
- /// </summary>
- [DisplayName("学生总数")]
- public int? StudentTotalNum { get; set; }
- /// <summary>
- /// 按学号顺序分组
- /// </summary>
- [DisplayName("按学号顺序分组")]
- public bool IsStudentNo { get; set; }
- /// <summary>
- /// 随机分组
- /// </summary>
- [DisplayName("随机分组")]
- public bool IsRandom { get; set; }
- /// <summary>
- /// 手动分组
- /// </summary>
- [DisplayName("手动分组")]
- public bool IsManual { get; set; }
- /// <summary>
- /// 组数
- /// </summary>
- [DisplayName("组数")]
- [DisplayFormat(DataFormatString = "{0:#.0}")]
- [RegularExpression(@"^[-+]?\d*$", ErrorMessage = "请输入整数")]
- public int? GroupNum { get; set; }
- /// <summary>
- /// 每组人数
- /// </summary>
- [DisplayName("每组人数")]
- [DisplayFormat(DataFormatString = "{0:#.0}")]
- [RegularExpression(@"^[-+]?\d*$", ErrorMessage = "请输入整数")]
- public int? StudentNum { get; set; }
- /// <summary>
- /// 按组数
- /// </summary>
- [DisplayName("按组数")]
- public bool GroupByGroup { get; set; }
- /// <summary>
- /// 按人数
- /// </summary>
- [DisplayName("按人数")]
- public bool GroupByStudent { get; set; }
- /// <summary>
- /// 分组方式
- /// </summary>
- [DisplayName("分组方式")]
- public int? GroupWay { get; set; }
- }
- }
|