第一种方式
protected IQueryExecutor getQueryExecutor(IMetaDataPK arg0,
EntityViewInfo arg1) {
String id = getSelectedKeyValue();
EntityViewInfo evi =new EntityViewInfo();
try {
evi=this.getEntityViewInfo(arg1);
} catch (BOSException e) {
e.printStackTrace();
}
FilterInfo filter =evi.getFilter(); //设置过滤条件
com.kingdee.bos.metadata.entity.FilterItemCollection coll=filter.getFilterItems();
int index=coll.size();
List list=new ArrayList();
for(int i=0;i<coll.size();i++){
System.out.println(coll.size());
FilterItemInfo info=coll.get(i);
if(info.getPropertyName().equals("FICompany.id")){
list.add(info);
}
System.out.println(info.getPropertyName());
}
for(int j=0;j<list.size();j++){