protected void CreateGlobalHeaderRow(UReportPage page) { CRow r = (CRow)rowdef["GLB_HEADER_LEVEL0"]; CRow nr = r.Clone(); String info = String.Format("{0} ({1})", CUtil.DateTimeToDateStringTime(DateTime.Now), OnixWebServiceAPI.GetLastUserLogin()); nr.FillColumnsText(info, "Page " + CurrentPage); ConstructUIRow(page, nr); AvailableSpace = AvailableSpace - nr.GetHeight(); String rpid = rptparam.GetFieldValue("REPORT_ID"); r = (CRow)rowdef["GLB_HEADER_LEVEL1"]; r.FillColumnsText(reportObj.Optional); ConstructUIRow(page, r); AvailableSpace = AvailableSpace - r.GetHeight(); String header = createReportParamHeader(); if (!header.Equals("")) { CRow paramRow = (CRow)rowdef["GLB_HEADER_PARAM"]; paramRow.FillColumnsText(header); ConstructUIRow(page, paramRow); AvailableSpace = AvailableSpace - paramRow.GetHeight(); } }
protected double addNewDataRow(Hashtable rowdef, CReportDataProcessingProperty rpp, String key, String format, int row, CTable data) { CRow d0 = (CRow)rowdef[key]; CRow d00 = d0.Clone(); ArrayList temps00 = getColumnDataTexts(format, row + 1, data); d00.FillColumnsText(temps00); rpp.AddReportRow(d00); return(d00.GetHeight()); }
protected double addNewFooterRow(Hashtable rowdef, CReportDataProcessingProperty rpp, String key, String format, string caption, ArrayList totals) { CRow ft = (CRow)rowdef[key]; CRow ftr = ft.Clone(); ArrayList subTotals = displayTotalTexts(format, totals, 1, caption); ftr.FillColumnsText(subTotals); rpp.AddReportRow(ftr); return(ftr.GetHeight()); }