DD.WellWorkover.Cloud/AsbCloudInfrastructure/Services/WellOperationService/Race.cs

54 lines
1.6 KiB
C#
Raw Normal View History

using AsbCloudDb.Model;
using System;
using System.Collections.Generic;
namespace AsbCloudInfrastructure.Services.WellOperationService
{
#nullable enable
class Race
{
/// <summary>
/// Дата начала рейса
/// </summary>
public DateTime StartDate { get; set; }
/// <summary>
/// Глубина начала рейса
/// </summary>
public double StartWellDepth { get; set; }
/// <summary>
/// Дата окончания рейса
/// </summary>
public DateTime EndDate { get; set; }
/// <summary>
/// Глубина окончания рейса
/// </summary>
public double EndWellDepth { get; set; }
/// <summary>
/// Время рейса, часы
/// </summary>
public double DrillingTime { get; set; }
/// <summary>
/// Время НПВ, часы
/// </summary>
public double NonProductiveHours { get; set; }
/// <summary>
/// Ремонт
/// </summary>
public double Repair { get; set; }
public double DeltaDepth => EndWellDepth - StartWellDepth;
public double DeltaHoursTimeNoNpt => (EndDate - StartDate).TotalHours - NonProductiveHours;
public double DeltaHoursTimeNoNptAndRepair => DeltaHoursTimeNoNpt - Repair;
public double Speed => DeltaDepth / (DeltaHoursTimeNoNpt + double.Epsilon);
public List<WellOperation>? Operations { get; internal set; }
}
#nullable disable
}