| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using YBEE.EQM.Core;
- namespace YBEE.EQM.Application;
- /// <summary>
- /// 缺测替补管理服务(用于中心管理)
- /// </summary>
- [ApiDescriptionSettings(Name = "exam-absent-replace-center")]
- [Route("exam/absent/replace/center")]
- public class ExamAbsentReplaceCenterAppService(IExamAbsentReplaceCenterService examAbsentReplaceCenterService) : IDynamicApiController
- {
- /// <summary>
- /// 分页查询监测缺测替补列表
- /// </summary>
- /// <param name="input"></param>
- /// <returns></returns>
- public async Task<PageResult<ExamAbsentReplaceFullOutput>> QueryPageList(ExamAbsentReplacePageInput input)
- {
- return await examAbsentReplaceCenterService.QueryPageList(input);
- }
- /// <summary>
- /// 获取状态数量
- /// </summary>
- /// <returns></returns>
- public async Task<List<StatusCount>> QueryStatusCount(ExamAbsentReplacePageInput input)
- {
- return await examAbsentReplaceCenterService.QueryStatusCount(input);
- }
- /// <summary>
- /// 导出数据表格(简表)
- /// </summary>
- /// <param name="input"></param>
- /// <returns></returns>
- public async Task<IActionResult> ExportSimple(ExamAbsentReplacePageInput input)
- {
- var (fileName, fileBytes) = await examAbsentReplaceCenterService.ExportSimple(input);
- return new FileContentResult(fileBytes, "application/octet-stream")
- {
- FileDownloadName = fileName,
- };
- }
- /// <summary>
- /// 导出数据表格(完整)
- /// </summary>
- /// <param name="input"></param>
- /// <returns></returns>
- public async Task<IActionResult> ExportFull(ExamAbsentReplacePageInput input)
- {
- var (fileName, fileBytes) = await examAbsentReplaceCenterService.ExportFull(input);
- return new FileContentResult(fileBytes, "application/octet-stream")
- {
- FileDownloadName = fileName,
- };
- }
- }
|