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;