ExamGradeOutput.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 监测年级输出参数
  5. /// </summary>
  6. public class ExamGradeOutput
  7. {
  8. /// <summary>
  9. /// 主键
  10. /// </summary>
  11. [Required]
  12. public int Id { get; set; }
  13. /// <summary>
  14. /// 监测计划ID
  15. /// </summary>
  16. [Required]
  17. public int ExamPlanId { get; set; }
  18. /// <summary>
  19. /// 年级ID
  20. /// </summary>
  21. [Required]
  22. public short GradeId { get; set; }
  23. /// <summary>
  24. /// 学段
  25. /// </summary>
  26. [Required]
  27. public EducationStage EducationStage { get; set; }
  28. /// <summary>
  29. /// 学制
  30. /// </summary>
  31. [Required]
  32. public short EducationYears { get; set; }
  33. /// <summary>
  34. /// 年份(级)
  35. /// </summary>
  36. [Required]
  37. public short GradeBeginYear { get; set; }
  38. /// <summary>
  39. /// 年份(届)
  40. /// </summary>
  41. [Required]
  42. public short GradeEndYear { get; set; }
  43. /// <summary>
  44. /// 级名
  45. /// </summary>
  46. [Required]
  47. public string GradeBeginName { get { return $"{GradeBeginYear}级"; } }
  48. /// <summary>
  49. /// 届名
  50. /// </summary>
  51. [Required]
  52. public string GradeEndName { get { return $"{GradeEndYear}届"; } }
  53. /// <summary>
  54. /// 年级
  55. /// </summary>
  56. [Required]
  57. public GradeOutput Grade { get; set; }
  58. }