分组基础资料左树按组织隔离原创
7人赞赏了该文章
2,860次浏览
编辑于2020年11月21日 10:10:56
代码如下
@Override
public void refreshNode(RefreshNodeEvent e) {
// TODO Auto-generated method stub
super.refreshNode(e);
if (this.getControlFilters() != null) {
//过滤面板选中的业务组织
String orgId = this.getPageCache().get("createOrg");
ListView listView = (ListView) this.getView();
ITreeListView treeListView = listView.getTreeListView();
TreeListModel treeListModel = (TreeListModel) treeListView.getTreeModel();
QFilter baseDataFilter = BaseDataServiceHelper.getBaseDataFilter("分组(基础资料标识)", Long.parseLong(orgId));
treeListModel.getTreeFilter().add(baseDataFilter);
}
}
推荐阅读