2024-02-16 13:53:10 +05:00
|
|
|
|
using System.Collections.Generic;
|
2024-01-29 15:03:53 +05:00
|
|
|
|
using AsbCloudApp.Data.Trajectory;
|
2024-02-13 16:05:16 +05:00
|
|
|
|
using AsbCloudInfrastructure.Services.Parser;
|
2024-01-29 15:03:53 +05:00
|
|
|
|
|
|
|
|
|
namespace AsbCloudInfrastructure.Services.Trajectory.Parser;
|
|
|
|
|
|
2024-02-16 13:53:10 +05:00
|
|
|
|
public class TrajectoryFactManualParser : ParserExcelService<TrajectoryGeoFactDto>
|
2024-01-29 15:03:53 +05:00
|
|
|
|
{
|
2024-02-12 17:25:18 +05:00
|
|
|
|
protected override string SheetName => "Фактическая траектория";
|
|
|
|
|
|
2024-02-13 16:05:16 +05:00
|
|
|
|
protected override int HeaderRowsCount => 2;
|
|
|
|
|
|
2024-02-12 17:25:18 +05:00
|
|
|
|
protected override string TemplateFileName => "TrajectoryFactManualTemplate.xlsx";
|
|
|
|
|
|
2024-02-14 14:13:43 +05:00
|
|
|
|
protected override IDictionary<string, Cell> Cells => new Dictionary<string, Cell>
|
2024-01-29 15:03:53 +05:00
|
|
|
|
{
|
2024-02-14 14:13:43 +05:00
|
|
|
|
{ nameof(TrajectoryGeoFactDto.WellboreDepth), new Cell(1, typeof(double)) },
|
|
|
|
|
{ nameof(TrajectoryGeoFactDto.ZenithAngle), new Cell(2, typeof(double)) },
|
|
|
|
|
{ nameof(TrajectoryGeoFactDto.AzimuthGeo), new Cell(3, typeof(double)) },
|
|
|
|
|
{ nameof(TrajectoryGeoFactDto.AzimuthMagnetic), new Cell(4, typeof(double)) },
|
|
|
|
|
{ nameof(TrajectoryGeoFactDto.VerticalDepth), new Cell(5, typeof(double)) },
|
|
|
|
|
{ nameof(TrajectoryGeoFactDto.Comment), new Cell(6, typeof(string)) }
|
2024-02-12 17:25:18 +05:00
|
|
|
|
};
|
2024-01-29 15:03:53 +05:00
|
|
|
|
}
|