forked from ddrilling/AsbCloudServer
WellOperationRequest move copeCtor to WellOperationRequestBase
This commit is contained in:
parent
056add796d
commit
a03e9bb7f2
@ -42,6 +42,34 @@ namespace AsbCloudApp.Requests
|
||||
/// фильтр по списку id конструкций секции
|
||||
/// </summary>
|
||||
public IEnumerable<int>? SectionTypeIds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Параметры для запроса списка операций.
|
||||
/// Базовый конструктор
|
||||
/// </summary>
|
||||
public WellOperationRequestBase()
|
||||
{ }
|
||||
|
||||
/// <summary>
|
||||
/// Параметры для запроса списка операций.
|
||||
/// Копирующий конструктор
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
public WellOperationRequestBase(WellOperationRequestBase request)
|
||||
{
|
||||
GeDepth = request.GeDepth;
|
||||
LeDepth = request.LeDepth;
|
||||
GeDate = request.GeDate;
|
||||
LtDate = request.LtDate;
|
||||
|
||||
OperationCategoryIds = request.OperationCategoryIds;
|
||||
OperationType = request.OperationType;
|
||||
SectionTypeIds = request.SectionTypeIds;
|
||||
|
||||
Skip = request.Skip;
|
||||
Take = request.Take;
|
||||
SortFields = request.SortFields;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -65,21 +93,9 @@ namespace AsbCloudApp.Requests
|
||||
/// <param name="request"></param>
|
||||
/// <param name="idWell"></param>
|
||||
public WellOperationRequest(WellOperationRequestBase request, int idWell)
|
||||
:base(request)
|
||||
{
|
||||
this.IdWell = idWell;
|
||||
|
||||
this.GeDepth = request.GeDepth;
|
||||
this.LeDepth = request.LeDepth;
|
||||
this.GeDate = request.GeDate;
|
||||
this.LtDate = request.LtDate;
|
||||
|
||||
this.OperationCategoryIds = request.OperationCategoryIds;
|
||||
this.OperationType = request.OperationType;
|
||||
this.SectionTypeIds = request.SectionTypeIds;
|
||||
|
||||
this.Skip= request.Skip;
|
||||
this.Take= request.Take;
|
||||
this.SortFields = request.SortFields;
|
||||
IdWell = idWell;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user