|
|
|
@ -135,6 +135,7 @@ namespace Myshipping.Application
|
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(input.NotifypartName), x => x.NotifypartName.Contains(input.NotifypartName))
|
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(input.BookingName), x => x.BookingName.Contains(input.BookingName))
|
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(input.BookingTenantName), x => x.BookingTenantName.Contains(input.BookingTenantName))
|
|
|
|
|
.WhereIF(!string.IsNullOrEmpty(input.ParentBookingNO), x => x.BOOKINGNO.Contains(input.ParentBookingNO) || x.ParentBookingNO.Contains(input.ParentBookingNO))
|
|
|
|
|
.WhereIF(input.ETDStart.HasValue, x => x.ETD >= input.ETDStart)
|
|
|
|
|
.WhereIF(input.ETDEnd.HasValue, x => x.ETD < input.ETDEnd.Value.Date.AddDays(1))
|
|
|
|
|
.WhereIF(input.CreatedTimeStart.HasValue, x => x.CreatedTime >= input.CreatedTimeStart)
|
|
|
|
@ -1180,49 +1181,10 @@ namespace Myshipping.Application
|
|
|
|
|
if (recModel.Accept)
|
|
|
|
|
{
|
|
|
|
|
bookingId = await CustomerToOrder(model);
|
|
|
|
|
//var bkOrder = model.Adapt<BookingOrder>();
|
|
|
|
|
//bkOrder.Id = YitIdHelper.NextId();
|
|
|
|
|
//bkOrder.BSSTATUS = "已录入";
|
|
|
|
|
//bkOrder.ParentId = 0;
|
|
|
|
|
//bkOrder.LANENAME = bkOrder.LANECODE;
|
|
|
|
|
//await _repOrder.InsertAsync(bkOrder);
|
|
|
|
|
|
|
|
|
|
//model.BookingId = bkOrder.Id; //客户订舱数据与订舱台账数据关联
|
|
|
|
|
//bookingId = bkOrder.Id;
|
|
|
|
|
//await _rep.UpdateAsync(model);
|
|
|
|
|
|
|
|
|
|
//var bkEdiExt = new BookingEDIExt();
|
|
|
|
|
//bkEdiExt.Id = YitIdHelper.NextId();
|
|
|
|
|
//bkEdiExt.BookingId = bkOrder.Id;
|
|
|
|
|
//bkEdiExt.SalerCode = model.SaleCode;
|
|
|
|
|
//await _repEdiExt.InsertAsync(bkEdiExt);
|
|
|
|
|
|
|
|
|
|
//var ctnList = await _repCtn.AsQueryable().Filter(null, true).Where(x => x.BILLID == model.Id).ToListAsync();
|
|
|
|
|
//foreach (var ctn in ctnList)
|
|
|
|
|
//{
|
|
|
|
|
// ctn.Id = YitIdHelper.NextId();
|
|
|
|
|
// ctn.BILLID = bkOrder.Id;
|
|
|
|
|
// await _repCtn.InsertAsync(ctn);
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
////服务项目
|
|
|
|
|
//var servList = await _repServiceItem.Where(x => x.BookingId == model.Id).ToListAsync();
|
|
|
|
|
//foreach (var serv in servList)
|
|
|
|
|
//{
|
|
|
|
|
// serv.Id = YitIdHelper.NextId();
|
|
|
|
|
// serv.BookingId = bkOrder.Id;
|
|
|
|
|
// await _repServiceItem.InsertAsync(serv);
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
////附件
|
|
|
|
|
//var files = await _repFile.AsQueryable().Filter(null, true).Where(x => x.BookingId == model.Id && x.IsDeleted == false).ToListAsync();
|
|
|
|
|
//foreach (var file in files)
|
|
|
|
|
//{
|
|
|
|
|
// file.Id = YitIdHelper.NextId();
|
|
|
|
|
// file.BookingId = bkOrder.Id;
|
|
|
|
|
|
|
|
|
|
// await _repFile.InsertAsync(file);
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
model.BookingId = bookingId; //客户订舱数据与订舱台账数据关联
|
|
|
|
|
await _rep.UpdateAsync(model);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1673,6 +1635,7 @@ namespace Myshipping.Application
|
|
|
|
|
var lstResp = new List<BookingCustomerMultiCustNORespDto>();
|
|
|
|
|
|
|
|
|
|
var ctns = await _repCtn.AsQueryable().Filter(null, true).Where(x => x.BILLID == id && x.IsDeleted == false).ToListAsync();
|
|
|
|
|
var parentBookingNO = model.BOOKINGNO;
|
|
|
|
|
foreach (var bookNO in recModel.ListCustNO)
|
|
|
|
|
{
|
|
|
|
|
var respDtO = new BookingCustomerMultiCustNORespDto();
|
|
|
|
@ -1681,6 +1644,7 @@ namespace Myshipping.Application
|
|
|
|
|
//生成id并插入客户订舱数据
|
|
|
|
|
model.Id = YitIdHelper.NextId();
|
|
|
|
|
model.BOOKINGNO = $"BK{YitIdHelper.NextId()}";
|
|
|
|
|
model.ParentBookingNO = parentBookingNO;
|
|
|
|
|
JObject jobjExt = null;
|
|
|
|
|
if (!string.IsNullOrEmpty(model.ExtendData))
|
|
|
|
|
{
|
|
|
|
|