修改截单回执解析问题

master
jianghaiqing 5 months ago
parent 1f23a8deae
commit 885671d7de

@ -290,6 +290,23 @@ namespace DAJYun.Application
}
}
}
else
{
//这里不知道为什么取不到表格信息了,改用文本获取
string currTxt = doc.Pages[pageIndex].ExtractText();
string noTableCtnRegex = "(\\bNumber\\b)\\s+\\w+\\s+(\\bPackages\\b)\\s+\\w+\\s+(Cargo\\s+Weight)\\s+(\\w|\\s)+(\\bVolume\\b)\\s+(\\w|\\s)+(\\bVGM\\b)\\s+(\\w|\\s)+(VGM\\s+Method)\\s+(\\w|\\s|')+(Carrier\\s+seal)\\s+\\w+";
if (Regex.IsMatch(currTxt, noTableCtnRegex, RegexOptions.IgnoreCase))
{
var currMatches = Regex.Matches(currTxt, noTableCtnRegex, RegexOptions.IgnoreCase);
foreach(var cMatch in currMatches)
{
}
}
}
}
pdfText = txtBuilder.ToString();

@ -8008,10 +8008,10 @@ namespace DAJYun.Application.TaskManagePlatDomain
// ctnInfo.CtnALL = "20NOR";
//}
}
else if (Regex.IsMatch(takeCtn, "40\\s+REEF\\s+High", RegexOptions.IgnoreCase))
else if (Regex.IsMatch(takeCtn, "40\\s+REEF\\s+High", RegexOptions.IgnoreCase) || Regex.IsMatch(takeCtn, "40\\s+Reefer\\s+High", RegexOptions.IgnoreCase))
{
//40RF
ctnType = "40RF";
ctnType = "40RH";
//这里会判断BC内容里是否包含拖箱指示: NOR或者HOLDNOR
//if (Regex.IsMatch(originText, "拖箱指示\\:\\s+(HOLD)?NOR"))

Loading…
Cancel
Save