GroupSOCDetailView.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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.DQPSystem
  8. {
  9. public enum GroupWay
  10. {
  11. ByStudentNo = 0,
  12. ByRandom = 1,
  13. ByManual = 2,
  14. }
  15. public enum GroupType
  16. {
  17. ByStudent = 0,
  18. ByGroup = 1,
  19. }
  20. public class GroupSOCDetailView
  21. {
  22. public Guid? SOCDetailID { get; set; }
  23. /// <summary>
  24. /// 学生总数
  25. /// </summary>
  26. [DisplayName("学生总数")]
  27. public int? StudentTotalNum { get; set; }
  28. /// <summary>
  29. /// 按学号顺序分组
  30. /// </summary>
  31. [DisplayName("按学号顺序分组")]
  32. public bool IsStudentNo { get; set; }
  33. /// <summary>
  34. /// 随机分组
  35. /// </summary>
  36. [DisplayName("随机分组")]
  37. public bool IsRandom { get; set; }
  38. /// <summary>
  39. /// 手动分组
  40. /// </summary>
  41. [DisplayName("手动分组")]
  42. public bool IsManual { get; set; }
  43. /// <summary>
  44. /// 组数
  45. /// </summary>
  46. [DisplayName("组数")]
  47. [DisplayFormat(DataFormatString = "{0:#.0}")]
  48. [RegularExpression(@"^[-+]?\d*$", ErrorMessage = "请输入整数")]
  49. public int? GroupNum { get; set; }
  50. /// <summary>
  51. /// 每组人数
  52. /// </summary>
  53. [DisplayName("每组人数")]
  54. [DisplayFormat(DataFormatString = "{0:#.0}")]
  55. [RegularExpression(@"^[-+]?\d*$", ErrorMessage = "请输入整数")]
  56. public int? StudentNum { get; set; }
  57. /// <summary>
  58. /// 按组数
  59. /// </summary>
  60. [DisplayName("按组数")]
  61. public bool GroupByGroup { get; set; }
  62. /// <summary>
  63. /// 按人数
  64. /// </summary>
  65. [DisplayName("按人数")]
  66. public bool GroupByStudent { get; set; }
  67. /// <summary>
  68. /// 分组方式
  69. /// </summary>
  70. [DisplayName("分组方式")]
  71. public int? GroupWay { get; set; }
  72. }
  73. }