◆ ReferenceStatusWrapper()
org.turro.erp.workorder.ReferenceStatusWrapper.ReferenceStatusWrapper |
( |
OrderReference |
orderReference, |
|
|
Date |
now |
|
) |
| |
◆ canChangeTo()
boolean org.turro.erp.workorder.ReferenceStatusWrapper.canChangeTo |
( |
ReferenceStatus |
newStatus | ) |
|
Definition at line 69 of file ReferenceStatusWrapper.java.
70 if(current.equals(ReferenceStatus.REFERENCE_PLANNING)) {
72 ReferenceStatus.REFERENCE_READY,
73 ReferenceStatus.REFERENCE_ONWORK,
74 ReferenceStatus.REFERENCE_FINISHED).contains(newStatus) &&
75 taskCouldChange(newStatus);
76 }
else if(current.equals(ReferenceStatus.REFERENCE_READY)) {
78 ReferenceStatus.REFERENCE_ONWORK,
79 ReferenceStatus.REFERENCE_FINISHED).contains(newStatus) &&
80 taskCouldChange(newStatus);
81 }
else if(current.equals(ReferenceStatus.REFERENCE_ONWORK)) {
83 ReferenceStatus.REFERENCE_FINISHED).contains(newStatus) &&
84 taskCouldChange(newStatus);
◆ doChangeTo()
◆ doCheckStatus()
ReferenceStatus org.turro.erp.workorder.ReferenceStatusWrapper.doCheckStatus |
( |
Date |
now | ) |
|
|
protected |
Definition at line 46 of file ReferenceStatusWrapper.java.
47 ReferenceStatus rs = ReferenceStatus.REFERENCE_FINISHED;
49 rs = ReferenceStatus.REFERENCE_DELIVERED;
51 rs = ReferenceStatus.REFERENCE_PENDING;
53 for(Task task : orderReference.
getTasks()) {
54 TaskStatus ts = task.getStatus();
55 if(rs.getStatusOrder() > ts.getStatusOrder()) {
56 rs = ReferenceStatus.values()[ts.getStatusOrder()];
SortedSet< Task > getTasks()
boolean hasPendingBudget()
The documentation for this class was generated from the following file: