19 package org.turro.erp.clone;
21 import java.util.Collection;
22 import java.util.Date;
23 import org.turro.clone.ClonedEntity;
24 import org.turro.clone.ClonedEntitySet;
25 import org.turro.erp.entity.AptitudeDegree;
26 import org.turro.erp.entity.PurchaseMode;
27 import org.turro.erp.entity.RequiredUsage;
28 import org.turro.hierarchy.Hierarchical;
36 private double units, cost, price, dedication, purchaseLag;
37 private long providerId, providerProductId, productId, lineTypeId, contractPreferenceId, viewId;
38 private boolean providerFixed, costMaximum, canChange, representHours;
39 private String productDescription;
40 private String description;
42 private org.turro.erp.entity.HumanResource humanResource;
43 private org.turro.erp.entity.Resource resource;
47 private Date purchaseDate;
51 super(requiredUsage.
getId(), requiredUsage, entities);
82 units = units * ratio;
125 if(purchaseTask ==
null) {
126 purchaseTask =
new TaskClone(entity.getPurchaseTask(), entities);
127 }
else if(getClone() !=
null) {
128 getClone().setPurchaseTask(purchaseTask.getClone());
void applyData(RequiredUsage entity)
void setUnitRatio(double ratio)
void setTask(TaskClone task)
RequiredUsage createClone()
RequiredUsageClone(RequiredUsage requiredUsage, ClonedEntitySet entities)
void applyChildren(RequiredUsage entity)
void setHumanResource(HumanResource resource)
AptitudeDegree getAptitudeDegree()
void setResource(Resource resource)
PurchaseMode getPurchaseMode()
void setCostMaximum(boolean costMaximum)
void setProviderFixed(boolean providerFixed)
void setPurchaseDate(Date purchaseDate)
long getProviderProductId()
void setProductId(long productId)
void setPurchaseMode(PurchaseMode purchaseMode)
void setUnits(double units)
void setAptitudeAssesment(AptitudeDegree aptitudeAssesment)
void setProductDescription(String productDescription)
void setPrice(double price)
HumanResource getHumanResource()
void setProviderProductId(long providerProductId)
void setProviderId(long providerId)
AptitudeDegree getAptitudeAssesment()
void setDedication(double dedication)
void setPurchaseLag(double purchaseLag)
boolean isProviderFixed()
boolean isRepresentHours()
void setDescription(String description)
void setContractPreferenceId(long contractPreferenceId)
String getProductDescription()
void setAptitudeDegree(AptitudeDegree aptitudeDegree)
void setCost(double cost)
long getContractPreferenceId()
void setLineTypeId(long lineTypeId)
void setViewId(long viewId)
void setRepresentHours(boolean representHours)
void setCanChange(boolean canChange)