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