2024-06-30 21:02:55 +05:00
|
|
|
|
using AsbCloudApp.Data.ProcessMaps.Operations;
|
2024-06-24 16:05:45 +05:00
|
|
|
|
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 00:10:40 +05:00
|
|
|
|
public class ProcessMapPlanReamingSlideExportService : ProcessMapPlanExportService<ProcessMapPlanReamingSlideDto>
|
2024-06-24 16:05:45 +05:00
|
|
|
|
{
|
2024-06-30 00:10:40 +05:00
|
|
|
|
public ProcessMapPlanReamingSlideExportService(
|
|
|
|
|
IChangeLogRepository<ProcessMapPlanReamingSlideDto, ProcessMapPlanBaseRequestWithWell> processMapPlanRepository,
|
2024-06-24 16:05:45 +05:00
|
|
|
|
IWellService wellService)
|
|
|
|
|
: base(processMapPlanRepository, wellService)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-30 00:10:40 +05:00
|
|
|
|
protected override ITemplateParameters TemplateParameters { get; } = new ProcessMapPlanReamingSlideTemplate();
|
2024-06-24 16:05:45 +05:00
|
|
|
|
|
|
|
|
|
protected override async Task<string> BuildFileNameAsync(WellRelatedExportRequest options, CancellationToken token)
|
|
|
|
|
{
|
|
|
|
|
var caption = await wellService.GetWellCaptionByIdAsync(options.IdWell, token);
|
|
|
|
|
|
|
|
|
|
return $"{caption}_РТК_План_проработка_слайд.xlsx";
|
|
|
|
|
}
|
|
|
|
|
}
|