forked from ddrilling/AsbCloudServer
38 lines
1.4 KiB
C#
38 lines
1.4 KiB
C#
|
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.Collections.Generic;
|
|||
|
using System.Threading;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
|
|||
|
|
|||
|
public class ProcessMapPlanRotorExportService : ProcessMapPlanExportService<ProcessMapPlanRotorDto>
|
|||
|
{
|
|||
|
public ProcessMapPlanRotorExportService(
|
|||
|
IChangeLogRepository<ProcessMapPlanRotorDto, ProcessMapPlanBaseRequestWithWell> processMapPlanRepository,
|
|||
|
IWellService wellService)
|
|||
|
: base(processMapPlanRepository, wellService)
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
protected override ITemplateParameters TemplateParameters => new ProcessMapPlanRotorTemplate();
|
|||
|
|
|||
|
protected override async Task<string> BuildFileNameAsync(WellRelatedExportRequest options, CancellationToken token)
|
|||
|
{
|
|||
|
var caption = await wellService.GetWellCaptionByIdAsync(options.IdWell, token);
|
|||
|
|
|||
|
return $"{caption}_РТК_План_бурение_ротор.xlsx";
|
|||
|
}
|
|||
|
|
|||
|
protected override async Task<IEnumerable<ProcessMapPlanRotorDto>> GetDtosAsync(WellRelatedExportRequest options,
|
|||
|
CancellationToken token)
|
|||
|
{
|
|||
|
var dtos = await base.GetDtosAsync(options, token);
|
|||
|
return dtos;
|
|||
|
}
|
|||
|
}
|