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 { public TrajectoryFactManualParser(IServiceProvider serviceProvider) : base(serviceProvider) { } protected override string SheetName => "Фактическая траектория"; protected override int HeaderRowsCount => 2; protected override string TemplateFileName => "TrajectoryFactManualTemplate.xlsx"; protected override IDictionary Cells => new Dictionary() { { 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) } }; }