2023-07-18 14:09:54 +05:00
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сервис импорта/экспорта для РТК вводимых вручную
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IProcessMapPlanImportService
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Загрузить данные из файла
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
|
/// <param name="idUser"></param>
|
2023-07-24 16:00:40 +05:00
|
|
|
|
/// <param name="deleteProcessMapPlansBeforeImport"></param>
|
2023-07-18 14:09:54 +05:00
|
|
|
|
/// <param name="stream"></param>
|
|
|
|
|
/// <param name="cancellationToken"></param>
|
|
|
|
|
/// <returns></returns>
|
2023-07-24 16:00:40 +05:00
|
|
|
|
Task ImportAsync(int idWell, int idUser, bool deleteProcessMapPlansBeforeImport, Stream stream,
|
|
|
|
|
CancellationToken cancellationToken);
|
2023-07-18 14:09:54 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Сформировать файл с данными
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
|
/// <param name="cancellationToken"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<Stream> ExportAsync(int idWell, CancellationToken cancellationToken);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Получение шаблона для заполнения
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<Stream> GetExcelTemplateStreamAsync(CancellationToken cancellationToken);
|
|
|
|
|
}
|