19 package org.turro.erp.task;
21 import org.turro.erp.entity.OrderItem;
22 import org.turro.erp.entity.OrderReference;
23 import org.turro.erp.entity.RequiredUsage;
24 import org.turro.erp.entity.Task;
25 import org.turro.erp.entity.WorkOrder;
26 import org.turro.util.CompareUtil;
34 private int preferredOrder;
38 this.preferredOrder = preferredOrder;
42 return preferredOrder;
50 requiredUsage2 = orderItem2.getRequiredUsage();
52 task2 = requiredUsage2.getTask();
54 orderReference2 = task2.getOrderReference();
56 workOrder2 = orderReference2.getWorkOrder();
57 int result = CompareUtil.compare(workOrder1.
getWorkOrderId(), workOrder2.getWorkOrderId());
59 result = CompareUtil.compare(workOrder1.
getId(), workOrder2.getId());
62 result = CompareUtil.compare(orderReference1.
getId(), orderReference2.getId());
65 result = CompareUtil.compare(task1.
getId(), task2.getId());
68 result = CompareUtil.compare(requiredUsage1.
getId(), requiredUsage2.getId());
71 result = super.compareTo(o);
RequiredUsage getRequiredUsage()
OrderReference getOrderReference()
WorksheetItem(OrderItem orderItem, int preferredOrder)
int compareTo(Workload o)