◆ WorkOrderClone()
org.turro.erp.clone.WorkOrderClone.WorkOrderClone |
( |
WorkOrder |
workOrder, |
|
|
ClonedEntitySet |
entities |
|
) |
| |
Definition at line 41 of file WorkOrderClone.java.
42 super(workOrder.getId(), workOrder, entities);
43 description = workOrder.getDescription();
44 supervised = workOrder.getSupervised();
45 for(OrderReference orderReference : workOrder.getOrderReferences()) {
46 if(orderReference.getId() > 0) {
47 OrderReferenceClone or =
new OrderReferenceClone(orderReference, entities);
48 or.setWorkOrder(
this);
49 orderReferences.add((OrderReferenceClone) entities.addClonedEntity(or));
◆ applyChildren()
void org.turro.erp.clone.WorkOrderClone.applyChildren |
( |
WorkOrder |
entity | ) |
|
|
protected |
Definition at line 74 of file WorkOrderClone.java.
75 for(OrderReferenceClone orderReferenceClone : orderReferences) {
76 orderReferenceClone.applyChanges();
◆ applyData()
void org.turro.erp.clone.WorkOrderClone.applyData |
( |
WorkOrder |
entity | ) |
|
|
protected |
Definition at line 68 of file WorkOrderClone.java.
69 entity.setDescription(description);
70 entity.setSupervised(supervised);
◆ assignEntities()
void org.turro.erp.clone.WorkOrderClone.assignEntities |
( |
| ) |
|
|
protected |
Definition at line 81 of file WorkOrderClone.java.
82 for(OrderReferenceClone orderReferenceClone : orderReferences) {
83 orderReferenceClone.assignEntities();
◆ children()
Collection org.turro.erp.clone.WorkOrderClone.children |
( |
| ) |
|
◆ createClone()
WorkOrder org.turro.erp.clone.WorkOrderClone.createClone |
( |
| ) |
|
|
protected |
Definition at line 55 of file WorkOrderClone.java.
56 WorkOrder workOrder =
new WorkOrder();
58 for(OrderReferenceClone orderReferenceClone : orderReferences) {
59 orderReferenceClone.generateClone();
60 OrderReference orderReference = orderReferenceClone.getClone();
61 orderReference.setWorkOrder(workOrder);
62 workOrder.getOrderReferences().add(orderReference);
void applyData(WorkOrder entity)
◆ parent()
Object org.turro.erp.clone.WorkOrderClone.parent |
( |
| ) |
|
The documentation for this class was generated from the following file: