From a8edfef23462703484fea2f5ff94c71b929a745a Mon Sep 17 00:00:00 2001 From: gongxh Date: Thu, 23 Dec 2021 21:03:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E7=9F=A5=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NX.ERP.U8/AP/APVouch.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/NX.ERP.U8/AP/APVouch.cs b/NX.ERP.U8/AP/APVouch.cs index e3b8eec..9c0adc1 100644 --- a/NX.ERP.U8/AP/APVouch.cs +++ b/NX.ERP.U8/AP/APVouch.cs @@ -242,6 +242,11 @@ namespace NX.ERP.U8.AP } headXml.setAttribute("cDefine10", id); var supplier = new SupplierDAL().GetModel(ApVouch.supplierCode); + if (supplier==null) + { + throw new Exception($"未知供应商(${ApVouch.supplierCode})"); + + } var per = new NX.ERP.U8.User.UserDal().GetModel(supplier.VenPPerson); headXml.setAttribute("cPerson", supplier.VenPPerson); if (per != null)