forked from ddrilling/AsbCloudServer
4874a9288b
1. Добавлен метод расширения для парсинга Excel файлов 2. Рефакторинг контроллеров траекторий
34 lines
1.2 KiB
C#
34 lines
1.2 KiB
C#
using AsbCloudApp.Data.Trajectory;
|
||
using AsbCloudApp.Repositories;
|
||
using AsbCloudApp.Requests.Import;
|
||
using AsbCloudApp.Services;
|
||
using AsbCloudInfrastructure.Services;
|
||
using AsbCloudInfrastructure.Services.Trajectory.Export;
|
||
using Microsoft.AspNetCore.Mvc;
|
||
|
||
namespace AsbCloudWebApi.Controllers.Trajectory;
|
||
|
||
/// <summary>
|
||
/// Фактическая траектория
|
||
/// </summary>
|
||
[ApiController]
|
||
[Route("api/well/{idWell}/[controller]")]
|
||
public class TrajectoryFactManualController : TrajectoryEditableController<TrajectoryGeoFactDto>
|
||
{
|
||
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
|
||
};
|
||
} |