|
@@ -23,6 +23,12 @@ public class OrderMapperConfigs : IRegister
|
|
&& s.WorkflowSteps.First().Status == EWorkflowStepStatus.WaitForAccept)
|
|
&& s.WorkflowSteps.First().Status == EWorkflowStepStatus.WaitForAccept)
|
|
;
|
|
;
|
|
|
|
|
|
|
|
+ config.ForType<Order, OrderListOutDto>()
|
|
|
|
+ .Map(d => d.IsRed, s => s.WorkflowSteps != null
|
|
|
|
+ && s.WorkflowSteps.Any()
|
|
|
|
+ && s.WorkflowSteps.First().Status == EWorkflowStepStatus.WaitForAccept)
|
|
|
|
+ ;
|
|
|
|
+
|
|
config.ForType<OrderCopy, OrderDto>()
|
|
config.ForType<OrderCopy, OrderDto>()
|
|
.Map(d => d.Id, s => s.OrderId)
|
|
.Map(d => d.Id, s => s.OrderId)
|
|
.Map(d => d.CopyId, s => s.Id)
|
|
.Map(d => d.CopyId, s => s.Id)
|