Class 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 Detail

      • WindowNo

        public int WindowNo
        Window
      • AD_Client_ID

        public int AD_Client_ID
        Client
      • ASchemas

        public MAcctSchema[] ASchemas
        All 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
      • 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 - context
        windowNo - window no
        ad_Client_ID - client
        ad_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 - table
        columnName - column
        selectSQL - sql
        Returns:
        Text on button
      • query

        protected RModel query()
        /** Create Query and submit
        Returns:
        Report Model