2024-07-04 11:02:45 +05:00
|
|
|
using System.Collections.Generic;
|
2023-03-10 05:09:41 +05:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
2023-02-17 15:30:17 +05:00
|
|
|
using System.Linq;
|
2021-07-22 14:23:47 +05:00
|
|
|
|
|
|
|
namespace AsbCloudApp.Data
|
2021-07-19 15:11:01 +05:00
|
|
|
{
|
2022-06-01 17:52:26 +05:00
|
|
|
/// <summary>
|
|
|
|
/// DTO кустов
|
|
|
|
/// </summary>
|
2023-02-07 16:20:36 +05:00
|
|
|
public class ClusterDto : MapPointBaseDto
|
2021-07-19 15:11:01 +05:00
|
|
|
{
|
2022-06-01 17:52:26 +05:00
|
|
|
/// <summary>
|
|
|
|
/// ИД месторождения, необязательный
|
|
|
|
/// </summary>
|
2024-01-16 13:24:42 +05:00
|
|
|
[Required]
|
2023-03-10 05:09:41 +05:00
|
|
|
[Range(1, int.MaxValue, ErrorMessage = "Id месторождения не может быть меньше 1")]
|
2023-02-17 15:30:17 +05:00
|
|
|
public int IdDeposit { get; set; }
|
2022-06-01 17:52:26 +05:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// DTO месторождения
|
|
|
|
/// </summary>
|
|
|
|
public DepositBaseDto? Deposit { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Список скважин куста
|
|
|
|
/// </summary>
|
2023-02-17 15:30:17 +05:00
|
|
|
public IEnumerable<WellDto> Wells { get; set; } = Enumerable.Empty<WellDto>();
|
2021-07-19 15:11:01 +05:00
|
|
|
}
|
2023-02-07 16:20:36 +05:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// DTO кустов
|
|
|
|
/// </summary>
|
|
|
|
public class ClusterBranchDto : MapPointBaseDto
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Список скважин куста
|
|
|
|
/// </summary>
|
2023-06-30 15:49:30 +05:00
|
|
|
public IEnumerable<WellMapInfoWithTelemetryStat> Wells { get; set; } = Enumerable.Empty<WellMapInfoWithTelemetryStat>();
|
2023-02-07 16:20:36 +05:00
|
|
|
}
|
2021-07-19 15:11:01 +05:00
|
|
|
}
|