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