Package org.adempiere.webui.apps.form
Class WAllocation
java.lang.Object
org.compiere.apps.form.Allocation
org.adempiere.webui.apps.form.WAllocation
- All Implemented Interfaces:
ValueChangeListener
,WTableModelListener
,IFormController
,org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
public class WAllocation
extends Allocation
implements IFormController, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>, WTableModelListener, ValueChangeListener
Form to create allocation (C_AllocationHdr and C_AllocationLine).
Contributor : Fabian Aguilar - OFBConsulting - Multiallocation
-
Field Summary
Fields inherited from class org.compiere.apps.form.Allocation
allocDate, format, log, m_AD_Org_ID, m_C_BPartner_ID, m_C_Charge_ID, m_C_Currency_ID, m_C_DocType_ID, totalDiff, totalInv, totalPay
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
perform allocation calculationvoid
dynInit()
Dynamic Init (prepare dynamic fields)getForm()
Called by org.adempiere.webui.panel.ADForm.openForm(int)protected void
LayoutparameterLayout
andallocationPanel
.protected void
Handle onClientInfo event from browser.void
onEvent
(org.zkoss.zk.ui.event.Event e) Event listenerprotected void
Setup columns forparameterLayout
.void
Table Model Listener forpaymentTable
andinvoiceTable
- Recalculate Totalsvoid
Value change listener for parameter and allocation fields.Methods inherited from class org.compiere.apps.form.Allocation
calculate, calculateDifference, calculateInvoice, calculatePayment, checkBPartner, getAD_Org_ID, getC_BPartner_ID, getC_Charge_ID, getC_Currency_ID, getC_DocType_ID, getInvoiceAppliedTotal, getInvoiceColumnNames, getInvoiceData, getInvoiceData, getInvoiceInfoText, getPaymentAppliedTotal, getPaymentColumnNames, getPaymentData, getPaymentData, getPaymentInfoText, getSelectedInvoiceCount, getSelectedPaymentCount, getTotalDifference, isOkToAllocate, prepareForCalculate, saveData, setAD_Org_ID, setC_BPartner_ID, setC_Charge_ID, setC_Currency_ID, setC_DocType_ID, setInvoiceColumnClass, setPaymentColumnClass, writeOff
-
Constructor Details
-
WAllocation
public WAllocation()Default constructor
-
-
Method Details
-
layoutParameterAndSummary
protected void layoutParameterAndSummary()LayoutparameterLayout
andallocationPanel
. -
setupParameterColumns
protected void setupParameterColumns()Setup columns forparameterLayout
. -
dynInit
Dynamic Init (prepare dynamic fields)- Overrides:
dynInit
in classAllocation
- Throws:
Exception
- if Lookups cannot be initialized
-
onClientInfo
protected void onClientInfo()Handle onClientInfo event from browser. -
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
-
tableChanged
Table Model Listener forpaymentTable
andinvoiceTable
- Recalculate Totals- Specified by:
tableChanged
in interfaceWTableModelListener
- Parameters:
e
- event
-
valueChange
Value change listener for parameter and allocation fields.- Specified by:
valueChange
in interfaceValueChangeListener
- Parameters:
e
- event
-
calculate
public void calculate()perform allocation calculation -
getForm
Called by org.adempiere.webui.panel.ADForm.openForm(int)- Specified by:
getForm
in interfaceIFormController
- Returns:
ADForm
-