Class PARBillAdjBeanImpl

All Implemented Interfaces:
PIACollectionBean, PControllerBean, Serializable, Remote, Unreferenced

public class PARBillAdjBeanImpl extends PIAComponentCollectionBean
Controller class for the PARBillAdjustPanel component. The following opcodes are used by this controller:
  • PortalOp.AR_GET_BAL_SUMMARY
  • PortalOp.AR_GET_ACCT_BILLS
  • PortalOp.AR_BILL_ADJUSTMENT
See Also:
  • Constructor Details

  • Method Details

    • update

      public void update(int reason, Object incoming) throws RemoteException
      Description copied from class: PControllerImpl
      The update 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 class PIAComponentCollectionBean
      Parameters:
      reason -
      incoming -
      Throws:
      RemoteException
    • getSelectedBillIndex

      public int getSelectedBillIndex()
      Returns the selected bill index.
    • getBills

      public PModelHandle getBills(int nIncludeChildren, PModelHandle mhAccount, PModelHandle mhBillInfo, PARBillSearchData sData) throws RemoteException
      Retrieve a list of open bills based on given bill unit Call PortalOp.AR_GET_ACCT_BAL_SUMMARY and PortalOp.AR_GET_ACCT_BILLS
      Parameters:
      nIncludeChildren - int
      mhAccount - PModelHandle
      mhBillInfo - PModelHandle
      sData - PARBillSearchData
      Returns:
      PModelHandle
      Throws:
      RemoteException
    • adjustBill

      public String adjustBill(PModelHandle mHandle, BigDecimal amount, Date transDate, String notes, String prog_name, Integer Reasoncode, Integer domainType, Integer taxInfo, boolean bPerAdjustment, BigDecimal percentage) throws RemoteException
      This method will form the Input Flist and call PortalOp.AR_BILL_ADJUSTMENT opcode for performing bill adjustment.
      Parameters:
      mHandle - PModelHandle
      amount - BigDecimal
      transDate - Date
      notes - String
      prog_name - String
      Reasoncode - Integer
      domainType - Integer
      taxInfo - Integer
      Returns:
      String
      Throws:
      RemoteException
    • getReasonCodes

      public ReasonCodeData[] getReasonCodes(int reasonType, Locale locale) throws RemoteException
      return reason code for given reason type
      Throws:
      RemoteException
    • setModelHandle

      public void setModelHandle(PModelHandle mHandle)
      Since controller separation will be implemented, UI Dialog classes will be calling this method to set the model handle.
      Parameters:
      mHandle - PModelHandle
    • getModelHandle

      public PModelHandle getModelHandle()
      Since controller separation will be implemented, UI Dialog classes will be calling this method to get the model handle.
      Returns:
      PModelHandle
    • reset

      public void reset() throws RemoteException
      Reset the controller to clear the cached data
      Throws:
      RemoteException