Class WCreateFromInvoiceUI

java.lang.Object
org.compiere.grid.CreateFrom
org.compiere.grid.CreateFromInvoice
org.adempiere.webui.apps.form.WCreateFromInvoiceUI
All Implemented Interfaces:
ValueChangeListener, ICreateFrom, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>

public class WCreateFromInvoiceUI extends CreateFromInvoice implements org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>, ValueChangeListener
Form to create Invoice Lines from Purchase Order, Material Receipt or Vendor RMA.
Author:
hengsin
  • Field Details

    • bPartnerLabel

      protected Label bPartnerLabel
    • bPartnerField

      protected WEditor bPartnerField
      Business partner parameter field
    • orderLabel

      protected Label orderLabel
    • orderField

      protected Listbox orderField
      Orders parameter field
    • shipmentLabel

      protected Label shipmentLabel
    • shipmentField

      protected Listbox shipmentField
      Shipments parameter field
    • rmaLabel

      protected Label rmaLabel
      Label for the rma selection
    • rmaField

      protected Listbox rmaField
      Combo box for selecting RMA document
  • Constructor Details

    • WCreateFromInvoiceUI

      public WCreateFromInvoiceUI(GridTab tab)
      Parameters:
      tab -
  • Method Details

    • dynInit

      public boolean dynInit() throws Exception
      Description copied from class: CreateFrom
      dynamic initialization, usually for loading of data
      Overrides:
      dynInit in class CreateFromInvoice
      Returns:
      true if initialization success
      Throws:
      Exception
    • zkInit

      protected void zkInit() throws Exception
      Layout window
      Throws:
      Exception
    • onEvent

      public void onEvent(org.zkoss.zk.ui.event.Event e) throws Exception
      Specified by:
      onEvent in interface org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
      Throws:
      Exception
    • valueChange

      public void valueChange(ValueChangeEvent e)
      Description copied from interface: ValueChangeListener
      On value change event
      Specified by:
      valueChange in interface ValueChangeListener
    • initBPartner

      protected void initBPartner(boolean forInvoice) throws Exception
      Load BPartner Field
      Parameters:
      forInvoice - true if Invoices are to be created, false receipts
      Throws:
      Exception - if Lookups cannot be initialized
    • initBPOrderDetails

      protected void initBPOrderDetails(int C_BPartner_ID, boolean forInvoice)
      Load BPartner dependent Order/Shipment/RMA Field.
      Parameters:
      C_BPartner_ID - BPartner
      forInvoice - for invoice
    • loadOrder

      protected void loadOrder(int C_Order_ID, boolean forInvoice)
      Load Order Line records.
      Parameters:
      C_Order_ID - Order
      forInvoice - true for invoice line, false for inout line
    • loadRMA

      protected void loadRMA(int M_RMA_ID)
      load RMA Line records
      Parameters:
      M_RMA_ID -
    • loadShipment

      protected void loadShipment(int M_InOut_ID)
      load shipment line records
      Parameters:
      M_InOut_ID -
    • loadTableOIS

      protected void loadTableOIS(Vector<?> data)
      Load data into list box
      Parameters:
      data - data
    • showWindow

      public void showWindow()
      Description copied from interface: ICreateFrom
      show dialog
      Specified by:
      showWindow in interface ICreateFrom
      Overrides:
      showWindow in class CreateFrom
    • closeWindow

      public void closeWindow()
      Description copied from interface: ICreateFrom
      close dialog
      Specified by:
      closeWindow in interface ICreateFrom
      Overrides:
      closeWindow in class CreateFrom
    • getWindow

      public Object getWindow()
      Specified by:
      getWindow in interface ICreateFrom
      Returns:
      dialog object
    • setupColumns

      protected void setupColumns(Grid parameterGrid)
      Setup columns for parameterGrid
      Parameters:
      parameterGrid -
    • onClientInfo

      protected void onClientInfo()
      handle onClientInfo event