TrainingClassSplitView.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. namespace EMIS.ViewModel.EducationManage
  8. {
  9. public class TrainingClassSplitView
  10. {
  11. public Guid? TrainingClassID { get; set; }
  12. [DisplayName("培训班名")]
  13. public string Name { get; set; }
  14. [DisplayName("学生数")]
  15. public int? StudentCount { get; set; }
  16. [DisplayName("学籍班数")]
  17. public int? ClassmajorCount { get; set; }
  18. [DisplayName("按平均人数进行分班")]
  19. public bool IsByStudentCount { get; set; }
  20. [DisplayName("按班数平均分配")]
  21. public bool IsBySplitCount { get; set; }
  22. [DisplayName("按学籍班分班")]
  23. public bool IsByClassmajor { get; set; }
  24. [DisplayName("平均每班学生人数")]
  25. [RegularExpression(@"^[0-9]*$", ErrorMessage = "请输整数")]
  26. public int? ClassStudentCount { get; set; }
  27. [DisplayName("培训班数")]
  28. [RegularExpression(@"^[0-9]*$", ErrorMessage = "请输整数")]
  29. public int? ClassCount{ get; set; }
  30. [DisplayName("每班最少人数")]
  31. [RegularExpression(@"^[0-9]*$", ErrorMessage = "请输整数")]
  32. public int? ClassMinStudentCount { get; set; }
  33. }
  34. }