...
|
...
|
@@ -1359,10 +1359,21 @@ namespace CustomsCargoSystem.ExchangeDataStorageService |
|
|
for (int num2 = i - 1; num2 > 0; num2--)
|
|
|
{
|
|
|
string text8 = list[num2].Trim();
|
|
|
//change by mrz
|
|
|
//航班多航段目的站判断修复
|
|
|
if (!string.IsNullOrEmpty(text8) && text8.Length >= 3 && text8.Length <= 40 && (text8.Length == 3 || text8.Substring(0, 3) == "CGO"))
|
|
|
{
|
|
|
destinationstation = text8.Substring(0, 3);
|
|
|
break;
|
|
|
//取前三个字符 判断是否是航站代码,排查掉/0X 这种字符的
|
|
|
string destinationstation_str = text8.Substring(0, 3);
|
|
|
string destnation_pattern = "^[A-Z]{3}$";
|
|
|
if (Regex.IsMatch(destinationstation_str, destnation_pattern))
|
|
|
{
|
|
|
//找到就跳出,没找到继续往上找
|
|
|
destinationstation = text8.Substring(0, 3);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
|
|
|
}
|
|
|
}
|
|
|
int num3 = 0;
|
...
|
...
|
|