Package org.adempiere.webui.acct
Class WAcctViewerData
java.lang.Object
org.adempiere.webui.acct.WAcctViewerData
State and data access helper for
WAcctViewer
- Author:
- Niraj Sohun July 27, 2007
-
Field Summary
Modifier and TypeFieldDescriptionint
Clientint
Selected Organization IDint
Selected Table ID fordocumentQuery
Selected Accounting SchemaAll Accounting Schemas for clientint
Selected Accounting Schema IDDate From, for DateAcct filterDate To, for DateAcct filterprotected boolean
Display Document infoprotected boolean
Display Qty Columnsprotected boolean
Display Source Amount Columnsboolean
Document Query - query withAD_Table_ID
andRecord_ID
protected boolean
protected boolean
protected boolean
protected boolean
Selected Posting Typeint
Selected Record ID fordocumentQuery
protected String
protected String
protected String
protected String
TableName:AD_Table_IDColumnName:Filterint
Window -
Constructor Summary
ConstructorDescriptionWAcctViewerData
(Properties ctx, int windowNo, int ad_Client_ID, int ad_Table_ID) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposeprotected void
Fill Accounting Schemaprotected void
Fill Orgprotected void
Fill Posting Type fromSystemIDs.REFERENCE_POSTING_TYPE
list.protected void
Fill Listbox with ValueNamePair (TableName, translatedKeyColumnName) andtableInfo
with (TableName, AD_Table_ID) and select the entry for AD_Table_IDprotected String
getButtonText
(String tableName, String columnName, String selectSQL) Get Info Button Textprotected RModel
query()
Create query and executeprotected void
validateAcctSchemas
(int Record_ID) GL Journal only posts in one Accounting Schema.
-
Field Details
-
WindowNo
public int WindowNoWindow -
AD_Client_ID
public int AD_Client_IDClient -
ASchemas
All Accounting Schemas for client -
ASchema
Selected Accounting Schema -
documentQuery
public boolean documentQueryDocument Query - query withAD_Table_ID
andRecord_ID
-
C_AcctSchema_ID
public int C_AcctSchema_IDSelected Accounting Schema ID -
PostingType
Selected Posting Type -
AD_Org_ID
public int AD_Org_IDSelected Organization ID -
DateFrom
Date From, for DateAcct filter -
DateTo
Date To, for DateAcct filter -
AD_Table_ID
public int AD_Table_IDSelected Table ID fordocumentQuery
-
Record_ID
public int Record_IDSelected Record ID fordocumentQuery
-
whereInfo
ColumnName:Filter -
tableInfo
TableName:AD_Table_ID -
displayQty
protected boolean displayQtyDisplay Qty Columns -
displaySourceAmt
protected boolean displaySourceAmtDisplay Source Amount Columns -
displayDocumentInfo
protected boolean displayDocumentInfoDisplay Document info -
sortBy1
-
sortBy2
-
sortBy3
-
sortBy4
-
group1
protected boolean group1 -
group2
protected boolean group2 -
group3
protected boolean group3 -
group4
protected boolean group4
-
-
Constructor Details
-
WAcctViewerData
Constructor- Parameters:
ctx
- contextwindowNo
- window noad_Client_ID
- clientad_Table_ID
- table
-
-
Method Details
-
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 other accounting schema fromASchemas
- Parameters:
Record_ID
-
-
fillAcctSchema
Fill Accounting Schema- Parameters:
cb
- Listbox to be filled
-
fillPostingType
Fill Posting Type fromSystemIDs.REFERENCE_POSTING_TYPE
list.- Parameters:
cb
- Listbox to be filled
-
fillTable
Fill Listbox with ValueNamePair (TableName, translatedKeyColumnName) andtableInfo
with (TableName, AD_Table_ID) and select the entry for AD_Table_ID- Parameters:
cb
- Listbox to be filled
-
fillOrg
Fill Org- Parameters:
cb
- Listbox to be filled
-
getButtonText
Get Info Button Text- Parameters:
tableName
- tablecolumnName
- columnselectSQL
- sql- Returns:
- Text on button
-
query
Create query and execute- Returns:
RModel
query result
-