2024-03-12 12:01:33 +05:00
|
|
|
using System.IO;
|
|
|
|
using AsbCloudApp.Data;
|
|
|
|
using AsbCloudApp.Data.Trajectory;
|
|
|
|
using AsbCloudApp.Requests.ParserOptions;
|
2024-03-14 10:03:57 +05:00
|
|
|
using AsbCloudInfrastructure.Services.ExcelServices;
|
2024-03-12 12:01:33 +05:00
|
|
|
|
|
|
|
namespace AsbCloudInfrastructure.Services.Trajectory.Parser;
|
|
|
|
|
|
|
|
public abstract class TrajectoryParser<TDto> : ParserExcelService<TDto, WellRelatedParserRequest>
|
|
|
|
where TDto : TrajectoryGeoDto
|
|
|
|
{
|
|
|
|
public override ParserResultDto<TDto> Parse(Stream file, WellRelatedParserRequest options)
|
|
|
|
{
|
|
|
|
var result = base.Parse(file, options);
|
|
|
|
|
|
|
|
foreach (var item in result.Item)
|
|
|
|
item.Item.IdWell = options.IdWell;
|
|
|
|
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|