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_BILLS
PortalOp.
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 TypeMethodDescriptionvoid
appendCurrentAccount
(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_SUMMARY
getBalnceGroups
(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_SUMMARY
getBillinfoCurrencyLimit
(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_ITEMS
getBills
(int nIncludeChildren, PModelHandle mhAccount, PModelHandle mARBillInfo, PARBillSearchData sData) Retrieve a list of bills based on given search criteria CallPortalOp.AR_GET_ACCT_BILLS
getBills
(int nIncludeChildren, PModelHandle mhAccount, PModelHandle mARBillInfo, PARBillSearchData sData, boolean excNegBills) Retrieve a list of bills based on given search criteria CallPortalOp.AR_GET_ACCT_BILLS
getCurrencyBalances
(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_BILLS
boolean
hasPositveBills
(PModelHandle mhAllocBills) Returns true if the billmodel handle has even one positive billboolean
hasPrevLifeOpenBill
(PModelHandle mhARBillInfo) Check if the current subordinate bill info had a previous life as a standalone bill info with open balancevoid
void
reset()
Reset the controller to clear the cached datavoid
Theupdate
method 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, removeChild
Methods 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, unreferenced
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:PControllerImpl
Theupdate
method 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:
update
in 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:PARBalancePageBean
Retrieve the account balance summary data CallPortalOp.AR_GET_ACCT_BAL_SUMMARY
- Specified by:
getBillInfoBalanceSummary
in 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:
getBalanceSummary
in 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:
getOpenBills
in 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:
getBills
in 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:
getBills
in 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:
appendCurrentAccount
in 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:
getAccountModelForSelectedBill
in 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:
getBillItems
in 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:
hasPrevLifeOpenBill
in 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:
getCurrencyLimit
in 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:
getCurrencyLimit
in 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:
getAllCurrencyLimit
in 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:
getCurrencyBalances
in 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:
getNonCurrencyBalances
in 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:
getNonCurrencyVector
in 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:
getNonCurrencyResources
in 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:
getInvoice
in interfacePARBalancePageBean
- Parameters:
mhBill
- The bill handle for the returned invoice object- Throws:
RemoteException
-
reset
Reset the controller to clear the cached data- Specified by:
reset
in 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:
getCurrencyLimitForSelectedBillUnit
in 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:
getBalnceGroups
in 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:
hasPositveBills
in interfacePARBalancePageBean
- Parameters:
mhAllocBills
-- Returns:
-