正在显示
2 个修改的文件
包含
16 行增加
和
3 行删除
| @@ -460,9 +460,21 @@ namespace CustomsCargoSystem.ExchangeDataStorageService | @@ -460,9 +460,21 @@ namespace CustomsCargoSystem.ExchangeDataStorageService | ||
| 460 | if ("EDEP" == innerText2) | 460 | if ("EDEP" == innerText2) |
| 461 | { | 461 | { |
| 462 | CustomsCargoSystem.Model.TallySecondary tallySecondary = CustomsCargoSystem.Parser.TallySecondary.Parse(xmlDoc, "FZE_DEP"); | 462 | CustomsCargoSystem.Model.TallySecondary tallySecondary = CustomsCargoSystem.Parser.TallySecondary.Parse(xmlDoc, "FZE_DEP"); |
| 463 | - text = tallySecondary.WAYBILLNOSECONDARY; | 463 | + text = tallySecondary.WAYBILLNOMASTER; |
| 464 | Log.WriteMessage("FZE_DEP", tallySecondary.WAYBILLNOMASTER, xmlDoc.InnerXml); | 464 | Log.WriteMessage("FZE_DEP", tallySecondary.WAYBILLNOMASTER, xmlDoc.InnerXml); |
| 465 | - num = CustomsCargoSystem.Data.TallySecondary.Save(connectionString, tallySecondary); | 465 | + |
| 466 | + //ADD BY MRZ 解决电子运单过来分单造成出港理货分单不更新及自动发送问题。 | ||
| 467 | + IEnumerable<CustomsCargoSystem.Model.TallySecondary> source5 = CustomsCargoSystem.Data.TallySecondary.TallySecondaryIsExist(connectionString, text, tallySecondary.WAYBILLNOSECONDARY); | ||
| 468 | + if (source5.Count() == 0) | ||
| 469 | + { | ||
| 470 | + num = CustomsCargoSystem.Data.TallySecondary.Save(connectionString, tallySecondary); | ||
| 471 | + } | ||
| 472 | + else if (source5.Count() > 0) | ||
| 473 | + { | ||
| 474 | + tallySecondary.TALLYMASTERID = source5.FirstOrDefault().TALLYMASTERID; | ||
| 475 | + tallySecondary.AUTOID = source5.FirstOrDefault().AUTOID; | ||
| 476 | + CustomsCargoSystem.Data.TallySecondary.Update(connectionString, tallySecondary); | ||
| 477 | + } | ||
| 466 | } | 478 | } |
| 467 | if ("URCF" == innerText2) | 479 | if ("URCF" == innerText2) |
| 468 | { | 480 | { |
-
请 注册 或 登录 后发表评论