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

30 lines
1.2 KiB
C#
Raw Normal View History

using AsbCloudApp.Data.ProcessMaps.Operations;
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-30 12:19:37 +05:00
public class ProcessMapPlanReamingRotorExportService : ProcessMapPlanExportService<ProcessMapPlanReamingRotorDto>
{
2024-06-30 12:19:37 +05:00
public ProcessMapPlanReamingRotorExportService(
IChangeLogRepository<ProcessMapPlanReamingRotorDto, ProcessMapPlanBaseRequestWithWell> processMapPlanRepository,
IWellService wellService)
: base(processMapPlanRepository, wellService)
{
}
2024-06-30 12:19:37 +05:00
protected override ITemplateParameters TemplateParameters { get; } = new ProcessMapPlanReamingRotorTemplate();
protected override async Task<string> BuildFileNameAsync(WellRelatedExportRequest options, CancellationToken token)
{
var caption = await wellService.GetWellCaptionByIdAsync(options.IdWell, token);
return $"{caption}_РТК_План_проработка_ротор.xlsx";
}
}