ExamPaperInput.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 添加试卷输入参数
  5. /// </summary>
  6. public class AddExamPaperInput
  7. {
  8. /// <summary>
  9. /// 监测计划ID
  10. /// </summary>
  11. [Required]
  12. public int ExamPlanId { get; set; }
  13. /// <summary>
  14. /// 监测年级ID
  15. /// </summary>
  16. [Required]
  17. public int ExamGradeId { get; set; }
  18. /// <summary>
  19. /// 年级ID
  20. /// </summary>
  21. [Required]
  22. public short GradeId { get; set; }
  23. /// <summary>
  24. /// 监测科目ID
  25. /// </summary>
  26. [Required]
  27. public int ExamCourseId { get; set; }
  28. /// <summary>
  29. /// 科目ID
  30. /// </summary>
  31. [Required]
  32. public short CourseId { get; set; }
  33. /// <summary>
  34. /// 名称
  35. /// </summary>
  36. [Required]
  37. public string Name { get; set; }
  38. /// <summary>
  39. /// 总分
  40. /// </summary>
  41. [Required]
  42. public decimal Score { get; set; }
  43. /// <summary>
  44. /// 备注
  45. /// </summary>
  46. [StringLength(200)]
  47. public string Remark { get; set; } = "";
  48. }
  49. /// <summary>
  50. /// 更新试卷输入参数
  51. /// </summary>
  52. public class UpdateExamPaperInput : BaseId
  53. {
  54. /// <summary>
  55. /// 名称
  56. /// </summary>
  57. [Required]
  58. public string Name { get; set; }
  59. /// <summary>
  60. /// 总分
  61. /// </summary>
  62. [Required]
  63. public decimal Score { get; set; }
  64. /// <summary>
  65. /// 备注
  66. /// </summary>
  67. [StringLength(200)]
  68. public string Remark { get; set; } = "";
  69. }
  70. /// <summary>
  71. /// 批量初始化试卷输入参数
  72. /// </summary>
  73. public class ExamPaperBatchInitInput
  74. {
  75. public int ExamPlanId { get; set; }
  76. }
  77. /// <summary>
  78. /// 分配试卷双向细目表或问题建议输入参数
  79. /// </summary>
  80. public class AssignExamPaperWriterInput
  81. {
  82. /// <summary>
  83. /// 撰写人用户ID
  84. /// </summary>
  85. public int WriterSysUserId { get; set; }
  86. /// <summary>
  87. /// 试卷ID列表
  88. /// </summary>
  89. public List<int> Ids { get; set; }
  90. }
  91. /// <summary>
  92. /// 分页查询试卷编撰监测计划输入参数
  93. /// </summary>
  94. public class ExamPaperExamPlanPageInput : ExamPlanPageInput
  95. {
  96. /// <summary>
  97. /// 试卷编撰人员类型
  98. /// </summary>
  99. [Required]
  100. public ExamPaperWriterType WriterType { get; set; }
  101. }
  102. /// <summary>
  103. /// 保存学科问题建议输入参数
  104. /// </summary>
  105. public class SaveExamPaperSuggestion : BaseId
  106. {
  107. /// <summary>
  108. /// 问题
  109. /// </summary>
  110. [Required, StringLength(4000)]
  111. public string Questions { get; set; }
  112. /// <summary>
  113. /// 建议
  114. /// </summary>
  115. [Required, StringLength(4000)]
  116. public string Suggestions { get; set; }
  117. }