Package org.adempiere.webui.apps.form
Class WPaySelect
- java.lang.Object
-
- org.compiere.apps.form.PaySelect
-
- org.adempiere.webui.apps.form.WPaySelect
-
- All Implemented Interfaces:
IProcessUI
,ValueChangeListener
,WTableModelListener
,IFormController
,org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
public class WPaySelect extends PaySelect implements IFormController, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>, WTableModelListener, IProcessUI, ValueChangeListener
Create Manual Payments From (AP) Invoices or (AR) Credit Memos. Allows user to select Invoices for payment. When Processed, PaySelection is created and optionally posted/generated and printed- Version:
- $Id: VPaySelect.java,v 1.3 2006/07/30 00:51:28 jjanke Exp $
- Author:
- Jorg Janke
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.compiere.apps.form.PaySelect
PaySelect.BankInfo
-
-
Field Summary
Fields Modifier and Type Field Description protected CustomForm
form
-
Fields inherited from class org.compiere.apps.form.PaySelect
log, m_format, m_isLocked, m_isOnePaymentPerInvoice, m_noSelected, m_ps, m_WindowNo, trx
-
-
Constructor Summary
Constructors Constructor Description WPaySelect()
Initialize Panel
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
ask(String message, Callback<Boolean> callback)
Prompt for user input.void
askForInput(String message, Callback<String> callback)
void
calculateSelection()
Calculate selected rowsvoid
dispose()
Disposevoid
download(File file)
add to list of file available for download after process endvoid
executeASync(ProcessInfo pi)
protected void
generatePaySelect()
Generate PaySelectionADForm
getForm()
Called by org.adempiere.webui.panel.ADForm.openForm(int)boolean
isUILocked()
Is the UI lockedprotected void
loadBankInfo()
Load Bank Info - Load Info from Bank Account and valid Documents (PaymentRule)protected void
loadTableInfo()
Query and create TableInfovoid
lockUI(ProcessInfo pi)
Lock User Interface Called from the Worker before processingvoid
onEvent(org.zkoss.zk.ui.event.Event e)
ActionListenervoid
statusUpdate(String message)
Provide status feedback to uservoid
tableChanged(WTableModelEvent e)
Table Model Listenervoid
unlockUI(ProcessInfo pi)
Unlock User Interface.void
valueChange(ValueChangeEvent e)
-
Methods inherited from class org.compiere.apps.form.PaySelect
calculateSelection, generatePaySelect, getBankAccountData, getBPartnerData, getDocTypeData, getPaymentRuleData, loadTableInfo, prepareTable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.adempiere.util.IProcessUI
askForInput, showInfoWindow, showReports
-
-
-
-
Field Detail
-
form
protected CustomForm form
-
-
Method Detail
-
loadBankInfo
protected void loadBankInfo()
Load Bank Info - Load Info from Bank Account and valid Documents (PaymentRule)
-
loadTableInfo
protected void loadTableInfo()
Query and create TableInfo
-
dispose
public void dispose()
Dispose
-
onEvent
public void onEvent(org.zkoss.zk.ui.event.Event e)
ActionListener- Specified by:
onEvent
in interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
- Parameters:
e
- event
-
valueChange
public void valueChange(ValueChangeEvent e)
- Specified by:
valueChange
in interfaceValueChangeListener
-
tableChanged
public void tableChanged(WTableModelEvent e)
Table Model Listener- Specified by:
tableChanged
in interfaceWTableModelListener
- Parameters:
e
- event
-
calculateSelection
public void calculateSelection()
Calculate selected rows. - add up selected rows
-
generatePaySelect
protected void generatePaySelect()
Generate PaySelection
-
lockUI
public void lockUI(ProcessInfo pi)
Lock User Interface Called from the Worker before processing- Specified by:
lockUI
in interfaceIProcessUI
- Parameters:
pi
- process info
-
unlockUI
public void unlockUI(ProcessInfo pi)
Unlock User Interface. Called from the Worker when processing is done- Specified by:
unlockUI
in interfaceIProcessUI
- Parameters:
pi
- process info
-
executeASync
public void executeASync(ProcessInfo pi)
-
isUILocked
public boolean isUILocked()
Description copied from interface:IProcessUI
Is the UI locked- Specified by:
isUILocked
in interfaceIProcessUI
- Returns:
- true, if UI is locked
-
getForm
public ADForm getForm()
Description copied from interface:IFormController
Called by org.adempiere.webui.panel.ADForm.openForm(int)- Specified by:
getForm
in interfaceIFormController
- Returns:
-
statusUpdate
public void statusUpdate(String message)
Description copied from interface:IProcessUI
Provide status feedback to user- Specified by:
statusUpdate
in interfaceIProcessUI
-
ask
public void ask(String message, Callback<Boolean> callback)
Description copied from interface:IProcessUI
Prompt for user input. Example Usage in process:final StringBuffer answer = new StringBuffer(); aProcessMonitor.ask(adMessage, new Callback
() { - Specified by:
ask
in interfaceIProcessUI
-
download
public void download(File file)
Description copied from interface:IProcessUI
add to list of file available for download after process end- Specified by:
download
in interfaceIProcessUI
-
askForInput
public void askForInput(String message, Callback<String> callback)
- Specified by:
askForInput
in interfaceIProcessUI
-
-