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 2a8cf2b..545687e 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 @@ -1,6 +1,9 @@ package zcgj.zcdev.zcdev.pr.plugin.form; import kd.bos.form.FormShowParameter; +import kd.bos.form.control.Button; +import kd.bos.form.control.Image; +import kd.bos.form.control.Search; import kd.ec.basedata.formplugin.ResourceItemListPlugin; import java.util.EventObject; @@ -58,4 +61,37 @@ 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"); + labourLabel.addClickListener(this); + Image materialLabel = (Image)this.getView().getControl("material"); + materialLabel.addClickListener(this); + Image equipmentLabel = (Image)this.getView().getControl("equipment"); + equipmentLabel.addClickListener(this); + Image turnoverLabel = (Image)this.getView().getControl("turnover"); + turnoverLabel.addClickListener(this); + Image otherLabel = (Image)this.getView().getControl("other"); + otherLabel.addClickListener(this); + Image compositeLabel = (Image)this.getView().getControl("composite"); + if (compositeLabel != null) { + compositeLabel.addClickListener(this); + } + + Search treeSearch = (Search)this.getView().getControl("treesearchap"); + treeSearch.addEnterListener(this); + Button callbackuploadbtn = (Button)this.getView().getControl("callbackuploadbtn"); + if (callbackuploadbtn != null) { + callbackuploadbtn.addUploadListener(this); + } + + Button groupUploadButton = (Button)this.getView().getControl("groupuploadbtn"); + if (groupUploadButton != null) { + groupUploadButton.addUploadListener(this); + } + } }