Remove unnecessary indirection
FEA: ItEr61OTS04PlanificacionHaciaAtras
This commit is contained in:
parent
356508f203
commit
8229fdf032
3 changed files with 1 additions and 11 deletions
|
|
@ -80,8 +80,6 @@ public interface IResourceAllocationModel extends INewAllocationsAdder {
|
|||
|
||||
Date getTaskEnd();
|
||||
|
||||
BigDecimal getTaskDuration();
|
||||
|
||||
void setWorkableDays(BigDecimal decimal);
|
||||
|
||||
}
|
||||
|
|
@ -271,7 +271,7 @@ public class ResourceAllocationController extends GenericForwardComposer {
|
|||
private void initTaskWorkableDays(org.navalplanner.business.planner.entities.Task task) {
|
||||
dbTaskWorkableDays.setValue(new BigDecimal(task.getDaysDuration()));
|
||||
plannedTaskEnd = resourceAllocationModel.getTaskEnd();
|
||||
dbTaskWorkableDays.setValue(resourceAllocationModel.getTaskDuration());
|
||||
dbTaskWorkableDays.setValue(new BigDecimal(task.getDaysDuration()));
|
||||
dbTaskWorkableDays.addEventListener(Events.ON_CHANGE, new EventListener() {
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -412,14 +412,6 @@ public class ResourceAllocationModel implements IResourceAllocationModel {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal getTaskDuration() {
|
||||
if (task == null) {
|
||||
return BigDecimal.ZERO;
|
||||
}
|
||||
return new BigDecimal(task.getDaysDuration());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setWorkableDays(BigDecimal decimal) {
|
||||
if (task != null) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue