using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; namespace EMIS.ViewModel.EducationManage { public class TrainingClassSplitView { public Guid? TrainingClassID { get; set; } [DisplayName("培训班名")] public string Name { get; set; } [DisplayName("学生数")] public int? StudentCount { get; set; } [DisplayName("学籍班数")] public int? ClassmajorCount { get; set; } [DisplayName("按平均人数进行分班")] public bool IsByStudentCount { get; set; } [DisplayName("按班数平均分配")] public bool IsBySplitCount { get; set; } [DisplayName("按学籍班分班")] public bool IsByClassmajor { get; set; } [DisplayName("平均每班学生人数")] [RegularExpression(@"^[0-9]*$", ErrorMessage = "请输整数")] public int? ClassStudentCount { get; set; } [DisplayName("培训班数")] [RegularExpression(@"^[0-9]*$", ErrorMessage = "请输整数")] public int? ClassCount{ get; set; } [DisplayName("每班最少人数")] [RegularExpression(@"^[0-9]*$", ErrorMessage = "请输整数")] public int? ClassMinStudentCount { get; set; } } }