|
|
|
@ -7557,7 +7557,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static DBResult SendVGM(string BSNO, string userid, string companyid)
|
|
|
|
|
public static DBResult SendVGM(string BSNO, string userid, string companyid,string CarrierEDICode)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
RespCommonData resp = new RespCommonData();
|
|
|
|
@ -7584,7 +7584,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
|
|
|
|
|
result.SetErrorInfo("提单号不能为空");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(order.CARRIER))
|
|
|
|
|
if (string.IsNullOrEmpty(order.CARRIER) || string.IsNullOrEmpty(CarrierEDICode))
|
|
|
|
|
{
|
|
|
|
|
result.SetErrorInfo("船公司不能为空");
|
|
|
|
|
}
|
|
|
|
@ -7635,7 +7635,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
|
|
|
|
|
customerName = $"{company.FULLNAME}+{vwuser.SHOWNAME}", //公司名称+用户姓名
|
|
|
|
|
customerId = order.CUSTOMERNAME,
|
|
|
|
|
agentName = string.IsNullOrEmpty(order.FORWARDER) ? company.FULLNAME : order.FORWARDER,
|
|
|
|
|
carrierCode = order.CARRIER,
|
|
|
|
|
carrierCode = CarrierEDICode,//注意 船公司采用code_cust_edi中ediname='接口直发VGM'的船公司的EDICODE
|
|
|
|
|
userName = accCfg.ACCOUNT,
|
|
|
|
|
userPassword = accCfg.ACCOUNTPSW,
|
|
|
|
|
depotCode = yardset[0].YARDCODE,
|
|
|
|
@ -7676,7 +7676,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
|
|
|
|
|
var jobjRtn = Newtonsoft.Json.JsonConvert.DeserializeAnonymousType(rtn, new { code = 0, status = false, message = string.Empty, data = string.Empty });
|
|
|
|
|
if (!jobjRtn.status)
|
|
|
|
|
{
|
|
|
|
|
return result.SetErrorInfo($"发送VGM错误:{jobjRtn.message}");
|
|
|
|
|
return result.SetErrorInfo($"直发VGM错误:{jobjRtn.message}");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
result.OK("发送完成");
|
|
|
|
|