From edcc45ff26f06e8f8d430558b292cd75b8ce2d9e Mon Sep 17 00:00:00 2001 From: xiaoshi <2272816786@qq.com> Date: Mon, 16 Dec 2024 19:32:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=20?= =?UTF-8?q?=E8=B5=84=E6=BA=90i=E6=B8=85=E5=8D=95=E7=9B=91=E5=90=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugin/form/ResourceFilterExtPlugin.java | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) 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 545687e..c43cd54 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 @@ -17,22 +17,31 @@ public class ResourceFilterExtPlugin extends ResourceItemListPlugin { Map customParams = formShowParameter.getCustomParams(); Object contractType = customParams.get("contractType"); String firstOpen = this.getPageCache().get("firstOpen"); - if (firstOpen != null) { + if (firstOpen == null) { // this.getPageCache().put("firstOpen", "false"); - this.getPageCache().remove("firstOpen"); + this.getPageCache().put("firstOpen","false"); + + +// this.setResourceTypeStyle("material"); +// this.afterSelectedTag("material"); + +// contractType="ck"; if (contractType != null) { if (contractType.toString().equals("wzcg")) {//物资采购 + this.setResourceTypeStyle("material"); + this.afterSelectedTag("material"); } else if (contractType.toString().equals("sbcg")) {//设备采购 this.setResourceTypeStyle("equipment"); this.afterSelectedTag("equipment"); }else if (contractType.toString().equals("qtcc") || contractType.toString().equals("lwlcc")) {//产出物 this.setResourceTypeStyle("turnover"); this.afterSelectedTag("turnover"); + }else { + this.setResourceTypeStyle("material"); + this.afterSelectedTag("material"); } } - }else{ - this.getPageCache().put("firstOpen","false"); } System.out.println(); @@ -45,8 +54,9 @@ public class ResourceFilterExtPlugin extends ResourceItemListPlugin { Map customParams = formShowParameter.getCustomParams(); Object contractType = customParams.get("contractType"); String firstOpen = this.getPageCache().get("firstOpen"); - if (firstOpen != null) { + if (firstOpen == null) { this.getPageCache().put("firstOpen", "false"); +// contractType = "ck"; if (contractType != null) { if (contractType.toString().equals("wzcg")) {//物资采购 this.getView().setVisible(true, new String[]{"flexpanelmaterial"}); @@ -64,7 +74,6 @@ public class ResourceFilterExtPlugin extends ResourceItemListPlugin { @Override public void registerListener(EventObject e) { - super.registerListener(e); Image subLabel = (Image)this.getView().getControl("sub"); subLabel.addClickListener(this); Image labourLabel = (Image)this.getView().getControl("labour");