DD.WellWorkover.Cloud/AsbCloudInfrastructure/Services/ProcessMapPlan/Export/ProcessMapPlanDrillTestExportService.cs

30 lines
1.2 KiB
C#
Raw Normal View History

2024-06-26 10:58:59 +05:00
using AsbCloudApp.Data.ProcessMaps;
using AsbCloudApp.Repositories;
using AsbCloudApp.Requests;
using AsbCloudApp.Requests.ExportOptions;
using AsbCloudApp.Services;
using AsbCloudInfrastructure.Services.ExcelServices.Templates;
using AsbCloudInfrastructure.Services.ExcelServices.Templates.ProcessMapPlanTemplates;
using System.Threading;
using System.Threading.Tasks;
namespace AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
2024-06-29 21:50:28 +05:00
public class ProcessMapPlanDrillTestExportService : ProcessMapPlanExportService<ProcessMapPlanDrillTestDto>
2024-06-26 10:58:59 +05:00
{
2024-06-29 21:50:28 +05:00
public ProcessMapPlanDrillTestExportService(
IChangeLogRepository<ProcessMapPlanDrillTestDto, ProcessMapPlanBaseRequestWithWell> processMapPlanRepository,
2024-06-26 10:58:59 +05:00
IWellService wellService)
: base(processMapPlanRepository, wellService)
{
}
2024-06-29 21:50:28 +05:00
protected override ITemplateParameters TemplateParameters { get; } = new ProcessMapPlanDrillTestTemplate();
2024-06-26 10:58:59 +05:00
protected override async Task<string> BuildFileNameAsync(WellRelatedExportRequest options, CancellationToken token)
{
var caption = await wellService.GetWellCaptionByIdAsync(options.IdWell, token);
return $"{caption}_РТК_План_дрилтест.xlsx";
}
}