|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ofbiz.manufacturing.bom.BOMNode
public class BOMNode
An ItemCoinfigurationNode represents a component in a bill of materials.
| Field Summary | |
|---|---|
protected Delegator |
delegator
|
protected LocalDispatcher |
dispatcher
|
static java.lang.String |
module
|
protected GenericValue |
userLogin
|
| Constructor Summary | |
|---|---|
BOMNode(GenericValue product,
LocalDispatcher dispatcher,
GenericValue userLogin)
|
|
BOMNode(java.lang.String productId,
Delegator delegator,
LocalDispatcher dispatcher,
GenericValue userLogin)
|
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
createManufacturingOrder(java.lang.String facilityId,
java.util.Date date,
java.lang.String workEffortName,
java.lang.String description,
java.lang.String routingId,
java.lang.String orderId,
java.lang.String orderItemSeqId,
java.lang.String shipGroupSeqId,
java.lang.String shipmentId,
boolean useSubstitute,
boolean ignoreSupplierProducts)
|
java.lang.String |
getBomTypeId()
Getter for property bomTypeId. |
java.util.List<BOMNode> |
getChildrenNodes()
Getter for property childrenNodes. |
int |
getDepth()
Getter for property depth. |
BOMNode |
getParentNode()
Getter for property parentNode. |
GenericValue |
getProduct()
|
GenericValue |
getProductAssoc()
Getter for property productAssoc. |
java.lang.String |
getProductForRules()
Getter for property productForRules. |
void |
getProductsInPackages(java.util.List<BOMNode> arr,
java.math.BigDecimal quantity,
int depth,
boolean excludeWIPs)
|
java.math.BigDecimal |
getQuantity()
Getter for property quantity. |
java.math.BigDecimal |
getQuantityMultiplier()
Getter for property quantityMultiplier. |
BOMNode |
getRootNode()
|
java.lang.String |
getRootProductForRules()
|
GenericValue |
getRuleApplied()
Getter for property ruleApplied. |
java.math.BigDecimal |
getScrapFactor()
Getter for property scrapFactor. |
java.sql.Timestamp |
getStartDate(java.lang.String facilityId,
java.sql.Timestamp requiredBydate,
boolean allNodes)
|
BOMNode |
getSubstitutedNode()
Getter for property substitutedNode. |
BOMTree |
getTree()
|
void |
isConfigured(java.util.List<BOMNode> arr)
|
boolean |
isManufactured()
By default, a part is manufactured if it has child nodes and it has NO SupplierProducts defined |
boolean |
isManufactured(boolean ignoreSupplierProducts)
A part is considered manufactured if it has child nodes AND unless ignoreSupplierProducts is set, if it also has no unexpired SupplierProducts defined |
boolean |
isVirtual()
|
boolean |
isWarehouseManaged(java.lang.String facilityId)
Returns false if the product of this BOM Node is of type "WIP" or if it has no ProductFacility records defined for it, meaning that no active stock targets are set for this product. |
protected void |
loadChildren(java.lang.String partBomTypeId,
java.util.Date inDate,
java.util.List<GenericValue> productFeatures,
int type)
|
protected void |
loadParents(java.lang.String partBomTypeId,
java.util.Date inDate,
java.util.List<GenericValue> productFeatures)
|
void |
print(java.util.List<BOMNode> arr,
java.math.BigDecimal quantity,
int depth,
boolean excludeWIPs)
|
void |
print(java.lang.StringBuffer sb,
java.math.BigDecimal quantity,
int depth)
|
void |
setChildrenNodes(java.util.List<BOMNode> childrenNodes)
Setter for property childrenNodes. |
void |
setParentNode(BOMNode parentNode)
Setter for property parentNode. |
void |
setProductAssoc(GenericValue productAssoc)
Setter for property productAssoc. |
void |
setProductForRules(java.lang.String productForRules)
Setter for property productForRules. |
void |
setQuantity(java.math.BigDecimal quantity)
|
void |
setQuantityMultiplier(java.math.BigDecimal quantityMultiplier)
Setter for property quantityMultiplier. |
void |
setRuleApplied(GenericValue ruleApplied)
Setter for property ruleApplied. |
void |
setScrapFactor(java.math.BigDecimal scrapFactor)
Setter for property scrapFactor. |
void |
setSubstitutedNode(BOMNode substitutedNode)
Setter for property substitutedNode. |
void |
setTree(BOMTree tree)
|
void |
sumQuantity(java.util.Map<java.lang.String,BOMNode> nodes)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String module
protected LocalDispatcher dispatcher
protected Delegator delegator
protected GenericValue userLogin
| Constructor Detail |
|---|
public BOMNode(GenericValue product,
LocalDispatcher dispatcher,
GenericValue userLogin)
public BOMNode(java.lang.String productId,
Delegator delegator,
LocalDispatcher dispatcher,
GenericValue userLogin)
throws GenericEntityException
GenericEntityException| Method Detail |
|---|
protected void loadChildren(java.lang.String partBomTypeId,
java.util.Date inDate,
java.util.List<GenericValue> productFeatures,
int type)
throws GenericEntityException
GenericEntityException
protected void loadParents(java.lang.String partBomTypeId,
java.util.Date inDate,
java.util.List<GenericValue> productFeatures)
throws GenericEntityException
GenericEntityExceptionpublic BOMNode getParentNode()
public BOMNode getRootNode()
public void setParentNode(BOMNode parentNode)
parentNode - New value of property parentNode.
public void print(java.lang.StringBuffer sb,
java.math.BigDecimal quantity,
int depth)
public void print(java.util.List<BOMNode> arr,
java.math.BigDecimal quantity,
int depth,
boolean excludeWIPs)
public void getProductsInPackages(java.util.List<BOMNode> arr,
java.math.BigDecimal quantity,
int depth,
boolean excludeWIPs)
public void sumQuantity(java.util.Map<java.lang.String,BOMNode> nodes)
public java.util.Map<java.lang.String,java.lang.Object> createManufacturingOrder(java.lang.String facilityId,
java.util.Date date,
java.lang.String workEffortName,
java.lang.String description,
java.lang.String routingId,
java.lang.String orderId,
java.lang.String orderItemSeqId,
java.lang.String shipGroupSeqId,
java.lang.String shipmentId,
boolean useSubstitute,
boolean ignoreSupplierProducts)
throws GenericEntityException
GenericEntityException
public java.sql.Timestamp getStartDate(java.lang.String facilityId,
java.sql.Timestamp requiredBydate,
boolean allNodes)
public boolean isWarehouseManaged(java.lang.String facilityId)
public boolean isManufactured(boolean ignoreSupplierProducts)
ignoreSupplierProducts -
public boolean isManufactured()
public boolean isVirtual()
public void isConfigured(java.util.List<BOMNode> arr)
public java.math.BigDecimal getQuantity()
public void setQuantity(java.math.BigDecimal quantity)
public int getDepth()
public GenericValue getProduct()
public BOMNode getSubstitutedNode()
public void setSubstitutedNode(BOMNode substitutedNode)
substitutedNode - New value of property substitutedNode.public java.lang.String getRootProductForRules()
public java.lang.String getProductForRules()
public void setProductForRules(java.lang.String productForRules)
productForRules - New value of property productForRules.public java.lang.String getBomTypeId()
public java.math.BigDecimal getQuantityMultiplier()
public void setQuantityMultiplier(java.math.BigDecimal quantityMultiplier)
quantityMultiplier - New value of property quantityMultiplier.public GenericValue getRuleApplied()
public void setRuleApplied(GenericValue ruleApplied)
ruleApplied - New value of property ruleApplied.public java.math.BigDecimal getScrapFactor()
public void setScrapFactor(java.math.BigDecimal scrapFactor)
scrapFactor - New value of property scrapFactor.public java.util.List<BOMNode> getChildrenNodes()
public void setChildrenNodes(java.util.List<BOMNode> childrenNodes)
childrenNodes - New value of property childrenNodes.public GenericValue getProductAssoc()
public void setProductAssoc(GenericValue productAssoc)
productAssoc - New value of property productAssoc.public void setTree(BOMTree tree)
public BOMTree getTree()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||