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 TrajectoryPlanParser : ParserExcelService<TrajectoryGeoPlanDto, IParserOptionsRequest>
|
2024-01-29 15:03:53 +05:00
|
|
|
|
{
|
2024-02-08 14:50:14 +05:00
|
|
|
|
public TrajectoryPlanParser(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 => "TrajectoryPlanTemplate.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(TrajectoryGeoPlanDto.WellboreDepth), new Cell(1, XLDataType.Number) },
|
|
|
|
|
{ nameof(TrajectoryGeoPlanDto.ZenithAngle), new Cell(2, XLDataType.Number) },
|
|
|
|
|
{ nameof(TrajectoryGeoPlanDto.AzimuthGeo), new Cell(3, XLDataType.Number) },
|
|
|
|
|
{ nameof(TrajectoryGeoPlanDto.AzimuthMagnetic), new Cell(4, XLDataType.Number) },
|
|
|
|
|
{ nameof(TrajectoryGeoPlanDto.VerticalDepth), new Cell(5, XLDataType.Number) },
|
|
|
|
|
{ nameof(TrajectoryGeoPlanDto.Radius), new Cell(6, XLDataType.Number) },
|
|
|
|
|
{ nameof(TrajectoryGeoPlanDto.Comment), new Cell(7, XLDataType.Text) }
|
2024-02-12 17:25:18 +05:00
|
|
|
|
};
|
2024-01-29 15:03:53 +05:00
|
|
|
|
}
|