Package org.adempiere.webui.apps.form
Class WPaymentFormCreditCard
java.lang.Object
org.compiere.grid.PaymentForm
org.compiere.grid.PaymentFormCreditCard
org.adempiere.webui.apps.form.WPaymentFormCreditCard
- All Implemented Interfaces:
IPaymentForm
,org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
public class WPaymentFormCreditCard
extends PaymentFormCreditCard
implements org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
Form for credit card payment rule (
X_C_Order.PAYMENTRULE_CreditCard
).- Author:
- Elaine
-
Field Summary
Fields inherited from class org.compiere.grid.PaymentFormCreditCard
m_C_Payment_ID, m_CCType, m_mPayment, m_mPaymentOriginal, m_mPaymentTransaction, processMsg, selectedCreditCard
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
mandatory field validationsvoid
close formprotected void
init()
Layoutwindow
void
loadData()
Load payment and related transaction records.void
onEvent
(org.zkoss.zk.ui.event.Event e) void
online payment processing (for e.g credit card)boolean
saveChangesInTrx
(String trxName) Save changes to DBvoid
show formMethods inherited from class org.compiere.grid.PaymentFormCreditCard
afterSave, getBankAccountProcessor, getCreditCardList, isApproved, isBankAccountProcessorExist, processOnline, processOnline, save, saveChanges, validateCreditCard
Methods inherited from class org.compiere.grid.PaymentForm
dynInit, getBankAccountProcessor, getGridTab, getInvoiceID, getWindowNo, isBankAccountProcessorExist, isOnlyRule, needSave, setBankAccountProcessor, setCustomizeValues
-
Constructor Details
-
WPaymentFormCreditCard
- Parameters:
windowNo
-mTab
-
-
-
Method Details
-
init
protected void init()Layoutwindow
-
loadData
public void loadData()Description copied from interface:IPaymentForm
Load payment and related transaction records. Usually call from dynInit()- Specified by:
loadData
in interfaceIPaymentForm
- Overrides:
loadData
in classPaymentFormCreditCard
-
onEvent
public void onEvent(org.zkoss.zk.ui.event.Event e) - Specified by:
onEvent
in interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
-
checkMandatory
public boolean checkMandatory()Description copied from interface:IPaymentForm
mandatory field validations- Specified by:
checkMandatory
in interfaceIPaymentForm
- Returns:
- true if all mandatory field have been populated
-
saveChangesInTrx
Description copied from interface:IPaymentForm
Save changes to DB- Specified by:
saveChangesInTrx
in interfaceIPaymentForm
- Returns:
- true if save successfully
-
processOnline
public void processOnline()Description copied from interface:IPaymentForm
online payment processing (for e.g credit card)- Specified by:
processOnline
in interfaceIPaymentForm
- Overrides:
processOnline
in classPaymentForm
-
showWindow
public void showWindow()Description copied from interface:IPaymentForm
show form- Specified by:
showWindow
in interfaceIPaymentForm
-
closeWindow
public void closeWindow()Description copied from interface:IPaymentForm
close form- Specified by:
closeWindow
in interfaceIPaymentForm
-
getWindow
- Specified by:
getWindow
in interfaceIPaymentForm
- Returns:
- instance of UI form
-