forked from ddrilling/AsbCloudServer
86 lines
2.7 KiB
C#
86 lines
2.7 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
|
|||
|
namespace AsbCloudApp.Requests
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// параметры для запроса списка операций
|
|||
|
/// </summary>
|
|||
|
public class WellOperationRequestBase: RequestBase
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// фильтр по дате начала операции
|
|||
|
/// </summary>
|
|||
|
public DateTime? GeDate { get; set; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// фильтр по дате окончания операции
|
|||
|
/// </summary>
|
|||
|
public DateTime? LeDate { get; set; }
|
|||
|
|
|||
|
/// <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;
|
|||
|
this.LeDate = request.LeDate;
|
|||
|
|
|||
|
this.OperationCategoryIds = request.OperationCategoryIds;
|
|||
|
this.OperationType = request.OperationType;
|
|||
|
this.SectionTypeIds = request.SectionTypeIds;
|
|||
|
|
|||
|
this.Skip= request.Skip;
|
|||
|
this.Take= request.Take;
|
|||
|
this.SortFields = request.SortFields;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|