GradeOutput.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 年级输出参数
  5. /// </summary>
  6. public class GradeOutput
  7. {
  8. /// <summary>
  9. /// 主键
  10. /// </summary>
  11. [Required]
  12. public short Id { get; set; }
  13. /// <summary>
  14. /// 学段
  15. /// </summary>
  16. [Required]
  17. public EducationStage EducationStage { get; set; }
  18. /// <summary>
  19. /// 年级号
  20. /// </summary>
  21. [Required]
  22. public short GradeNumber { get; set; }
  23. /// <summary>
  24. /// 年级号2
  25. /// </summary>
  26. [Required]
  27. public short GradeNumber2 { get; set; }
  28. /// <summary>
  29. /// 名称
  30. /// </summary>
  31. [Required]
  32. public string Name { get; set; }
  33. /// <summary>
  34. /// 全称
  35. /// </summary>
  36. [Required]
  37. public string FullName { get; set; }
  38. /// <summary>
  39. /// 简称
  40. /// </summary>
  41. [Required]
  42. public string ShortName { get; set; }
  43. /// <summary>
  44. /// 备注
  45. /// </summary>
  46. public string Remark { get; set; } = "";
  47. /// <summary>
  48. /// 状态
  49. /// </summary>
  50. [Required]
  51. public CommonStatus Status { get; set; }
  52. }
  53. /// <summary>
  54. /// 年级学制输出参数
  55. /// </summary>
  56. public class GradeYearOutput
  57. {
  58. /// <summary>
  59. /// 主键
  60. /// </summary>
  61. [Required]
  62. public short Id { get; set; }
  63. /// <summary>
  64. /// 学段
  65. /// </summary>
  66. [Required]
  67. public EducationStage EducationStage { get; set; }
  68. /// <summary>
  69. /// 年级号
  70. /// </summary>
  71. [Required]
  72. public short GradeNumber { get; set; }
  73. /// <summary>
  74. /// 年级号2
  75. /// </summary>
  76. [Required]
  77. public short GradeNumber2 { get; set; }
  78. /// <summary>
  79. /// 名称
  80. /// </summary>
  81. [Required]
  82. public string Name { get; set; }
  83. /// <summary>
  84. /// 全称
  85. /// </summary>
  86. [Required]
  87. public string FullName { get; set; }
  88. /// <summary>
  89. /// 年份(级)
  90. /// </summary>
  91. [Required]
  92. public short GradeBeginYear { get; set; }
  93. /// <summary>
  94. /// 年份(届)
  95. /// </summary>
  96. [Required]
  97. public short GradeEndYear { get; set; }
  98. /// <summary>
  99. /// 级名
  100. /// </summary>
  101. [Required]
  102. public string GradeBeginName { get { return $"{GradeBeginYear}级"; } }
  103. /// <summary>
  104. /// 届名
  105. /// </summary>
  106. [Required]
  107. public string GradeEndName { get { return $"{GradeEndYear}届"; } }
  108. /// <summary>
  109. /// 级全名
  110. /// </summary>
  111. [Required]
  112. public string GradeBeginFullName { get { return $"{FullName}({GradeBeginName})"; } }
  113. /// <summary>
  114. /// 届全名
  115. /// </summary>
  116. [Required]
  117. public string GradeEndFullName { get { return $"{FullName}({GradeEndName})"; } }
  118. /// <summary>
  119. /// 学制(共几年)
  120. /// </summary>
  121. [Required]
  122. public short EducationYears { get; set; }
  123. }