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
FieldsModifier and TypeFieldDescriptionintClientintSelected Organization IDintSelected Table ID fordocumentQuerySelected Accounting SchemaAll Accounting Schemas for clientintSelected Accounting Schema IDDate From, for DateAcct filterDate To, for DateAcct filterprotected booleanDisplay Document infoprotected booleanDisplay Qty Columnsprotected booleanDisplay Source Amount ColumnsbooleanDocument Query - query withAD_Table_IDandRecord_IDprotected booleanprotected booleanprotected booleanprotected booleanSelected Posting TypeintSelected Record ID fordocumentQueryprotected Stringprotected Stringprotected Stringprotected StringTableName:AD_Table_IDColumnName:FilterintWindow -
Constructor Summary
ConstructorsConstructorDescriptionWAcctViewerData(Properties ctx, int windowNo, int ad_Client_ID, int ad_Table_ID) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Disposeprotected voidFill Accounting Schemaprotected voidFill Orgprotected voidFill Posting Type fromSystemIDs.REFERENCE_POSTING_TYPElist.protected voidFill Listbox with ValueNamePair (TableName, translatedKeyColumnName) andtableInfowith (TableName, AD_Table_ID) and select the entry for AD_Table_IDprotected StringgetButtonText(String tableName, String columnName, String selectSQL) Get Info Button Textprotected RModelquery()Create query and executeprotected voidvalidateAcctSchemas(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_IDandRecord_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_TYPElist.- Parameters:
cb- Listbox to be filled
-
fillTable
Fill Listbox with ValueNamePair (TableName, translatedKeyColumnName) andtableInfowith (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:
RModelquery result
-