Prevent moving task with manual allocation
FEA: ItEr75S23FixAllocationModel
This commit is contained in:
parent
720e3adc65
commit
8ca3c269e9
6 changed files with 21 additions and 2 deletions
|
|
@ -262,4 +262,9 @@ public class DefaultFundamentalProperties implements ITaskFundamentalProperties
|
|||
return "";
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isManualAnyAllocation() {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -105,4 +105,6 @@ public interface ITaskFundamentalProperties {
|
|||
|
||||
String updateTooltipText(String progressType);
|
||||
|
||||
boolean isManualAnyAllocation();
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -454,4 +454,9 @@ public abstract class Task implements ITaskFundamentalProperties {
|
|||
return LocalDate.fromDateFields(getBeginDate().toDayRoundedDate());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isManualAnyAllocation() {
|
||||
return fundamentalProperties.isManualAnyAllocation();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,7 +55,8 @@ public class TaskLeaf extends Task {
|
|||
|
||||
@Override
|
||||
public boolean canBeExplicitlyMoved() {
|
||||
return !(isSubcontracted() || isLimitingAndHasDayAssignments() || hasConsolidations());
|
||||
return !(isSubcontracted() || isLimitingAndHasDayAssignments()
|
||||
|| hasConsolidations() || isManualAnyAllocation());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -883,7 +883,7 @@ public class Task extends TaskElement implements ITaskPositionConstrained {
|
|||
|
||||
@Override
|
||||
public boolean canBeExplicitlyResized() {
|
||||
return canBeResized() && !isSubcontracted();
|
||||
return canBeResized() && !isSubcontracted() && !isManualAnyAllocation();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -1051,6 +1051,12 @@ public class TaskElementAdapter {
|
|||
|| taskElement.hasConsolidations();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isManualAnyAllocation() {
|
||||
return taskElement.isTask()
|
||||
&& ((Task) taskElement).isManualAnyAllocation();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue