KDTable的列绑定F7控件方法

  
  
  
  
  1. //绑定F7控件,【部门,部门所属主体】  
  2. KDBizPromptBox departmentPromptBox = new KDBizPromptBox();  
  3. departmentPromptBox.setQueryInfo("com.kingdee.eas.basedata.org.app.AdminItemQuery");  
  4. departmentPromptBox.setVisible(true);  
  5. departmentPromptBox.setEditable(true);  
  6. departmentPromptBox.setDisplayFormat("$name$");  
  7. departmentPromptBox.setEditFormat("$name$");  
  8. departmentPromptBox.setCommitFormat("$name$");  
  9. KDTDefaultCellEditor departmentCellEditor = new KDTDefaultCellEditor(departmentPromptBox);  
  10. this.tblMain.getColumn("department").setEditor(departmentCellEditor);  
  11. this.tblMain.getColumn("superDept").setEditor(departmentCellEditor);  
  12. ObjectValueRender departmentRender = new ObjectValueRender();  
  13. departmentRender.setFormat(new BizDataFormat("$name$"));  
  14. this.tblMain.getColumn("department").setRenderer(departmentRender);  
  15. this.tblMain.getColumn("superDept").setRenderer(departmentRender);  
  16.  
  17. // 过滤N开头的行政组织不显示  
  18. EntityViewInfo ev = new EntityViewInfo();  
  19. FilterInfo filterinfo = new FilterInfo();  
  20. filterinfo.getFilterItems().add(  
  21. new FilterItemInfo("number""N%", CompareType.NOTLIKE));  
  22. ev.setFilter(filterinfo);  
  23. departmentPromptBox.setEntityViewInfo(ev);  

 

你可能感兴趣的:(方法,KDTable,F7控件)