forked from ddrilling/AsbCloudServer
Фикс импорта шаблона с плановыми операциями ГГД
This commit is contained in:
parent
40ac7780da
commit
38f861c2e9
@ -403,7 +403,8 @@ namespace AsbCloudWebApi.Controllers
|
||||
/// <summary>
|
||||
/// Импорт операций из excel (xlsx) файла. ГПНХ (Хантос)
|
||||
/// </summary>
|
||||
/// <param name="idWell">id скважины</param>
|
||||
/// <param name="idWell">Id скважины</param>
|
||||
/// <param name="options">Параметры парсинга</param>
|
||||
/// <param name="files">Коллекция из одного файла xlsx</param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
@ -412,13 +413,11 @@ namespace AsbCloudWebApi.Controllers
|
||||
[ProducesResponseType(typeof(ValidationProblemDetails), StatusCodes.Status400BadRequest)]
|
||||
[Permission]
|
||||
public Task<IActionResult> ImportPlanGazpromKhantosExcelFileAsync(int idWell,
|
||||
[FromQuery] WellOperationImportGazpromKhantosOptionsDto options,
|
||||
[FromForm] IFormFileCollection files,
|
||||
CancellationToken cancellationToken)
|
||||
{
|
||||
var options = new WellOperationImportGazpromKhantosOptionsDto
|
||||
{
|
||||
IdType = WellOperation.IdOperationTypePlan
|
||||
};
|
||||
options.IdType = WellOperation.IdOperationTypePlan;
|
||||
|
||||
return ImportExcelFileAsync(idWell, files, options,
|
||||
(stream, _) => wellOperationGazpromKhantosExcelParser.Parse(stream, options),
|
||||
|
Loading…
Reference in New Issue
Block a user