Class ReportCtl


  • public class ReportCtl
    extends Object
    Report Controller.
    Version:
    $Id: ReportCtl.java,v 1.3 2006/10/08 07:05:08 comdivision Exp $
    Author:
    Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL
  • FR [ 1866739 ] ReportCtl: use printformat from the transient/serializable
    • Method Detail

      • start

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

        public static boolean start​(IProcessUI parent,
                                    int WindowNo,
                                    ProcessInfo pi,
                                    boolean IsDirectPrint)
        Create Report. Called from ProcessCtl. - Check special reports first, if not, create standard Report
        Parameters:
        parent - The window which invoked the printing
        WindowNo - The windows number which invoked the printing
        pi - process info
        IsDirectPrint - if true, prints directly - otherwise View
        Returns:
        true if created
      • start

        public static boolean start​(IProcessUI parent,
                                    int WindowNo,
                                    ProcessInfo pi)
        Create Report. Called from ProcessCtl. - Check special reports first, if not, create standard Report
        Parameters:
        parent - The window which invoked the printing
        WindowNo - The windows number which invoked the printing
        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
      • startStandardReport

        public static boolean startStandardReport​(ProcessInfo pi,
                                                  int WindowNo,
                                                  boolean IsDirectPrint)
        Start Standard Report. - Get Table Info and submit
        Parameters:
        pi - Process Info
        WindowNo - The windows number which invoked the printing
        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
      • startFinReport

        public static boolean startFinReport​(ProcessInfo pi,
                                             int WindowNo)
        Start Financial Report.
        Parameters:
        pi - Process Info
        WindowNo - The windows number which invoked the printing
        Returns:
        true if OK
      • startDocumentPrint

        public static boolean startDocumentPrint​(int type,
                                                 int Record_ID,
                                                 boolean IsDirectPrint)
        Start Document Print for Type. Called also directly from ProcessDialog, VInOutGen, VInvoiceGen, VPayPrint
        Parameters:
        type - document type in ReportEngine
        Record_ID - id
        IsDirectPrint - if true, prints directly - otherwise View
        Returns:
        true if success
      • startDocumentPrint

        public static boolean startDocumentPrint​(int type,
                                                 MPrintFormat customPrintFormat,
                                                 int Record_ID,
                                                 IProcessUI parent,
                                                 int WindowNo,
                                                 String printerName)
        Start Document Print for Type with specified printer. Always direct print.
        Parameters:
        type - document type in ReportEngine
        customPrintFormat - Custom print format. Can be null.
        Record_ID - id
        parent - The window which invoked the printing
        WindowNo - The windows number which invoked the printing
        printerName - Specified printer name
        Returns:
        true if success
      • startDocumentPrint

        public static boolean startDocumentPrint​(int type,
                                                 int Record_ID,
                                                 IProcessUI parent,
                                                 int WindowNo,
                                                 boolean IsDirectPrint)
        Start Document Print for Type. Called also directly from ProcessDialog, VInOutGen, VInvoiceGen, VPayPrint
        Parameters:
        type - document type in ReportEngine
        Record_ID - id
        parent - The window which invoked the printing
        WindowNo - The windows number which invoked the printing
        IsDirectPrint - if true, prints directly - otherwise View
        Returns:
        true if success
      • startDocumentPrint

        public static boolean startDocumentPrint​(int type,
                                                 MPrintFormat customPrintFormat,
                                                 int Record_ID,
                                                 IProcessUI parent,
                                                 int WindowNo,
                                                 boolean IsDirectPrint,
                                                 String printerName)
        Start Document Print for Type with specified printer.
        Parameters:
        type - document type in ReportEngine
        Record_ID - id
        parent - The window which invoked the printing
        WindowNo - The windows number which invoked the printing
        printerName - Specified printer name
        Returns:
        true if success
      • startCheckPrint

        public static boolean startCheckPrint​(int C_Payment_ID,
                                              boolean IsDirectPrint)
        Start Check Print. Find/Create
        Parameters:
        C_Payment_ID - Payment
        IsDirectPrint - if true, prints directly - otherwise View
        Returns:
        true if success
      • preview

        public static void preview​(ReportEngine re)
        Launch viewer for report
        Parameters:
        re -