2024-02-01 16:35:29 +05:00
|
|
|
|
using System;
|
2024-02-12 17:25:18 +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 AsbCloudApp.Requests.ParserOptions;
|
|
|
|
|
using AsbCloudInfrastructure.Services.Parser;
|
|
|
|
|
using AsbCloudInfrastructure.Services.Parser.Data;
|
2024-01-29 15:03:53 +05:00
|
|
|
|
using ClosedXML.Excel;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudInfrastructure.Services.Trajectory.Parser;
|
|
|
|
|
|
2024-02-13 16:05:16 +05:00
|
|
|
|
public class TrajectoryFactManualParser : ParserExcelService<TrajectoryGeoFactDto, IParserOptionsRequest>
|
2024-01-29 15:03:53 +05:00
|
|
|
|
{
|
2024-02-08 14:50:14 +05:00
|
|
|
|
public TrajectoryFactManualParser(IServiceProvider serviceProvider)
|
2024-02-01 16:35:29 +05:00
|
|
|
|
: base(serviceProvider)
|
|
|
|
|
{
|
|
|
|
|
}
|
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-13 16:05:16 +05:00
|
|
|
|
protected override IDictionary<string, Cell> Cells => new Dictionary<string, Cell>()
|
2024-01-29 15:03:53 +05:00
|
|
|
|
{
|
2024-02-13 16:05:16 +05:00
|
|
|
|
{ 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) }
|
2024-02-12 17:25:18 +05:00
|
|
|
|
};
|
2024-01-29 15:03:53 +05:00
|
|
|
|
}
|