RetakeDivideIntoClassesView.cs 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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.RetakeManage
  8. {
  9. /// <summary>
  10. /// 排序方式
  11. /// </summary>
  12. public enum DivideClassOrderType
  13. {
  14. /// <summary>
  15. /// 学号
  16. /// </summary>
  17. ByStudentLoginID = 0,
  18. /// <summary>
  19. /// 班级
  20. /// </summary>
  21. ByClassmajor = 1
  22. }
  23. public class RetakeDivideIntoClassesView
  24. {
  25. /// <summary>
  26. /// 重修计划ID
  27. /// </summary>
  28. [DisplayName("重修计划ID")]
  29. public Guid? RetakePlanID { get; set; }
  30. /// <summary>
  31. /// 重修班级名称
  32. /// </summary>
  33. [Required]
  34. [DisplayName("重修班级名称")]
  35. public string ClassName { get; set; }
  36. /// <summary>
  37. /// 计划人数
  38. /// </summary>
  39. [Required]
  40. [DisplayName("计划人数")]
  41. public int? StudentTotalNum { get; set; }
  42. /// <summary>
  43. /// 平均人数
  44. /// </summary>
  45. [DisplayName("平均人数")]
  46. public bool IsAverageStudent { get; set; }
  47. /// <summary>
  48. /// 任务班数
  49. /// </summary>
  50. [DisplayName("任务班数")]
  51. public bool IsGroup { get; set; }
  52. /// <summary>
  53. /// 每班人数
  54. /// </summary>
  55. [Required]
  56. [DisplayName("每班人数")]
  57. [RegularExpression(@"^[0-9]*$", ErrorMessage = "请输入整数")]
  58. public int? StudentNum { get; set; }
  59. /// <summary>
  60. /// 任务班数
  61. /// </summary>
  62. [Required]
  63. [DisplayName("任务班数")]
  64. [RegularExpression(@"^[0-9]*$", ErrorMessage = "请输入整数")]
  65. public int? GroupNum { get; set; }
  66. /// <summary>
  67. /// 按学号顺序进行分组
  68. /// </summary>
  69. [DisplayName("排序方式")]
  70. public bool OrderType { get; set; }
  71. /// <summary>
  72. /// 成绩合并录入
  73. /// </summary>
  74. [DisplayName("成绩合并录入")]
  75. public bool IsNotBuildEducationMission { get; set; }
  76. /// <summary>
  77. /// 备注
  78. /// </summary>
  79. [DisplayName("备注")]
  80. public string Remark { get; set; }
  81. }
  82. }