Class 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:
  • Constructor Details

  • Method Details

    • update

      public void update(int reason, Object incoming) throws RemoteException
      Updates and stores the account poid and account number
      Overrides:
      update in class PIAComponentCollectionBean
      Parameters:
      reason - an integer constant that indicates the reason for the update (UPDATE_NEW_MODEL, UPDATE_PROPERTY, UPDATE_MODEL_CHANGE, or UPDATE_CLIENT)
      incoming - the data associated with update
      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 interface PBillDetailsPageBean
      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 summary
      bmh - The model handle that contains the list of bills
      iBillIndex - 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 0
      iActionItemThreshold - Threshold for ar action items not including payments
      iBillItemThreshold - Threshold for item charges
      arAcct - 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 interface PBillDetailsPageBean
      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 summary
      bIncludeChildAmounts - Indicates if child amounts must be included or not. For a sub account it will be 0
      actionThreshold - Threshold for ar action items not including payments
      billItemthreshold - Threshold for item charges
      arAcct - 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 interface PBillDetailsPageBean
      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

      public void updateBillPoid(int iBillIndex, PModelHandle bmh) throws RemoteException
      Updates the current bill poid from the list of bills
      Specified by:
      updateBillPoid in interface PBillDetailsPageBean
      Parameters:
      iBillIndex - the bill index of the currently selected bill
      bmh - 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 interface PBillDetailsPageBean
      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

      public PModelHandle getBillItemModelHandle(PModelHandle imh) throws RemoteException
      Returns the model handle of a row selected in the item charges table
      Specified by:
      getBillItemModelHandle in interface PBillDetailsPageBean
      Parameters:
      Model - handle of the bill item
      Returns:
      the model handle for a bill item
      Throws:
      RemoteException
    • getRowData

      public Object[] getRowData(PModelHandle imh) throws RemoteException
      Returns the data for a particular row selected in the payment table, AR action table or the item charges table
      Specified by:
      getRowData in interface PBillDetailsPageBean
      Throws:
      RemoteException
    • getARActionHandle

      public PModelHandle getARActionHandle()
      Returns the model handle for AR actions
      Specified by:
      getARActionHandle in interface PBillDetailsPageBean
      Returns:
      model handle for AR actions
    • getBillItemThreshold

      public int getBillItemThreshold()
      Returns bill item threshold
      Specified by:
      getBillItemThreshold in interface PBillDetailsPageBean
      Returns:
      Bill item threshold value
    • getActionItemThreshold

      public int getActionItemThreshold()
      Returns action item threshold
      Specified by:
      getActionItemThreshold in interface PBillDetailsPageBean
      Returns:
      AR action item threshold value
    • getBillItemsHandle

      public PModelHandle getBillItemsHandle()
      Returns bill item model handle, which is the list of bill items
      Specified by:
      getBillItemsHandle in interface PBillDetailsPageBean
      Returns:
      Model handle for bill items
    • getPmtModelHandle

      public PModelHandle getPmtModelHandle()
      Returns payments and reversals model handle
      Specified by:
      getPmtModelHandle in interface PBillDetailsPageBean
      Returns:
      Model handle for payments and reversals
    • getAccountNumber

      public String getAccountNumber()
      Returns the account number that this bill belongs to
      Specified by:
      getAccountNumber in interface PBillDetailsPageBean
      Returns:
      the account number of this bill
    • getNumBills

      public int getNumBills()
      Gets the number of bills
      Specified by:
      getNumBills in interface PBillDetailsPageBean
      Returns:
      Number of bills for this account.
    • getTableModelHandle

      public PModelHandle getTableModelHandle()
      Specified by:
      getTableModelHandle in interface PBillDetailsPageBean
      Returns:
    • getARActionAmount

      public BigDecimal getARActionAmount()
      Gets the ARAction amounts, not including payments
      Specified by:
      getARActionAmount in interface PBillDetailsPageBean
      Returns:
      the amount for the AR actions. applied towards this bill
    • getPaymentAmount

      public BigDecimal getPaymentAmount()
      Gets the payment amounts
      Specified by:
      getPaymentAmount in interface PBillDetailsPageBean
      Returns:
      total payment amount applied to this bill
    • performBillNowForAcct

      public PModelHandle performBillNowForAcct(PModelHandle acctHandle) throws RemoteException
      Performs the bill now operation for an account
      Specified by:
      performBillNowForAcct in interface PBillDetailsPageBean
      Parameters:
      acctHandle - account model handle
      Returns:
      Model handle of the newly created bill
      Throws:
      RemoteException
    • performBillNow

      public PModelHandle performBillNow() throws RemoteException
      Performs the bill now opeartion for the current bill Opcode used BILL_MAKE_BILL_NOW
      Specified by:
      performBillNow in interface PBillDetailsPageBean
      Returns:
      Model handle of the newly created bill
      Throws:
      RemoteException
    • performAccountBillNow

      public PModelHandle performAccountBillNow(PModelHandle acctHandle) throws RemoteException
      Performs the bill now opeartion for the Current Account across all billunits Opcode used BILL_MAKE_BILL_NOW
      Specified by:
      performAccountBillNow in interface PBillDetailsPageBean
      Returns:
      Model handle of the newly created bill
      Throws:
      RemoteException
    • getBillInfoPoids

      public Vector getBillInfoPoids()
      Get All the Bill Units for a particular Account
      Returns:
      Vector containing all the Bill Units for a particular Account
    • convertServiceName

      public static FList convertServiceName(FList itemFlist) throws RemoteException
      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 interface PBillDetailsPageBean
      Parameters:
      mbShowPrevLife - boolean
    • getReasonCodes

      public ReasonCodeData[] getReasonCodes(ArrayList alReason) throws RemoteException
      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 interface PBillDetailsPageBean
      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 interface PBillDetailsPageBean
      Parameters:
      mBillPoid - Poid of the bill number for which you want to generate corrective bill.
      mCorrReason - ReasonCodeData which contains DOMAIN_ID and REASON_ID
      mCorrInvoiceType - 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 interface PBillDetailsPageBean
      Parameters:
      intMode -