标签:
1 EntityViewInfo viewInfo = super.getDialog().getEntityViewInfoResult();//获取queryDialog对应的视图信息 2 FilterInfo filter=null; 3 if(viewInfo==null){ 4 viewInfo=new EntityViewInfo(); 5 } 6 filter = viewInfo.getFilter();//获取queryDialog对应的过滤 7 if(filter ==null){ 8 filter = new FilterInfo(); 9 } 10 FilterInfo myfilter = new FilterInfo();//自定义过滤 11 OrgUnitInfo orgUnitInfo = SysContext.getSysContext().getCurrentOrgUnit(); 12 myfilter.getFilterItems().add( 13 new FilterItemInfo("orgUnit.id", orgUnitInfo.getId().toString(), CompareType.EQUALS)); 14 15 filter.mergeFilter(myfilter, "and");//合并过滤 16 viewInfo.setFilter(filter); 17 this.mainQuery =viewInfo; 18 execQuery(); 19 tblMain.setRefresh(true);
标签:
原文地址:http://www.cnblogs.com/cyhj/p/4444772.html