nit spelling

This commit is contained in:
Фролов 2021-08-27 15:53:38 +05:00
parent ac57a69670
commit f744b49824

View File

@ -49,7 +49,7 @@ namespace AsbCloudInfrastructure.Services
public double DeltaHoursTimeNoNpt => (EndDate - StartDate).TotalHours - NonProductiveHours; public double DeltaHoursTimeNoNpt => (EndDate - StartDate).TotalHours - NonProductiveHours;
public double Speed => DeltaDepth / (DeltaHoursTimeNoNpt + double.Epsilon); public double Speed => DeltaDepth / (DeltaHoursTimeNoNpt + double.Epsilon);
public List<OperationParams> operations { get; internal set; } public List<OperationParams> Operations { get; internal set; }
} }
public class WellOperationsStatService : IWellOperationsStatService public class WellOperationsStatService : IWellOperationsStatService
@ -254,7 +254,7 @@ namespace AsbCloudInfrastructure.Services
{ {
StartDate = iterator.Current.Start.AddHours(iterator.Current.Hours), StartDate = iterator.Current.Start.AddHours(iterator.Current.Hours),
StartWellDepth = iterator.Current.WellDepth, StartWellDepth = iterator.Current.WellDepth,
operations = new List<OperationParams>(4), Operations = new List<OperationParams>(4),
}; };
while (iterator.MoveNext()) while (iterator.MoveNext())
{ {
@ -269,7 +269,7 @@ namespace AsbCloudInfrastructure.Services
races.Add(race); races.Add(race);
break; break;
} }
race.operations.Add(iterator.Current); race.Operations.Add(iterator.Current);
} }
} }
} }
@ -295,11 +295,11 @@ namespace AsbCloudInfrastructure.Services
foreach (var race in races) foreach (var race in races)
{ {
dDepth += race.StartWellDepth; dDepth += race.StartWellDepth;
for (var i = 0; i < race.operations.Count; i++) for (var i = 0; i < race.Operations.Count; i++)
{ {
if (race.operations[i].IdCategory == idOperationBhaDown) if (race.Operations[i].IdCategory == idOperationBhaDown)
dHours += race.operations[i].Hours; dHours += race.Operations[i].Hours;
if (race.operations[i].IdCategory == idOperationDrilling) if (race.Operations[i].IdCategory == idOperationDrilling)
break; break;
} }
} }
@ -313,11 +313,11 @@ namespace AsbCloudInfrastructure.Services
foreach (var race in races) foreach (var race in races)
{ {
dDepth += race.EndWellDepth; dDepth += race.EndWellDepth;
for (var i = race.operations.Count -1; i > 0 ; i--) for (var i = race.Operations.Count -1; i > 0 ; i--)
{ {
if (race.operations[i].IdCategory == idOperationBhaUp) if (race.Operations[i].IdCategory == idOperationBhaUp)
dHours += race.operations[i].Hours; dHours += race.Operations[i].Hours;
if (race.operations[i].IdCategory == idOperationDrilling) if (race.Operations[i].IdCategory == idOperationDrilling)
break; break;
} }
} }
@ -383,7 +383,7 @@ namespace AsbCloudInfrastructure.Services
return tvd; return tvd;
} }
private static Action<WellOperationDto, WellOperation> WellOperationDtoMutation = (WellOperationDto dest, WellOperation source) => private static readonly Action<WellOperationDto, WellOperation> WellOperationDtoMutation = (WellOperationDto dest, WellOperation source) =>
{ {
dest.CategoryName = source.OperationCategory?.Name; dest.CategoryName = source.OperationCategory?.Name;
dest.WellSectionTypeName = source.WellSectionType?.Caption; dest.WellSectionTypeName = source.WellSectionType?.Caption;