Package org.adempiere.webui.acct
Class WAcctViewerData
- java.lang.Object
-
- org.adempiere.webui.acct.WAcctViewerData
-
public class WAcctViewerData extends Object
Account Viewer State - maintains State information for the Account Viewer Based on class AcctViewerData- Author:
- Niraj Sohun July 27, 2007
-
-
Field Summary
Fields Modifier and Type Field Description int
AD_Client_ID
Clientint
AD_Org_ID
Organizationint
AD_Table_ID
Table IDMAcctSchema
ASchema
This Acct SchemaMAcctSchema[]
ASchemas
All Acct Schemaint
C_AcctSchema_ID
Acct SchemaTimestamp
DateFrom
Date FromTimestamp
DateTo
Date Toboolean
documentQuery
Document QueryString
PostingType
Posting Typeint
Record_ID
RecordHashMap<String,Integer>
tableInfo
Containing TableName and AD_Table_IDHashMap<String,String>
whereInfo
Containing Column and Queryint
WindowNo
Window
-
Constructor Summary
Constructors Constructor Description WAcctViewerData(Properties ctx, int windowNo, int ad_Client_ID, int ad_Table_ID)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposeprotected void
fillAcctSchema(Listbox cb)
Fill Accounting Schemaprotected void
fillOrg(Listbox cb)
Fill Orgprotected void
fillPostingType(Listbox cb)
Fill Posting Typeprotected void
fillTable(Listbox cb)
Fill Table with ValueNamePair (TableName, translatedKeyColumnName) and tableInfo with (TableName, AD_Table_ID) and select the entry for AD_Table_IDprotected String
getButtonText(String tableName, String columnName, String selectSQL)
Get Button Textprotected RModel
query()
/** Create Query and submitprotected void
validateAcctSchemas(int Record_ID)
GL Journal only posts in one Accounting Schema if the record is a GL Journal, remove the others from the array
-
-
-
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
-
-
Constructor Detail
-
WAcctViewerData
public WAcctViewerData(Properties ctx, int windowNo, int ad_Client_ID, int ad_Table_ID)
Constructor- Parameters:
ctx
- contextwindowNo
- window noad_Client_ID
- clientad_Table_ID
- table
-
-
Method Detail
-
dispose
public void dispose()
Dispose
-
validateAcctSchemas
protected void validateAcctSchemas(int Record_ID)
GL Journal only posts in one Accounting Schema if the record is a GL Journal, remove the others from the array- Parameters:
Record_ID
-
-
fillAcctSchema
protected void fillAcctSchema(Listbox cb)
Fill Accounting Schema- Parameters:
cb
- Listbox to be filled
-
fillPostingType
protected void fillPostingType(Listbox cb)
Fill Posting Type- Parameters:
cb
- Listox to be filled
-
fillTable
protected void fillTable(Listbox cb)
Fill Table with ValueNamePair (TableName, translatedKeyColumnName) and tableInfo with (TableName, AD_Table_ID) and select the entry for AD_Table_ID- Parameters:
cb
- Listbox to be filled
-
fillOrg
protected void fillOrg(Listbox cb)
Fill Org- Parameters:
cb
- Listbox to be filled
-
getButtonText
protected String getButtonText(String tableName, String columnName, String selectSQL)
Get Button Text- Parameters:
tableName
- tablecolumnName
- columnselectSQL
- sql- Returns:
- Text on button
-
query
protected RModel query()
/** Create Query and submit- Returns:
- Report Model
-
-