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:
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, 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 process and printed.
Allows user to select Invoices for payment.
When Processed, PaySelection is created and optionally process and printed.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.compiere.apps.form.PaySelect
PaySelect.BankInfo
-
Field Summary
Modifier and TypeFieldDescriptionprotected Checkbox
MPaySelection.COLUMNNAME_IsOnePaymentPerInvoiceprotected Listbox
Bank account parameterprotected Listbox
protected Listbox
Document Typeprotected WDateEditor
C_PaySelection.PayDateprotected Listbox
protected CustomForm
Custom form/window instanceprotected Checkbox
protected Checkbox
Fields inherited from class org.compiere.apps.form.PaySelect
log, m_format, m_isLocked, m_isOnePaymentPerInvoice, m_noSelected, m_ps, m_WindowNo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Calculate selected rows.
- add up selected rowsvoid
dispose()
Close form.protected void
Generate C_PaySelection records.getForm()
Called by org.adempiere.webui.panel.ADForm.openForm(int)boolean
protected void
Load Bank Info - Load Info from Bank Account and valid Documents (PaymentRule)protected void
Load open documents intominiTable
void
lockUI
(ProcessInfo pi) Lock User Interface.void
onEvent
(org.zkoss.zk.ui.event.Event e) Event Listenervoid
Table Model Listenervoid
unlockUI
(ProcessInfo pi) Unlock User Interface.void
On value change eventMethods inherited from class org.compiere.apps.form.PaySelect
calculateSelection, generatePaySelect, getBankAccountData, getBankBalance, getBPartnerData, getDocTypeData, getPaymentRuleData, loadTableInfo, prepareTable
-
Field Details
-
form
Custom form/window instance -
fieldBankAccount
Bank account parameter -
onlyDue
-
onlyPositiveBalance
-
fieldBPartner
-
fieldPayDate
C_PaySelection.PayDate -
fieldPaymentRule
-
fieldDtype
Document Type -
chkOnePaymentPerInv
MPaySelection.COLUMNNAME_IsOnePaymentPerInvoice
-
-
Constructor Details
-
WPaySelect
public WPaySelect()Default constructor
-
-
Method Details
-
loadBankInfo
protected void loadBankInfo()Load Bank Info - Load Info from Bank Account and valid Documents (PaymentRule) -
loadTableInfo
protected void loadTableInfo()Load open documents intominiTable
-
dispose
public void dispose()Close form. -
onEvent
public void onEvent(org.zkoss.zk.ui.event.Event e) Event Listener- Specified by:
onEvent
in interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
- Parameters:
e
- event
-
valueChange
Description copied from interface:ValueChangeListener
On value change event- Specified by:
valueChange
in interfaceValueChangeListener
-
tableChanged
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 C_PaySelection records. -
lockUI
Lock User Interface. Called from the Worker before processing. -
unlockUI
Unlock User Interface. Called from the Worker when processing is done. -
isUILocked
public boolean isUILocked()- Returns:
- true if UI is lock
-
getForm
Description copied from interface:IFormController
Called by org.adempiere.webui.panel.ADForm.openForm(int)- Specified by:
getForm
in interfaceIFormController
- Returns:
-
getProcessInfo
- Returns:
ProcessInfo
-