IExamPaperService.cs 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 试卷管理服务
  5. /// </summary>
  6. public interface IExamPaperService
  7. {
  8. /// <summary>
  9. /// 按监测计划初始化试卷
  10. /// </summary>
  11. /// <param name="input"></param>
  12. /// <returns></returns>
  13. Task BatchInit(ExamPaperBatchInitInput input);
  14. /// <summary>
  15. /// 分配双向细目表编制人
  16. /// </summary>
  17. /// <param name="input"></param>
  18. /// <returns></returns>
  19. Task AssignTwclWriter(AssignExamPaperWriterInput input);
  20. /// <summary>
  21. /// 分配问题建议撰写人
  22. /// </summary>
  23. /// <param name="input"></param>
  24. /// <returns></returns>
  25. Task AssignSuggestionWriter(AssignExamPaperWriterInput input);
  26. /// <summary>
  27. /// 根据ID获取试卷详情
  28. /// </summary>
  29. /// <param name="id"></param>
  30. /// <returns></returns>
  31. Task<ExamPaperOutput> GetById(int id);
  32. /// <summary>
  33. /// 根据监测计划ID获取试卷列表(管理端)
  34. /// </summary>
  35. /// <param name="examPlanId"></param>
  36. /// <returns></returns>
  37. Task<List<ExamPaperLiteOutput>> GetListByExamPlanId(int examPlanId);
  38. /// <summary>
  39. /// 获取双向细目表监测计划列表(管理端)
  40. /// </summary>
  41. /// <param name="input"></param>
  42. /// <returns></returns>
  43. Task<PageResult<ExamPaperTodoPlanOutput>> QueryExamPlanPageList(ExamPlanPageInput input);
  44. /// <summary>
  45. /// 导出TQES导入文件格式文件包
  46. /// </summary>
  47. /// <param name="examPlanId"></param>
  48. /// <returns></returns>
  49. /// <exception cref="Exception"></exception>
  50. Task<(string, byte[])> ExportTqesFile(int examPlanId);
  51. /// <summary>
  52. /// 分页查询编撰人监测计划列表
  53. /// </summary>
  54. /// <param name="input"></param>
  55. /// <returns></returns>
  56. Task<PageResult<ExamPaperTodoPlanOutput>> QueryWriterExamPlanPageList(ExamPaperExamPlanPageInput input);
  57. /// <summary>
  58. /// 根据监测计划ID获取待处理试卷列表
  59. /// </summary>
  60. /// <param name="examPlanId"></param>
  61. /// <param name="writerType"></param>
  62. /// <returns></returns>
  63. Task<List<ExamPaperLiteOutput>> GetWriterListByExamPlanId(int examPlanId, ExamPaperWriterType writerType);
  64. /// <summary>
  65. /// 保存问题建议
  66. /// </summary>
  67. /// <param name="input"></param>
  68. /// <returns></returns>
  69. Task SaveSuggestion(SaveExamPaperSuggestion input);
  70. /// <summary>
  71. /// 提交双向细目表
  72. /// </summary>
  73. /// <param name="input"></param>
  74. /// <returns></returns>
  75. Task SubmitTwcl(BaseId input);
  76. /// <summary>
  77. /// 提交问题建议
  78. /// </summary>
  79. /// <param name="input"></param>
  80. /// <returns></returns>
  81. Task SubmitSuggestion(BaseId input);
  82. }