Compiere 3.1

org.compiere.acct
Class AcctViewerData

java.lang.Object
  extended by org.compiere.acct.AcctViewerData

public class AcctViewerData
extends Object

Account Viewer State - maintaines State information for the Account Viewer

Version:
$Id: AcctViewerData.java,v 1.3 2006/08/10 01:00:27 jjanke Exp $
Author:
Jorg Janke

Field Summary
 int AD_Client_ID
          Client
 int AD_Org_ID
          Organization
 int AD_Table_ID
          Table ID
 MAcctSchema ASchema
          This Acct Schema
 MAcctSchema[] ASchemas
          All Acct Schema
 int C_AcctSchema_ID
          Acct Schema
 Timestamp DateFrom
          Date From
 Timestamp DateTo
          Date To
 boolean displayDocumentInfo
          Display Document info
 boolean displayQty
          Display Qty
 boolean displaySourceAmt
          Display Source Surrency
 boolean documentQuery
          Document Query
 boolean[] group
           
 String PostingType
          Posting Type
 int Record_ID
          Record
static int s_numSortByFields
          Number of Sort By Fields
 String[] sortBy
           
 HashMap<String,Integer> tableInfo
          Containing TableName and AD_Table_ID
 HashMap<String,String> whereInfo
          Containing Column and Query
 int WindowNo
          Window
 
Constructor Summary
AcctViewerData(Ctx ctx, int windowNo, int ad_Client_ID, int ad_Table_ID)
          Constructor
 
Method Summary
 void dispose()
          Dispose
 ListBoxVO getAcctSchema()
          Get Accounting Schema
protected  String getButtonText(String tableName, String columnName, String selectSQL)
          Get Button Text
 ListBoxVO getOrg()
          Get Org
 ListBoxVO getPostingType()
          Get Posting Type
 RModel getRModel(Ctx ctx)
          Create Report Model (Columns)
 ListBoxVO getTable(Ctx ctx)
          Get Table with ValueNamePair (TableName, translatedKeyColumnName) and tableInfo with (TableName, AD_Table_ID) and select the entry for AD_Table_ID
 RModel query(Ctx ctx)
          /** Create Query and submit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WindowNo

public int WindowNo
Window


AD_Client_ID

public int AD_Client_ID
Client


ASchemas

public MAcctSchema[] ASchemas
All Acct Schema


ASchema

public MAcctSchema ASchema
This Acct Schema


documentQuery

public boolean documentQuery
Document Query


C_AcctSchema_ID

public int C_AcctSchema_ID
Acct Schema


PostingType

public String PostingType
Posting Type


AD_Org_ID

public int AD_Org_ID
Organization


DateFrom

public Timestamp DateFrom
Date From


DateTo

public Timestamp DateTo
Date To


AD_Table_ID

public int AD_Table_ID
Table ID


Record_ID

public int Record_ID
Record


whereInfo

public HashMap<String,String> whereInfo
Containing Column and Query


tableInfo

public HashMap<String,Integer> tableInfo
Containing TableName and AD_Table_ID


displayQty

public boolean displayQty
Display Qty


displaySourceAmt

public boolean displaySourceAmt
Display Source Surrency


displayDocumentInfo

public boolean displayDocumentInfo
Display Document info


s_numSortByFields

public static final int s_numSortByFields
Number of Sort By Fields

See Also:
Constant Field Values

sortBy

public String[] sortBy

group

public boolean[] group
Constructor Detail

AcctViewerData

public AcctViewerData(Ctx ctx,
                      int windowNo,
                      int ad_Client_ID,
                      int ad_Table_ID)
Constructor

Parameters:
ctx - context
windowNo - window no
ad_Client_ID - client
ad_Table_ID - table
Method Detail

dispose

public void dispose()
Dispose


getAcctSchema

public ListBoxVO getAcctSchema()
Get Accounting Schema

Returns:
the accounting schema

getPostingType

public ListBoxVO getPostingType()
Get Posting Type

Returns:

getTable

public ListBoxVO getTable(Ctx ctx)
Get Table with ValueNamePair (TableName, translatedKeyColumnName) and tableInfo with (TableName, AD_Table_ID) and select the entry for AD_Table_ID

Returns:

getOrg

public ListBoxVO getOrg()
Get Org

Parameters:
cb - JComboBox to be filled

getButtonText

protected String getButtonText(String tableName,
                               String columnName,
                               String selectSQL)
Get Button Text

Parameters:
tableName - table
columnName - column
selectSQL - sql
Returns:
Text on button

query

public RModel query(Ctx ctx)
/** Create Query and submit

Returns:
Report Model

getRModel

public RModel getRModel(Ctx ctx)
Create Report Model (Columns)

Returns:
Report Model

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.