forked from ddrilling/AsbCloudServer
33 lines
1.3 KiB
C#
33 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using AsbCloudApp.Data.Trajectory;
|
|
using AsbCloudApp.Requests.ParserOptions;
|
|
using AsbCloudInfrastructure.Services.Parser;
|
|
using AsbCloudInfrastructure.Services.Parser.Data;
|
|
using ClosedXML.Excel;
|
|
|
|
namespace AsbCloudInfrastructure.Services.Trajectory.Parser;
|
|
|
|
public class TrajectoryFactManualParser : ParserExcelService<TrajectoryGeoFactDto, IParserOptionsRequest>
|
|
{
|
|
public TrajectoryFactManualParser(IServiceProvider serviceProvider)
|
|
: base(serviceProvider)
|
|
{
|
|
}
|
|
|
|
protected override string SheetName => "Фактическая траектория";
|
|
|
|
protected override int HeaderRowsCount => 2;
|
|
|
|
protected override string TemplateFileName => "TrajectoryFactManualTemplate.xlsx";
|
|
|
|
protected override IDictionary<string, Cell> Cells => new Dictionary<string, Cell>()
|
|
{
|
|
{ nameof(TrajectoryGeoFactDto.WellboreDepth), new Cell(1, XLDataType.Number) },
|
|
{ nameof(TrajectoryGeoFactDto.ZenithAngle), new Cell(2, XLDataType.Number) },
|
|
{ nameof(TrajectoryGeoFactDto.AzimuthGeo), new Cell(3, XLDataType.Number) },
|
|
{ nameof(TrajectoryGeoFactDto.AzimuthMagnetic), new Cell(4, XLDataType.Number) },
|
|
{ nameof(TrajectoryGeoFactDto.VerticalDepth), new Cell(5, XLDataType.Number) },
|
|
{ nameof(TrajectoryGeoFactDto.Comment), new Cell(6, XLDataType.Text) }
|
|
};
|
|
} |