Class ServerReportCtl


  • public class ServerReportCtl
    extends Object
    • Constructor Detail

      • ServerReportCtl

        public ServerReportCtl()
    • Method Detail

      • startDocumentPrint

        public static boolean startDocumentPrint​(int type,
                                                 MPrintFormat customPrintFormat,
                                                 int Record_ID,
                                                 String printerName)
        Start Document Print for Type with specified printer.
        Parameters:
        type -
        customPrintFormat -
        Record_ID -
        printerName -
        Returns:
      • startDocumentPrint

        public static boolean startDocumentPrint​(int type,
                                                 MPrintFormat customPrintFormat,
                                                 int Record_ID,
                                                 String printerName,
                                                 ProcessInfo pi)
        Start Document Print for Type with specified printer.
        Parameters:
        type - document type in ReportEngine
        customPrintFormat -
        Record_ID - id
        printerName - Specified printer name
        pi -
        Returns:
        true if success
      • runJasperProcess

        public static boolean runJasperProcess​(int Record_ID,
                                               ReportEngine re,
                                               boolean IsDirectPrint,
                                               String printerName)
        Runs a Jasper process that prints the record
        Parameters:
        Record_ID -
        re -
        IsDirectPrint -
        printerName -
        Returns:
      • runJasperProcess

        public static boolean runJasperProcess​(int Record_ID,
                                               ReportEngine re,
                                               boolean IsDirectPrint,
                                               String printerName,
                                               ProcessInfo pi)
        Runs a Jasper process that prints the record
        Parameters:
        Record_ID -
        re -
        IsDirectPrint -
        printerName -
        pi -
        Returns:
      • start

        public static boolean start​(ProcessInfo pi)
        Create Report. Called from ProcessCtl. - Check special reports first, if not, create standard Report
        Parameters:
        pi - process info
        Returns:
        true if created
      • startStandardReport

        public static boolean startStandardReport​(ProcessInfo pi,
                                                  boolean IsDirectPrint)
        Start Standard Report. - Get Table Info and submit
        Parameters:
        pi - Process Info
        IsDirectPrint - if true, prints directly - otherwise View
        Returns:
        true if OK
      • startFinReport

        public static boolean startFinReport​(ProcessInfo pi)
        Start Financial Report.
        Parameters:
        pi - Process Info
        Returns:
        true if OK