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 intAD_Client_IDClientintAD_Org_IDOrganizationintAD_Table_IDTable IDMAcctSchemaASchemaThis Acct SchemaMAcctSchema[]ASchemasAll Acct SchemaintC_AcctSchema_IDAcct SchemaTimestampDateFromDate FromTimestampDateToDate TobooleandocumentQueryDocument QueryStringPostingTypePosting TypeintRecord_IDRecordHashMap<String,Integer>tableInfoContaining TableName and AD_Table_IDHashMap<String,String>whereInfoContaining Column and QueryintWindowNoWindow
-
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 voiddispose()Disposeprotected voidfillAcctSchema(Listbox cb)Fill Accounting Schemaprotected voidfillOrg(Listbox cb)Fill Orgprotected voidfillPostingType(Listbox cb)Fill Posting Typeprotected voidfillTable(Listbox cb)Fill Table with ValueNamePair (TableName, translatedKeyColumnName) and tableInfo with (TableName, AD_Table_ID) and select the entry for AD_Table_IDprotected StringgetButtonText(String tableName, String columnName, String selectSQL)Get Button Textprotected RModelquery()/** Create Query and submitprotected voidvalidateAcctSchemas(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
-
-