|
|
|
@ -6395,10 +6395,11 @@ namespace DSWeb.Areas.CommMng.DAL
|
|
|
|
|
|
|
|
|
|
var ruleresult = JsonConvert.Deserialize<RulesEngineResult_Root>(rtn);
|
|
|
|
|
|
|
|
|
|
var msg = "";
|
|
|
|
|
foreach (var detail in ruleresult.extra.detailList) {
|
|
|
|
|
msg += detail.resultName+"\r\n";
|
|
|
|
|
}
|
|
|
|
|
//var msg = "";
|
|
|
|
|
//foreach (var detail in ruleresult.extra.detailList) {
|
|
|
|
|
// msg += detail.resultName+"\r\n";
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
result.Data = ruleresult;
|
|
|
|
|
result.OK("校验完成");
|
|
|
|
|
return result;
|
|
|
|
@ -6622,7 +6623,8 @@ namespace DSWeb.Areas.CommMng.DAL
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(head.PORTDISCHARGEID)) {
|
|
|
|
|
|
|
|
|
|
bi.portDischargeCountryNo = head.PORTDISCHARGEID.Substring(0, 2);
|
|
|
|
|
if (head.PORTDISCHARGEID.Length >= 2)
|
|
|
|
|
bi.portDischargeCountryNo = head.PORTDISCHARGEID.Substring(0, 2);
|
|
|
|
|
|
|
|
|
|
var dischargecountry = cdc.code_country.FirstOrDefault(x => x.COUNTRYID == bi.portDischargeCountryNo);
|
|
|
|
|
if (dischargecountry != null) {
|
|
|
|
@ -6634,8 +6636,8 @@ namespace DSWeb.Areas.CommMng.DAL
|
|
|
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(head.TRANSPORT))
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
bi.transportCountryNo = head.TRANSPORT.Substring(0, 2);
|
|
|
|
|
if(head.TRANSPORT.Length>=2)
|
|
|
|
|
bi.transportCountryNo = head.TRANSPORT.Substring(0, 2);
|
|
|
|
|
|
|
|
|
|
var transportcountry = cdc.code_country.FirstOrDefault(x => x.COUNTRYID == bi.transportCountryNo);
|
|
|
|
|
if (transportcountry != null)
|
|
|
|
|