forked from ddrilling/AsbCloudServer
Olga Nemt
b7ce104e4e
- Добавлен новый extension метод AssemblyExtensions.GetTemplateCopyStreamAsync - IAutoGeneratedDailyReportMakerService переименован в IReportMakerService и стал более универсальным
44 lines
1.4 KiB
C#
44 lines
1.4 KiB
C#
using System;
|
||
using System.IO;
|
||
using System.Threading;
|
||
using System.Threading.Tasks;
|
||
using AsbCloudApp.Data;
|
||
using AsbCloudApp.Data.AutogeneratedDailyReport;
|
||
using AsbCloudApp.Requests;
|
||
|
||
namespace AsbCloudApp.Services.AutoGeneratedDailyReports;
|
||
|
||
/// <summary>
|
||
/// Сервис для работы с авто-генерируемыми суточными отчётами
|
||
/// </summary>
|
||
public interface IAutoGeneratedDailyReportService
|
||
{
|
||
/// <summary>
|
||
/// Список файлов суточных отчётов
|
||
/// </summary>
|
||
/// <param name="idWell"></param>
|
||
/// <param name="request"></param>
|
||
/// <param name="cancellationToken"></param>
|
||
/// <returns></returns>
|
||
Task<PaginationContainer<AutoGeneratedDailyReportInfoDto>> GetListAsync(int idWell,
|
||
FileReportRequest request,
|
||
CancellationToken cancellationToken);
|
||
|
||
/// <summary>
|
||
/// Генерация файла с отчётом
|
||
/// </summary>
|
||
/// <param name="idWell"></param>
|
||
/// <param name="reportDate"></param>
|
||
/// <param name="cancellationToken"></param>
|
||
/// <returns></returns>
|
||
Task<(string fileName, Stream stream)> GenerateAsync(int idWell, DateOnly reportDate,
|
||
CancellationToken cancellationToken);
|
||
|
||
/// <summary>
|
||
/// Получение диапазона дат
|
||
/// </summary>
|
||
/// <param name="idWell"></param>
|
||
/// <param name="cancellationToken"></param>
|
||
/// <returns></returns>
|
||
Task<DatesRangeDto?> GetDatesRangeAsync(int idWell, CancellationToken cancellationToken);
|
||
} |