ItEr42S15SoporteImpresionMultiplesPaxinasItEr41S18: Shown indirect labels in planner tasks and taskgroups fixes

This commit is contained in:
Lorenzo Tilve 2010-01-07 10:16:30 +01:00 committed by Javier Moran Rua
parent 47283d59d8
commit 5a6fb6b1fe
3 changed files with 33 additions and 4 deletions

View file

@ -7,6 +7,8 @@
<div id="row${self.uuid}" class="row" z.valor="boxid="${self.uuid}">
<div id="${self.uuid}" z.type="ganttz.taskcontainer.TaskContainer" idTask="${self.id}"
z.autoz="true"${self.outerAttrs}" class="taskgroup">
<div class="task-labels">${self.labelsText}</div>
<div class="task-resources">${self.resourcesText}</div>
<div class="taskcontainer_completion">
<div class="completion"></div>
<div class="completion2"></div>

View file

@ -378,12 +378,31 @@ public class TaskElementAdapter implements ITaskElementAdapter {
});
}
private Set<Label> getLabelsFromElementAndPredecesors(
OrderElement order) {
if (order != null) {
if (order.getParent() == null) {
return order.getLabels();
} else {
HashSet<Label> labels = new HashSet<Label>(order
.getLabels());
labels.addAll(getLabelsFromElementAndPredecesors(order
.getParent()));
return labels;
}
}
return new HashSet<Label>();
}
private String buildLabelsText() {
StringBuilder result = new StringBuilder();
if (taskElement.getOrderElement() != null) {
Set<Label> labels = taskElement
.getOrderElement().getLabels();
Set<Label> labels = getLabelsFromElementAndPredecesors(taskElement
.getOrderElement());
if (!labels.isEmpty()) {
for (Label label : labels) {

View file

@ -182,7 +182,7 @@ min-width:200px;
.taskgroup_start,.taskgroup_end {
position: relative;
top: -10px; /* zkTasklist.HEIGHT_PER_TASK */
top: -12px; /* zkTasklist.HEIGHT_PER_TASK */
}
.row span {
@ -199,6 +199,7 @@ min-width:200px;
height: 10px;
width: 10px;
float: left;
clear: both;
}
.taskgroup_end {
@ -206,7 +207,9 @@ min-width:200px;
url("/navalplanner-webapp/zkau/web/ganttz/img/group_right.png");
height: 10px;
width: 10px;
float: right;
position:absolute;
right:0;
top:-1px;
}
.taskgroup,.row .expanded {
@ -217,6 +220,11 @@ min-width:200px;
background-color: transparent !important;
}
.box.expanded, .box.closed {
overflow:hidden;
padding-right:2px;
}
.milestone_end {
background-image:
url("/navalplanner-webapp/zkau/web/ganttz/img/milestone.png");