From 48f9bfb69f31634090c45beb28e60f9b3d4c4315 Mon Sep 17 00:00:00 2001 From: xiaoshi <2272816786@qq.com> Date: Mon, 9 Dec 2024 19:00:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=90=8C=E5=8F=98=E6=9B=B4=E4=BE=9B?= =?UTF-8?q?=E5=BA=94=E5=95=86=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pr/plugin/form/ContractSettleBillPlugin.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ContractSettleBillPlugin.java b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ContractSettleBillPlugin.java index 090e86d..c466c7f 100644 --- a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ContractSettleBillPlugin.java +++ b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ContractSettleBillPlugin.java @@ -20,6 +20,21 @@ import java.util.EventObject; */ public class ContractSettleBillPlugin extends AbstractBillPlugIn implements Plugin { + @Override + public void afterCreateNewData(EventObject e) { + super.afterCreateNewData(e); + Object changetype = this.getModel().getValue("changetype"); + if(changetype!=null){ + if(changetype.toString().equals("03")){ + this.getView().setVisible(true,"zcgj_parta"); + this.getView().setVisible(true,"zcgj_otherpart"); + }else { + this.getView().setVisible(false,"zcgj_parta"); + this.getView().setVisible(false,"zcgj_otherpart"); + } + } + } + @Override public void registerListener(EventObject e) { super.registerListener(e);