DivideIntoClassesView.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using System.ComponentModel.DataAnnotations;
  7. namespace EMIS.ViewModel.EducationManage
  8. {
  9. public enum DivideClassOrderType
  10. {
  11. ByStudentLoginID = 0,
  12. ByClassmajor = 1
  13. }
  14. public class DivideIntoClassesView
  15. {
  16. /// <summary>
  17. /// 任务班ID
  18. /// </summary>
  19. [DisplayName("任务班ID")]
  20. public Guid? EducationMissionClassID { get; set; }
  21. /// <summary>
  22. /// 班级名称
  23. /// </summary>
  24. [DisplayName("班级名称")]
  25. public string ClassName { get; set; }
  26. /// <summary>
  27. /// 学生总数
  28. /// </summary>
  29. [DisplayName("学生总数")]
  30. public int? StudentTotalNum { get; set; }
  31. /// <summary>
  32. /// 按平均人数进行分班
  33. /// </summary>
  34. [DisplayName("按平均人数进行分班")]
  35. public bool IsAverageStudent { get; set; }
  36. /// <summary>
  37. /// 按班数平均分配
  38. /// </summary>
  39. [DisplayName("按班数平均分配")]
  40. public bool IsGroup { get; set; }
  41. /// <summary>
  42. /// 平均每班学生人数
  43. /// </summary>
  44. [DisplayName("平均每班学生人数")]
  45. [RegularExpression(@"^[0-9]*$", ErrorMessage = "请输整数")]
  46. public int? StudentNum { get; set; }
  47. /// <summary>
  48. /// 组数
  49. /// </summary>
  50. [DisplayName("组数")]
  51. [RegularExpression(@"^[0-9]*$", ErrorMessage = "请输整数")]
  52. public int? GroupNum { get; set; }
  53. /// <summary>
  54. /// 按学号顺序进行分组
  55. /// </summary>
  56. [DisplayName("排序方式")]
  57. public bool OrderType { get; set; }
  58. /// <summary>
  59. /// 成绩合并录入
  60. /// </summary>
  61. [DisplayName("成绩合并录入")]
  62. public bool IsNotBuildEducationMission { get; set; }
  63. /// <summary>
  64. /// 备注
  65. /// </summary>
  66. [DisplayName("备注")]
  67. public string Remark { get; set; }
  68. }
  69. }