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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidperform allocation calculationvoiddynInit()Dynamic Init (prepare dynamic fields)getForm()Called by org.adempiere.webui.panel.ADForm.openForm(int)protected voidLayoutparameterLayoutandallocationPanel.protected voidHandle onClientInfo event from browser.voidonEvent(org.zkoss.zk.ui.event.Event e) Event listenerprotected voidSetup columns forparameterLayout.voidTable Model Listener forpaymentTableandinvoiceTable
- Recalculate TotalsvoidValue 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()LayoutparameterLayoutandallocationPanel. -
setupParameterColumns
protected void setupParameterColumns()Setup columns forparameterLayout. -
dynInit
Dynamic Init (prepare dynamic fields)- Overrides:
dynInitin 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:
onEventin interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>- Parameters:
e- event
-
tableChanged
Table Model Listener forpaymentTableandinvoiceTable
- Recalculate Totals- Specified by:
tableChangedin interfaceWTableModelListener- Parameters:
e- event
-
valueChange
Value change listener for parameter and allocation fields.- Specified by:
valueChangein interfaceValueChangeListener- Parameters:
e- event
-
calculate
public void calculate()perform allocation calculation -
getForm
Called by org.adempiere.webui.panel.ADForm.openForm(int)- Specified by:
getFormin interfaceIFormController- Returns:
ADForm
-