2024-07-04 11:02:45 +05:00
|
|
|
|
using System;
|
2022-12-21 18:02:22 +05:00
|
|
|
|
using System.Collections.Generic;
|
2024-04-22 11:16:23 +05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2022-12-21 18:02:22 +05:00
|
|
|
|
|
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-04-22 11:16:23 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Больше или равно дате начала операции
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTimeOffset? GeDate { get; set; }
|
2024-03-27 09:53:54 +05:00
|
|
|
|
|
2024-04-22 11:16:23 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Меньше или равно дате окончания операции
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTimeOffset? LeDate { get; set; }
|
2024-03-27 09:53:54 +05:00
|
|
|
|
|
2024-04-22 11:16:23 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Больше или равно глубины скважины на начало операции.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double? GeDepth { get; set; }
|
2024-03-27 09:53:54 +05:00
|
|
|
|
|
2024-04-22 11:16:23 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Меньше или равно глубины скважины на конец операции.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double? LeDepth { get; set; }
|
2024-03-27 09:53:54 +05:00
|
|
|
|
|
2024-04-22 11:16:23 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Идентификаторы категорий операции
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IEnumerable<int>? OperationCategoryIds { get; set; }
|
2024-03-27 09:53:54 +05:00
|
|
|
|
|
2024-04-22 11:16:23 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Тип операций
|
|
|
|
|
/// <list type="bullet">
|
|
|
|
|
/// <item>0 - плановая операция</item>
|
|
|
|
|
/// <item>1 - фактическая операция</item>
|
|
|
|
|
/// </list>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int? OperationType { get; set; }
|
2024-03-27 09:53:54 +05:00
|
|
|
|
|
2024-04-22 11:16:23 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Идентификаторы конструкций секции
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IEnumerable<int>? SectionTypeIds { get; set; }
|
2024-03-27 09:53:54 +05:00
|
|
|
|
|
2024-04-22 15:31:04 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
public WellOperationRequestBase()
|
2024-04-22 11:16:23 +05:00
|
|
|
|
{
|
2024-04-22 15:31:04 +05:00
|
|
|
|
|
2024-04-22 11:16:23 +05:00
|
|
|
|
}
|
2024-03-27 09:53:54 +05:00
|
|
|
|
|
2024-04-22 15:31:04 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
public WellOperationRequestBase(WellOperationRequestBase request)
|
2024-04-22 11:16:23 +05:00
|
|
|
|
{
|
|
|
|
|
GeDepth = request.GeDepth;
|
|
|
|
|
LeDepth = request.LeDepth;
|
|
|
|
|
GeDate = request.GeDate;
|
|
|
|
|
LeDate = request.LeDate;
|
2024-03-27 09:53:54 +05:00
|
|
|
|
|
2024-04-22 11:16:23 +05:00
|
|
|
|
OperationCategoryIds = request.OperationCategoryIds;
|
|
|
|
|
OperationType = request.OperationType;
|
|
|
|
|
SectionTypeIds = request.SectionTypeIds;
|
2024-03-27 09:53:54 +05:00
|
|
|
|
|
2024-04-22 11:16:23 +05:00
|
|
|
|
Skip = request.Skip;
|
|
|
|
|
Take = request.Take;
|
|
|
|
|
SortFields = request.SortFields;
|
|
|
|
|
}
|
2024-04-22 15:31:04 +05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Запрос получения ГГД с идентификаторами скважин
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class WellOperationRequest : WellOperationRequestBase
|
|
|
|
|
{
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
public WellOperationRequest(IEnumerable<int> idsWell)
|
|
|
|
|
{
|
|
|
|
|
IdsWell = idsWell;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
public WellOperationRequest(WellOperationRequestBase request, IEnumerable<int> idsWell)
|
|
|
|
|
: base(request)
|
|
|
|
|
{
|
|
|
|
|
IdsWell = idsWell;
|
|
|
|
|
}
|
2024-03-27 09:53:54 +05:00
|
|
|
|
|
2024-04-22 11:16:23 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Идентификаторы скважин
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required]
|
2024-04-24 12:28:37 +05:00
|
|
|
|
[Length(1, 100)]
|
2024-04-22 11:16:23 +05:00
|
|
|
|
public IEnumerable<int> IdsWell { get; }
|
2024-08-15 17:46:04 +05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Запрос получения ГГД с идентификаторами скважин
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class WellOperationRepositoryRequest
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Идентификаторы скважин
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required]
|
|
|
|
|
[Length(1, 100)]
|
|
|
|
|
public IEnumerable<int> IdsWell { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Меньше или равно дате окончания операции
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTimeOffset? LeDate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Меньше или равно глубины скважины на конец операции.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double? LeDepth { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Тип операций
|
|
|
|
|
/// <list type="bullet">
|
|
|
|
|
/// <item>0 - плановая операция</item>
|
|
|
|
|
/// <item>1 - фактическая операция</item>
|
|
|
|
|
/// </list>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int? OperationType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
public WellOperationRepositoryRequest(WellOperationRequest request)
|
|
|
|
|
{
|
|
|
|
|
IdsWell = request.IdsWell;
|
|
|
|
|
LeDate = request.LeDate;
|
|
|
|
|
LeDepth = request.LeDepth;
|
|
|
|
|
OperationType = request.OperationType;
|
|
|
|
|
}
|
2024-03-20 12:52:28 +05:00
|
|
|
|
}
|