DD.WellWorkover.Cloud/AsbCloudApp/Services/IDailyReportService.cs

23 lines
880 B
C#
Raw Normal View History

using AsbCloudApp.Data.DailyReport;
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
namespace AsbCloudApp.Services
{
2022-08-05 17:16:11 +05:00
/// <summary>
/// Суточный рапорт (сводка)
/// </summary>
public interface IDailyReportService
2022-08-05 17:16:11 +05:00
{
2022-05-05 10:06:15 +05:00
Task<IEnumerable<DailyReportDto>> GetListAsync(int idWell, DateTime? v1, DateTime? v2, CancellationToken cancellationToken);
Task<DailyReportDto> GetOrGenerateAsync(int idWell, DateTime date, CancellationToken token);
Task<int> AddAsync(int idWell, DailyReportDto dto, CancellationToken token = default);
Task<int> UpdateAsync(int idWell, DateTime date, DailyReportDto dto, CancellationToken token = default);
Task<Stream> MakeReportAsync(int idWell, DateTime date, CancellationToken token = default);
}
}