Package org.compiere.grid
Class CreateFrom
java.lang.Object
org.compiere.grid.CreateFrom
- All Implemented Interfaces:
ICreateFrom
- Direct Known Subclasses:
CreateFromBatch
,CreateFromInvoice
,CreateFromPackageShipment
,CreateFromRMA
,CreateFromShipment
Base class for Create From form (Create invoice lines from PO, Create shipment lines from PO, etc).
This have been replaced by Info Window based implementation in Core.
This have been replaced by Info Window based implementation in Core.
- Author:
- hengsin
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close dialogprotected abstract boolean
dynInit()
dynamic initialization, usually for loading of dataint
Get Warehouse from window's contextgetOrderData
(int C_Order_ID, boolean forInvoice) Load Order Line recordsgetOrderData
(int C_Order_ID, boolean forInvoice, boolean forCreditMemo) Get order line recordsgetTitle()
abstract void
info
(IMiniTable miniTable, IStatusBar statusBar) update status bar with info from miniTableboolean
isInitOK()
protected ArrayList<KeyNamePair>
loadOrderData
(int C_BPartner_ID, boolean forInvoice, boolean sameWarehouseOnly) Load BPartner related Orders.protected ArrayList<KeyNamePair>
loadOrderData
(int C_BPartner_ID, boolean forInvoice, boolean sameWarehouseOnly, boolean forCreditMemo) load order recordsabstract boolean
save
(IMiniTable miniTable, String trxName) save changesvoid
setInitOK
(boolean initOK) void
void
setTrxName
(String trxName) set optional trx namevoid
show dialogMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.compiere.grid.ICreateFrom
getWindow
-
Field Details
-
log
Logger -
p_order
Loaded Order -
m_rma
Loaded RMA -
isSOTrx
protected boolean isSOTrx
-
-
Constructor Details
-
CreateFrom
- Parameters:
gridTab
-
-
-
Method Details
-
dynInit
dynamic initialization, usually for loading of data- Returns:
- true if initialization success
- Throws:
Exception
-
info
update status bar with info from miniTable- Parameters:
miniTable
-statusBar
-
-
save
save changes- Parameters:
miniTable
-trxName
-- Returns:
- true if save successfully
-
isInitOK
public boolean isInitOK()- Specified by:
isInitOK
in interfaceICreateFrom
- Returns:
- true if initialization success
-
setInitOK
public void setInitOK(boolean initOK) - Parameters:
initOK
-
-
loadOrderData
protected ArrayList<KeyNamePair> loadOrderData(int C_BPartner_ID, boolean forInvoice, boolean sameWarehouseOnly) Load BPartner related Orders.- Parameters:
C_BPartner_ID
- BPartnerforInvoice
- for invoicesameWarehouseOnly
-- Returns:
- list of order records
-
loadOrderData
protected ArrayList<KeyNamePair> loadOrderData(int C_BPartner_ID, boolean forInvoice, boolean sameWarehouseOnly, boolean forCreditMemo) load order records- Parameters:
C_BPartner_ID
-forInvoice
-sameWarehouseOnly
-forCreditMemo
-- Returns:
- list of order records
-
getOrderData
Load Order Line records- Parameters:
C_Order_ID
- OrderforInvoice
- true if for invoice vs. delivery qty- Returns:
- list of order line records
-
getOrderData
protected Vector<Vector<Object>> getOrderData(int C_Order_ID, boolean forInvoice, boolean forCreditMemo) Get order line records- Parameters:
C_Order_ID
-forInvoice
-forCreditMemo
-- Returns:
- list of order line records
-
showWindow
public void showWindow()Description copied from interface:ICreateFrom
show dialog- Specified by:
showWindow
in interfaceICreateFrom
-
closeWindow
public void closeWindow()Description copied from interface:ICreateFrom
close dialog- Specified by:
closeWindow
in interfaceICreateFrom
-
getGridTab
- Returns:
GridTab
-
getM_Warehouse_ID
public int getM_Warehouse_ID()Get Warehouse from window's context- Returns:
- warehouse id
-
getTitle
- Returns:
- title
-
setTitle
- Parameters:
title
-
-
getTrxName
- Returns:
- trx name
-
setTrxName
set optional trx name- Parameters:
trxName
-
-