Package com.portal.web.comp
Class PInvoiceBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.web.comp.PInvoiceBeanImpl
- All Implemented Interfaces:
PControllerBean,PInvoiceBean,Serializable,Remote,Unreferenced
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:
-
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 TypeMethodDescriptionGets the buffer when the bean is loaded.getInvoiceDate(int index) Gets the invoice end date at index when the bean is loaded.Gets the available invoices when the bean is loaded.getInvoices(int index) Gets the invoice at the specified index when the bean is loaded.protected voidgetListOfInvoices(PCachedContext ctx, PModelHandle mH, ResourceBundle bundle) Gets the list of invoices based on the account.protected voidgetSelectedInvoice(PCachedContext ctx, PModelHandle mH) Gets the invoice selected by the user.getSelectionDataFor(String dataItem, int index) Used only for BASSwingclients.voidinvoice(PModelHandle mH, ResourceBundle bundle) If the bill number is set, displays that invoice.protected voidprocessOutputFList(FList out) Parses the output flist of the search on invoices.voidsetBillNumber(String sBillNumber) Sets the input data/hidden variable billNumber.protected voidRetrieves the opcode output flist from the buffer.voidsetEndTime(Date endDate) Sets the date and time at which to end the search.protected voidsetInvoiceDate(Date sResult) Sets the invoice end date indexed property at index.protected voidsetInvoices(String sResult) Sets the invoice indexed property at index.voidsetStartTime(Date startDate) Sets the date and time at which to begin the search.voidUsed only for BASSwingclients.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
-
Constructor Details
-
PInvoiceBeanImpl
Creates the controller.- Throws:
RemoteException
-
-
Method Details
-
setStartTime
Sets the date and time at which to begin the search.- Specified by:
setStartTimein interfacePInvoiceBean- Parameters:
startDate- the start date for the search
-
setEndTime
Sets the date and time at which to end the search.- Specified by:
setEndTimein interfacePInvoiceBean- Parameters:
endDate- the end date for the search
-
setBillNumber
Sets the input data/hidden variable billNumber.- Specified by:
setBillNumberin interfacePInvoiceBean- Parameters:
sBillNumber- the bill number to search for
-
getInvoices
Gets the available invoices when the bean is loaded.- Specified by:
getInvoicesin interfacePInvoiceBean- Returns:
- A
Listof invoices.
-
getInvoices
Gets the invoice at the specified index when the bean is loaded.- Specified by:
getInvoicesin interfacePInvoiceBean- Parameters:
index- the index for the invoice to retrieve- Returns:
- A
Stringwith the specified invoice.
-
setInvoices
Sets the invoice indexed property at index.- Parameters:
sResult- the invoice
-
getInvoiceDate
Gets the invoice end date at index when the bean is loaded.- Specified by:
getInvoiceDatein interfacePInvoiceBean- Parameters:
index- the index for the invoice- Returns:
- The end
Datefor the specified invoice.
-
setInvoiceDate
Sets the invoice end date indexed property at index.- Parameters:
sResult- the endDatefor the invoice
-
getBuffer
Gets the buffer when the bean is loaded.- Specified by:
getBufferin interfacePInvoiceBean- Returns:
- A
Stringwith the opcode's specifications.
-
setBuffer
Retrieves the opcode output flist from the buffer.- Parameters:
sResult- output from the opcode
-
update
Used only for BASSwingclients. Default behavior in this case is to do nothing.- Specified by:
updatein classPControllerImpl- Parameters:
reason- an integer constant that indicates the reason for the update (UPDATE_NEW_MODEL,UPDATE_PROPERTY,UPDATE_MODEL_CHANGE, orUPDATE_CLIENT)data- the data associated withupdate
-
getSelectionDataFor
Used only for BASSwingclients. Default behavior in this case is to do nothing and return null.- Specified by:
getSelectionDataForin interfacePControllerBean- Parameters:
dataItem- the name of a data item. Must match the name of an item changed by sending aPViewDataChangeEvent.index- an optional index into an array data item- Returns:
- Usually, a model handle or array of model handles.
-
invoice
If the bill number is set, displays that invoice. Otherwise, it displays the list of invoices based on the user selected dates.- Specified by:
invoicein interfacePInvoiceBean- Parameters:
mH- the account'sPModelHandlesaved in the sessionbundle- 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'sPModelHandlesaved in the sessionbundle- the resource bundleRemoteException- thrown for invalid field descriptions and other errors- Throws:
RemoteException
-
processOutputFList
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
Gets the invoice selected by the user.- Parameters:
ctx- the context to the connection manager (CM)mH- the account'sPModelHandlesaved in the session- Throws:
RemoteException- thrown for invalid field descriptions
-