From e08cfdc9b4cffc6eb1d7dd3126d92753e5da7c8c Mon Sep 17 00:00:00 2001 From: xiaoshi <2272816786@qq.com> Date: Tue, 24 Dec 2024 16:23:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=20=20?= =?UTF-8?q?=E8=B3=87=E6=BA=90=E6=B8=85=E5=96=AE=E9=81=8E=E6=BF=BE=E8=88=87?= =?UTF-8?q?=E5=9F=BA=E6=96=BC=E6=B8=85=E5=96=AE=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugin/form/ContractPublicBillPlugin.java | 21 ++++++++----------- .../plugin/form/ResourceFilterExtPlugin.java | 4 ++-- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ContractPublicBillPlugin.java b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ContractPublicBillPlugin.java index 4bbbe1c..7a1c993 100644 --- a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ContractPublicBillPlugin.java +++ b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ContractPublicBillPlugin.java @@ -66,18 +66,15 @@ public class ContractPublicBillPlugin extends AbstractBillPlugIn implements Plug comboEdit.setComboItems(comboList); } }else if (name.equals("contracttype")){ -// Object contracttype = this.getModel().getValue("contracttype"); -// if(contracttype!=null && contracttype!=""){ -// DynamicObject contracttypeInfo = (DynamicObject)contracttype; -// String number = contracttypeInfo.getString("number"); -// if(number.equals("jjfb")||number.equals("hfzl")||number.equals("jjbc")||number.equals("jjzb")){ -// this.getView().setVisible(true,"zcgj_xmtz"); -// }else{ -// this.getView().setVisible(false,"zcgj_xmtz"); -// -// } -// this.getView().updateView("treelistentry"); -// } + Object pricetype = this.getModel().getValue("zcgj_pricetype"); + if(pricetype!=null && pricetype!=""){ + String priceType = pricetype.toString(); + if(priceType.equals("gddj")){ + this.getModel().setValue("isonlist", true); + }else { + this.getModel().setValue("isonlist", false); + } + } } } } \ No newline at end of file diff --git a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ResourceFilterExtPlugin.java b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ResourceFilterExtPlugin.java index d50a14b..d7e25db 100644 --- a/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ResourceFilterExtPlugin.java +++ b/code/zcdev/zcgj-zcdev-zcdev-pr/src/main/java/zcgj/zcdev/zcdev/pr/plugin/form/ResourceFilterExtPlugin.java @@ -35,7 +35,8 @@ public class ResourceFilterExtPlugin extends ResourceItemListPlugin { this.setResourceTypeStyle("equipment"); this.afterSelectedTag("equipment"); }else if (contractType.toString().equals("qtcc") || contractType.toString().equals("lwlcc")|| contractType.toString().equals("ck")|| - contractType.toString().equals("zyfbcc")|| contractType.toString().equals("jjbc")) {//产出物 + contractType.toString().equals("zyfbcc")|| contractType.toString().equals("jjbc")|| + contractType.toString().equals("yslht")|| contractType.toString().equals("qtzclht")) {//产出物 this.setResourceTypeStyle("turnover"); this.afterSelectedTag("turnover"); }else { @@ -44,7 +45,6 @@ public class ResourceFilterExtPlugin extends ResourceItemListPlugin { } } } - System.out.println(); }