forked from ddrilling/AsbCloudServer
29 lines
1.1 KiB
C#
29 lines
1.1 KiB
C#
|
using System.Threading;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using AsbCloudApp.Data.ProcessMaps;
|
|||
|
using AsbCloudApp.Repositories;
|
|||
|
using AsbCloudApp.Requests;
|
|||
|
using AsbCloudApp.Services;
|
|||
|
using AsbCloudInfrastructure.Services.ExcelServices.Templates;
|
|||
|
using AsbCloudInfrastructure.Services.ExcelServices.Templates.ProcessMapPlanTemplates;
|
|||
|
|
|||
|
namespace AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
|
|||
|
|
|||
|
public class ProcessMapPlanDrillingExportService : ProcessMapPlanExportService<ProcessMapPlanDrillingDto>
|
|||
|
{
|
|||
|
public ProcessMapPlanDrillingExportService(
|
|||
|
IChangeLogRepository<ProcessMapPlanDrillingDto, ProcessMapPlanBaseRequestWithWell> processMapPlanRepository,
|
|||
|
IWellService wellService)
|
|||
|
: base(processMapPlanRepository, wellService)
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
protected override ITemplateParameters TemplateParameters => new ProcessMapPlanDrillingTemplate();
|
|||
|
|
|||
|
protected override async Task<string> BuildFileNameAsync(int idWell, CancellationToken token)
|
|||
|
{
|
|||
|
var caption = await wellService.GetWellCaptionByIdAsync(idWell, token);
|
|||
|
|
|||
|
return $"{caption}_РТК_План_бурение.xlsx";
|
|||
|
}
|
|||
|
}
|