|
@ -42,9 +42,6 @@ public class DeliverRequestAppService : |
|
|
private readonly ICustomerItemAppService _customerItemAppService; |
|
|
private readonly ICustomerItemAppService _customerItemAppService; |
|
|
private readonly ISalePriceSheetRepository _salePriceSheetRepository; |
|
|
private readonly ISalePriceSheetRepository _salePriceSheetRepository; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public DeliverRequestAppService( |
|
|
public DeliverRequestAppService( |
|
|
IDeliverRequestRepository repository |
|
|
IDeliverRequestRepository repository |
|
|
, IDeliverRequestManager deliverRequestManager |
|
|
, IDeliverRequestManager deliverRequestManager |
|
@ -276,6 +273,14 @@ public class DeliverRequestAppService : |
|
|
var dtos = ObjectMapper.Map<List<DeliverRequest>, List<DeliverRequestDTO>>(entitys); |
|
|
var dtos = ObjectMapper.Map<List<DeliverRequest>, List<DeliverRequestDTO>>(entitys); |
|
|
return dtos; |
|
|
return dtos; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[HttpPost("get-list-by-container")] |
|
|
|
|
|
public virtual async Task<List<DeliverRequestByContainerDTO>> GetListByContainerAsync() |
|
|
|
|
|
{ |
|
|
|
|
|
var result=new List<DeliverRequestByContainerDTO>(); |
|
|
|
|
|
return result; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
[HttpPost("list")] |
|
|
[HttpPost("list")] |
|
|
public override Task<PagedResultDto<DeliverRequestDTO>> GetPagedListByFilterAsync( |
|
|
public override Task<PagedResultDto<DeliverRequestDTO>> GetPagedListByFilterAsync( |
|
|
SfsStoreRequestInputBase sfsRequestInput, |
|
|
SfsStoreRequestInputBase sfsRequestInput, |
|
@ -543,32 +548,5 @@ public class DeliverRequestAppService : |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private async Task<List<DeliverRequestDetailDTO>> GetDetailListByFisAsync() |
|
|
|
|
|
{ |
|
|
|
|
|
var list=await _repository.GetListAsync(p => p.DeliverRequestType == EnumDeliverRequestType.FIS).ConfigureAwait(false); |
|
|
|
|
|
|
|
|
|
|
|
var details=new List<DeliverRequestDetail>(); |
|
|
|
|
|
|
|
|
|
|
|
foreach (var deliverRequest in list) |
|
|
|
|
|
{ |
|
|
|
|
|
foreach (var deliverRequestDetail in deliverRequest.Details) |
|
|
|
|
|
{ |
|
|
|
|
|
details.Add(deliverRequestDetail); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var byContainerDto=new List<DeliverRequestByContainerDTO>(); |
|
|
|
|
|
|
|
|
|
|
|
var groupBy=details.GroupBy(p => p.MesDeliveryContainer); |
|
|
|
|
|
|
|
|
|
|
|
foreach (var key in groupBy) |
|
|
|
|
|
{ |
|
|
|
|
|
var dto= new DeliverRequestByContainerDTO(); |
|
|
|
|
|
//dto.RequestDetailDtos
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
#endregion
|
|
|
} |
|
|
} |
|
|