public void doPostLoad() { DisplayBean dbean = (DisplayBean) this.getOwner(); String[] strs = ListReportAssistant.getInstance().calColPosition(null, this, dbean.getLstCols(), null); this.defaultFirstColid = strs[0]; this.defaultLastColId = strs[1]; this.setDefaultColumnCount(Integer.parseInt(strs[2])); AbsListReportColBean alrcbean; AbsListReportBean alrbean = (AbsListReportBean) dbean.getReportBean().getExtendConfigDataForReportType(AbsListReportType.KEY); boolean isFirstCol = true; for (ColBean cbean : dbean.getLstCols()) { if (cbean.getDisplaytype().equals(Consts.COL_DISPLAYTYPE_HIDDEN)) continue; String borderstyle = cbean.getBorderStylePropertyOnColBean(); if (borderstyle != null && !borderstyle.trim().equals("")) { cbean.setValuestyleproperty( Tools.mergeHtmlTagPropertyString( cbean.getValuestyleproperty(null, true), "style=\"" + borderstyle + "\"", 1), true); } if (!isFirstCol && this.getRowGroupColsNum() > 0 && this.getRowgrouptype() == 2 && alrbean.getScrollType() == AbsListReportBean.SCROLLTYPE_VERTICAL) { if (Tools.getPropertyValueByName("width", cbean.getValuestyleproperty(null, true), true) != null || Tools.getPropertyValueByName("width", cbean.getLabelstyleproperty(null, true), true) != null) { throw new WabacusConfigLoadingException( "加载报表" + cbean.getReportBean().getPath() + "失败,此报表是配置了scrollheight的树形报表,因此除第一列之外,其它列均不能配置width属性"); } } isFirstCol = false; alrcbean = (AbsListReportColBean) cbean.getExtendConfigDataForReportType(AbsListReportType.KEY); if (alrcbean == null) continue; if (alrcbean.isRequireClickOrderby()) { if (cbean.getDatasetValueId() != null && !cbean.getDatasetValueId().trim().equals("")) { if (dbean.getReportBean().getSbean().isExistDependentDataset(cbean.getDatasetValueId())) { throw new WabacusConfigLoadingException( "加载报表" + cbean.getReportBean().getPath() + "的列" + cbean.getLabel(null) + "失败,当前列是从子数据集中取数据,不能为它配置列排序功能"); } } } if (alrcbean.getFilterBean() != null) { alrcbean.getFilterBean().doPostLoad(); } } }