Class BGReportTemplate

java.lang.Object
ru.bitel.bgbilling.modules.reports.server.bean.BGReportTemplate

public class BGReportTemplate extends Object
Для Jasper-отчётов.
  • Constructor Details

    • BGReportTemplate

      public BGReportTemplate()
  • Method Details

    • getJasperReport

      public static net.sf.jasperreports.engine.JasperReport getJasperReport(URI uri) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getJasperReport

      public static net.sf.jasperreports.engine.JasperReport getJasperReport(ParameterMap setup, URI uri) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • getJasperReport

      public static net.sf.jasperreports.engine.JasperReport getJasperReport(ParameterMap setup, URL url) throws ru.bitel.bgbilling.common.BGException
      Throws:
      ru.bitel.bgbilling.common.BGException
    • prepareJasperDesign

      public static void prepareJasperDesign(ParameterMap setup, net.sf.jasperreports.engine.design.JasperDesign design)
      Устанавливаем pdfFontEmbedded для отображения русских букв в pdf, если в самом отчете не было установлено
      Parameters:
      setup -
      design -
    • fillReportToStream

      public static void fillReportToStream(net.sf.jasperreports.engine.JasperReport report, BGReportFilter filter, Connection con, Document doc, OutputStream out) throws Exception
      Throws:
      Exception
    • fillReportToPdfStream

      public static void fillReportToPdfStream(net.sf.jasperreports.engine.JasperReport report, BGReportFilter filter, Connection con, Document doc, OutputStream out)
    • fillReportToXlsStream

      public static void fillReportToXlsStream(net.sf.jasperreports.engine.JasperReport report, BGReportFilter filter, Connection con, Document doc, OutputStream out)
    • fillReportToPdfStream

      public static void fillReportToPdfStream(List<net.sf.jasperreports.engine.JasperReport> reports, BGReportFilter filter, Connection con, Document doc, OutputStream out)
    • fillReportToStream

      public static void fillReportToStream(net.sf.jasperreports.engine.JasperReport report, BGReportFilter filter, Connection con, OutputStream out) throws Exception
      Throws:
      Exception