Package com.portal.app.cc.comp
Class PARSharedData
java.lang.Object
com.portal.app.cc.comp.PARSharedData
Shared A/R data
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic int
protected Hashtable
protected Hashtable
protected Hashtable
protected Hashtable
protected Hashtable
protected Hashtable
protected Hashtable
protected Hashtable
static int
protected PModelHandle
protected PModelHandle
protected PModelHandle
protected Object[]
protected boolean
protected boolean
protected int
-
Constructor Summary
ConstructorsConstructorDescriptionPARSharedData
(PModelHandle acct, PModelHandle arAcct, PModelHandle arBillInfo, boolean hasChildren, Hashtable hChildrenInfo) Shared AR data object -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Calling this method will nullify the references, so that garbage collection will be fast.Object[]
/** Return result from PARBalancePageBean's getBalanceSummary() method callObject[]
Return result from PARBalancePageBean's getBalanceSummary() method callgetBalnceGroups
(Poid billInfoPoid, Poid accPoid) Returns Balance groups for given bill info or returns all balance groups for given accountgetBillTotalDue
(String billNo) Retruns PIN_FLD_DUE of the bill number passed.getCurrencyBalances
(Poid accPoid, Poid balGrpPoid, int currency) Returns Currency balances for given balance groupgetHARBillInfos
(FList inputBillInfos) int
Get the flag to include/exclude children amounts when getting A/R amounts.getNonCurrencyBalances
(Poid accPoid, Poid balGrpPoid) Returns Non Currency balances for given balance groupReturns the billinfo flist for the selected billunit from Payments Pageboolean
void
isNotToBeResetDuringRefresh
(boolean isChildrenFlagNotTobeResetDuringRefresh) This method is required to communicate to this class that externally include children's flag has been set , hence refresh method should not reset this value.boolean
for showing previous life casevoid
refresh
(PModelHandle acct, PModelHandle arAcct, PModelHandle arBillInfo, boolean hasChildren, Hashtable hChildrenInfo) Refresh A/R datavoid
setBillsDueData
(HashMap<String, BigDecimal> billsDueData) Sets the bills data which containts Key -> PIN_FLD_BILL_NO Value -> PIN_FLD_DUE (due of the entire bill hierarchy [including children])void
setHARBillInfos
(FList inputBillInfos, FList outputBillInfos) to cache the billinfo data with inputBillInfos FList as key and outputBillInfos FList as value This method is introduced to store the input flist and out flist to improve the performancevoid
setIncludeChildrenFlag
(int nFlag) Set the flag to include/exclude children amounts when getting A/R amounts.void
setSelectedBillInfoDetails
(FList currentFList, boolean allSelection) void
Sets the billinfo flist of selected billunit in Payments Pagevoid
setShowPrevLifeBills
(boolean mbShowPrevLifeBills) for showing previous life casevoid
Called right before BalanceImpactEvent is sent Invoke PARBalancePageBean's getBalanceSummary() method and caches resultvoid
Called right before BalanceImpactEvent is sent Invoke PARBalancePageBean's getBalanceSummary() method and caches result
-
Field Details
-
hARBillInfoSummaryWithChild
-
hARBillInfoSummary
-
hARAccountSummary
-
hARAccountSummaryWithChild
-
hCurrencyBalances
-
hNonCurrencyBalances
-
hBalanceGroups
-
hARBillInfos
-
EXCLUDE_CHILDREN
public static int EXCLUDE_CHILDREN -
INCLUDE_CHILDREN
public static int INCLUDE_CHILDREN -
mbShowPrevLifeBills
protected boolean mbShowPrevLifeBills -
mAccount
-
mARAccount
-
mARBillInfo
-
mHasChildren
protected boolean mHasChildren -
mARSummaryObjs
-
mnIncludeChildren
protected int mnIncludeChildren -
billsDueData
-
-
Constructor Details
-
PARSharedData
public PARSharedData(PModelHandle acct, PModelHandle arAcct, PModelHandle arBillInfo, boolean hasChildren, Hashtable hChildrenInfo) Shared AR data object
-
-
Method Details
-
refresh
public void refresh(PModelHandle acct, PModelHandle arAcct, PModelHandle arBillInfo, boolean hasChildren, Hashtable hChildrenInfo) Refresh A/R data -
updateARSummary
Called right before BalanceImpactEvent is sent Invoke PARBalancePageBean's getBalanceSummary() method and caches result -
updateARBillInfoSummary
Called right before BalanceImpactEvent is sent Invoke PARBalancePageBean's getBalanceSummary() method and caches result -
getARSummary
Return result from PARBalancePageBean's getBalanceSummary() method call- Returns:
- AR Summary data
-
setSelectedBillInfoFrmPymt
Sets the billinfo flist of selected billunit in Payments Page- Parameters:
p
-
-
getSelectedBillInfoFrmPymt
Returns the billinfo flist for the selected billunit from Payments Page- Returns:
- billinfoFLfromPymt
-
getARBillInfoSummary
/** Return result from PARBalancePageBean's getBalanceSummary() method call- Returns:
- AR Summary data
-
setIncludeChildrenFlag
public void setIncludeChildrenFlag(int nFlag) Set the flag to include/exclude children amounts when getting A/R amounts. Used in various AR opcode calls- Parameters:
nFlag
- 0/exclude children amounts, 1/include children amounts
-
getIncludeChildrenFlag
public int getIncludeChildrenFlag()Get the flag to include/exclude children amounts when getting A/R amounts. Used in various AR opcode calls- Returns:
- 0/exclude children amounts, 1/include children amounts
-
getPendingBillAmount
-
getOpenBillAmount
-
getTotalDueAmount
-
destructor
public void destructor() -
getBalnceGroups
Returns Balance groups for given bill info or returns all balance groups for given account- Parameters:
billInfoPoid
- Poid poid for the bill infohAcct
- PModelHandle Handle for the current account object- Returns:
- PModelHandle
-
getCurrencyBalances
Returns Currency balances for given balance group- 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- Parameters:
accPoid
- Poid for the current account objectbalGrpPoid
- Poid of balance group- Returns:
- PModelHandle
-
setSelectedBillInfoDetails
-
getSelectedBillInfo
-
isAllBillInfoSelected
public boolean isAllBillInfoSelected() -
getSelectedBillInfoDetails
-
getAccountBillInfo
-
setShowPrevLifeBills
public void setShowPrevLifeBills(boolean mbShowPrevLifeBills) for showing previous life case- Parameters:
mbShowPrevLife
- boolean
-
isShowPrevLifeBills
public boolean isShowPrevLifeBills()for showing previous life case- Parameters:
mbShowPrevLifeBills
- boolean
-
disposeAllResources
public void disposeAllResources()Calling this method will nullify the references, so that garbage collection will be fast. -
getHARBillInfos
-
setHARBillInfos
to cache the billinfo data with inputBillInfos FList as key and outputBillInfos FList as value This method is introduced to store the input flist and out flist to improve the performance- Parameters:
inputBillInfos
- FListoutputBillInfos
- FList
-
isNotToBeResetDuringRefresh
public void isNotToBeResetDuringRefresh(boolean isChildrenFlagNotTobeResetDuringRefresh) This method is required to communicate to this class that externally include children's flag has been set , hence refresh method should not reset this value.- Parameters:
isChildrenFlagNotTobeResetDuringRefresh
-
-
setBillsDueData
Sets the bills data which containts Key -> PIN_FLD_BILL_NO Value -> PIN_FLD_DUE (due of the entire bill hierarchy [including children]) -
getBillTotalDue
Retruns PIN_FLD_DUE of the bill number passed.- Parameters:
billNo
-- Returns:
- PIN_FLD_DUE BigDecimal
-