|
|
|
@ -9809,6 +9809,15 @@ namespace Myshipping.Application
|
|
|
|
|
var childrens = await _rep.AsQueryable().Filter(null, true).Where(x => x.ParentId == item.Id && x.TenantId == UserManager.TENANT_ID && x.IsDeleted == false).ToListAsync();
|
|
|
|
|
dto.childrens = childrens.Adapt<List<Children>>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var files = await _bookingfile.AsQueryable().Filter(null, true).Where(x => x.BookingId == item.Id).ToListAsync();
|
|
|
|
|
dto.Files = files.Select(x => new ReceiveBcInfoDto.DownloadFile()
|
|
|
|
|
{
|
|
|
|
|
FileName = x.FileName,
|
|
|
|
|
FileType = x.TypeCode,
|
|
|
|
|
FilePath = x.FilePath
|
|
|
|
|
}).ToList();
|
|
|
|
|
|
|
|
|
|
foreach (var childitem in dto.childrens)
|
|
|
|
|
{
|
|
|
|
|
var ctnInputs = await _repCtn.AsQueryable().Filter(null, true).Where(x => x.BILLID == childitem.Id && x.IsDeleted == false).ToListAsync();
|
|
|
|
|