优化代码 资源i清单监听
This commit is contained in:
		
							parent
							
								
									0333a9698e
								
							
						
					
					
						commit
						be65ad6e6e
					
				|  | @ -1,6 +1,9 @@ | ||||||
| package zcgj.zcdev.zcdev.pr.plugin.form; | package zcgj.zcdev.zcdev.pr.plugin.form; | ||||||
| 
 | 
 | ||||||
| import kd.bos.form.FormShowParameter; | 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 kd.ec.basedata.formplugin.ResourceItemListPlugin; | ||||||
| 
 | 
 | ||||||
| import java.util.EventObject; | 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); | ||||||
|  |         } | ||||||
|  |     } | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue