Package org.adempiere.webui.apps.form
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
-
-
Field Summary
Fields Modifier and Type Field Description protected WEditor
bPartnerField
protected Label
bPartnerLabel
protected Listbox
invoiceField
protected Label
invoiceLabel
protected WLocatorEditor
locatorField
protected Label
locatorLabel
protected Listbox
orderField
protected Label
orderLabel
protected Listbox
rmaField
Combo box for selecting RMA documentprotected Label
rmaLabel
Label for the rma selectionprotected Checkbox
sameWarehouseCb
protected WStringEditor
upcField
protected Label
upcLabel
-
Fields inherited from class org.compiere.grid.CreateFromShipment
m_invoice, m_rma
-
Fields inherited from class org.compiere.grid.CreateFrom
isSOTrx, p_order
-
-
Constructor Summary
Constructors Constructor Description WCreateFromShipmentUI(GridTab tab)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeWindow()
boolean
dynInit()
Dynamic InitObject
getWindow()
protected void
initBPartner(boolean forInvoice)
Load BPartner Fieldvoid
initBPDetails(int C_BPartner_ID)
protected void
initBPOrderDetails(int C_BPartner_ID, boolean forInvoice)
Load PBartner dependent Order/Invoice/Shipment Field.protected void
loadInvoice(int C_Invoice_ID, int M_Locator_ID)
Load Data - Invoiceprotected void
loadOrder(int C_Order_ID, boolean forInvoice, int M_Locator_ID)
Load Data - Orderprotected void
loadRMA(int M_RMA_ID, int M_Locator_ID)
Load Data - RMAprotected void
loadTableOIS(Vector<?> data)
Load Order/Invoice/Shipment data into Tableprotected void
onClientInfo()
void
onEvent(org.zkoss.zk.ui.event.Event e)
Action Listenerprotected void
setupColumns(Grid parameterGrid)
void
showWindow()
void
valueChange(ValueChangeEvent e)
Change Listenerprotected void
zkInit()
-
Methods inherited from class org.compiere.grid.CreateFromShipment
configureMiniTable, getInvoiceData, getInvoiceData, getLocatorKeyNamePair, getOISColumnNames, getOrderData, getOrderData, getRMAData, getRMAData, info, loadInvoiceData, loadRMAData, save
-
Methods inherited from class org.compiere.grid.CreateFrom
getGridTab, getM_Warehouse_ID, getOrderData, getTitle, isInitOK, loadOrderData, loadOrderData, setInitOK, setTitle
-
-
-
-
Field Detail
-
bPartnerLabel
protected Label bPartnerLabel
-
bPartnerField
protected WEditor bPartnerField
-
orderLabel
protected Label orderLabel
-
orderField
protected Listbox orderField
-
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
-
sameWarehouseCb
protected Checkbox sameWarehouseCb
-
locatorLabel
protected Label locatorLabel
-
locatorField
protected WLocatorEditor locatorField
-
upcLabel
protected Label upcLabel
-
upcField
protected WStringEditor upcField
-
-
Constructor Detail
-
WCreateFromShipmentUI
public WCreateFromShipmentUI(GridTab tab)
-
-
Method Detail
-
dynInit
public boolean dynInit() throws Exception
Dynamic Init- Overrides:
dynInit
in classCreateFromShipment
- Returns:
- true if initialized
- Throws:
Exception
- if Lookups cannot be initialized
-
onEvent
public void onEvent(org.zkoss.zk.ui.event.Event e) throws Exception
Action Listener- Specified by:
onEvent
in interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
- Parameters:
e
- event- Throws:
Exception
-
valueChange
public void valueChange(ValueChangeEvent e)
Change Listener- Specified by:
valueChange
in interfaceValueChangeListener
- Parameters:
e
- event
-
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 PBartner dependent Order/Invoice/Shipment Field.- Parameters:
C_BPartner_ID
- BPartnerforInvoice
- for invoice
-
initBPDetails
public void initBPDetails(int C_BPartner_ID)
-
loadOrder
protected void loadOrder(int C_Order_ID, boolean forInvoice, int M_Locator_ID)
Load Data - Order- Parameters:
C_Order_ID
- OrderforInvoice
- true if for invoice vs. delivery qtyM_Locator_ID
-
-
loadRMA
protected void loadRMA(int M_RMA_ID, int M_Locator_ID)
Load Data - RMA- Parameters:
M_RMA_ID
- RMAM_Locator_ID
-
-
loadInvoice
protected void loadInvoice(int C_Invoice_ID, int M_Locator_ID)
Load Data - Invoice- Parameters:
C_Invoice_ID
- InvoiceM_Locator_ID
-
-
loadTableOIS
protected void loadTableOIS(Vector<?> data)
Load Order/Invoice/Shipment data into Table- Parameters:
data
- data
-
showWindow
public void showWindow()
- Specified by:
showWindow
in interfaceICreateFrom
- Overrides:
showWindow
in classCreateFrom
-
closeWindow
public void closeWindow()
- Specified by:
closeWindow
in interfaceICreateFrom
- Overrides:
closeWindow
in classCreateFrom
-
getWindow
public Object getWindow()
- Specified by:
getWindow
in interfaceICreateFrom
-
setupColumns
protected void setupColumns(Grid parameterGrid)
-
onClientInfo
protected void onClientInfo()
-
-