Package org.adempiere.webui.apps.form
Class WPayPrint
java.lang.Object
org.compiere.apps.form.PayPrint
org.adempiere.webui.apps.form.WPayPrint
- All Implemented Interfaces:
ValueChangeListener
,IFormController
,org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
public class WPayPrint
extends PayPrint
implements IFormController, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>, ValueChangeListener
Form to Print and Export payment.
Contributors:
Carlos Ruiz - GlobalQSS - FR 3132033 - Make payment export class configurable per bank
Markus Bozem: IDEMPIERE-1546 / IDEMPIERE-3286
-
Field Summary
Modifier and TypeFieldDescriptionprotected Button
protected Button
Button to export payment to fileprotected Button
Button to print checkprotected Button
Button to process PAYMENTRULE_DirectDeposit paymentsprotected Grid
Layout ofcenterPanel
protected Panel
Center ofform
protected WNumberEditor
C_PaySelection.CurrentBalanceprotected Label
Bank name from C_BankAccount.C_Bank_IDprotected Label
ISO_Code from C_BankAccount.C_Currency_IDprotected WYesNoEditor
protected WNumberEditor
Bank account document number (C_BankAccountDoc).protected Label
Number of C_PaySelectionCheck recordsprotected Listbox
Payment rulesprotected WNumberEditor
Sum of C_PaySelectionCheck.PayAmtprotected Label
protected Label
protected Label
protected Label
protected Label
protected Label
protected Label
protected Label
protected Label
protected WSearchEditor
Payment selectionsprotected ConfirmPanel
Action buttons panel.Fields inherited from class org.compiere.apps.form.PayPrint
balance, bank, currency, documentNo, log, m_batch, m_C_BankAccount_ID, m_C_PaySelection_ID, m_checks, m_PaymentExport, m_PaymentExportClass, m_WindowNo, noPayments, printFormatId, sumPayments
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
cmd_EFT()
Create EFT paymentprotected void
Export payments to fileprotected void
Print Checks and/or Remittanceprotected void
Confirm before printingvoid
dispose()
Close form.protected void
dynInit()
Dynamic Initprotected boolean
Get ChecksgetForm()
Called by org.adempiere.webui.panel.ADForm.openForm(int)protected void
load payment export classprotected void
Bank changed - load PaymentRuleprotected void
PaymentRule changed - load DocumentNo, NoPayments, enable/disable EFT, Printprotected void
load pay selection detailsvoid
onEvent
(org.zkoss.zk.ui.event.Event e) Event Listenervoid
setPaySelection
(int C_PaySelection_ID) Set Payment Selectionvoid
Vetoable Change Listener.
- Payment Selectionprotected void
zkInit()
Layoutform
Methods inherited from class org.compiere.apps.form.PayPrint
createCheckDocuments, createRemittanceDocuments, getChecks, loadPaymentExportClass, loadPaymentRule, loadPaymentRuleInfo, loadPaySelectInfo
-
Field Details
-
southPanel
Action buttons panel. South ofform
-
bPrint
Button to print check -
bExport
Button to export payment to file -
bCancel
-
bProcess
Button to process PAYMENTRULE_DirectDeposit payments -
centerPanel
Center ofform
-
centerLayout
Layout ofcenterPanel
-
lPaySelect
-
paySelectSearch
Payment selections -
lBank
-
fBank
Bank name from C_BankAccount.C_Bank_ID -
lPaymentRule
-
fPaymentRule
Payment rules -
lDocumentNo
-
fDocumentNo
Bank account document number (C_BankAccountDoc). Usually for check number. -
lNoPayments
-
fNoPayments
Number of C_PaySelectionCheck records -
lBalance
-
fBalance
C_PaySelection.CurrentBalance -
lCurrency
-
fCurrency
ISO_Code from C_BankAccount.C_Currency_ID -
lDepositBatch
-
fDepositBatch
-
lSumPayments
-
fSumPayments
Sum of C_PaySelectionCheck.PayAmt
-
-
Constructor Details
-
WPayPrint
public WPayPrint()Default constructor
-
-
Method Details
-
zkInit
Layoutform
- Throws:
Exception
-
dynInit
protected void dynInit()Dynamic Init -
dispose
public void dispose()Close form. -
setPaySelection
public void setPaySelection(int C_PaySelection_ID) Set Payment Selection- Parameters:
C_PaySelection_ID
- id
-
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
-
loadPaySelectInfo
protected void loadPaySelectInfo()load pay selection details -
loadPaymentRule
protected void loadPaymentRule()Bank changed - load PaymentRule -
loadPaymentRuleInfo
protected void loadPaymentRuleInfo()PaymentRule changed - load DocumentNo, NoPayments, enable/disable EFT, Print -
getPluginFeatures
protected void getPluginFeatures()load payment export class -
cmd_export
protected void cmd_export()Export payments to file -
cmd_EFT
protected void cmd_EFT()Create EFT payment -
confirm_cmd_print
protected void confirm_cmd_print()Confirm before printing -
cmd_print
protected void cmd_print()Print Checks and/or Remittance -
getChecks
Get Checks- Parameters:
PaymentRule
- Payment Rule- Returns:
- true if payments were created
-
getForm
Description copied from interface:IFormController
Called by org.adempiere.webui.panel.ADForm.openForm(int)- Specified by:
getForm
in interfaceIFormController
- Returns:
-
valueChange
Vetoable Change Listener.
- Payment Selection- Specified by:
valueChange
in interfaceValueChangeListener
- Parameters:
e
- event
-