ExamPlanInput.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 添加监测计划输入参数
  5. /// </summary>
  6. public class AddExamPlanInput
  7. {
  8. /// <summary>
  9. /// 学段:学前小初高
  10. /// </summary>
  11. [Required]
  12. public EducationStage EducationStage { get; set; }
  13. /// <summary>
  14. /// 学期ID
  15. /// </summary>
  16. [Required]
  17. public short SemesterId { get; set; }
  18. ///// <summary>
  19. ///// 监测期间类型:期末、期中、平时
  20. ///// </summary>
  21. //[Required]
  22. //public ExamPeriodType ExamPeriodType { get; set; } = ExamPeriodType.NONE;
  23. ///// <summary>
  24. ///// 监测类型:学业质量、教育质量
  25. ///// </summary>
  26. //[Required]
  27. //public ExamType ExamType { get; set; } = ExamType.NONE;
  28. /// <summary>
  29. /// 名称
  30. /// </summary>
  31. [Required, StringLength(100)]
  32. public string Name { get; set; }
  33. /// <summary>
  34. /// 全称
  35. /// </summary>
  36. [Required, StringLength(200)]
  37. public string FullName { get; set; }
  38. /// <summary>
  39. /// 简称
  40. /// </summary>
  41. [Required, StringLength(50)]
  42. public string ShortName { get; set; }
  43. /// <summary>
  44. /// 备注
  45. /// </summary>
  46. [StringLength(200)]
  47. public string Remark { get; set; } = "";
  48. /// <summary>
  49. /// 监测配置
  50. /// </summary>
  51. [Required]
  52. public string Config { get; set; } = "{}";
  53. /// <summary>
  54. /// 监测年级
  55. /// </summary>
  56. [Required]
  57. public List<short> GradeIdList { get; set; } = new();
  58. }
  59. /// <summary>
  60. /// 更新监测计划输入参数
  61. /// </summary>
  62. public class UpdateExamPlanInput
  63. {
  64. /// <summary>
  65. /// 主键
  66. /// </summary>
  67. [Required]
  68. public int Id { get; set; }
  69. /// <summary>
  70. /// 名称
  71. /// </summary>
  72. [Required, StringLength(100)]
  73. public string Name { get; set; }
  74. /// <summary>
  75. /// 全称
  76. /// </summary>
  77. [Required, StringLength(200)]
  78. public string FullName { get; set; }
  79. /// <summary>
  80. /// 简称
  81. /// </summary>
  82. [Required, StringLength(50)]
  83. public string ShortName { get; set; }
  84. /// <summary>
  85. /// 备注
  86. /// </summary>
  87. [StringLength(200)]
  88. public string Remark { get; set; } = "";
  89. /// <summary>
  90. /// 监测配置
  91. /// </summary>
  92. [Required]
  93. public string Config { get; set; } = "{}";
  94. }
  95. /// <summary>
  96. /// 分页查询监测计划输入参数
  97. /// </summary>
  98. public class ExamPlanPageInput : PageInputBase
  99. {
  100. /// <summary>
  101. /// 学段:学前小初高
  102. /// </summary>
  103. public EducationStage? EducationStage { get; set; }
  104. /// <summary>
  105. /// 学期ID
  106. /// </summary>
  107. public short? SemesterId { get; set; }
  108. /// <summary>
  109. /// 名称
  110. /// </summary>
  111. public string Name { get; set; }
  112. /// <summary>
  113. /// 状态
  114. /// </summary>
  115. public ExamStatus? Status { get; set; }
  116. }