diff --git a/AsbCloudInfrastructure/Services/WellOperationService/OperationsStatService.cs b/AsbCloudInfrastructure/Services/WellOperationService/OperationsStatService.cs index ad511ed3..ae553adc 100644 --- a/AsbCloudInfrastructure/Services/WellOperationService/OperationsStatService.cs +++ b/AsbCloudInfrastructure/Services/WellOperationService/OperationsStatService.cs @@ -408,7 +408,7 @@ namespace AsbCloudInfrastructure.Services.WellOperationService var dateStart = firstPoint.Item1?.DateStart ?? firstPoint.Item2.DateStart; int iLastMatch = 0; int iLastFact = 0; - var nptDays = 0d; + var nptHours = 0d; for (int i = 0; i < merged.Count; i++) { var item = merged[i]; @@ -417,7 +417,7 @@ namespace AsbCloudInfrastructure.Services.WellOperationService if (fact?.IdCategory == WellOperationService.idOperationNonProductiveTime) { - nptDays += fact.DurationHours; + nptHours += fact.DurationHours; } var planFactPredict = new PlanFactPredictBase @@ -433,7 +433,7 @@ namespace AsbCloudInfrastructure.Services.WellOperationService if (planFactPredict.Fact is not null) { planFactPredict.Fact.Day = (planFactPredict.Fact.DateStart - dateStart).TotalDays; - planFactPredict.Fact.NptHours = nptDays; + planFactPredict.Fact.NptHours = nptHours; } tvd.Add(planFactPredict); diff --git a/AsbCloudInfrastructure/Services/WellOperationService/ReportTemplate.xlsx b/AsbCloudInfrastructure/Services/WellOperationService/ReportTemplate.xlsx new file mode 100644 index 00000000..bd0220d3 Binary files /dev/null and b/AsbCloudInfrastructure/Services/WellOperationService/ReportTemplate.xlsx differ