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
public abstract class CreateFrom extends Object implements ICreateFrom
-
-
Constructor Summary
Constructors Constructor Description CreateFrom(GridTab gridTab)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
closeWindow()
abstract boolean
dynInit()
GridTab
getGridTab()
int
getM_Warehouse_ID()
Get Warehouse from window's contextprotected Vector<Vector<Object>>
getOrderData(int C_Order_ID, boolean forInvoice)
Load Data - Orderprotected Vector<Vector<Object>>
getOrderData(int C_Order_ID, boolean forInvoice, boolean forCreditMemo)
String
getTitle()
abstract void
info(IMiniTable miniTable, IStatusBar statusBar)
boolean
isInitOK()
Init OK to be able to make changes?protected ArrayList<KeyNamePair>
loadOrderData(int C_BPartner_ID, boolean forInvoice, boolean sameWarehouseOnly)
Load PBartner dependent Order/Invoice/Shipment Field.protected ArrayList<KeyNamePair>
loadOrderData(int C_BPartner_ID, boolean forInvoice, boolean sameWarehouseOnly, boolean forCreditMemo)
abstract boolean
save(IMiniTable miniTable, String trxName)
void
setInitOK(boolean initOK)
void
setTitle(String title)
void
showWindow()
-
Methods 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
-
-
-
-
Constructor Detail
-
CreateFrom
public CreateFrom(GridTab gridTab)
-
-
Method Detail
-
info
public abstract void info(IMiniTable miniTable, IStatusBar statusBar)
-
save
public abstract boolean save(IMiniTable miniTable, String trxName)
-
isInitOK
public boolean isInitOK()
Init OK to be able to make changes?- Specified by:
isInitOK
in interfaceICreateFrom
- Returns:
- on if initialized
-
setInitOK
public void setInitOK(boolean initOK)
-
loadOrderData
protected ArrayList<KeyNamePair> loadOrderData(int C_BPartner_ID, boolean forInvoice, boolean sameWarehouseOnly)
Load PBartner dependent Order/Invoice/Shipment Field.- Parameters:
C_BPartner_ID
- BPartnerforInvoice
- for invoice
-
loadOrderData
protected ArrayList<KeyNamePair> loadOrderData(int C_BPartner_ID, boolean forInvoice, boolean sameWarehouseOnly, boolean forCreditMemo)
-
getOrderData
protected Vector<Vector<Object>> getOrderData(int C_Order_ID, boolean forInvoice)
Load Data - Order- Parameters:
C_Order_ID
- OrderforInvoice
- true if for invoice vs. delivery qty
-
getOrderData
protected Vector<Vector<Object>> getOrderData(int C_Order_ID, boolean forInvoice, boolean forCreditMemo)
-
showWindow
public void showWindow()
- Specified by:
showWindow
in interfaceICreateFrom
-
closeWindow
public void closeWindow()
- Specified by:
closeWindow
in interfaceICreateFrom
-
getGridTab
public GridTab getGridTab()
-
getM_Warehouse_ID
public int getM_Warehouse_ID()
Get Warehouse from window's context- Returns:
- warehouse id
-
getTitle
public String getTitle()
-
setTitle
public void setTitle(String title)
-
-