use of net.sourceforge.processdash.ev.EVTaskDependency in project processdash by dtuma.
the class EVWeekReport method printUpcomingDependencies.
protected void printUpcomingDependencies(DependencyForCoord coord, TableModel tasks, boolean showAssignedTo, boolean hideNames, boolean showMilestones, boolean showLabels, int pos) {
boolean isExcel = isExportingToExcel();
EVTaskDependency d = coord.d.clone();
out.print("<div class='expanded'>");
printExpansionIcon();
out.println(encodeHTML(d.getDisplayName()));
if (!isExcel) {
out.print("<span class='hideIfExpanded'>");
out.print(TaskDependencyAnalyzer.getBriefDetails(d, TaskDependencyAnalyzer.HTML_SEP, hideNames));
out.println("</span>");
}
out.println("<div class='dependDetail hideIfCollapsed'>");
interpOut("<b>${Columns.Percent_Complete_Tooltip}:</b> ");
out.println(formatPercent(d.getPercentComplete()));
interpOut("<br><b>${Columns.Projected_Date}:</b> ");
out.println(encodeHTML(d.getProjectedDate()));
if (!hideNames) {
interpOut("<br><b>${Columns.Assigned_To}:</b> ");
out.println(encodeHTML(d.getAssignedTo()));
}
// Now, print a table of the dependent tasks.
interpOut("<table border=1 class='sortable' id='$$$_dep_" + pos + "'><tr>" + "<td class=header>${Columns.Needed_For}</td>" + "<td class=header>${Columns.Projected_Date}</td>");
if (showMilestones)
interpOut("<td class=header>${Columns.Milestone}</td>");
if (showLabels)
interpOut("<td class=header>${Columns.Labels}</td>");
if (showAssignedTo)
interpOut("<td class=header>${Columns.Needed_By}</td>");
out.println("</tr>");
Collections.sort(coord.matchingTasks);
for (RowNumWithDate taskMatch : coord.matchingTasks) {
int i = taskMatch.rowNumber;
out.print("<tr><td class='left'>");
out.print(encodeHTML(tasks.getValueAt(i, EVTaskList.TASK_COLUMN)));
out.print("</td>");
d.loadParentDate(tasks.getValueAt(i, EVTaskList.EVTASK_NODE_COLUMN));
printDateCell(d.getParentDate(), TaskDependencyAnalyzer.HTML_INCOMPLETE_MISORD_IND, d.isMisordered());
if (showMilestones) {
out.print("<td class='left'>");
out.print(encodeHTML(tasks.getValueAt(i, EVTaskList.MILESTONE_COLUMN)));
out.print("</td>");
}
if (showLabels) {
out.print("<td class='left'>");
out.print(encodeHTML(tasks.getValueAt(i, EVTaskList.LABELS_COLUMN)));
out.print("</td>");
}
if (showAssignedTo) {
out.print("<td class='left'>");
out.print(encodeHTML(tasks.getValueAt(i, EVTaskList.ASSIGNED_TO_COLUMN)));
out.print("</td>");
}
out.println("</tr>");
}
out.println("</table></div></div>");
out.println("<br>");
}
Aggregations