Adempiere 3.5.2a

org.eevolution.model
Class MPPProductBOM

java.lang.Object
  extended by org.compiere.model.PO
      extended by org.eevolution.model.X_PP_Product_BOM
          extended by org.eevolution.model.MPPProductBOM
All Implemented Interfaces:
Serializable, Comparator, I_Persistent, Evaluatee, I_PP_Product_BOM

public class MPPProductBOM
extends X_PP_Product_BOM

Order Model. Please do not set DocStatus and C_DocType_ID directly. They are set in the process() method. Use DocAction and C_DocTypeTarget_ID instead.

Version:
$Id: MOrder.java,v 1.40 2004/04/13 04:19:30 vpj-cd Exp $
Author:
Victor Perez www.e-evolution.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.eevolution.model.X_PP_Product_BOM
BOMTYPE_AD_Reference_ID, BOMTYPE_CurrentActive, BOMTYPE_Future, BOMTYPE_Maintenance, BOMTYPE_Make_To_Order, BOMTYPE_Previous, BOMTYPE_PreviousSpare, BOMTYPE_ProductConfigure, BOMTYPE_Repair, BOMUSE_AD_Reference_ID, BOMUSE_Engineering, BOMUSE_Manufacturing, BOMUSE_Master, BOMUSE_Planning, BOMUSE_Quality
 
Fields inherited from class org.compiere.model.PO
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
 
Fields inherited from interface org.eevolution.model.I_PP_Product_BOM
accessLevel, COLUMNNAME_BOMType, COLUMNNAME_BOMUse, COLUMNNAME_C_UOM_ID, COLUMNNAME_CopyFrom, COLUMNNAME_Description, COLUMNNAME_DocumentNo, COLUMNNAME_Help, COLUMNNAME_M_AttributeSetInstance_ID, COLUMNNAME_M_ChangeNotice_ID, COLUMNNAME_M_Product_ID, COLUMNNAME_Name, COLUMNNAME_PP_Product_BOM_ID, COLUMNNAME_Processing, COLUMNNAME_Revision, COLUMNNAME_ValidFrom, COLUMNNAME_ValidTo, COLUMNNAME_Value, Model, Table_ID, Table_Name
 
Constructor Summary
MPPProductBOM(Properties ctx, int PP_Product_BOM_ID, String trxName)
          Default Constructor
MPPProductBOM(Properties ctx, ResultSet rs, String trxName)
          Load Constructor
 
Method Summary
static MPPProductBOM copyFrom(Properties ctx, int PP_Product_BOM_ID, Timestamp dateDoc)
          Create new Order by copying
static MPPProductBOM copyFrom(Properties ctx, MPPProductBOM from, boolean copyLines)
          BUG #?
 int copyLinesFrom(MPPProductBOM bom)
          Copy Lines From other BOM
static MPPProductBOM get(MProduct product, int ad_org_id, String trxName)
          Get BOM for Product
static MPPProductBOM get(MProduct product, int ad_org_id, Timestamp valid, String trxName)
          Get BOM with valid dates for Product
static int getBOMSearchKey(int M_Product_ID)
           
 MPPProductBOMLine[] getLines()
          Get BOM lines
 MPPProductBOMLine[] getLines(int PP_Product_BOM_ID)
          Get BOM Lines for Product BOM
 MPPProductBOMLine[] getLines(int pp_product_bom_id, Timestamp valid)
          Get BOM Lines valid date for Product BOM
 MPPProductBOMLine[] getLines(Timestamp valid)
          Get BOM lines
 void setClientOrg(int AD_Client_ID, int AD_Org_ID)
          Overwrite Client/Org if required
 void setLines(List lines)
           
 String toString()
          String Representation
 
Methods inherited from class org.eevolution.model.X_PP_Product_BOM
get_AccessLevel, getBOMType, getBOMUse, getC_UOM_ID, getC_UOM, getCopyFrom, getDescription, getDocumentNo, getHelp, getKeyNamePair, getM_AttributeSetInstance_ID, getM_ChangeNotice_ID, getM_ChangeNotice, getM_Product_ID, getM_Product, getName, getPP_Product_BOM_ID, getRevision, getValidFrom, getValidTo, getValue, initPO, isProcessing, setBOMType, setBOMUse, setC_UOM_ID, setCopyFrom, setDescription, setDocumentNo, setHelp, setM_AttributeSetInstance_ID, setM_ChangeNotice_ID, setM_Product_ID, setName, setPP_Product_BOM_ID, setProcessing, setRevision, setValidFrom, setValidTo, setValue
 
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, beforeSave, compare, copyValues, copyValues, createAttachment, delete_Accounting, delete_Tree, delete, delete, deleteEx, deleteEx, dump, dump, equals, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_HashMap, get_ID, get_IDOld, get_KeyColumns, get_Logger, get_Table_ID, get_TableName, get_Translation, get_TrxName, get_Value, get_Value, get_ValueAsInt, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_new, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, loadComplete, loadDefaults, loadSpecial, lock, save, save, saveEx, saveEx, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_ColumnUpdateable, set_CustomColumn, set_TrxName, set_TrxName, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, setAD_Client_ID, setAD_Org_ID, setClientOrg, setDoc, setDocWorkflowMgr, setIsActive, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, unlock
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.compiere.model.I_Persistent
save
 

Constructor Detail

MPPProductBOM

public MPPProductBOM(Properties ctx,
                     int PP_Product_BOM_ID,
                     String trxName)
Default Constructor

Parameters:
ctx - context
C_Order_ID - order to load, (0 create new order)

MPPProductBOM

public MPPProductBOM(Properties ctx,
                     ResultSet rs,
                     String trxName)
Load Constructor

Parameters:
ctx - context
rs - result set record
Method Detail

setClientOrg

public void setClientOrg(int AD_Client_ID,
                         int AD_Org_ID)
Overwrite Client/Org if required

Overrides:
setClientOrg in class PO
Parameters:
AD_Client_ID - client
AD_Org_ID - org

copyLinesFrom

public int copyLinesFrom(MPPProductBOM bom)
Copy Lines From other BOM

Parameters:
order - order
Returns:
number of lines copied

setLines

public void setLines(List lines)

copyFrom

public static MPPProductBOM copyFrom(Properties ctx,
                                     MPPProductBOM from,
                                     boolean copyLines)
BUG #? - Does not persist objects!

Parameters:
ctx -
from -
copyLines -
Returns:

toString

public String toString()
String Representation

Overrides:
toString in class X_PP_Product_BOM
Returns:
info

get

public static MPPProductBOM get(MProduct product,
                                int ad_org_id,
                                String trxName)
Get BOM for Product

Parameters:
product - product
ad_org_id - Organization ID
trxName - Transaction Name
Returns:
BOM

get

public static MPPProductBOM get(MProduct product,
                                int ad_org_id,
                                Timestamp valid,
                                String trxName)
Get BOM with valid dates for Product

Parameters:
product - product
ad_org_id - Organization ID
valid - Date to Validate
trxName - Transaction Name
Returns:
BOM

getLines

public MPPProductBOMLine[] getLines()
Get BOM lines

Returns:
Array of BOM Lines

getLines

public MPPProductBOMLine[] getLines(Timestamp valid)
Get BOM lines

Parameters:
valid - date to validate
Returns:
Array of BOM Lines

getLines

public MPPProductBOMLine[] getLines(int pp_product_bom_id,
                                    Timestamp valid)
Get BOM Lines valid date for Product BOM

Parameters:
pp_product_bom_id - BOM ID
valid - Date to Validate
Returns:
BOM Lines

getLines

public MPPProductBOMLine[] getLines(int PP_Product_BOM_ID)
Get BOM Lines for Product BOM

Parameters:
pp_product_bom_id - BOM ID
Returns:
BOM Lines

copyFrom

public static MPPProductBOM copyFrom(Properties ctx,
                                     int PP_Product_BOM_ID,
                                     Timestamp dateDoc)
Create new Order by copying

Parameters:
ctx - context
C_Order_ID - invoice
dateDoc - date of the document date
Returns:
Order

getBOMSearchKey

public static int getBOMSearchKey(int M_Product_ID)

Adempiere 3.5.2a

Adempiere® is a registered trademark of ADempiere Business Inc. ©2004-2008 HumanFlash.com All rights reserved.