2022-12-21 18:02:22 +05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2024-03-27 09:53:54 +05:00
|
|
|
|
namespace AsbCloudApp.Requests;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Запрос получения ГГД
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class WellOperationRequestBase : RequestBase
|
2022-12-21 18:02:22 +05:00
|
|
|
|
{
|
2024-03-27 09:53:54 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Больше или равно дате начала операции
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTimeOffset? GeDate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Меньше или равно дате окончания операции
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTimeOffset? LeDate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Больше или равно глубины скважины на начало операции.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double? GeDepth { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Меньше или равно глубины скважины на конец операции.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double? LeDepth { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Идентификаторы категорий операции
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IEnumerable<int>? OperationCategoryIds { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Тип операций
|
|
|
|
|
/// <list type="bullet">
|
|
|
|
|
/// <item>0 - плановая операция</item>
|
|
|
|
|
/// <item>1 - фактическая операция</item>
|
|
|
|
|
/// </list>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int? OperationType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Идентификаторы конструкций секции
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IEnumerable<int>? SectionTypeIds { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Запрос получения ГГД с идентификаторами скважин
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class WellOperationRequest : WellOperationRequestBase
|
|
|
|
|
{
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
public WellOperationRequest(IEnumerable<int> idsWell)
|
2024-03-20 12:52:28 +05:00
|
|
|
|
{
|
2024-03-27 09:53:54 +05:00
|
|
|
|
IdsWell = idsWell;
|
2024-03-20 12:52:28 +05:00
|
|
|
|
}
|
2024-03-27 09:53:54 +05:00
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
public WellOperationRequest(WellOperationRequestBase request, IEnumerable<int> idsWell)
|
|
|
|
|
: this(idsWell)
|
|
|
|
|
{
|
|
|
|
|
GeDepth = request.GeDepth;
|
|
|
|
|
LeDepth = request.LeDepth;
|
|
|
|
|
GeDate = request.GeDate;
|
|
|
|
|
LeDate = request.LeDate;
|
|
|
|
|
|
|
|
|
|
OperationCategoryIds = request.OperationCategoryIds;
|
|
|
|
|
OperationType = request.OperationType;
|
|
|
|
|
SectionTypeIds = request.SectionTypeIds;
|
|
|
|
|
|
|
|
|
|
Skip = request.Skip;
|
|
|
|
|
Take = request.Take;
|
|
|
|
|
SortFields = request.SortFields;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Идентификаторы скважин
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IEnumerable<int>? IdsWell { get; }
|
2024-03-20 12:52:28 +05:00
|
|
|
|
}
|