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