forked from ddrilling/AsbCloudServer
30 lines
1.3 KiB
C#
30 lines
1.3 KiB
C#
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;
|
||
|
||
public class ProcessMapPlanRotorRpmAccelerationExportService : ProcessMapPlanExportService<RotorRpmAccelerationDto>
|
||
{
|
||
public ProcessMapPlanRotorRpmAccelerationExportService(
|
||
IChangeLogRepository<RotorRpmAccelerationDto, ProcessMapPlanBaseRequestWithWell> processMapPlanRepository,
|
||
IWellService wellService)
|
||
: base(processMapPlanRepository, wellService)
|
||
{
|
||
}
|
||
|
||
protected override ITemplateParameters TemplateParameters { get; } = new ProcessMapPlanRotorRpmAccelerationTemplate();
|
||
|
||
protected override async Task<string> BuildFileNameAsync(WellRelatedExportRequest options, CancellationToken token)
|
||
{
|
||
var caption = await wellService.GetWellCaptionByIdAsync(options.IdWell, token);
|
||
|
||
return $"{caption}_РТК_План_выход_на_обороты_перед_ротором.xlsx";
|
||
}
|
||
} |