Class WCreateFromShipmentUI

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

public class WCreateFromShipmentUI extends CreateFromShipment implements org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>, ValueChangeListener
Form to create shipment lines (M_InOutLine) from Purchase Order, Vendor Invoice or Customer 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
      Purchase order parameter field
    • rmaLabel

      protected Label rmaLabel
      Label for the rma selection
    • rmaField

      protected Listbox rmaField
      Combo box for selecting RMA document
    • invoiceLabel

      protected Label invoiceLabel
    • invoiceField

      protected Listbox invoiceField
      Vendor invoice parameter field
    • sameWarehouseCb

      protected Checkbox sameWarehouseCb
      True to show only documents from same warehouse with calling M_InOut record
    • locatorLabel

      protected Label locatorLabel
    • locatorField

      protected WLocatorEditor locatorField
      Locator parameter field
    • upcLabel

      protected Label upcLabel
    • upcField

      protected WStringEditor upcField
      Product UPC field. Use to select product in data grid.
  • Constructor Details

    • WCreateFromShipmentUI

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

    • dynInit

      protected boolean dynInit() throws Exception
      Description copied from class: CreateFrom
      dynamic initialization, usually for loading of data
      Overrides:
      dynInit in class CreateFromShipment
      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 Orders for C_BPartner_ID
      Parameters:
      C_BPartner_ID - BPartner
      forInvoice - for invoice
    • initBPDetails

      protected void initBPDetails(int C_BPartner_ID)
      Load bpartner related details.
      Call initBPInvoiceDetails(int) and initBPRMADetails(int).
      Parameters:
      C_BPartner_ID -
    • loadOrder

      protected void loadOrder(int C_Order_ID, boolean forInvoice, int M_Locator_ID)
      Load Order lines
      Parameters:
      C_Order_ID - Order
      forInvoice - true for invoice line, false for shipment line
      M_Locator_ID -
    • loadRMA

      protected void loadRMA(int M_RMA_ID, int M_Locator_ID)
      Load RMA lines
      Parameters:
      M_RMA_ID - RMA
      M_Locator_ID -
    • loadInvoice

      protected void loadInvoice(int C_Invoice_ID, int M_Locator_ID)
      Load Invoice Lines
      Parameters:
      C_Invoice_ID - Invoice
      M_Locator_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 of parameter grid
      Parameters:
      parameterGrid -
    • onClientInfo

      protected void onClientInfo()
      handle onClientInfo event