|
|
@ -473,12 +473,12 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (Id == 0)
|
|
|
|
if (Id == 0)
|
|
|
|
return "";
|
|
|
|
return "";
|
|
|
|
var client = tenantDb.Queryable<InfoClient>().First(v => v.Id == Id && v.Status == StatusEnum.Enable.ToEnumInt());
|
|
|
|
var client = tenantDb.Queryable<CodeCarrier>().First(v => v.Id == Id);
|
|
|
|
if (client.IsNull())
|
|
|
|
if (client.IsNull())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
throw new Exception("请检查船公司信息");
|
|
|
|
throw new Exception("请检查船公司信息");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return client.EDICode.IsNull() ? client.CodeName : client.EDICode;
|
|
|
|
return client.EdiCode.IsNull() ? client.Code : client.EdiCode;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 获取港口代码
|
|
|
|
/// 获取港口代码
|
|
|
@ -1090,7 +1090,7 @@ namespace DS.WMS.Core.Op.Method
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var yardCode = GetYardCode(order.YardId, tenantDb);
|
|
|
|
var yardCode = GetYardCode(order.YardId, tenantDb);
|
|
|
|
var carrierCode = GetCarrierCode(order.YardId, tenantDb);
|
|
|
|
var carrierCode = GetCarrierCode(order.CarrierId, tenantDb);
|
|
|
|
var tenantName = db.Queryable<SysTenant>().Filter(null, true).Where(u => u.Id == long.Parse(user.TenantId)).Select(u => u.Name).First();
|
|
|
|
var tenantName = db.Queryable<SysTenant>().Filter(null, true).Where(u => u.Id == long.Parse(user.TenantId)).Select(u => u.Name).First();
|
|
|
|
var checkRlt = XiahuozhiHelpler.CheckGoodsDescriptionWithInput(order);
|
|
|
|
var checkRlt = XiahuozhiHelpler.CheckGoodsDescriptionWithInput(order);
|
|
|
|
|
|
|
|
|
|
|
|