using System.Collections.Generic; using System.IO; using AsbCloudApp.Data; using AsbCloudApp.Data.ProcessMaps; using AsbCloudApp.Repositories; using AsbCloudApp.Requests.ParserOptions; using AsbCloudInfrastructure.Services.ExcelServices; namespace AsbCloudInfrastructure.Services.ProcessMapPlan.Parser; public abstract class ProcessMapPlanParser : ParserExcelService where TDto : ProcessMapPlanBaseDto { protected readonly IEnumerable sections; protected ProcessMapPlanParser(IWellOperationRepository wellOperationRepository) { sections = wellOperationRepository.GetSectionTypes(); } public override ParserResultDto Parse(Stream file, WellRelatedParserRequest options) { var result = base.Parse(file, options); foreach (var item in result.Item) item.Item.IdWell = options.IdWell; return result; } }