Package com.portal.app.ccare.comp
Class PBillDetailsPageBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.bas.comp.PIAComponentCollectionBean
com.portal.app.ccare.comp.PBillDetailsPageBeanImpl
- All Implemented Interfaces:
PBillDetailsPageBean
,PIACollectionBean
,PControllerBean
,Serializable
,Remote
,Unreferenced
public class PBillDetailsPageBeanImpl
extends PIAComponentCollectionBean
implements PBillDetailsPageBean
Implememtaion of the bill details interface
- Author:
- pashok Opcodes used in this controller are PortalOp.AR_GET_BILL_ITEMS PortalOp.AR_GET_ACCT_ACTION_ITEMS PortalOp.AR_GET_ACCT_BILLS PortalOp.BILL_MAKE_BILL_NOW
- 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 TypeMethodDescriptionstatic FList
convertServiceName
(FList itemFlist) Converts the service name from the Flist to a more readble formReturns the account number that this bill belongs toint
Returns action item thresholdGets the ARAction amounts, not including paymentsReturns the model handle for AR actionsint
getARActions
(PARBillDetailsData pBDData, PARActionItemSearchData actionData, int iActionItemThreshold) Gets the list of AR action items.Get All the Bill Units for a particular AccountReturns the model handle of a row selected in the item charges tableint
getBillItems
(PARBillItemSearchData billItemData, int iBillItemThreshold) Gets the list of bill items.Returns bill item model handle, which is the list of bill itemsint
Returns bill item thresholdint
Gets the number of billsGets the payment amountsReturns payments and reversals model handlegetReasonCodes
(ArrayList alReason) This method returns the reason code data for the passed in alReason.Object[]
getRowData
(PModelHandle imh) Returns the data for a particular row selected in the payment table, AR action table or the item charges tablevoid
performAccountBillNow
(PModelHandle acctHandle) Performs the bill now opeartion for the Current Account across all billunits Opcode used BILL_MAKE_BILL_NOWperformBillDetailsSearch
(PARBillDetailsData pBDData, PModelHandle bmh, int iBillIndex, int bIncludeChildAmounts, int iActionItemThreshold, int iBillItemThreshold, PModelHandle arAcct, PModelHandle mhARBillInfo) Retrieves the bill poid for the current bill from the list of bills .Performs the bill now opeartion for the current bill Opcode used BILL_MAKE_BILL_NOWperformBillNowForAcct
(PModelHandle acctHandle) Performs the bill now operation for an accountperformPendingBillSearch
(PARBillDetailsData pBDData, PModelHandle bmh, int bIncludeChildAmounts, int actionThreshold, int billItemthreshold, PModelHandle arAcct, PModelHandle mhARBillInfo) Retrieves the bill poid for the pending bill from the list of bills.produceCorrectiveBill
(Poid mBillPoid, ReasonCodeData mCorrReason, int mCorrInvoiceType, boolean passFlagsToOpcode) Method to produce the corrective bill.void
setMode
(int intMode) Set the mode "Show All" -> set as 0 "Show Corrections Only" -> Set as 1.void
setShowPrevLife
(boolean mbShowPrevLife) for showing previous life casevoid
Updates and stores the account poid and account numbervoid
updateBillPoid
(int iBillIndex, PModelHandle bmh) Updates the current bill poid from the list of billsMethods 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
-
PBillDetailsPageBeanImpl
- Throws:
RemoteException
-
-
Method Details
-
update
Updates and stores the account poid and account number- Overrides:
update
in classPIAComponentCollectionBean
- Parameters:
reason
- an integer constant that indicates the reason for the update (UPDATE_NEW_MODEL
,UPDATE_PROPERTY
,UPDATE_MODEL_CHANGE
, orUPDATE_CLIENT
)incoming
- the data associated withupdate
- Throws:
RemoteException
- thrown for errors
-
performBillDetailsSearch
public PModelHandle performBillDetailsSearch(PARBillDetailsData pBDData, PModelHandle bmh, int iBillIndex, int bIncludeChildAmounts, int iActionItemThreshold, int iBillItemThreshold, PModelHandle arAcct, PModelHandle mhARBillInfo) throws RemoteException Retrieves the bill poid for the current bill from the list of bills .- Specified by:
performBillDetailsSearch
in interfacePBillDetailsPageBean
- Parameters:
pBDData
- class that stores the summary data after opcode has been executed. It is used by the bill details page to retrieve the data needed for the bill summarybmh
- The model handle that contains the list of billsiBillIndex
- Index of the cuurently selected bill in the balance tab.bIncludeChildAmounts
- Indicates if child amounts must be included or not. For a sub account it will be 0iActionItemThreshold
- Threshold for ar action items not including paymentsiBillItemThreshold
- Threshold for item chargesarAcct
- Model Handle of the AR account- Returns:
- Returns the model handle from AR_GET_ACCT_BILLS that contains the info for the generated date and due date for the bill.
- Throws:
RemoteException
-
performPendingBillSearch
public PModelHandle performPendingBillSearch(PARBillDetailsData pBDData, PModelHandle bmh, int bIncludeChildAmounts, int actionThreshold, int billItemthreshold, PModelHandle arAcct, PModelHandle mhARBillInfo) throws RemoteException Retrieves the bill poid for the pending bill from the list of bills.- Specified by:
performPendingBillSearch
in interfacePBillDetailsPageBean
- Parameters:
pBDData
- class that stores the summary data after opcode has been executed. It is used by the bill details page to retrieve the data needed for the bill summarybIncludeChildAmounts
- Indicates if child amounts must be included or not. For a sub account it will be 0actionThreshold
- Threshold for ar action items not including paymentsbillItemthreshold
- Threshold for item chargesarAcct
- Model Handle of the AR account- Returns:
- Returns the model handle from AR_GET_ACCT_BILLS
- Throws:
RemoteException
-
getBillItems
public int getBillItems(PARBillItemSearchData billItemData, int iBillItemThreshold) throws RemoteException Gets the list of bill items. Opcode used AR_GET_BILL_ITEMS- Specified by:
getBillItems
in interfacePBillDetailsPageBean
- Parameters:
billItemData
- Data from the bill item search dialog. null if bill details page is being created.iBillItemThreshold
- Bill item threshold.- Returns:
- Number of bill items from search.
- Throws:
RemoteException
-
updateBillPoid
Updates the current bill poid from the list of bills- Specified by:
updateBillPoid
in interfacePBillDetailsPageBean
- Parameters:
iBillIndex
- the bill index of the currently selected billbmh
- Model handle of the list of bills.- Throws:
RemoteException
-
intializeContext
public void intializeContext() -
getARActions
public int getARActions(PARBillDetailsData pBDData, PARActionItemSearchData actionData, int iActionItemThreshold) throws RemoteException Gets the list of AR action items. Opcode used AR_GET_ACCT_ACTION_ITEMS- Specified by:
getARActions
in interfacePBillDetailsPageBean
- Parameters:
actionData
- Data from the AR action search dialog. null if bill details page is being created.iActionItemThreshold
- AR action item threshold.- Returns:
- Number of AR action items from search.
- Throws:
RemoteException
-
getBillItemModelHandle
Returns the model handle of a row selected in the item charges table- Specified by:
getBillItemModelHandle
in interfacePBillDetailsPageBean
- Parameters:
Model
- handle of the bill item- Returns:
- the model handle for a bill item
- Throws:
RemoteException
-
getRowData
Returns the data for a particular row selected in the payment table, AR action table or the item charges table- Specified by:
getRowData
in interfacePBillDetailsPageBean
- Throws:
RemoteException
-
getARActionHandle
Returns the model handle for AR actions- Specified by:
getARActionHandle
in interfacePBillDetailsPageBean
- Returns:
- model handle for AR actions
-
getBillItemThreshold
public int getBillItemThreshold()Returns bill item threshold- Specified by:
getBillItemThreshold
in interfacePBillDetailsPageBean
- Returns:
- Bill item threshold value
-
getActionItemThreshold
public int getActionItemThreshold()Returns action item threshold- Specified by:
getActionItemThreshold
in interfacePBillDetailsPageBean
- Returns:
- AR action item threshold value
-
getBillItemsHandle
Returns bill item model handle, which is the list of bill items- Specified by:
getBillItemsHandle
in interfacePBillDetailsPageBean
- Returns:
- Model handle for bill items
-
getPmtModelHandle
Returns payments and reversals model handle- Specified by:
getPmtModelHandle
in interfacePBillDetailsPageBean
- Returns:
- Model handle for payments and reversals
-
getAccountNumber
Returns the account number that this bill belongs to- Specified by:
getAccountNumber
in interfacePBillDetailsPageBean
- Returns:
- the account number of this bill
-
getNumBills
public int getNumBills()Gets the number of bills- Specified by:
getNumBills
in interfacePBillDetailsPageBean
- Returns:
- Number of bills for this account.
-
getTableModelHandle
- Specified by:
getTableModelHandle
in interfacePBillDetailsPageBean
- Returns:
-
getARActionAmount
Gets the ARAction amounts, not including payments- Specified by:
getARActionAmount
in interfacePBillDetailsPageBean
- Returns:
- the amount for the AR actions. applied towards this bill
-
getPaymentAmount
Gets the payment amounts- Specified by:
getPaymentAmount
in interfacePBillDetailsPageBean
- Returns:
- total payment amount applied to this bill
-
performBillNowForAcct
Performs the bill now operation for an account- Specified by:
performBillNowForAcct
in interfacePBillDetailsPageBean
- Parameters:
acctHandle
- account model handle- Returns:
- Model handle of the newly created bill
- Throws:
RemoteException
-
performBillNow
Performs the bill now opeartion for the current bill Opcode used BILL_MAKE_BILL_NOW- Specified by:
performBillNow
in interfacePBillDetailsPageBean
- Returns:
- Model handle of the newly created bill
- Throws:
RemoteException
-
performAccountBillNow
Performs the bill now opeartion for the Current Account across all billunits Opcode used BILL_MAKE_BILL_NOW- Specified by:
performAccountBillNow
in interfacePBillDetailsPageBean
- Returns:
- Model handle of the newly created bill
- Throws:
RemoteException
-
getBillInfoPoids
Get All the Bill Units for a particular Account- Returns:
- Vector containing all the Bill Units for a particular Account
-
convertServiceName
Converts the service name from the Flist to a more readble form- Throws:
RemoteException
-
setShowPrevLife
public void setShowPrevLife(boolean mbShowPrevLife) for showing previous life case- Specified by:
setShowPrevLife
in interfacePBillDetailsPageBean
- Parameters:
mbShowPrevLife
- boolean
-
getReasonCodes
This method returns the reason code data for the passed in alReason. alReason(0) should contain the PIN_FLD_REASON_DOMAIN_ID alReason(1) should contain Locale information- Specified by:
getReasonCodes
in interfacePBillDetailsPageBean
- Parameters:
alReason
-- Returns:
- ReasonCodeData
- Throws:
RemoteException
-
produceCorrectiveBill
public PModelHandle produceCorrectiveBill(Poid mBillPoid, ReasonCodeData mCorrReason, int mCorrInvoiceType, boolean passFlagsToOpcode) throws Exception Method to produce the corrective bill. BILL_MAKE_CORRECTIVE_BILL is called by this method.- Specified by:
produceCorrectiveBill
in interfacePBillDetailsPageBean
- Parameters:
mBillPoid
- Poid of the bill number for which you want to generate corrective bill.mCorrReason
- ReasonCodeData which contains DOMAIN_ID and REASON_IDmCorrInvoiceType
- int Type of corrective invoice.passFlagsToOpcode
- true/false if true->PIN_FLD_FLAGS will be passed with BILL_VALIDATION_FOR_AR_CHARGES_NEEDED to validate no charge corrections scenario. if false->PIN_FLD_FLAGS will not be passed.- Returns:
- PModelHandle
- Throws:
Exception
-
setMode
public void setMode(int intMode) Set the mode "Show All" -> set as 0 "Show Corrections Only" -> Set as 1.- Specified by:
setMode
in interfacePBillDetailsPageBean
- Parameters:
intMode
-
-