ItEr44S11CUImportarTraballoRealizadoPorSubcontrataItEr43S14: Fixing problem in task properties window.

This commit is contained in:
Manuel Rego Casasnovas 2010-01-20 12:28:20 +01:00 committed by Javier Moran Rua
parent 34f9fdbbea
commit eef8667a73
2 changed files with 7 additions and 2 deletions

View file

@ -698,6 +698,7 @@ public abstract class OrderPlanningModel implements IOrderPlanningModel {
private void forceLoadOfWorkingHours(List<TaskElement> initial) {
for (TaskElement taskElement : initial) {
taskElement.getTaskSource().getTotalHours();
OrderElement orderElement = taskElement.getOrderElement();
if (orderElement != null) {
orderElement.getWorkHours();

View file

@ -188,8 +188,12 @@ public class TaskPropertiesController extends GenericForwardComposer {
.getStartConstraintType();
startConstraintTypes.setSelectedItemApi(findComboWithType(type));
startConstraintDate.setVisible(type.isAssociatedDateRequired());
startConstraintDate.setValue(task.getStartConstraint()
.getConstraintDate());
Date constraintDate = task.getStartConstraint()
.getConstraintDate();
if (constraintDate != null) {
startConstraintDate.setValue(constraintDate);
}
}
private Comboitem findComboWithType(StartConstraintType type) {