Class WAcctViewerData

java.lang.Object
org.adempiere.webui.acct.WAcctViewerData

public class WAcctViewerData extends Object
State and data access helper for WAcctViewer
Author:
Niraj Sohun July 27, 2007
  • Field Details

    • WindowNo

      public int WindowNo
      Window
    • AD_Client_ID

      public int AD_Client_ID
      Client
    • ASchemas

      public MAcctSchema[] ASchemas
      All Accounting Schemas for client
    • ASchema

      public MAcctSchema ASchema
      Selected Accounting Schema
    • documentQuery

      public boolean documentQuery
      Document Query - query with AD_Table_ID and Record_ID
    • C_AcctSchema_ID

      public int C_AcctSchema_ID
      Selected Accounting Schema ID
    • PostingType

      public String PostingType
      Selected Posting Type
    • AD_Org_ID

      public int AD_Org_ID
      Selected Organization ID
    • DateFrom

      public Timestamp DateFrom
      Date From, for DateAcct filter
    • DateTo

      public Timestamp DateTo
      Date To, for DateAcct filter
    • AD_Table_ID

      public int AD_Table_ID
      Selected Table ID for documentQuery
    • Record_ID

      public int Record_ID
      Selected Record ID for documentQuery
    • whereInfo

      public HashMap<String,String> whereInfo
      ColumnName:Filter
    • tableInfo

      public HashMap<String,Integer> tableInfo
      TableName:AD_Table_ID
    • displayQty

      protected boolean displayQty
      Display Qty Columns
    • displaySourceAmt

      protected boolean displaySourceAmt
      Display Source Amount Columns
    • displayDocumentInfo

      protected boolean displayDocumentInfo
      Display Document info
    • sortBy1

      protected String sortBy1
    • sortBy2

      protected String sortBy2
    • sortBy3

      protected String sortBy3
    • sortBy4

      protected String sortBy4
    • group1

      protected boolean group1
    • group2

      protected boolean group2
    • group3

      protected boolean group3
    • group4

      protected boolean group4
  • Constructor Details

    • WAcctViewerData

      public WAcctViewerData(Properties 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 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 from ASchemas
      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 from SystemIDs.REFERENCE_POSTING_TYPE list.
      Parameters:
      cb - Listbox to be filled
    • fillTable

      protected void fillTable(Listbox cb)
      Fill Listbox 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 Info Button Text
      Parameters:
      tableName - table
      columnName - column
      selectSQL - sql
      Returns:
      Text on button
    • query

      protected RModel query()
      Create query and execute
      Returns:
      RModel query result