合规校验,船公司id改为通过edicode中的ediname=vgm的edicode值

DS7_JinGang
ddlucky 2 years ago
parent da89f8f894
commit ec16624689

@ -6393,6 +6393,8 @@ namespace DSWeb.Areas.CommMng.DAL
var head = (MsOpSeae)_head; var head = (MsOpSeae)_head;
var ams = MsOpSeaeEdiPortDAL.GetAmsData("BSNO='" + head.BSNO + "'"); var ams = MsOpSeaeEdiPortDAL.GetAmsData("BSNO='" + head.BSNO + "'");
var cdc = new CommonDataContext();
result.head.senderKey = "TTRQaHF2STczQ055S0lQV0duQTJaQVoydUpUOUlaMENaMUU2cFdJVnpVaEExOG4zVHMvcmQzL0RETWNjK2tsbjlKeDhRand6Uit4TForVzZiUmtCeURuS29XY1JKU0R0cU5QYzA0Z0l0UkE9"; result.head.senderKey = "TTRQaHF2STczQ055S0lQV0duQTJaQVoydUpUOUlaMENaMUU2cFdJVnpVaEExOG4zVHMvcmQzL0RETWNjK2tsbjlKeDhRand6Uit4TForVzZiUmtCeURuS29XY1JKU0R0cU5QYzA0Z0l0UkE9";
result.head.gid = head.BSNO; result.head.gid = head.BSNO;
result.head.messageType = "BUSI_RULE"; result.head.messageType = "BUSI_RULE";
@ -6463,8 +6465,13 @@ namespace DSWeb.Areas.CommMng.DAL
bi.totalNO = head.TOTALNO; bi.totalNO = head.TOTALNO;
bi.cntrTotal = head.CNTRTOTAL; bi.cntrTotal = head.CNTRTOTAL;
bi.carrierId = head.CARRIER; bi.carrierId = head.CARRIER;
var edicode = cdc.code_cust_edi.FirstOrDefault(x => x.EDINAME == "VGM" && x.CUST==head.CARRIER);
if (edicode != null && !string.IsNullOrWhiteSpace(edicode.EDICODE)) {
bi.carrierId = edicode.EDICODE;
}
bi.carrier = head.CARRIER; bi.carrier = head.CARRIER;
bi.cargoId = head.CARGOID; bi.cargoId = head.CARGOID;
@ -6580,7 +6587,7 @@ namespace DSWeb.Areas.CommMng.DAL
if (OpCtnlist != null && OpCtnlist.Count > 0) { if (OpCtnlist != null && OpCtnlist.Count > 0) {
var cdc = new CommonDataContext();
result.main.businessInfo.contaList = new List<ContaList>(); result.main.businessInfo.contaList = new List<ContaList>();

Loading…
Cancel
Save