forked from ddrilling/AsbCloudServer
start report tvd
This commit is contained in:
parent
efdcb4f211
commit
fdc22f4f94
@ -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<WellOperationDto>
|
||||
@ -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);
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user