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
Author:
hengsin
  • Field Details

    • log

      protected transient CLogger log
      Logger
    • p_order

      protected MOrder p_order
      Loaded Order
    • m_rma

      protected MRMA m_rma
      Loaded RMA
    • isSOTrx

      protected boolean isSOTrx
  • Constructor Details

    • CreateFrom

      public CreateFrom(GridTab gridTab)
      Parameters:
      gridTab -
  • Method Details

    • dynInit

      protected abstract boolean dynInit() throws Exception
      dynamic initialization, usually for loading of data
      Returns:
      true if initialization success
      Throws:
      Exception
    • info

      public abstract void info(IMiniTable miniTable, IStatusBar statusBar)
      update status bar with info from miniTable
      Parameters:
      miniTable -
      statusBar -
    • save

      public abstract boolean save(IMiniTable miniTable, String trxName)
      save changes
      Parameters:
      miniTable -
      trxName -
      Returns:
      true if save successfully
    • isInitOK

      public boolean isInitOK()
      Specified by:
      isInitOK in interface ICreateFrom
      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 - BPartner
      forInvoice - for invoice
      sameWarehouseOnly -
      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

      protected Vector<Vector<Object>> getOrderData(int C_Order_ID, boolean forInvoice)
      Load Order Line records
      Parameters:
      C_Order_ID - Order
      forInvoice - 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 interface ICreateFrom
    • closeWindow

      public void closeWindow()
      Description copied from interface: ICreateFrom
      close dialog
      Specified by:
      closeWindow in interface ICreateFrom
    • getGridTab

      public GridTab getGridTab()
      Returns:
      GridTab
    • getM_Warehouse_ID

      public int getM_Warehouse_ID()
      Get Warehouse from window's context
      Returns:
      warehouse id
    • getTitle

      public String getTitle()
      Returns:
      title
    • setTitle

      public void setTitle(String title)
      Parameters:
      title -
    • getTrxName

      public String getTrxName()
      Returns:
      trx name
    • setTrxName

      public void setTrxName(String trxName)
      set optional trx name
      Parameters:
      trxName -