19 package org.turro.erp.task;
21 import java.util.Date;
22 import org.turro.erp.entity.OrderItem;
23 import org.turro.erp.entity.RequiredUsage;
24 import org.turro.erp.entity.Task;
25 import org.turro.util.CompareUtil;
31 public class Workload implements Comparable<Workload> {
36 private boolean checked =
true;
37 private double orderUnits;
40 this.requiredUsage = requiredUsage;
47 this.orderItem = orderItem;
66 this.checked = checked;
74 this.orderUnits = orderUnits;
88 if(orderItem !=
null) {
94 result = CompareUtil.compare(orderItem.
getId(), o.orderItem.
getId());
102 result = CompareUtil.compare(requiredUsage.
getId(), o.requiredUsage.
getId());
RequiredUsage getOwnerRequiredUsage()
boolean checkStatus(Date now)
int compareTo(PendingTask o)
void setChecked(boolean checked)
void setOrderUnits(double orderUnits)
int compareTo(Workload o)
Workload(RequiredUsage requiredUsage)
Workload(OrderItem orderItem)
RequiredUsage getRequiredUsage()