Merge 604976fdfdfe
This commit is contained in:
commit
4ffff17e3b
|
@ -61,7 +61,7 @@ public class MPrintFormat extends X_AD_PrintFormat
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
private static final long serialVersionUID = -4515887660012047223L;
|
private static final long serialVersionUID = 2826550741107576964L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Public Constructor.
|
* Public Constructor.
|
||||||
|
@ -1157,6 +1157,16 @@ public class MPrintFormat extends X_AD_PrintFormat
|
||||||
}
|
}
|
||||||
//end vpj-cd e-evolution
|
//end vpj-cd e-evolution
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param AD_Table_ID
|
||||||
|
* @param AD_Client_ID use -1 to retrieve from all client
|
||||||
|
* @param trxName
|
||||||
|
*/
|
||||||
|
public static RowSet getAccessiblePrintFormats (int AD_Table_ID, int AD_Client_ID, String trxName)
|
||||||
|
{
|
||||||
|
return getAccessiblePrintFormats(AD_Table_ID, -1, AD_Client_ID, trxName);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param AD_Table_ID
|
* @param AD_Table_ID
|
||||||
* @param AD_Window_ID
|
* @param AD_Window_ID
|
||||||
|
|
|
@ -169,6 +169,19 @@ public class ReportCtl
|
||||||
* @param IsDirectPrint if true, prints directly - otherwise View
|
* @param IsDirectPrint if true, prints directly - otherwise View
|
||||||
* @return true if OK
|
* @return true if OK
|
||||||
*/
|
*/
|
||||||
|
static public boolean startStandardReport (ProcessInfo pi, boolean IsDirectPrint)
|
||||||
|
{
|
||||||
|
return startStandardReport(pi, -1, IsDirectPrint);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**************************************************************************
|
||||||
|
* Start Standard Report.
|
||||||
|
* - Get Table Info & submit
|
||||||
|
* @param pi Process Info
|
||||||
|
* @param WindowNo The windows number which invoked the printing
|
||||||
|
* @param IsDirectPrint if true, prints directly - otherwise View
|
||||||
|
* @return true if OK
|
||||||
|
*/
|
||||||
static public boolean startStandardReport (ProcessInfo pi, int WindowNo, boolean IsDirectPrint)
|
static public boolean startStandardReport (ProcessInfo pi, int WindowNo, boolean IsDirectPrint)
|
||||||
{
|
{
|
||||||
pi.setPrintPreview(!IsDirectPrint);
|
pi.setPrintPreview(!IsDirectPrint);
|
||||||
|
@ -187,6 +200,24 @@ public class ReportCtl
|
||||||
* @param IsDirectPrint if true, prints directly - otherwise View
|
* @param IsDirectPrint if true, prints directly - otherwise View
|
||||||
* @return true if OK
|
* @return true if OK
|
||||||
*/
|
*/
|
||||||
|
static public boolean startStandardReport (ProcessInfo pi)
|
||||||
|
{
|
||||||
|
return startStandardReport(pi, -1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**************************************************************************
|
||||||
|
* Start Standard Report.
|
||||||
|
* - Get Table Info & submit.<br>
|
||||||
|
* A report can be created from:
|
||||||
|
* <ol>
|
||||||
|
* <li>attached MPrintFormat, if any (see {@link ProcessInfo#setTransientObject(Object)}, {@link ProcessInfo#setSerializableObject(java.io.Serializable)}
|
||||||
|
* <li>process information (AD_Process.AD_PrintFormat_ID, AD_Process.AD_ReportView_ID)
|
||||||
|
* </ol>
|
||||||
|
* @param pi Process Info
|
||||||
|
* @param WindowNo The windows number which invoked the printing
|
||||||
|
* @param IsDirectPrint if true, prints directly - otherwise View
|
||||||
|
* @return true if OK
|
||||||
|
*/
|
||||||
static public boolean startStandardReport (ProcessInfo pi, int WindowNo)
|
static public boolean startStandardReport (ProcessInfo pi, int WindowNo)
|
||||||
{
|
{
|
||||||
ReportEngine re = null;
|
ReportEngine re = null;
|
||||||
|
@ -227,6 +258,17 @@ public class ReportCtl
|
||||||
* @param pi Process Info
|
* @param pi Process Info
|
||||||
* @return true if OK
|
* @return true if OK
|
||||||
*/
|
*/
|
||||||
|
static public boolean startFinReport (ProcessInfo pi)
|
||||||
|
{
|
||||||
|
return startFinReport(pi, -1);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Start Financial Report.
|
||||||
|
* @param pi Process Info
|
||||||
|
* @param WindowNo The windows number which invoked the printing
|
||||||
|
* @return true if OK
|
||||||
|
*/
|
||||||
static public boolean startFinReport (ProcessInfo pi, int WindowNo)
|
static public boolean startFinReport (ProcessInfo pi, int WindowNo)
|
||||||
{
|
{
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
|
|
Loading…
Reference in New Issue