Package com.portal.app.ccare.comp
Class PARBalancePageBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.bas.comp.PIAComponentCollectionBean
com.portal.app.ccare.comp.PARBalancePageBeanImpl
- All Implemented Interfaces:
PARBalancePageBean,PIACollectionBean,PControllerBean,Serializable,Remote,Unreferenced
public class PARBalancePageBeanImpl
extends PIAComponentCollectionBean
implements PARBalancePageBean
Controller class for the
PARBalancePage component.
The following opcodes are used by this controller:
PortalOp.AR_GET_ACCT_BILLSPortalOp.PortalOp.AR_GET_ACCT_BILLS
- See Also:
-
Field Summary
Fields inherited from class com.portal.bas.PControllerImpl
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendCurrentAccount(PModelHandle mhBillInfo, PModelHandle mhAccount) Appends the account object to the account model handlegetAccountModelForSelectedBill(PModelHandle mhSheet, PModelHandle mhSelected) Return PModelHandle for the selected model handelgetAllCurrencyLimit(PModelHandle hBillinfo, PModelHandle hAcct) Return all credit limit of currency resourceObject[]getBalanceSummary(int nIncludeChildren, PModelHandle hAcct, PModelHandle hArAcct) Retrieve the account balance summary data CallPortalOp.AR_GET_ACCT_BAL_SUMMARYgetBalnceGroups(Poid billInfoPoid, Poid accPoid) Returns Balance groups for given bill info or returns all balance groups for given accountObject[]getBillInfoBalanceSummary(int nIncludeChildren, PModelHandle hAcct, PModelHandle mARBillInfo) Retrieve the account balance summary data CallPortalOp.AR_GET_ACCT_BAL_SUMMARYgetBillinfoCurrencyLimit(FList fBillinfo, PModelHandle hAcct) Return credit limit of currency resourcegetBillItems(int nIncludeChildren, PModelHandle hAcct, PModelHandle hArAcct, PARBillSearchData sData, Vector billInfos, Integer threshold) Retrieve a list of bill items based on given search criteria CallPortalOp.AR_GET_BILL_ITEMSgetBills(int nIncludeChildren, PModelHandle mhAccount, PModelHandle mARBillInfo, PARBillSearchData sData) Retrieve a list of bills based on given search criteria CallPortalOp.AR_GET_ACCT_BILLSgetBills(int nIncludeChildren, PModelHandle mhAccount, PModelHandle mARBillInfo, PARBillSearchData sData, boolean excNegBills) Retrieve a list of bills based on given search criteria CallPortalOp.AR_GET_ACCT_BILLSgetCurrencyBalances(Poid accPoid, Poid balGrpPoid, int currency) Returns Currency balances for given balance groupgetCurrencyLimit(PModelHandle hAcct) Return the credit limit of currency resourcegetCurrencyLimit(PModelHandle hBillinfo, PModelHandle hAcct) Return the credit limit of currency resourcegetCurrencyLimitForSelectedBillUnit(PModelHandle hBillinfo, PModelHandle hAcct, PModelHandle selectedBillUnitMH) Return credit limit of currency resource for selected bill unitgetInvoice(PModelHandle mhBill) Return an Invoice object given the bill handlegetNonCurrencyBalances(Poid accPoid, Poid balGrpPoid) Returns Non Currency balances for given balance groupReturn a vector that contains vectors of non-currency resourcesgetNonCurrencyVector(PModelHandle hAcct) Return a vector that contains vectors of non-currency resourcesgetOpenBills(int nIncludeChildren, PModelHandle mhAccount, PModelHandle mARBillInfo) Retrieve a list of open bills CallPortalOp.AR_GET_ACCT_BILLSbooleanhasPositveBills(PModelHandle mhAllocBills) Returns true if the billmodel handle has even one positive billbooleanhasPrevLifeOpenBill(PModelHandle mhARBillInfo) Check if the current subordinate bill info had a previous life as a standalone bill info with open balancevoidvoidreset()Reset the controller to clear the cached datavoidTheupdatemethod is called by various internal methods when the data has changed enough to require changing the client display.Methods inherited from class com.portal.bas.comp.PIAComponentCollectionBean
addChild, getCollectedData, getSelectionDataFor, removeChildMethods inherited from class com.portal.bas.PControllerImpl
addRemoteListener, closeSecContext, createClientException, distributeEventToListeners, fireModelChangeEvent, getAppController, getArrayRange, getContext, getField, getField, getField, getFieldWithRestriction, getFieldWithRestriction, getFieldWithRestriction, getModel, getRemoteListenerHandle, getSecContext, handleDistributeToListener, isLight, register, releaseContext, releaseRemoteListener, removeRemoteListener, setField, setField, setModel, unreferencedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.portal.bas.PControllerBean
addRemoteListener, getArrayRange, getModel, getRemoteListenerHandle, isLight, register, releaseRemoteListener, removeRemoteListener, setModel
-
Constructor Details
-
PARBalancePageBeanImpl
- Throws:
RemoteException
-
-
Method Details
-
update
Description copied from class:PControllerImplTheupdatemethod is called by various internal methods when the data has changed enough to require changing the client display. Must be overridden by a specific controller subclass.- Overrides:
updatein classPIAComponentCollectionBean- Parameters:
reason-incoming-- Throws:
RemoteException
-
intializeContext
public void intializeContext() -
getBillInfoBalanceSummary
public Object[] getBillInfoBalanceSummary(int nIncludeChildren, PModelHandle hAcct, PModelHandle mARBillInfo) throws RemoteException Description copied from interface:PARBalancePageBeanRetrieve the account balance summary data CallPortalOp.AR_GET_ACCT_BAL_SUMMARY- Specified by:
getBillInfoBalanceSummaryin interfacePARBalancePageBean- Parameters:
nIncludeChildren- Include children amounts flaghAcct- Handle for the current account objectmARBillInfo- Handle for the BillInfo poid Return an object array of 3 items: objs[0] = PModelHandle of PortalOp.AR_GET_ACCT_BAL_SUMMARY flist objs[1] = Integer object with number of immediate children for this acct objs[2] = BigDecimal value for unapplied amount objs[3] = BigDecimal value for pending amount objs[4] = BigDecimal value for disputed amount- Throws:
RemoteException
-
getBalanceSummary
public Object[] getBalanceSummary(int nIncludeChildren, PModelHandle hAcct, PModelHandle hArAcct) throws RemoteException Retrieve the account balance summary data CallPortalOp.AR_GET_ACCT_BAL_SUMMARY- Specified by:
getBalanceSummaryin interfacePARBalancePageBean- Parameters:
nIncludeChildren- Include children amounts flaghAcct- Handle for the current account objecthArAcct- Handle for the AR account poid Return an object array of 5 items: objs[0] = PModelHandle of PortalOp.AR_GET_ACCT_BAL_SUMMARY flist objs[1] = Integer object with number of immediate children for this acct objs[2] = BigDecimal value for unapplied amount objs[3] = BigDecimal value for pending amount objs[4] = BigDecimal value for disputed amount objs[5] = Model Handle of the Pending bill- Throws:
RemoteException
-
getOpenBills
public PModelHandle getOpenBills(int nIncludeChildren, PModelHandle mhAccount, PModelHandle mARBillInfo) throws RemoteException Retrieve a list of open bills CallPortalOp.AR_GET_ACCT_BILLS- Specified by:
getOpenBillsin interfacePARBalancePageBean- Parameters:
nIncludeChildren- Include children amounts flagmhAccount- Handle for the current account objectmARBillInfo- Handle for the AR account poidhAcct- Handle for the current account objecthArAcct- Handle for the AR account poid- Throws:
RemoteException
-
getBills
public PModelHandle getBills(int nIncludeChildren, PModelHandle mhAccount, PModelHandle mARBillInfo, PARBillSearchData sData, boolean excNegBills) throws RemoteException Retrieve a list of bills based on given search criteria CallPortalOp.AR_GET_ACCT_BILLS- Specified by:
getBillsin interfacePARBalancePageBean- Parameters:
nIncludeChildren- Include children amounts flagsData- Search criteria dataexcNegBills- excludes negative bills.hAcct- Handle for the current account objecthArAcct- Handle for the AR account poid- Throws:
RemoteException
-
getBills
public PModelHandle getBills(int nIncludeChildren, PModelHandle mhAccount, PModelHandle mARBillInfo, PARBillSearchData sData) throws RemoteException Retrieve a list of bills based on given search criteria CallPortalOp.AR_GET_ACCT_BILLS- Specified by:
getBillsin interfacePARBalancePageBean- Parameters:
nIncludeChildren- Include children amounts flagmhAccount- Handle for the current account objectmARBillInfo- Handle for the AR account poidsData- Search criteria datahAcct- Handle for the current account objecthArAcct- Handle for the AR account poid- Throws:
RemoteException
-
appendCurrentAccount
public void appendCurrentAccount(PModelHandle mhBillInfo, PModelHandle mhAccount) throws RemoteException Appends the account object to the account model handle- Specified by:
appendCurrentAccountin interfacePARBalancePageBean- Parameters:
mhBillInfo- Handle for the billinfo objectmhAccount- Handle for the previous account objectmhBillinfo- Handle for the billinfo object- Throws:
RemoteException
-
getAccountModelForSelectedBill
public PModelHandle getAccountModelForSelectedBill(PModelHandle mhSheet, PModelHandle mhSelected) throws RemoteException Return PModelHandle for the selected model handel- Specified by:
getAccountModelForSelectedBillin interfacePARBalancePageBean- Parameters:
mhSheet- The bill handle for the table object- Throws:
RemoteException
-
getBillItems
public PModelHandle getBillItems(int nIncludeChildren, PModelHandle hAcct, PModelHandle hArAcct, PARBillSearchData sData, Vector billInfos, Integer threshold) throws RemoteException Retrieve a list of bill items based on given search criteria CallPortalOp.AR_GET_BILL_ITEMS- Specified by:
getBillItemsin interfacePARBalancePageBean- Parameters:
nIncludeChildren- Include children amounts flaghAcct- Handle for the current account objecthArAcct- Handle for the AR account poidsData- Search criteria databillInfos- Billinfo datathreshold- the maximum items to return- Throws:
RemoteException
-
hasPrevLifeOpenBill
Check if the current subordinate bill info had a previous life as a standalone bill info with open balance- Specified by:
hasPrevLifeOpenBillin interfacePARBalancePageBean- Parameters:
hAcct- Handle for the current account object- Returns:
- true if there is a previous life as an A/R bill info with open bill
- Throws:
RemoteException
-
getCurrencyLimit
Return the credit limit of currency resource- Specified by:
getCurrencyLimitin interfacePARBalancePageBean- Parameters:
hAcct- Handle for the current account object- Throws:
RemoteException
-
getCurrencyLimit
public BigDecimal getCurrencyLimit(PModelHandle hBillinfo, PModelHandle hAcct) throws RemoteException Return the credit limit of currency resource- Specified by:
getCurrencyLimitin interfacePARBalancePageBean- Parameters:
hBillinfo- Handle for account bill infohAcct- Handle for the current account object- Throws:
RemoteException
-
getAllCurrencyLimit
public BigDecimal getAllCurrencyLimit(PModelHandle hBillinfo, PModelHandle hAcct) throws RemoteException Return all credit limit of currency resource- Specified by:
getAllCurrencyLimitin interfacePARBalancePageBean- Parameters:
hBillinfo- Handle for account bill infohAcct- Handle for the current account object- Throws:
RemoteException
-
getBillinfoCurrencyLimit
public BigDecimal getBillinfoCurrencyLimit(FList fBillinfo, PModelHandle hAcct) throws RemoteException Return credit limit of currency resource- Parameters:
hAcct- Handle for the current account objecthBillinfo- Handle for account bill info- Throws:
RemoteException
-
getCurrencyBalances
Returns Currency balances for given balance group- Specified by:
getCurrencyBalancesin interfacePARBalancePageBean- Parameters:
accPoid- Poid for the current account objectbalGrpPoid- Poid of balance groupcurrency- int primary currency- Returns:
- PModelHandle
-
getNonCurrencyBalances
Returns Non Currency balances for given balance group- Specified by:
getNonCurrencyBalancesin interfacePARBalancePageBean- Parameters:
accPoid- Poid for the current account objectbalGrpPoid- Poid of balance group- Returns:
- PModelHandle
-
getNonCurrencyVector
Return a vector that contains vectors of non-currency resources- Specified by:
getNonCurrencyVectorin interfacePARBalancePageBean- Parameters:
hAcct- Handle for the current account object vector data in order: String - Resource Description, Bigdecimal - Amount, and BigDecimal - Credit Limit- Throws:
RemoteException
-
getNonCurrencyResources
Return a vector that contains vectors of non-currency resources- Specified by:
getNonCurrencyResourcesin interfacePARBalancePageBean- Parameters:
hAcct- Handle for the current account object vector data in order: Integer - Resource id, and String - Description- Throws:
RemoteException
-
getInvoice
Return an Invoice object given the bill handle- Specified by:
getInvoicein interfacePARBalancePageBean- Parameters:
mhBill- The bill handle for the returned invoice object- Throws:
RemoteException
-
reset
Reset the controller to clear the cached data- Specified by:
resetin interfacePARBalancePageBean- Throws:
RemoteException
-
getCurrencyLimitForSelectedBillUnit
public BigDecimal getCurrencyLimitForSelectedBillUnit(PModelHandle hBillinfo, PModelHandle hAcct, PModelHandle selectedBillUnitMH) throws RemoteException Return credit limit of currency resource for selected bill unit- Specified by:
getCurrencyLimitForSelectedBillUnitin interfacePARBalancePageBean- Parameters:
hBillinfo- Handle for the bill infohAcct- Handle for the current account objectselectedBillUnitMH- Handle for the selected bill unit object- Throws:
RemoteException
-
getBalnceGroups
Returns Balance groups for given bill info or returns all balance groups for given account- Specified by:
getBalnceGroupsin interfacePARBalancePageBean- Parameters:
billInfoPoid- Poid poid for the bill infohAcct- PModelHandle Handle for the current account object- Returns:
- PModelHandle
-
hasPositveBills
Returns true if the billmodel handle has even one positive bill- Specified by:
hasPositveBillsin interfacePARBalancePageBean- Parameters:
mhAllocBills-- Returns:
-