2022-12-21 18:02:22 +05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Requests
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// параметры для запроса списка операций
|
|
|
|
|
/// </summary>
|
2024-03-12 17:21:05 +05:00
|
|
|
|
public class WellOperationRequestBase : RequestBase
|
2022-12-21 18:02:22 +05:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// фильтр по дате начала операции
|
|
|
|
|
/// </summary>
|
2024-03-18 10:05:20 +05:00
|
|
|
|
public DateTimeOffset? GeDate { get; set; }
|
2022-12-21 18:02:22 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// фильтр по дате окончания операции
|
|
|
|
|
/// </summary>
|
2024-03-18 10:05:20 +05:00
|
|
|
|
public DateTimeOffset? LeDate { get; set; }
|
2022-12-21 18:02:22 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2023-07-17 09:49:06 +05:00
|
|
|
|
/// фильтр. Больше или равно глубины скважины на начало операции.
|
2022-12-21 18:02:22 +05:00
|
|
|
|
/// </summary>
|
2023-07-17 09:49:06 +05:00
|
|
|
|
public double? GeDepth { get; set; }
|
2022-12-21 18:02:22 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2023-07-17 09:49:06 +05:00
|
|
|
|
/// фильтр. Меньше или равно глубины скважины на конец операции.
|
2022-12-21 18:02:22 +05:00
|
|
|
|
/// </summary>
|
2023-07-17 09:49:06 +05:00
|
|
|
|
public double? LeDepth { get; set; }
|
2022-12-21 18:02:22 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// фильтр по списку id категорий операции
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IEnumerable<int>? OperationCategoryIds { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// фильтр по план = 0, факт = 1
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int? OperationType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// фильтр по списку id конструкций секции
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IEnumerable<int>? SectionTypeIds { get; set; }
|
2024-03-12 17:21:05 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Параметры для запроса списка операций.
|
|
|
|
|
/// Базовый конструктор
|
|
|
|
|
/// </summary>
|
|
|
|
|
public WellOperationRequestBase()
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Параметры для запроса списка операций.
|
|
|
|
|
/// Копирующий конструктор
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
public WellOperationRequestBase(WellOperationRequestBase request)
|
|
|
|
|
{
|
|
|
|
|
GeDepth = request.GeDepth;
|
|
|
|
|
LeDepth = request.LeDepth;
|
|
|
|
|
GeDate = request.GeDate;
|
2024-03-18 10:05:20 +05:00
|
|
|
|
LeDate = request.LeDate;
|
2024-03-12 17:21:05 +05:00
|
|
|
|
|
|
|
|
|
OperationCategoryIds = request.OperationCategoryIds;
|
|
|
|
|
OperationType = request.OperationType;
|
|
|
|
|
SectionTypeIds = request.SectionTypeIds;
|
|
|
|
|
|
|
|
|
|
Skip = request.Skip;
|
|
|
|
|
Take = request.Take;
|
|
|
|
|
SortFields = request.SortFields;
|
|
|
|
|
}
|
2022-12-21 18:02:22 +05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Параметры для запроса списка операций (с id скважины)
|
|
|
|
|
/// </summary>
|
2024-03-12 17:21:05 +05:00
|
|
|
|
public class WellOperationRequest : WellOperationRequestBase
|
2022-12-21 18:02:22 +05:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// id скважины
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int IdWell { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ctor
|
|
|
|
|
/// </summary>
|
2024-03-12 17:21:05 +05:00
|
|
|
|
public WellOperationRequest() { }
|
2022-12-21 18:02:22 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// копирующий конструктор
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
|
public WellOperationRequest(WellOperationRequestBase request, int idWell)
|
2024-03-12 17:21:05 +05:00
|
|
|
|
:base(request)
|
2022-12-21 18:02:22 +05:00
|
|
|
|
{
|
2024-03-12 17:21:05 +05:00
|
|
|
|
IdWell = idWell;
|
2022-12-21 18:02:22 +05:00
|
|
|
|
}
|
|
|
|
|
}
|
2024-03-11 14:11:13 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Параметры для запроса списка операций (с массивом id скважин)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class WellsOperationRequest : WellOperationRequestBase
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ids скважин
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IEnumerable<int> IdsWell { get; set; } = null!;
|
|
|
|
|
}
|
2022-12-21 18:02:22 +05:00
|
|
|
|
}
|