public class PInvoiceBeanImpl extends PControllerImpl implements PInvoiceBean, Serializable
PInvoiceBeanImpl
is the controller class for the invoice bean.mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY
Constructor and Description |
---|
PInvoiceBeanImpl()
Creates the controller.
|
Modifier and Type | Method and Description |
---|---|
String |
getBuffer()
Gets the buffer when the bean is loaded.
|
Date |
getInvoiceDate(int index)
Gets the invoice end date at index when the bean is loaded.
|
List |
getInvoices()
Gets the available invoices when the bean is loaded.
|
String |
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.
|
Object |
getSelectionDataFor(String dataItem,
int index)
Used only for BAS
Swing 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 |
setBuffer(String sResult)
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 |
update(int reason,
Object data)
Used only for BAS
Swing clients. |
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
public PInvoiceBeanImpl() throws RemoteException
RemoteException
public void setStartTime(Date startDate)
setStartTime
in interface PInvoiceBean
startDate
- the start date for the searchpublic void setEndTime(Date endDate)
setEndTime
in interface PInvoiceBean
endDate
- the end date for the searchpublic void setBillNumber(String sBillNumber)
setBillNumber
in interface PInvoiceBean
sBillNumber
- the bill number to search forpublic List getInvoices()
getInvoices
in interface PInvoiceBean
List
of invoices.public String getInvoices(int index)
getInvoices
in interface PInvoiceBean
index
- the index for the invoice to retrieveString
with the specified invoice.protected void setInvoices(String sResult)
sResult
- the invoicepublic Date getInvoiceDate(int index)
getInvoiceDate
in interface PInvoiceBean
index
- the index for the invoiceDate
for the specified invoice.protected void setInvoiceDate(Date sResult)
sResult
- the end Date
for the invoicepublic String getBuffer()
getBuffer
in interface PInvoiceBean
String
with the opcode's specifications.protected void setBuffer(String sResult)
sResult
- output from the opcodepublic void update(int reason, Object data)
Swing
clients.
Default behavior in this case is to do nothing.update
in class PControllerImpl
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
public Object getSelectionDataFor(String dataItem, int index)
Swing
clients.
Default behavior in this case is to do nothing
and return null.getSelectionDataFor
in interface PControllerBean
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 itempublic void invoice(PModelHandle mH, ResourceBundle bundle) throws RemoteException
invoice
in interface PInvoiceBean
mH
- the account's PModelHandle
saved in the sessionbundle
- the resource bundleRemoteException
- thrown if the context is nullprotected void getListOfInvoices(PCachedContext ctx, PModelHandle mH, ResourceBundle bundle) throws RemoteException
ctx
- the context to the connection manager (CM)mH
- the account's PModelHandle
saved in the sessionbundle
- the resource bundleRemoteException
- thrown for invalid field descriptions and other errorsRemoteException
protected void processOutputFList(FList out) throws RemoteException
out
- output flist from the opcodeRemoteException
- thrown if no invoices are found or for null POIDsprotected void getSelectedInvoice(PCachedContext ctx, PModelHandle mH) throws RemoteException
ctx
- the context to the connection manager (CM)mH
- the account's PModelHandle
saved in the sessionRemoteException
- thrown for invalid field descriptionsCopyright © 2003, 2023, Oracle and/or its affiliates.