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
-
-
Field Summary
Fields Modifier and Type Field Description protected WEditor
bPartnerField
protected Label
bPartnerLabel
protected Listbox
orderField
protected Label
orderLabel
protected Listbox
rmaField
Combo box for selecting RMA documentprotected Label
rmaLabel
Label for the rma selectionprotected Listbox
shipmentField
protected Label
shipmentLabel
-
Fields inherited from class org.compiere.grid.CreateFrom
isSOTrx, m_rma, p_order
-
-
Constructor Summary
Constructors Constructor Description WCreateFromInvoiceUI(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
loadOrder(int C_Order_ID, boolean forInvoice)
Load Data - Orderprotected void
loadRMA(int M_RMA_ID)
protected void
loadShipment(int M_InOut_ID)
protected 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.CreateFromInvoice
configureMiniTable, getOISColumnNames, getRMAData, getShipmentData, info, loadRMAData, loadShipmentData, save
-
Methods inherited from class org.compiere.grid.CreateFrom
getGridTab, getM_Warehouse_ID, getOrderData, 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
-
shipmentLabel
protected Label shipmentLabel
-
shipmentField
protected Listbox shipmentField
-
rmaLabel
protected Label rmaLabel
Label for the rma selection
-
rmaField
protected Listbox rmaField
Combo box for selecting RMA document
-
-
Constructor Detail
-
WCreateFromInvoiceUI
public WCreateFromInvoiceUI(GridTab tab)
-
-
Method Detail
-
dynInit
public boolean dynInit() throws Exception
Dynamic Init- Overrides:
dynInit
in classCreateFromInvoice
- 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)
Load Data - Order- Parameters:
C_Order_ID
- OrderforInvoice
- true if for invoice vs. delivery qty
-
loadRMA
protected void loadRMA(int M_RMA_ID)
-
loadShipment
protected void loadShipment(int M_InOut_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()
-
-