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