DD.WellWorkover.Cloud/AsbCloudApp/Requests/ProcessMapPlanBaseRequest.cs

86 lines
2.2 KiB
C#
Raw Normal View History

using System;
2024-01-19 17:48:45 +05:00
namespace AsbCloudApp.Requests;
/// <summary>
/// Запрос для получения РТК план
/// </summary>
public class ProcessMapPlanBaseRequest
2024-01-19 17:48:45 +05:00
{
/// <summary>
/// Вернуть данные, которые поменялись с указанной даты
/// </summary>
public DateTimeOffset? UpdateFrom { get; set; }
/// <summary>
/// Конструктор
/// </summary>
public ProcessMapPlanBaseRequest()
{
}
/// <summary>
/// Копирующий конструктор
/// </summary>
/// <param name="request">Параметры запроса</param>
public ProcessMapPlanBaseRequest(ProcessMapPlanBaseRequest request)
{
UpdateFrom = request.UpdateFrom;
}
}
/// <summary>
/// Запрос для получения РТК план по скважине
/// </summary>
public class ProcessMapPlanBaseRequestWithWell : ProcessMapPlanBaseRequest
{
/// <summary>
/// Запрос для получения РТК план по скважине
/// </summary>
/// <param name="idWell"></param>
public ProcessMapPlanBaseRequestWithWell(int idWell)
{
IdWell = idWell;
}
2024-09-18 12:59:25 +05:00
/// <summary>
/// <inheritdoc/>
/// </summary>
/// <param name="idWell"></param>
/// <param name="gtDepth"></param>
/// <param name="ltDepth"></param>
public ProcessMapPlanBaseRequestWithWell(int idWell, double? gtDepth, double? ltDepth)
2024-09-18 12:59:25 +05:00
{
IdWell = idWell;
GtDepth = gtDepth;
LtDepth = ltDepth;
2024-09-18 12:59:25 +05:00
}
/// <summary>
/// Запрос для получения РТК план по скважине
/// </summary>
/// <param name="request"></param>
/// <param name="idWell"></param>
public ProcessMapPlanBaseRequestWithWell(ProcessMapPlanBaseRequest request, int idWell)
: base(request)
{
IdWell = idWell;
}
/// <summary>
/// Id скважины
/// </summary>
public int IdWell { get; set; }
2024-09-18 12:59:25 +05:00
/// <summary>
/// Меньше глубины забоя
2024-09-18 12:59:25 +05:00
/// </summary>
public double? LtDepth { get; set; }
2024-09-18 12:59:25 +05:00
/// <summary>
/// Больше глубине забоя
2024-09-18 12:59:25 +05:00
/// </summary>
public double? GtDepth { get; set; }
2024-09-18 12:59:25 +05:00
}