From d321c0a00007f33b637d81e15f0f640a51987473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=82=D0=B5=D0=BF=D0=B0=D0=BD=D0=BE=D0=B2=20=D0=94?= =?UTF-8?q?=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Tue, 20 Aug 2024 14:10:10 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D0=B3=D0=B8=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F=20=D0=B7=D0=B0=D0=B2=D0=B8=D1=81=D0=B8?= =?UTF-8?q?=D0=BC=D0=BE=D1=81=D1=82=D0=B5=D0=B9,=20=D0=B4=D0=BE=D0=B1?= =?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=20=D0=BD=D0=BE=D0=B2=D1=8B=D0=B9?= =?UTF-8?q?=20=D0=BA=D0=BE=D0=BD=D1=82=D1=80=D0=BE=D0=BB=D0=BB=D0=B5=D1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AsbCloudInfrastructure/DependencyInjection.cs | 10 ++++-- .../ProcessMapPlanSubsystemsController.cs | 33 +++++++++++++++++++ 2 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 AsbCloudWebApi/Controllers/ProcessMaps/ProcessMapPlanSubsystemsController.cs diff --git a/AsbCloudInfrastructure/DependencyInjection.cs b/AsbCloudInfrastructure/DependencyInjection.cs index a6a89ab5..7e8d5867 100644 --- a/AsbCloudInfrastructure/DependencyInjection.cs +++ b/AsbCloudInfrastructure/DependencyInjection.cs @@ -392,7 +392,11 @@ public static class DependencyInjection IChangeLogRepository, ProcessMapPlanBaseRepository>(); - services.AddTransient(); + services.AddTransient< + IChangeLogRepository, + ProcessMapPlanBaseRepository>(); + + services.AddTransient(); services.AddTransient(); @@ -530,6 +534,7 @@ public static class DependencyInjection services.AddTransient(); services.AddTransient(); services.AddTransient(); + services.AddTransient(); services.AddTransient(); services.AddTransient(); @@ -553,8 +558,9 @@ public static class DependencyInjection services.AddTransient(); services.AddTransient(); services.AddTransient(); + services.AddTransient(); - services.AddTransient(); + services.AddTransient(); services.AddTransient(); return services; diff --git a/AsbCloudWebApi/Controllers/ProcessMaps/ProcessMapPlanSubsystemsController.cs b/AsbCloudWebApi/Controllers/ProcessMaps/ProcessMapPlanSubsystemsController.cs new file mode 100644 index 00000000..ee93a490 --- /dev/null +++ b/AsbCloudWebApi/Controllers/ProcessMaps/ProcessMapPlanSubsystemsController.cs @@ -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; + +/// +/// РТК план базовый +/// +[ApiController] +[Route("api/well/{idWell}/[controller]")] +[Authorize] +public class ProcessMapPlanSubsystemsController + : ProcessMapPlanBaseController +{ + public ProcessMapPlanSubsystemsController( + IChangeLogRepository repository, + IWellService wellService, + ProcessMapPlanSubsystemsParser parserService, + ProcessMapPlanSubsystemsExportService processMapPlanExportService, + ITelemetryService telemetryService) + : base(repository, wellService, parserService, processMapPlanExportService, telemetryService) + { + } + + protected override string TemplateFileName => "ЕЦП_шаблон_файла_РТК_план_использование_систем.xlsx"; +} \ No newline at end of file