Правки внутри шаблона импорта, перевод секунд в часы для отчета

This commit is contained in:
Olga Nemt 2023-10-20 16:55:08 +05:00
parent 3927790aab
commit 88e2afc1b2
3 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,7 @@
public float? DepthSpeed { get; set; }
/// <summary>
/// Время бурения шага
/// Время бурения шага, сек
/// </summary>
public float? TimeDrillStep { get; set; }

View File

@ -1,6 +1,7 @@
using AsbCloudApp.Data.DrillTestReport;
using AsbCloudApp.Services;
using ClosedXML.Excel;
using System;
using System.IO;
using System.Linq;
using System.Reflection;
@ -70,7 +71,7 @@ namespace AsbCloudInfrastructure.Services.DrillTestReport
cell = sheet.Cell(rowNumber, 8);
cell._SetValue(endDateTime.DateTime);
sheet.Cell(rowNumber, 9).Value = drillTestEntity.TimeDrillStep;
sheet.Cell(rowNumber, 9).Value = Math.Round((drillTestEntity.TimeDrillStep ?? 0) / (60 * 60), 2);
sheet.Cell(rowNumber, 10).Value = drillTestEntity.DepthSpeed;