IExamAbsentReplaceService.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 缺测替补管理服务
  5. /// </summary>
  6. public interface IExamAbsentReplaceService
  7. {
  8. #region 批量导入
  9. /// <summary>
  10. /// 上传监测缺测替补批量导入文件
  11. /// </summary>
  12. /// <param name="filePath"></param>
  13. /// <param name="examPlanId"></param>
  14. /// <returns></returns>
  15. Task<UploadExamDataOutput<UploadExamAbsentReplaceOutput>> Upload(string filePath, int examPlanId);
  16. /// <summary>
  17. /// 批量导入监测缺测替补
  18. /// </summary>
  19. /// <param name="input"></param>
  20. /// <returns></returns>
  21. Task<int> Import(ImportExamAbsentReplaceInput input);
  22. #endregion
  23. #region 创建编辑
  24. /// <summary>
  25. /// 添加监测缺测替补
  26. /// </summary>
  27. /// <param name="input"></param>
  28. /// <returns></returns>
  29. Task Add(AddExamAbsentReplaceInput input);
  30. /// <summary>
  31. /// 更新监测缺测替补
  32. /// </summary>
  33. /// <param name="input"></param>
  34. /// <returns></returns>
  35. Task Update(UpdateExamAbsentReplaceInput input);
  36. /// <summary>
  37. /// 添加缺测替补佐证材料
  38. /// </summary>
  39. /// <param name="input"></param>
  40. /// <returns></returns>
  41. Task AddAttachment(AddAttachmentInput input);
  42. /// <summary>
  43. /// 删除缺测替补佐证材料
  44. /// </summary>
  45. /// <param name="input"></param>
  46. /// <returns></returns>
  47. Task DelAttachment(DeleteAttachmentInput input);
  48. /// <summary>
  49. /// 验证缺测替补佐证材料
  50. /// </summary>
  51. /// <param name="examPlanId"></param>
  52. /// <returns></returns>
  53. Task<bool> VerifyAttachment(int examPlanId);
  54. /// <summary>
  55. /// 删除监测缺测替补
  56. /// </summary>
  57. /// <param name="input"></param>
  58. /// <returns></returns>
  59. Task Del(BaseId input);
  60. /// <summary>
  61. /// 清空监测缺测替补
  62. /// </summary>
  63. /// <param name="input"></param>
  64. /// <returns></returns>
  65. Task Clear(ClearExamAbsentReplaceInput input);
  66. /// <summary>
  67. /// 导出监测缺测替补上报打印表格
  68. /// </summary>
  69. /// <param name="examPlanId"></param>
  70. /// <returns></returns>
  71. Task<byte[]> ExportPrintTable(int examPlanId);
  72. #endregion
  73. #region 查询统计
  74. /// <summary>
  75. /// 分页查询监测缺测替补列表
  76. /// </summary>
  77. /// <param name="input"></param>
  78. /// <returns></returns>
  79. Task<PageResult<ExamAbsentReplaceOutput>> QueryPageList(ExamAbsentReplacePageInput input);
  80. /// <summary>
  81. /// 获取机构班级缺测替补上报人数统计列表
  82. /// </summary>
  83. /// <param name="examPlanId"></param>
  84. /// <param name="sysOrgId"></param>
  85. /// <returns></returns>
  86. Task<ExamAbsentReplaceCountOutput> GetOrgGradeClassStudentCount(int examPlanId, short? sysOrgId = null);
  87. /// <summary>
  88. /// 获取状态数量
  89. /// </summary>
  90. /// <returns></returns>
  91. Task<List<StatusCount>> QueryStatusCount(ExamAbsentReplacePageInput input);
  92. #endregion
  93. }