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);