Adempiere 3.5.2a

org.compiere.print
Class ReportCtl

java.lang.Object
  extended by org.compiere.print.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 Summary
    static ReportViewerProvider getReportViewerProvider()
               
    static void preview(ReportEngine re)
              Launch viewer for report
    static void setReportViewerProvider(ReportViewerProvider provider)
               
    static boolean start(ASyncProcess parent, int WindowNo, ProcessInfo pi)
              Create Report.
    static boolean start(ASyncProcess parent, int WindowNo, ProcessInfo pi, boolean IsDirectPrint)
              Create Report.
    static boolean start(ProcessInfo pi, boolean IsDirectPrint)
              Create Report.
    static boolean startCheckPrint(int C_Payment_ID, boolean IsDirectPrint)
              Start Check Print.
    static boolean startDocumentPrint(int type, int Record_ID, ASyncProcess parent, int WindowNo, boolean IsDirectPrint)
              Start Document Print for Type.
    static boolean startDocumentPrint(int type, int Record_ID, boolean IsDirectPrint)
              Start Document Print for Type.
    static boolean startFinReport(ProcessInfo pi)
              Start Financial Report.
    static boolean startStandardReport(ProcessInfo pi)
              Start Standard Report
    static boolean startStandardReport(ProcessInfo pi, boolean IsDirectPrint)
              Start Standard Report
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    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(ASyncProcess 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(ASyncProcess 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
    IsDirectPrint - if true, prints directly - otherwise View
    Returns:
    true if created

    startStandardReport

    public static boolean startStandardReport(ProcessInfo pi,
                                              boolean IsDirectPrint)
    Start Standard Report. - Get Table Info & submit

    Parameters:
    pi - Process Info
    IsDirectPrint - if true, prints directly - otherwise View
    Returns:
    true if OK

    startStandardReport

    public static boolean startStandardReport(ProcessInfo pi)
    Start Standard Report. - Get Table Info & submit.
    A report can be created from:
    1. attached MPrintFormat, if any (see ProcessInfo.setTransientObject(Object), ProcessInfo.setSerializableObject(java.io.Serializable)
    2. process information (AD_Process.AD_PrintFormat_ID, AD_Process.AD_ReportView_ID)

    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

    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,
                                             int Record_ID,
                                             ASyncProcess 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

    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 -

    setReportViewerProvider

    public static void setReportViewerProvider(ReportViewerProvider provider)

    getReportViewerProvider

    public static ReportViewerProvider getReportViewerProvider()

    Adempiere 3.5.2a

    Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.