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 void
getListOfInvoices
(PCachedContext ctx, PModelHandle mH, ResourceBundle bundle) Gets the list of invoices based on the account.protected void
getSelectedInvoice
(PCachedContext ctx, PModelHandle mH) Gets the invoice selected by the user.getSelectionDataFor
(String dataItem, int index) Used only for BASSwing
clients.void
invoice
(PModelHandle mH, ResourceBundle bundle) If the bill number is set, displays that invoice.protected void
processOutputFList
(FList out) Parses the output flist of the search on invoices.void
setBillNumber
(String sBillNumber) Sets the input data/hidden variable billNumber.protected void
Retrieves the opcode output flist from the buffer.void
setEndTime
(Date endDate) Sets the date and time at which to end the search.protected void
setInvoiceDate
(Date sResult) Sets the invoice end date indexed property at index.protected void
setInvoices
(String sResult) Sets the invoice indexed property at index.void
setStartTime
(Date startDate) Sets the date and time at which to begin the search.void
Used only for BASSwing
clients.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:
setStartTime
in interfacePInvoiceBean
- Parameters:
startDate
- the start date for the search
-
setEndTime
Sets the date and time at which to end the search.- Specified by:
setEndTime
in interfacePInvoiceBean
- Parameters:
endDate
- the end date for the search
-
setBillNumber
Sets the input data/hidden variable billNumber.- Specified by:
setBillNumber
in interfacePInvoiceBean
- Parameters:
sBillNumber
- the bill number to search for
-
getInvoices
Gets the available invoices when the bean is loaded.- Specified by:
getInvoices
in interfacePInvoiceBean
- Returns:
- A
List
of invoices.
-
getInvoices
Gets the invoice at the specified index when the bean is loaded.- Specified by:
getInvoices
in interfacePInvoiceBean
- Parameters:
index
- the index for the invoice to retrieve- Returns:
- A
String
with 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:
getInvoiceDate
in interfacePInvoiceBean
- Parameters:
index
- the index for the invoice- Returns:
- The end
Date
for the specified invoice.
-
setInvoiceDate
Sets the invoice end date indexed property at index.- Parameters:
sResult
- the endDate
for the invoice
-
getBuffer
Gets the buffer when the bean is loaded.- Specified by:
getBuffer
in interfacePInvoiceBean
- Returns:
- A
String
with the opcode's specifications.
-
setBuffer
Retrieves the opcode output flist from the buffer.- Parameters:
sResult
- output from the opcode
-
update
Used only for BASSwing
clients. Default behavior in this case is to do nothing.- Specified by:
update
in 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 BASSwing
clients. Default behavior in this case is to do nothing and return null.- Specified by:
getSelectionDataFor
in 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:
invoice
in interfacePInvoiceBean
- Parameters:
mH
- the account'sPModelHandle
saved 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'sPModelHandle
saved 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'sPModelHandle
saved in the session- Throws:
RemoteException
- thrown for invalid field descriptions
-