From 5e0a0af3a61b6e287b656d1d7d114cfa4e8ee7d8 Mon Sep 17 00:00:00 2001 From: chenshaoxin <1981897232@qq.com> Date: Sat, 16 Nov 2024 14:36:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4=20?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BA=BA=EF=BC=9A=E9=99=88=E7=BB=8D=E9=91=AB?= =?UTF-8?q?=20=E6=97=B6=E9=97=B4=EF=BC=9A2024/11/16=20=2014=EF=BC=9A00=20?= =?UTF-8?q?=E5=86=85=E5=AE=B9=EF=BC=9A=E6=88=90=E6=9C=AC=E6=B5=8B=E7=AE=97?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shkd/repc/recon/formplugin/ContractFormPlugin.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main/java/shkd/repc/recon/formplugin/ContractFormPlugin.java b/main/java/shkd/repc/recon/formplugin/ContractFormPlugin.java index cea7b7a..519de82 100644 --- a/main/java/shkd/repc/recon/formplugin/ContractFormPlugin.java +++ b/main/java/shkd/repc/recon/formplugin/ContractFormPlugin.java @@ -79,7 +79,9 @@ public class ContractFormPlugin extends AbstractFormPlugin implements UploadLis super.initialize(); this.getModel().addDataModelChangeListener(this); BasedataEdit mulEdit = this.getControl(BASEDATA_FIELD); - mulEdit.addBasedataEditListener(this); + if (mulEdit!=null){ + mulEdit.addBasedataEditListener(this); + } } @Override @@ -168,7 +170,6 @@ public class ContractFormPlugin extends AbstractFormPlugin implements UploadLis } } } - /** * 删除汇总明细并且删除清单明细 */ @@ -201,7 +202,7 @@ public class ContractFormPlugin extends AbstractFormPlugin implements UploadLis //删除单据体数据 qeug_invoiceentryinfos.clear(); - SaveServiceHelper.save(new DynamicObject[]{this.getModel().getDataEntity(true)}); + SaveServiceHelper.save(new DynamicObject[]{this.getModel().getDataEntity()}); // 删除完成之后刷新界面 this.getView().invokeOperation("refresh"); return result;