Package org.adempiere.webui.apps.form
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 Summary
Modifier and TypeFieldDescriptionprotected WEditor
Business partner parameter fieldprotected Label
protected Listbox
Orders parameter fieldprotected Label
protected Listbox
Combo box for selecting RMA documentprotected Label
Label for the rma selectionprotected Listbox
Shipments parameter fieldprotected Label
Fields inherited from class org.compiere.grid.CreateFrom
isSOTrx, m_rma, p_order
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close dialogboolean
dynInit()
dynamic initialization, usually for loading of dataprotected void
initBPartner
(boolean forInvoice) Load BPartner Fieldprotected void
initBPOrderDetails
(int C_BPartner_ID, boolean forInvoice) Load BPartner dependent Order/Shipment/RMA Field.protected void
loadOrder
(int C_Order_ID, boolean forInvoice) Load Order Line records.protected void
loadRMA
(int M_RMA_ID) load RMA Line recordsprotected void
loadShipment
(int M_InOut_ID) load shipment line recordsprotected 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 for parameterGridvoid
show dialogvoid
On value change eventprotected void
zkInit()
Layoutwindow
Methods inherited from class org.compiere.grid.CreateFromInvoice
configureMiniTable, getOISColumnNames, getRMAData, getShipmentData, info, loadRMAData, loadShipmentData, save
Methods inherited from class org.compiere.grid.CreateFrom
getGridTab, getM_Warehouse_ID, getOrderData, getOrderData, getTitle, getTrxName, isInitOK, loadOrderData, loadOrderData, setInitOK, setTitle, setTrxName
-
Field Details
-
bPartnerLabel
-
bPartnerField
Business partner parameter field -
orderLabel
-
orderField
Orders parameter field -
shipmentLabel
-
shipmentField
Shipments parameter field -
rmaLabel
Label for the rma selection -
rmaField
Combo box for selecting RMA document
-
-
Constructor Details
-
WCreateFromInvoiceUI
- Parameters:
tab
-
-
-
Method Details
-
dynInit
Description copied from class:CreateFrom
dynamic initialization, usually for loading of data- Overrides:
dynInit
in classCreateFromInvoice
- 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 BPartner dependent Order/Shipment/RMA Field.- Parameters:
C_BPartner_ID
- BPartnerforInvoice
- for invoice
-
loadOrder
protected void loadOrder(int C_Order_ID, boolean forInvoice) Load Order Line records.- Parameters:
C_Order_ID
- OrderforInvoice
- 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
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 for parameterGrid- Parameters:
parameterGrid
-
-
onClientInfo
protected void onClientInfo()handle onClientInfo event
-