diff --git a/AsbCloudApp/Requests/WellOperationRequest.cs b/AsbCloudApp/Requests/WellOperationRequest.cs
index 89cd6858..3296c4ad 100644
--- a/AsbCloudApp/Requests/WellOperationRequest.cs
+++ b/AsbCloudApp/Requests/WellOperationRequest.cs
@@ -6,7 +6,7 @@ namespace AsbCloudApp.Requests
///
/// параметры для запроса списка операций
///
- public class WellOperationRequestBase: RequestBase
+ public class WellOperationRequestBase : RequestBase
{
///
/// фильтр по дате начала операции
@@ -42,12 +42,40 @@ namespace AsbCloudApp.Requests
/// фильтр по списку id конструкций секции
///
public IEnumerable? SectionTypeIds { get; set; }
+
+ ///
+ /// Параметры для запроса списка операций.
+ /// Базовый конструктор
+ ///
+ public WellOperationRequestBase()
+ { }
+
+ ///
+ /// Параметры для запроса списка операций.
+ /// Копирующий конструктор
+ ///
+ ///
+ 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;
+ }
}
///
/// Параметры для запроса списка операций (с id скважины)
///
- public class WellOperationRequest: WellOperationRequestBase
+ public class WellOperationRequest : WellOperationRequestBase
{
///
/// id скважины
@@ -57,7 +85,7 @@ namespace AsbCloudApp.Requests
///
/// ctor
///
- public WellOperationRequest(){}
+ public WellOperationRequest() { }
///
/// копирующий конструктор
@@ -65,21 +93,9 @@ namespace AsbCloudApp.Requests
///
///
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;
}
}