forked from ddrilling/AsbCloudServer
Регистрация зависимостей, добавлен новый контроллер
This commit is contained in:
parent
51d43d179a
commit
d321c0a000
@ -392,7 +392,11 @@ public static class DependencyInjection
|
|||||||
IChangeLogRepository<ProcessMapPlanStaticMeasurementOutputDto, ProcessMapPlanBaseRequestWithWell>,
|
IChangeLogRepository<ProcessMapPlanStaticMeasurementOutputDto, ProcessMapPlanBaseRequestWithWell>,
|
||||||
ProcessMapPlanBaseRepository<ProcessMapPlanStaticMeasurementOutput, ProcessMapPlanStaticMeasurementOutputDto>>();
|
ProcessMapPlanBaseRepository<ProcessMapPlanStaticMeasurementOutput, ProcessMapPlanStaticMeasurementOutputDto>>();
|
||||||
|
|
||||||
services.AddTransient<IProcessMapReportDrillingService, ProcessMapReportDrillingService>();
|
services.AddTransient<
|
||||||
|
IChangeLogRepository<ProcessMapPlanSubsystemsDto, ProcessMapPlanBaseRequestWithWell>,
|
||||||
|
ProcessMapPlanBaseRepository<ProcessMapPlanSubsystems, ProcessMapPlanSubsystemsDto>>();
|
||||||
|
|
||||||
|
services.AddTransient<IProcessMapReportDrillingService, ProcessMapReportDrillingService>();
|
||||||
|
|
||||||
services.AddTransient<TrajectoryService>();
|
services.AddTransient<TrajectoryService>();
|
||||||
|
|
||||||
@ -530,6 +534,7 @@ public static class DependencyInjection
|
|||||||
services.AddTransient<ProcessMapPlanOscillationParser>();
|
services.AddTransient<ProcessMapPlanOscillationParser>();
|
||||||
services.AddTransient<ProcessMapPlanAntiCrashRotationParser>();
|
services.AddTransient<ProcessMapPlanAntiCrashRotationParser>();
|
||||||
services.AddTransient<ProcessMapPlanStaticMeasurementOutputParser>();
|
services.AddTransient<ProcessMapPlanStaticMeasurementOutputParser>();
|
||||||
|
services.AddTransient<ProcessMapPlanSubsystemsParser>();
|
||||||
|
|
||||||
services.AddTransient<TrajectoryPlanExportService>();
|
services.AddTransient<TrajectoryPlanExportService>();
|
||||||
services.AddTransient<TrajectoryFactManualExportService>();
|
services.AddTransient<TrajectoryFactManualExportService>();
|
||||||
@ -553,8 +558,9 @@ public static class DependencyInjection
|
|||||||
services.AddTransient<ProcessMapPlanOscillationExportService>();
|
services.AddTransient<ProcessMapPlanOscillationExportService>();
|
||||||
services.AddTransient<ProcessMapPlanAntiCrashRotationExportService>();
|
services.AddTransient<ProcessMapPlanAntiCrashRotationExportService>();
|
||||||
services.AddTransient<ProcessMapPlanStaticMeasurementOutputExportService>();
|
services.AddTransient<ProcessMapPlanStaticMeasurementOutputExportService>();
|
||||||
|
services.AddTransient<ProcessMapPlanSubsystemsExportService>();
|
||||||
|
|
||||||
services.AddTransient<WellOperationParserFactory>();
|
services.AddTransient<WellOperationParserFactory>();
|
||||||
services.AddTransient<WellOperationExportServiceFactory>();
|
services.AddTransient<WellOperationExportServiceFactory>();
|
||||||
|
|
||||||
return services;
|
return services;
|
||||||
|
@ -0,0 +1,33 @@
|
|||||||
|
using AsbCloudApp.Data.ProcessMaps;
|
||||||
|
using AsbCloudApp.Repositories;
|
||||||
|
using AsbCloudApp.Requests;
|
||||||
|
using AsbCloudApp.Services;
|
||||||
|
using AsbCloudDb.Model.ProcessMapPlan;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
|
||||||
|
using AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
|
namespace AsbCloudWebApi.Controllers.ProcessMaps;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// РТК план базовый
|
||||||
|
/// </summary>
|
||||||
|
[ApiController]
|
||||||
|
[Route("api/well/{idWell}/[controller]")]
|
||||||
|
[Authorize]
|
||||||
|
public class ProcessMapPlanSubsystemsController
|
||||||
|
: ProcessMapPlanBaseController<ProcessMapPlanSubsystems, ProcessMapPlanSubsystemsDto>
|
||||||
|
{
|
||||||
|
public ProcessMapPlanSubsystemsController(
|
||||||
|
IChangeLogRepository<ProcessMapPlanSubsystemsDto, ProcessMapPlanBaseRequestWithWell> repository,
|
||||||
|
IWellService wellService,
|
||||||
|
ProcessMapPlanSubsystemsParser parserService,
|
||||||
|
ProcessMapPlanSubsystemsExportService processMapPlanExportService,
|
||||||
|
ITelemetryService telemetryService)
|
||||||
|
: base(repository, wellService, parserService, processMapPlanExportService, telemetryService)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override string TemplateFileName => "ЕЦП_шаблон_файла_РТК_план_использование_систем.xlsx";
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user