Package org.eevolution.model
Class MPPProductPlanning
java.lang.Object
org.compiere.model.PO
org.eevolution.model.X_PP_Product_Planning
org.eevolution.model.MPPProductPlanning
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparator<Object>
,I_Persistent
,Evaluatee
,I_PP_Product_Planning
Product Data Planning
- Author:
- Victor Perez www.e-evolution.com, Teo Sarca, www.arhipac.ro
- See Also:
-
Field Summary
Fields inherited from class org.eevolution.model.X_PP_Product_Planning
ORDER_POLICY_AD_Reference_ID, ORDER_POLICY_FixedOrderQuantity, ORDER_POLICY_Lot_For_Lot, ORDER_POLICY_PeriodOrderQuantity
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, LOCAL_TRX_PREFIX, p_ctx, p_info, UUID_NEW_RECORD, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
Fields inherited from interface org.eevolution.model.I_PP_Product_Planning
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_AD_Workflow_ID, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_DD_NetworkDistribution_ID, COLUMNNAME_DeliveryTime_Promised, COLUMNNAME_IsActive, COLUMNNAME_IsCreatePlan, COLUMNNAME_IsMPS, COLUMNNAME_IsPhantom, COLUMNNAME_IsRequiredDRP, COLUMNNAME_IsRequiredMRP, COLUMNNAME_M_Product_ID, COLUMNNAME_M_Warehouse_ID, COLUMNNAME_Order_Max, COLUMNNAME_Order_Min, COLUMNNAME_Order_Pack, COLUMNNAME_Order_Period, COLUMNNAME_Order_Policy, COLUMNNAME_Order_Qty, COLUMNNAME_Planner_ID, COLUMNNAME_PP_Product_BOM_ID, COLUMNNAME_PP_Product_Planning_ID, COLUMNNAME_PP_Product_Planning_UU, COLUMNNAME_S_Resource_ID, COLUMNNAME_SafetyStock, COLUMNNAME_TimeFence, COLUMNNAME_TransfertTime, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, COLUMNNAME_WorkingTime, COLUMNNAME_Yield, Model, Table_ID, Table_Name
-
Constructor Summary
ConstructorDescriptionMPPProductPlanning
(Properties ctx, int pp_product_planning_id, String trxname) Default ConstructorMPPProductPlanning
(Properties ctx, int PP_Product_Planning_ID, String trxName, String... virtualColumns) MPPProductPlanning
(Properties ctx, String PP_Product_Planning_UU, String trxName) UUID based ConstructorMPPProductPlanning
(Properties ctx, ResultSet rs, String trxname) Load Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
beforeSave
(boolean newRecord) Called before Save for Pre-Save Operation.
Default implementation is nop, to be implemented in sub-classes that needed it.void
dump()
Dump (with log level finest) where clause and column valuesstatic MPPProductPlanning
find
(Properties ctx, int AD_Org_ID, int M_Warehouse_ID, int S_Resource_ID, int M_Product_ID, String trxName) Find data planning, try find the specific planning data if do not found then try find data planning generalstatic MPPProductPlanning
get
(Properties ctx, int ad_client_id, int ad_org_id, int m_warehouse_id, int s_resource_id, int m_product_id, String trxname) Get Data Product Planningstatic MPPProductPlanning
get
(Properties ctx, int ad_client_id, int ad_org_id, int m_product_id, String trxName) Get Data Product Planning to Organizationint
static int
getPlantForWarehouse
(int M_Warehouse_ID) Get plant resource for warehouse.void
setC_BPartner_ID
(int C_BPartner_ID) Set SupplierMethods inherited from class org.eevolution.model.X_PP_Product_Planning
get_AccessLevel, getAD_Workflow_ID, getDD_NetworkDistribution, getDD_NetworkDistribution_ID, getDeliveryTime_Promised, getKeyNamePair, getM_Product, getM_Product_ID, getM_Warehouse, getM_Warehouse_ID, getOrder_Max, getOrder_Min, getOrder_Pack, getOrder_Period, getOrder_Policy, getOrder_Qty, getPlanner, getPlanner_ID, getPP_Product_BOM_ID, getPP_Product_Planning_ID, getPP_Product_Planning_UU, getS_Resource_ID, getSafetyStock, getTimeFence, getTransfertTime, getWorkingTime, getYield, initPO, isCreatePlan, isMPS, isPhantom, isRequiredDRP, isRequiredMRP, setAD_Workflow_ID, setDD_NetworkDistribution_ID, setDeliveryTime_Promised, setIsCreatePlan, setIsMPS, setIsPhantom, setIsRequiredDRP, setIsRequiredMRP, setM_Product_ID, setM_Warehouse_ID, setOrder_Max, setOrder_Min, setOrder_Pack, setOrder_Period, setOrder_Policy, setOrder_Qty, setPlanner_ID, setPP_Product_BOM_ID, setPP_Product_Planning_ID, setPP_Product_Planning_UU, setS_Resource_ID, setSafetyStock, setTimeFence, setTransfertTime, setWorkingTime, setYield, toString
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, buildInsertSQL, checkImmutable, clearCrossTenantSafe, clone, columnExists, columnExists, compare, copyPO, copyValues, copyValues, createAttachment, delete, delete, delete_Accounting, delete_Tree, deleteEx, deleteEx, dump, equals, get_Attribute, get_Attributes, 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_OptimisticLockingColumns, get_Table_ID, get_TableName, get_Translation, get_Translation, get_Translation, get_Translation, get_Translation, get_TrxName, get_UUID, get_Value, get_Value, get_ValueAsBoolean, get_ValueAsInt, get_ValueAsInt, get_ValueAsString, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, getUUIDColumnName, getUUIDColumnName, hashCode, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_Immutable, is_new, is_UseOptimisticLocking, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, loadByUU, loadComplete, loadDefaults, loadPO, loadSpecial, lock, makeImmutable, postDelete, retrieveIdOfParentValue, retrieveIdOfParentValue, save, save, saveCrossTenantSafe, saveCrossTenantSafeEx, saveCrossTenantSafeEx, saveEx, saveEx, saveNew_afterSetID, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_Attribute, set_ColumnUpdateable, set_CustomColumn, set_CustomColumnReturningBoolean, set_OptimisticLockingColumns, set_TrxName, set_TrxName, set_UseOptimisticLocking, set_Value, set_Value, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, set_ValueOfColumnReturningBoolean, set_ValueOfColumnReturningBoolean, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setCrossTenantSafe, setDoc, setDocWorkflowMgr, setIsActive, setProcessedOn, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, toInsertSQL, unlock, update_Tree, validForeignKeys
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Methods inherited from interface org.compiere.model.I_Persistent
save
Methods inherited from interface org.eevolution.model.I_PP_Product_Planning
getAD_Client_ID, getAD_Org_ID, getCreated, getCreatedBy, getUpdated, getUpdatedBy, isActive, setAD_Org_ID, setIsActive
-
Constructor Details
-
MPPProductPlanning
UUID based Constructor- Parameters:
ctx
- ContextPP_Product_Planning_UU
- UUID keytrxName
- Transaction
-
MPPProductPlanning
Default Constructor- Parameters:
ctx
- contextpp_product_planning_id
- idtrxname
-
-
MPPProductPlanning
Load Constructor- Parameters:
ctx
- contextrs
- result settrxname
- Transaction Name
-
MPPProductPlanning
public MPPProductPlanning(Properties ctx, int PP_Product_Planning_ID, String trxName, String... virtualColumns)
-
-
Method Details
-
get
public static MPPProductPlanning get(Properties ctx, int ad_client_id, int ad_org_id, int m_product_id, String trxName) Get Data Product Planning to Organization- Parameters:
ctx
- Contextad_org_id
- Organization IDm_product_id
- Product IDtrxName
- Transaction Name- Returns:
- MPPProductPlanning
-
get
public static MPPProductPlanning get(Properties ctx, int ad_client_id, int ad_org_id, int m_warehouse_id, int s_resource_id, int m_product_id, String trxname) Get Data Product Planning- Parameters:
ctx
- Contextad_client_id
- ID Organizationad_org_id
- ID Organizationm_warehouse_id
- Warehouses_resource_id
- Resource type Plantm_product_id
- ID Producttrxname
- Trx Name- Returns:
- MPPProductPlanning
-
find
public static MPPProductPlanning find(Properties ctx, int AD_Org_ID, int M_Warehouse_ID, int S_Resource_ID, int M_Product_ID, String trxName) Find data planning, try find the specific planning data if do not found then try find data planning general- Parameters:
ctx
- ContextAD_Org_ID
- Organization IDM_Warehouse_ID
- Resource IDS_Resource_ID
- Resource IDM_Product_ID
- Product IDtrxName
- Transaction Name- Returns:
- MPPProductPlanning Planning Data
-
getPlantForWarehouse
public static int getPlantForWarehouse(int M_Warehouse_ID) Get plant resource for warehouse. If more than one resource is found, first will be used.- Parameters:
M_Warehouse_ID
-- Returns:
- Plant_ID (S_Resource_ID)
-
beforeSave
protected boolean beforeSave(boolean newRecord) Description copied from class:PO
Called before Save for Pre-Save Operation.
Default implementation is nop, to be implemented in sub-classes that needed it.- Overrides:
beforeSave
in classPO
- Parameters:
newRecord
- true if it is a new record- Returns:
- true if record can be saved
-
getPP_Product_BOM
- Specified by:
getPP_Product_BOM
in interfaceI_PP_Product_Planning
- Overrides:
getPP_Product_BOM
in classX_PP_Product_Planning
-
getAD_Workflow
- Specified by:
getAD_Workflow
in interfaceI_PP_Product_Planning
- Overrides:
getAD_Workflow
in classX_PP_Product_Planning
-
getS_Resource
- Specified by:
getS_Resource
in interfaceI_PP_Product_Planning
- Overrides:
getS_Resource
in classX_PP_Product_Planning
-
setC_BPartner_ID
public void setC_BPartner_ID(int C_BPartner_ID) Set Supplier- Parameters:
C_BPartner_ID
-
-
getC_BPartner_ID
public int getC_BPartner_ID()- Returns:
- Supplier
-
dump
public void dump()Description copied from class:PO
Dump (with log level finest) where clause and column values
-