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
Form to create shipment lines (M_InOutLine) from Purchase Order, Vendor Invoice or Customer RMA.
- Author:
- hengsin
-
Field Summary
Modifier and TypeFieldDescriptionprotected WEditor
Business partner parameter fieldprotected Label
protected Listbox
Vendor invoice parameter fieldprotected Label
protected WLocatorEditor
Locator parameter fieldprotected Label
protected Listbox
Purchase order parameter fieldprotected Label
protected Listbox
Combo box for selecting RMA documentprotected Label
Label for the rma selectionprotected Checkbox
True to show only documents from same warehouse with calling M_InOut recordprotected WStringEditor
Product UPC field.protected Label
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close dialogprotected boolean
dynInit()
dynamic initialization, usually for loading of dataprotected void
initBPartner
(boolean forInvoice) Load BPartner Fieldprotected void
initBPDetails
(int C_BPartner_ID) Load bpartner related details.protected void
initBPOrderDetails
(int C_BPartner_ID, boolean forInvoice) Load Orders for C_BPartner_IDprotected void
loadInvoice
(int C_Invoice_ID, int M_Locator_ID) Load Invoice Linesprotected void
loadOrder
(int C_Order_ID, boolean forInvoice, int M_Locator_ID) Load Order linesprotected void
loadRMA
(int M_RMA_ID, int M_Locator_ID) Load RMA linesprotected void
loadTableOIS
(Vector<?> data) Load data into list boxprotected void
handle onClientInfo eventvoid
onEvent
(org.zkoss.zk.ui.event.Event e) protected void
setupColumns
(Grid parameterGrid) Setup columns of parameter gridvoid
show dialogvoid
On value change eventprotected void
zkInit()
Layoutwindow
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, getTrxName, isInitOK, loadOrderData, loadOrderData, setInitOK, setTitle, setTrxName
-
Field Details
-
bPartnerLabel
-
bPartnerField
Business partner parameter field -
orderLabel
-
orderField
Purchase order parameter field -
rmaLabel
Label for the rma selection -
rmaField
Combo box for selecting RMA document -
invoiceLabel
-
invoiceField
Vendor invoice parameter field -
sameWarehouseCb
True to show only documents from same warehouse with calling M_InOut record -
locatorLabel
-
locatorField
Locator parameter field -
upcLabel
-
upcField
Product UPC field. Use to select product in data grid.
-
-
Constructor Details
-
WCreateFromShipmentUI
- Parameters:
tab
-
-
-
Method Details
-
dynInit
Description copied from class:CreateFrom
dynamic initialization, usually for loading of data- Overrides:
dynInit
in classCreateFromShipment
- Returns:
- true if initialization success
- Throws:
Exception
-
zkInit
Layoutwindow
- Throws:
Exception
-
onEvent
- Specified by:
onEvent
in interfaceorg.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
- Throws:
Exception
-
valueChange
Description copied from interface:ValueChangeListener
On value change event- Specified by:
valueChange
in interfaceValueChangeListener
-
initBPartner
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
- BPartnerforInvoice
- for invoice
-
initBPDetails
protected void initBPDetails(int C_BPartner_ID) Load bpartner related details.
CallinitBPInvoiceDetails(int)
andinitBPRMADetails(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
- OrderforInvoice
- true for invoice line, false for shipment lineM_Locator_ID
-
-
loadRMA
protected void loadRMA(int M_RMA_ID, int M_Locator_ID) Load RMA lines- Parameters:
M_RMA_ID
- RMAM_Locator_ID
-
-
loadInvoice
protected void loadInvoice(int C_Invoice_ID, int M_Locator_ID) Load Invoice Lines- Parameters:
C_Invoice_ID
- InvoiceM_Locator_ID
-
-
loadTableOIS
Load data into list box- Parameters:
data
- data
-
showWindow
public void showWindow()Description copied from interface:ICreateFrom
show dialog- Specified by:
showWindow
in interfaceICreateFrom
- Overrides:
showWindow
in classCreateFrom
-
closeWindow
public void closeWindow()Description copied from interface:ICreateFrom
close dialog- Specified by:
closeWindow
in interfaceICreateFrom
- Overrides:
closeWindow
in classCreateFrom
-
getWindow
- Specified by:
getWindow
in interfaceICreateFrom
- Returns:
- dialog object
-
setupColumns
Setup columns of parameter grid- Parameters:
parameterGrid
-
-
onClientInfo
protected void onClientInfo()handle onClientInfo event
-