2021-10-09 20:16:22 +05:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
|
{
|
2022-08-09 11:10:01 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// сервис импорта/экспорта операций по скважине вводимых вручную
|
|
|
|
|
/// </summary>
|
2021-10-09 20:16:22 +05:00
|
|
|
|
public interface IWellOperationImportService
|
|
|
|
|
{
|
2022-08-09 11:10:01 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// скачать в excel
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
|
/// <returns></returns>
|
2021-10-09 20:16:22 +05:00
|
|
|
|
Stream Export(int idWell);
|
2022-08-09 11:10:01 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// скачать шаблон для заполнения
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2021-10-11 13:45:06 +05:00
|
|
|
|
Stream GetExcelTemplateStream();
|
2022-08-09 11:10:01 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// закгрузить из excel список операций
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
|
/// <param name="stream"></param>
|
2023-05-22 14:46:19 +05:00
|
|
|
|
/// <param name="idUser"></param>
|
2022-08-09 11:10:01 +05:00
|
|
|
|
/// <param name="deleteWellOperationsBeforeImport">Очистить старые перед импортом (если файл проходит валидацию)</param>
|
2023-05-22 14:46:19 +05:00
|
|
|
|
void Import(int idWell, Stream stream, int idUser, bool deleteWellOperationsBeforeImport = false);
|
2021-10-09 20:16:22 +05:00
|
|
|
|
}
|
|
|
|
|
}
|