|
|
|
@ -810,7 +810,7 @@ namespace Myshipping.Application
|
|
|
|
|
CreatedUserId = UserManager.UserId,
|
|
|
|
|
CreatedUserName = UserManager.Name
|
|
|
|
|
});
|
|
|
|
|
if (!string.IsNullOrEmpty(entity.MBLNO)&& !string.IsNullOrEmpty(entity.YARDID))
|
|
|
|
|
if (!string.IsNullOrEmpty(entity.MBLNO) && !string.IsNullOrEmpty(entity.YARDID))
|
|
|
|
|
{
|
|
|
|
|
await UpdateMblno(entity);
|
|
|
|
|
}
|
|
|
|
@ -839,7 +839,16 @@ namespace Myshipping.Application
|
|
|
|
|
}
|
|
|
|
|
entity.VERSION = Guid.NewGuid().ToString();
|
|
|
|
|
|
|
|
|
|
if (entity.CARRIERID != mlist.CARRIERID || entity.VOYNO != mlist.VOYNO || entity.VESSEL != mlist.VESSEL)
|
|
|
|
|
{
|
|
|
|
|
var vess = await _vesselInfo.AsQueryable().Filter(null, true).Where(x => x.IsDeleted == false && x.TenantId == UserManager.TENANT_ID && x.CARRIERID == entity.CARRIERID &&
|
|
|
|
|
x.Vessel == entity.VESSEL && x.Voyno == entity.VOYNO).FirstAsync();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await _rep.AsUpdateable(entity).IgnoreColumns(it => new
|
|
|
|
|
{
|
|
|
|
|
it.ParentId,
|
|
|
|
@ -7555,7 +7564,7 @@ namespace Myshipping.Application
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="bookId"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
private async Task AutoYardData(long bookId)
|
|
|
|
|
private async Task AutoYardData(long bookId)
|
|
|
|
|
{
|
|
|
|
|
var order = _rep.AsQueryable().Filter(null, true).First(x => x.Id == bookId);
|
|
|
|
|
|
|
|
|
|