Class PInvoiceBeanImpl

java.lang.Object
com.portal.bas.PControllerImpl
com.portal.web.comp.PInvoiceBeanImpl
All Implemented Interfaces:
PControllerBean, PInvoiceBean, Serializable, Remote, Unreferenced

public class PInvoiceBeanImpl extends PControllerImpl implements PInvoiceBean, Serializable
PInvoiceBeanImpl is the controller class for the invoice bean.
Version:
%version: 10 % %date_modified: Fri Mar 08 09:56:20 2002 %
Author:
sujata
See Also:
  • Constructor Details

  • Method Details

    • setStartTime

      public void setStartTime(Date startDate)
      Sets the date and time at which to begin the search.
      Specified by:
      setStartTime in interface PInvoiceBean
      Parameters:
      startDate - the start date for the search
    • setEndTime

      public void setEndTime(Date endDate)
      Sets the date and time at which to end the search.
      Specified by:
      setEndTime in interface PInvoiceBean
      Parameters:
      endDate - the end date for the search
    • setBillNumber

      public void setBillNumber(String sBillNumber)
      Sets the input data/hidden variable billNumber.
      Specified by:
      setBillNumber in interface PInvoiceBean
      Parameters:
      sBillNumber - the bill number to search for
    • getInvoices

      public List getInvoices()
      Gets the available invoices when the bean is loaded.
      Specified by:
      getInvoices in interface PInvoiceBean
      Returns:
      A List of invoices.
    • getInvoices

      public String getInvoices(int index)
      Gets the invoice at the specified index when the bean is loaded.
      Specified by:
      getInvoices in interface PInvoiceBean
      Parameters:
      index - the index for the invoice to retrieve
      Returns:
      A String with the specified invoice.
    • setInvoices

      protected void setInvoices(String sResult)
      Sets the invoice indexed property at index.
      Parameters:
      sResult - the invoice
    • getInvoiceDate

      public Date getInvoiceDate(int index)
      Gets the invoice end date at index when the bean is loaded.
      Specified by:
      getInvoiceDate in interface PInvoiceBean
      Parameters:
      index - the index for the invoice
      Returns:
      The end Date for the specified invoice.
    • setInvoiceDate

      protected void setInvoiceDate(Date sResult)
      Sets the invoice end date indexed property at index.
      Parameters:
      sResult - the end Date for the invoice
    • getBuffer

      public String getBuffer()
      Gets the buffer when the bean is loaded.
      Specified by:
      getBuffer in interface PInvoiceBean
      Returns:
      A String with the opcode's specifications.
    • setBuffer

      protected void setBuffer(String sResult)
      Retrieves the opcode output flist from the buffer.
      Parameters:
      sResult - output from the opcode
    • update

      public void update(int reason, Object data)
      Used only for BAS Swing clients. Default behavior in this case is to do nothing.
      Specified by:
      update in class PControllerImpl
      Parameters:
      reason - an integer constant that indicates the reason for the update (UPDATE_NEW_MODEL, UPDATE_PROPERTY, UPDATE_MODEL_CHANGE, or UPDATE_CLIENT)
      data - the data associated with update
    • getSelectionDataFor

      public Object getSelectionDataFor(String dataItem, int index)
      Used only for BAS Swing clients. Default behavior in this case is to do nothing and return null.
      Specified by:
      getSelectionDataFor in interface PControllerBean
      Parameters:
      dataItem - the name of a data item. Must match the name of an item changed by sending a PViewDataChangeEvent.
      index - an optional index into an array data item
      Returns:
      Usually, a model handle or array of model handles.
    • invoice

      public void invoice(PModelHandle mH, ResourceBundle bundle) throws RemoteException
      If the bill number is set, displays that invoice. Otherwise, it displays the list of invoices based on the user selected dates.
      Specified by:
      invoice in interface PInvoiceBean
      Parameters:
      mH - the account's PModelHandle saved in the session
      bundle - the resource bundle
      Throws:
      RemoteException - thrown if the context is null
    • getListOfInvoices

      protected void getListOfInvoices(PCachedContext ctx, PModelHandle mH, ResourceBundle bundle) throws RemoteException
      Gets the list of invoices based on the account.
      Parameters:
      ctx - the context to the connection manager (CM)
      mH - the account's PModelHandle saved in the session
      bundle - the resource bundle
      RemoteException - thrown for invalid field descriptions and other errors
      Throws:
      RemoteException
    • processOutputFList

      protected void processOutputFList(FList out) throws RemoteException
      Parses the output flist of the search on invoices.
      Parameters:
      out - output flist from the opcode
      Throws:
      RemoteException - thrown if no invoices are found or for null POIDs
    • getSelectedInvoice

      protected void getSelectedInvoice(PCachedContext ctx, PModelHandle mH) throws RemoteException
      Gets the invoice selected by the user.
      Parameters:
      ctx - the context to the connection manager (CM)
      mH - the account's PModelHandle saved in the session
      Throws:
      RemoteException - thrown for invalid field descriptions