IExamPlanService.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using YBEE.EQM.Application;
  2. using YBEE.EQM.Core;
  3. namespace YBEE.EQM.Application;
  4. /// <summary>
  5. /// 监测计划管理服务
  6. /// </summary>
  7. public interface IExamPlanService
  8. {
  9. /// <summary>
  10. /// 添加监测计划
  11. /// </summary>
  12. /// <param name="input"></param>
  13. /// <returns></returns>
  14. Task Add(AddExamPlanInput input);
  15. /// <summary>
  16. /// 更新监测计划
  17. /// </summary>
  18. /// <param name="input"></param>
  19. /// <returns></returns>
  20. Task Update(UpdateExamPlanInput input);
  21. /// <summary>
  22. /// 删除监测计划
  23. /// </summary>
  24. /// <param name="input"></param>
  25. /// <returns></returns>
  26. Task Del(BaseId input);
  27. /// <summary>
  28. /// 开始监测
  29. /// </summary>
  30. /// <param name="input"></param>
  31. /// <returns></returns>
  32. Task Start(BaseId input);
  33. /// <summary>
  34. /// 结束监测
  35. /// </summary>
  36. /// <param name="input"></param>
  37. /// <returns></returns>
  38. Task Stop(BaseId input);
  39. /// <summary>
  40. /// 取消监测
  41. /// </summary>
  42. /// <param name="input"></param>
  43. /// <returns></returns>
  44. Task Cancel(BaseId input);
  45. /// <summary>
  46. /// 根据ID获取监测计划
  47. /// </summary>
  48. /// <param name="id"></param>
  49. /// <returns></returns>
  50. Task<ExamPlanOutput> GetById(int id);
  51. /// <summary>
  52. /// 获取最近5个抽测参照成绩监测计划
  53. /// </summary>
  54. /// <param name="id"></param>
  55. /// <returns></returns>
  56. Task<List<ExamPlanOutput>> GetSampleRefPlanList(int id);
  57. /// <summary>
  58. /// 分页查询监测计划列表
  59. /// </summary>
  60. /// <param name="input"></param>
  61. /// <returns></returns>
  62. Task<PageResult<ExamPlanOutput>> QueryPageList(ExamPlanPageInput input);
  63. /// <summary>
  64. /// 获取我的单据状态数量
  65. /// </summary>
  66. /// <returns></returns>
  67. Task<List<StatusCount>> QueryStatusCount(ExamPlanPageInput input);
  68. }