2022-12-21 18:02:22 +05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Requests
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// параметры для запроса списка операций
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class WellOperationRequestBase: RequestBase
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// фильтр по дате начала операции
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime? GeDate { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// фильтр по дате окончания операции
|
|
|
|
|
/// </summary>
|
2023-03-10 10:25:10 +05:00
|
|
|
|
public DateTime? LtDate { get; set; }
|
2022-12-21 18:02:22 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// фильтр по максимальной глубине скважины
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double? LeDepth { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// фильтр по минимальной глубине скважины
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double? GeDepth { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <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; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Параметры для запроса списка операций (с id скважины)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class WellOperationRequest: WellOperationRequestBase
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// id скважины
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int IdWell { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ctor
|
|
|
|
|
/// </summary>
|
|
|
|
|
public WellOperationRequest(){}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// копирующий конструктор
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
/// <param name="idWell"></param>
|
|
|
|
|
public WellOperationRequest(WellOperationRequestBase request, int idWell)
|
|
|
|
|
{
|
|
|
|
|
this.IdWell = idWell;
|
|
|
|
|
|
|
|
|
|
this.GeDepth = request.GeDepth;
|
|
|
|
|
this.LeDepth = request.LeDepth;
|
|
|
|
|
this.GeDate = request.GeDate;
|
2023-03-10 10:25:10 +05:00
|
|
|
|
this.LtDate = request.LtDate;
|
2022-12-21 18:02:22 +05:00
|
|
|
|
|
|
|
|
|
this.OperationCategoryIds = request.OperationCategoryIds;
|
|
|
|
|
this.OperationType = request.OperationType;
|
|
|
|
|
this.SectionTypeIds = request.SectionTypeIds;
|
|
|
|
|
|
|
|
|
|
this.Skip= request.Skip;
|
|
|
|
|
this.Take= request.Take;
|
|
|
|
|
this.SortFields = request.SortFields;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|