Package org.adempiere.webui.apps.form
Class WPaymentFormDirect
java.lang.Object
org.compiere.grid.PaymentForm
org.compiere.grid.PaymentFormDirect
org.adempiere.webui.apps.form.WPaymentFormDirect
- All Implemented Interfaces:
IPaymentForm,org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
- Direct Known Subclasses:
WPaymentFormDirectDebit,WPaymentFormDirectDeposit
public abstract class WPaymentFormDirect
extends PaymentFormDirect
implements org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
Abstract base payment form class for payment rule direct debit and direct deposit.
- Author:
- Elaine
-
Field Summary
Fields inherited from class org.compiere.grid.PaymentFormDirect
m_C_Payment_ID, m_mPayment, m_mPaymentOriginal, processMsgFields inherited from class org.compiere.grid.PaymentForm
log, m_AD_Client_ID, m_AD_Org_ID, m_Amount, m_C_BPartner_ID, m_C_Currency_ID, m_Cash_As_Payment, m_DateAcct, m_DocStatus, m_isSOTrx, m_needSave, m_onlyRule, m_PaymentRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanMandatory field validationsvoidClose formGet instance of UI formprotected voidinit()LayoutwindowvoidloadData()Load payment and related transaction records.voidonEvent(org.zkoss.zk.ui.event.Event e) booleansaveChangesInTrx(String trxName) Save changes to DBvoidShow formMethods inherited from class org.compiere.grid.PaymentFormDirect
afterSave, getBankAccountList, getBankAccountProcessor, isBankAccountProcessorExist, save, saveChangesMethods inherited from class org.compiere.grid.PaymentForm
dynInit, getBankAccountProcessor, getGridTab, getInvoiceID, getWindowNo, isApproved, isBankAccountProcessorExist, isOnlyRule, needSave, processOnline, setBankAccountProcessor, setCustomizeValues
-
Constructor Details
-
WPaymentFormDirect
- Parameters:
windowNo-mTab-isDebit- true for direct debit, false for direct deposit
-
-
Method Details
-
init
protected void init()Layoutwindow -
loadData
public void loadData()Description copied from interface:IPaymentFormLoad payment and related transaction records. Usually call from dynInit()- Specified by:
loadDatain interfaceIPaymentForm- Overrides:
loadDatain classPaymentFormDirect
-
onEvent
public void onEvent(org.zkoss.zk.ui.event.Event e) - Specified by:
onEventin interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
-
checkMandatory
public boolean checkMandatory()Description copied from interface:IPaymentFormMandatory field validations- Specified by:
checkMandatoryin interfaceIPaymentForm- Returns:
- true if all mandatory field have been populated
-
saveChangesInTrx
Description copied from interface:IPaymentFormSave changes to DB- Specified by:
saveChangesInTrxin interfaceIPaymentForm- Returns:
- true if save successfully
-
showWindow
public void showWindow()Description copied from interface:IPaymentFormShow form- Specified by:
showWindowin interfaceIPaymentForm
-
closeWindow
public void closeWindow()Description copied from interface:IPaymentFormClose form- Specified by:
closeWindowin interfaceIPaymentForm
-
getWindow
Description copied from interface:IPaymentFormGet instance of UI form- Specified by:
getWindowin interfaceIPaymentForm- Returns:
- instance of UI form
-