2021-10-15 15:35:18 +05:00
|
|
|
|
using System;
|
2021-12-21 11:52:53 +05:00
|
|
|
|
using System.Collections.Generic;
|
2023-02-17 15:30:17 +05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.Linq;
|
2021-10-15 15:35:18 +05:00
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Data
|
2021-04-02 17:28:07 +05:00
|
|
|
|
{
|
2023-08-15 18:00:35 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// базовая информация о скважине
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class WellWithTimezoneDto : WellInfoDto
|
|
|
|
|
{
|
|
|
|
|
/// <inheritdoc/>
|
|
|
|
|
[Required]
|
|
|
|
|
public SimpleTimezoneDto Timezone { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 0 - неизвестно,
|
|
|
|
|
/// 1 - в работе,
|
|
|
|
|
/// 2 - завершена
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int IdState { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-06 14:29:17 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Скважина
|
|
|
|
|
/// </summary>
|
2021-08-02 14:45:13 +05:00
|
|
|
|
public class WellDto : WellInfoDto, IMapPoint, IId
|
2021-04-02 17:28:07 +05:00
|
|
|
|
{
|
2023-03-07 00:04:20 +05:00
|
|
|
|
/// <inheritdoc/>
|
2023-03-10 05:09:41 +05:00
|
|
|
|
[Range(-90, 90, ErrorMessage = "Допустимые значения широты от -90 до 90")]
|
2021-07-21 15:22:58 +05:00
|
|
|
|
public double? Latitude { get; set; }
|
2022-05-06 14:29:17 +05:00
|
|
|
|
|
2022-06-01 17:52:26 +05:00
|
|
|
|
/// <inheritdoc/>
|
2023-03-10 05:09:41 +05:00
|
|
|
|
[Range(-180, 180, ErrorMessage = "Допустимые значения долготы от -180 до 180")]
|
2021-07-21 15:22:58 +05:00
|
|
|
|
public double? Longitude { get; set; }
|
2022-05-06 14:29:17 +05:00
|
|
|
|
|
2022-06-01 17:52:26 +05:00
|
|
|
|
/// <inheritdoc/>
|
2023-02-17 15:30:17 +05:00
|
|
|
|
[Required]
|
|
|
|
|
public SimpleTimezoneDto Timezone { get; set; } = null!;
|
2022-05-06 14:29:17 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Название типа скважины
|
|
|
|
|
/// </summary>
|
2023-03-02 14:31:17 +05:00
|
|
|
|
public string? WellType { get; set; }
|
2022-05-06 14:29:17 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ID типа скважины
|
|
|
|
|
/// </summary>
|
2023-09-29 12:06:46 +05:00
|
|
|
|
[Range(1, 2, ErrorMessage = "Тип скважины указан неправильно.")]
|
2023-02-17 15:30:17 +05:00
|
|
|
|
public int IdWellType { get; set; }
|
2022-05-06 14:29:17 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ID куста
|
|
|
|
|
/// </summary>
|
2023-02-17 15:30:17 +05:00
|
|
|
|
public int IdCluster { get; set; }
|
2021-10-20 12:52:31 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-01-05 17:50:45 +05:00
|
|
|
|
/// 0 - неизвестно,
|
2021-10-20 12:52:31 +05:00
|
|
|
|
/// 1 - в работе,
|
|
|
|
|
/// 2 - завершена
|
|
|
|
|
/// </summary>
|
2023-09-29 12:06:46 +05:00
|
|
|
|
[Range(0, 2, ErrorMessage = "Текущее состояние работы скважины указано неправильно.")]
|
2021-10-20 12:52:31 +05:00
|
|
|
|
public int IdState { get; set; }
|
2022-05-06 14:29:17 +05:00
|
|
|
|
|
2022-05-06 16:35:16 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Дата/время первой операции
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime? StartDate { get; set; }
|
|
|
|
|
|
2022-05-06 14:29:17 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Дата/время кода приходили данные последний раз
|
|
|
|
|
/// </summary>
|
2021-10-15 15:35:18 +05:00
|
|
|
|
public DateTime LastTelemetryDate { get; set; }
|
2022-05-06 14:29:17 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ID телеметрии
|
|
|
|
|
/// </summary>
|
2021-12-17 13:07:45 +05:00
|
|
|
|
public int? IdTelemetry { get; set; }
|
2022-05-06 14:29:17 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Объект телеметрии (инфо от панели оператора)
|
|
|
|
|
/// </summary>
|
2023-02-17 15:30:17 +05:00
|
|
|
|
public TelemetryBaseDto? Telemetry { get; set; }
|
2022-05-06 14:29:17 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Компании участвующие в работах на скважине
|
|
|
|
|
/// </summary>
|
2023-02-17 15:30:17 +05:00
|
|
|
|
public IEnumerable<CompanyDto> Companies { get; set; } = Enumerable.Empty<CompanyDto>();
|
2021-04-02 17:28:07 +05:00
|
|
|
|
}
|
|
|
|
|
}
|