forked from ddrilling/AsbCloudServer
23 lines
640 B
C#
23 lines
640 B
C#
|
using System.IO;
|
||
|
using AsbCloudApp.Data;
|
||
|
using AsbCloudApp.Data.Trajectory;
|
||
|
using AsbCloudApp.Requests.ParserOptions;
|
||
|
using AsbCloudInfrastructure.Services.Parser;
|
||
|
|
||
|
namespace AsbCloudInfrastructure.Services.Trajectory.Parser;
|
||
|
|
||
|
public abstract class TrajectoryParser<TDto> : ParserExcelService<TDto, WellRelatedParserRequest>
|
||
|
where TDto : TrajectoryGeoDto
|
||
|
{
|
||
|
protected override int HeaderRowsCount => 2;
|
||
|
|
||
|
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;
|
||
|
}
|
||
|
}
|