动态指定 通用查询面板上的最大返回记录数
来源:互联网 发布:淘宝企业店铺复核吗 编辑:程序博客网 时间:2024/06/06 05:43
@Override protected CommonQueryDialog initCommonQueryDialog() { CommonQueryDialog dialog = super.initCommonQueryDialog(); if (dialog != null && dialog.getCurrentSolutionInfo() != null) { dialog.getCommonQueryParam().getQSolutionInfo().setRowCount(100000); } else { try { IQuerySolutionFacade iQuery = QuerySolutionFacadeFactory.getRemoteInstance(); String uiName = getQueryUiName(); String name = getQueryName(); if (uiName == null) { uiName = getMetaDataPK().getFullName(); } if (name == null) { name = this.mainQueryPK.getFullName(); } if ((iQuery == null) || (name == null)) { return dialog; } QuerySolutionInfo qsInfo = iQuery.getDefaultSolution(uiName, name); qsInfo.setRowCount(100000); dialog.setCurrentSolutionInfo(qsInfo); dialog.getCommonQueryParam().setQSolutionInfo(qsInfo); } catch (BOSException e) { e.printStackTrace(); } catch (EASBizException e) { e.printStackTrace(); } } System.out.println(dialog.getCommonQueryParam().getQSolutionInfo().getRowCount() + "-------------------"); return dialog; }