- //绑定F7控件,【部门,部门所属主体】
- KDBizPromptBox departmentPromptBox = new KDBizPromptBox();
- departmentPromptBox.setQueryInfo("com.kingdee.eas.basedata.org.app.AdminItemQuery");
- departmentPromptBox.setVisible(true);
- departmentPromptBox.setEditable(true);
- departmentPromptBox.setDisplayFormat("$name$");
- departmentPromptBox.setEditFormat("$name$");
- departmentPromptBox.setCommitFormat("$name$");
- KDTDefaultCellEditor departmentCellEditor = new KDTDefaultCellEditor(departmentPromptBox);
- this.tblMain.getColumn("department").setEditor(departmentCellEditor);
- this.tblMain.getColumn("superDept").setEditor(departmentCellEditor);
- ObjectValueRender departmentRender = new ObjectValueRender();
- departmentRender.setFormat(new BizDataFormat("$name$"));
- this.tblMain.getColumn("department").setRenderer(departmentRender);
- this.tblMain.getColumn("superDept").setRenderer(departmentRender);
- // 过滤N开头的行政组织不显示
- EntityViewInfo ev = new EntityViewInfo();
- FilterInfo filterinfo = new FilterInfo();
- filterinfo.getFilterItems().add(
- new FilterItemInfo("number", "N%", CompareType.NOTLIKE));
- ev.setFilter(filterinfo);
- departmentPromptBox.setEntityViewInfo(ev);
转载于:https://blog.51cto.com/huqianhao/955293