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
  • Constructor Details

    • WAllocation

      public WAllocation()
      Default constructor
  • Method Details

    • layoutParameterAndSummary

      protected void layoutParameterAndSummary()
      Layout parameterLayout and allocationPanel.
    • setupParameterColumns

      protected void setupParameterColumns()
      Setup columns for parameterLayout.
    • dynInit

      public void dynInit() throws Exception
      Dynamic Init (prepare dynamic fields)
      Overrides:
      dynInit in class Allocation
      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 interface org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
      Parameters:
      e - event
    • tableChanged

      public void tableChanged(WTableModelEvent e)
      Table Model Listener for paymentTable and invoiceTable
      - Recalculate Totals
      Specified by:
      tableChanged in interface WTableModelListener
      Parameters:
      e - event
    • valueChange

      public void valueChange(ValueChangeEvent e)
      Value change listener for parameter and allocation fields.
      Specified by:
      valueChange in interface ValueChangeListener
      Parameters:
      e - event
    • calculate

      public void calculate()
      perform allocation calculation
    • getForm

      public ADForm getForm()
      Called by org.adempiere.webui.panel.ADForm.openForm(int)
      Specified by:
      getForm in interface IFormController
      Returns:
      ADForm