2023-11-28 15:54:47 +05:00
|
|
|
|
using AsbCloudApp.Data.Trajectory;
|
2023-11-21 15:10:22 +05:00
|
|
|
|
using AsbCloudApp.Repositories;
|
2024-01-29 15:39:39 +05:00
|
|
|
|
using AsbCloudApp.Requests.Import;
|
2023-11-21 15:10:22 +05:00
|
|
|
|
using AsbCloudApp.Services;
|
2024-01-29 15:39:39 +05:00
|
|
|
|
using AsbCloudInfrastructure.Services;
|
2023-11-28 15:54:47 +05:00
|
|
|
|
using AsbCloudInfrastructure.Services.Trajectory.Export;
|
2023-11-21 15:10:22 +05:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudWebApi.Controllers.Trajectory;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Фактическая траектория
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ApiController]
|
|
|
|
|
[Route("api/well/{idWell}/[controller]")]
|
2023-11-28 15:54:47 +05:00
|
|
|
|
public class TrajectoryFactManualController : TrajectoryEditableController<TrajectoryGeoFactDto>
|
2023-11-21 15:10:22 +05:00
|
|
|
|
{
|
2024-01-29 15:39:39 +05:00
|
|
|
|
protected override string fileName => "ЕЦП_шаблон_файла_фактическая_траектория.xlsx";
|
|
|
|
|
|
|
|
|
|
public TrajectoryFactManualController(IWellService wellService,
|
|
|
|
|
TrajectoryFactManualExportService trajectoryExportService,
|
|
|
|
|
ParserServiceFactory parserServiceFactory,
|
|
|
|
|
ITrajectoryEditableRepository<TrajectoryGeoFactDto> trajectoryRepository)
|
|
|
|
|
: base(wellService, parserServiceFactory, trajectoryExportService, trajectoryRepository)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override TrajectoryParserRequest ParserOptions => new()
|
|
|
|
|
{
|
|
|
|
|
IdParserService = ParserServiceFactory.IdTrajectoryFactManualParserService,
|
|
|
|
|
SheetName = "Фактическая траектория",
|
|
|
|
|
HeaderRowsCount = 2
|
|
|
|
|
};
|
2023-11-21 15:10:22 +05:00
|
|
|
|
}
|