码迷,mamicode.com
首页 > 其他好文 > 详细

EAS table 刷新

时间:2015-04-21 17:56:55      阅读:134      评论:0      收藏:0      [点我收藏+]

标签:

 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);

 

EAS table 刷新

标签:

原文地址:http://www.cnblogs.com/cyhj/p/4444772.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!