|
|
@ -42,6 +42,7 @@ using Furion.JsonSerialization;
|
|
|
|
using Microsoft.AspNetCore.SignalR;
|
|
|
|
using Microsoft.AspNetCore.SignalR;
|
|
|
|
using Furion.EventBus;
|
|
|
|
using Furion.EventBus;
|
|
|
|
using Myshipping.Core.Const;
|
|
|
|
using Myshipping.Core.Const;
|
|
|
|
|
|
|
|
using NPOI.Util;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Myshipping.Application
|
|
|
|
namespace Myshipping.Application
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -2504,6 +2505,7 @@ namespace Myshipping.Application
|
|
|
|
bookingStatus.StaTime = item.OpTime;
|
|
|
|
bookingStatus.StaTime = item.OpTime;
|
|
|
|
bookingStatus.StaCate = "book_sta_cate_billtrace";
|
|
|
|
bookingStatus.StaCate = "book_sta_cate_billtrace";
|
|
|
|
await _repBookingStatus.InsertAsync(bookingStatus);
|
|
|
|
await _repBookingStatus.InsertAsync(bookingStatus);
|
|
|
|
|
|
|
|
sendDsList.Add(item.BookingId);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2806,8 +2808,10 @@ namespace Myshipping.Application
|
|
|
|
saveDto.ChangedFields = changeFileds;
|
|
|
|
saveDto.ChangedFields = changeFileds;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#region 处理操作、单证等人员ID
|
|
|
|
#region 处理操作、单证、客户、订舱代理等ID
|
|
|
|
var sysUserList = await _repUser.AsQueryable().Filter(null, true).Where(x => x.IsDeleted == false && x.TenantId == UserManager.TENANT_ID).ToListAsync();
|
|
|
|
var sysUserList = await _repUser.AsQueryable().Filter(null, true).Where(x => x.IsDeleted == false && x.TenantId == UserManager.TENANT_ID).ToListAsync();
|
|
|
|
|
|
|
|
var customerList = await _djycustomer.AsQueryable().Filter(null, true).Where(x => x.IsDeleted == false && x.TenantId == UserManager.TENANT_ID).ToListAsync();
|
|
|
|
|
|
|
|
var carrList = await _cache.GetAllCodeCarrier();
|
|
|
|
|
|
|
|
|
|
|
|
//销售
|
|
|
|
//销售
|
|
|
|
if (!string.IsNullOrEmpty(saveDto.SALE))
|
|
|
|
if (!string.IsNullOrEmpty(saveDto.SALE))
|
|
|
@ -2868,6 +2872,36 @@ namespace Myshipping.Application
|
|
|
|
saveDto.LineManageID = lineManageUser.Id.ToString();
|
|
|
|
saveDto.LineManageID = lineManageUser.Id.ToString();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//委托单位
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(saveDto.CUSTOMERNAME))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var customer = customerList.FirstOrDefault(x => x.ShortName == saveDto.CUSTOMERNAME);
|
|
|
|
|
|
|
|
if (customer != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
saveDto.CUSTOMERID = customer.Id;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//订舱代理
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(saveDto.FORWARDER))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var forwarder = customerList.FirstOrDefault(x => x.ShortName == saveDto.FORWARDER);
|
|
|
|
|
|
|
|
if (forwarder != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
saveDto.FORWARDERID = forwarder.CodeName;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//船司
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(saveDto.CARRIER))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
var carrier = carrList.FirstOrDefault(x => x.EnName == saveDto.CARRIER || x.CnName == saveDto.CARRIER);
|
|
|
|
|
|
|
|
if (carrier != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
saveDto.CARRIERID = carrier.Code;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
await _bookingorderservice.Save(saveDto);
|
|
|
|
await _bookingorderservice.Save(saveDto);
|
|
|
|