#if ($isPrinting)
#parse("scrollingtableheader.vm")
#end
#foreach ($row in $table)
#set ($projectCurrencyCode = $row.getCurrency())
#set ($projIndex = $velocityCount - 1)
#set ($mainIndex = 1)
#if ($row.getSubscribed().equals("Yes"))
#set ($tracking = "_y")
#set ($trackingImg = "../themes/$theme/images/checkmark.gif")
#set ($alt = "$currentlytrackingthis_text")
#else
#set ($tracking = "_n")
#set ($trackingImg = "../themes/$theme/images/inactive.png")
#set ($alt = "")
#end
#if ($row.getCopy().equals("Yes"))
#set ($canCopy = "_c")
#else
#set ($canCopy = "")
#end
#if ($row.getDelete().equals("Yes"))
#set ($canDelete = "_d")
#else
#set ($canDelete = "")
#end
#if ($row.getHighLight().equals("Project"))
#set ($canSetViewed = "_v")
#else
#set ($canSetViewed = "")
#end
#set ($summaryVector = $row.getSummaryVector())
#set ($questionIndex = 0)
#foreach ($legaSummary in $summaryVector)
#set ( $summaryValue = $legaSummary.getSummary())
#set ( $latestResponse = $legaSummary.getLatestResponse())
#set ( $summaryColumn = $sortedColumns.get($questionIndex) )
#set ( $formatting = $summaryColumn.getFormatting() )
#set ( $computed = $summaryColumn.getProjectInfoComputed() )
#set ( $datatype = $summaryColumn.getDataType() )
#set ( $valuetype = $summaryColumn.getType() )
#set ( $qid = $summaryColumn.getLegaQuestionId() )
#if ( $valuetype.equals("Cost") )
#set ( $typeclass = "costBodyElement" )
#elseif ( $valuetype.equals("Benefit") )
#set ( $typeclass = "benefitBodyElement" )
#else
#set ( $typeclass = "tableBodyContentElement" )
#end
#if ($qid.startsWith("COREDATA_"))
#set ($cellData = $summaryValue)
#set ($alignData = $stringAlign)
#set ($menuID = "")
#set ($callBackFunction = "#")
#if ($qid.equals("COREDATA_GanttView"))
#set ($GanttView = $legaSummary.getGanttView())
#set ( $startDate = $CommonFunctions.formatDate($currentUserId,$GanttView.getStartDate()) )
#set ( $targetDate = $CommonFunctions.formatDate($currentUserId,$GanttView.getTargetDate()) )
#set ( $statusName = $CommonFunctions.getStatusName($GanttView.getStatusId()) )
#set ($startDateStyle = "tableBodyContentElement")
#set ($targetDateStyle = "tableBodyContentElement")
#set ($startDateLabel = $CommonFunctions.getDisplayLabel("StartDate"))
#set ($completionDateLabel = $CommonFunctions.getDisplayLabel("CompletionDate"))
#set ($isProject = true)
#parse("ganttrowcontent.vm")
#else
#set ($isClickable = true)
#if ($qid.equals("COREDATA_Project"))
#set ($callBackFunction = "showParticipationDialog")
#set ($menuID = "investment_$row.getId()$canCopy$tracking$canDelete$canSetViewed")
#if ($row.getHighLight().indexOf("Project") != -1)
#set ($typeclass = "tableBodyContentElementChange")
#else
#set ($typeclass = "tableBodyContentElement")
#end
#elseif ($qid.equals("COREDATA_RequestDate"))
#set ($isClickable = false)
#elseif ($qid.equals("COREDATA_Id"))
#set ($cellData = $CommonFunctions.formatId( $cellData ))
#set ($isClickable = false)
#elseif ($qid.equals("COREDATA_TimeStamp"))
#set ($isClickable = false)
#elseif ($qid.equals("COREDATA_Status"))
#set ($callBackFunction = "showStatusDetailDialog")
#elseif ($qid.equals("COREDATA_TotalTasks"))
#set ($callBackFunction = "showComponentsDialog")
#elseif ($qid.equals("COREDATA_OpenTasks"))
#set ($callBackFunction = "showComponentsDialog")
#elseif ($qid.equals("COREDATA_ClosedTasks"))
#set ($callBackFunction = "showComponentsDialog")
#elseif ($qid.equals("COREDATA_ProjectDiscussion"))
#set ($callBackFunction = "showDiscussionDialog")
#elseif ($qid.equals("COREDATA_Group"))
#set ($callBackFunction = "showGroupDialog")
#elseif ($qid.equals("COREDATA_Type"))
#set ($callBackFunction = "showTypeDetailDialog")
#elseif ($qid.equals("COREDATA_TypeIcon"))
#set ($callBackFunction = "showTypeDetailDialog")
#elseif ($qid.equals("COREDATA_Department"))
#set ($callBackFunction = "showDepartmentDialog")
#elseif ($qid.equals("COREDATA_StartDate"))
#set ($callBackFunction = "showDateDetailDialog")
#elseif ($qid.equals("COREDATA_CompletionDate"))
#set ($callBackFunction = "showDateDetailDialog")
#elseif ($qid.equals("COREDATA_ProjectHealth"))
#set ($callBackFunction = "showHealthDialog")
#elseif ($qid.equals("COREDATA_ProfileCurrency"))
#set ($callBackFunction = "showFormSummary")
#elseif ($qid.equals("COREDATA_ProgressCurrency"))
#set ($callBackFunction = "showProgressDetailDialog")
#elseif ($qid.equals("COREDATA_RequestorId"))
#set ($callBackFunction = "showUserAssociationDialog")
#elseif ($qid.equals("COREDATA_ManagerId"))
#set ($callBackFunction = "showUserAssociationDialog")
#elseif ($qid.equals("COREDATA_SubmittedToId"))
#set ($callBackFunction = "showUserAssociationDialog")
#elseif ($qid.equals("COREDATA_SponsorId"))
#set ($callBackFunction = "showUserAssociationDialog")
#elseif ($qid.equals("COREDATA_OwnerId"))
#set ($callBackFunction = "showUserAssociationDialog")
#elseif ($qid.equals("COREDATA_MembersId"))
#set ($callBackFunction = "showUserAssociationDialog")
#elseif ($qid.equals("COREDATA_InterDependency"))
#set ($callBackFunction = "showInterDependenciesDialog")
#elseif ($qid.equals("COREDATA_Confidentiality"))
#set ($callBackFunction = "showConfidentialityDialog")
#elseif ($qid.equals("COREDATA_NotificationRecipients"))
#set ($callBackFunction = "showNotificationRecipientsDialog")
#elseif ($qid.endsWith("ManHours") || $qid.endsWith("LaborCost"))
#set ($callBackFunction = "showManhoursDialog")
#elseif ($qid.endsWith("Cost"))
#set ($callBackFunction = "showBudgetDialog")
#elseif ($qid.equals("COREDATA_Participate"))
#set ($callBackFunction = "showParticipationDialog")
#elseif ($qid.equals("COREDATA_MyPoints"))
#set ($callBackFunction = "showPriorityDialog")
#end
#if ($datatype.equals("000000000014"))
#if ($formatting.equals("000000000010"))
#set ($cellData = $CommonFunctions.formatId($cellData))
#end
#set ($alignData = $numberAlign)
#elseif ($datatype.equals("000000000001"))
#if ($formatting.equals("000000000001"))
#set ($cellData = $CommonFunctions.formatMoney($currentUserId,$cellData))
#set ($alignData = $currencyAlign)
#else
#set ($cellData = $CommonFunctions.formatNumber($cellData))
#set ($alignData = $numberAlign)
#end
#elseif ($datatype.equals("000000000015"))
#set ($cellData = $CommonFunctions.formatDate($currentUserId,$cellData))
#set ($alignData = $dateAlign)
#elseif ($datatype.equals($trackingItem))
#set ($alignData = "align='center'")
#set ($isClickable = false)
#if ($cellData.equals("True"))
#set ($altMsg = "$currentlytrackingthis_text")
#set ($cellData = "
")
#else
#set ($cellData = "")
#end
#elseif ($qid.equals("COREDATA_Participate"))
#set ($alignData = "align='center'")
#if ($cellData.equals("HasAlert"))
#set ($altMsg = "$hasalerts_text")
#set ($cellData = "
")
#else
#set ($altMsg = "")
#set ($cellData = " ")
#end
#elseif ($datatype.equals($healthItem))
#set ($alignData = "align='center'")
#if ($cellData.equals("1"))
#set ($altMsg = $CommonFunctions.displayReady($CommonFunctions.getHealthLabel($currentUserId,"1",$healthConfig), $hashMapInstance))
#set ($cellData = "
")
#elseif ($cellData.equals("2"))
#set ($altMsg = $CommonFunctions.displayReady($CommonFunctions.getHealthLabel($currentUserId,"2",$healthConfig), $hashMapInstance))
#set ($cellData = "
")
#elseif ($cellData.equals("3"))
#set ($altMsg = $CommonFunctions.displayReady($CommonFunctions.getHealthLabel($currentUserId,"3",$healthConfig), $hashMapInstance))
#set ($cellData = "
")
#else
#set ($altMsg = $CommonFunctions.displayReady($CommonFunctions.getHealthLabel($currentUserId,"9",$healthConfig), $hashMapInstance))
#set ($cellData = "
")
#end
#elseif ($datatype.equals($currencyProfile))
#set ($alignData = "align='center'")
#if ($cellData.equals("1"))
#set ($altMsg = $CommonFunctions.displayReady($CommonFunctions.getProfileLabel($currentUserId,"1",$dataAgeConfig), $hashMapInstance))
#set ($cellData = "
")
#elseif ($cellData.equals("2"))
#set ($altMsg = $CommonFunctions.displayReady($CommonFunctions.getProfileLabel($currentUserId,"2",$dataAgeConfig), $hashMapInstance))
#set ($cellData = "
")
#elseif ($cellData.equals("3"))
#set ($altMsg = $CommonFunctions.displayReady($CommonFunctions.getProfileLabel($currentUserId,"3",$dataAgeConfig), $hashMapInstance))
#set ($cellData = "
")
#else
#set ($altMsg = $CommonFunctions.displayReady($CommonFunctions.getProfileLabel($currentUserId,"9",$dataAgeConfig), $hashMapInstance))
#set ($cellData = "
")
#end
#elseif ($datatype.equals($currencyProgress))
#set ($alignData = "align='center'")
#if ($cellData.equals("1"))
#set ($altMsg = $CommonFunctions.displayReady($CommonFunctions.getProgressLabel($currentUserId,"1",$dataAgeConfig), $hashMapInstance))
#set ($cellData = "
")
#elseif ($cellData.equals("2"))
#set ($altMsg = $CommonFunctions.displayReady($CommonFunctions.getProgressLabel($currentUserId,"2",$dataAgeConfig), $hashMapInstance))
#set ($cellData = "
")
#elseif ($cellData.equals("3"))
#set ($altMsg = $CommonFunctions.displayReady($CommonFunctions.getProgressLabel($currentUserId,"3",$dataAgeConfig), $hashMapInstance))
#set ($cellData = "
")
#else
#set ($altMsg = $CommonFunctions.displayReady($CommonFunctions.getProgressLabel($currentUserId,"9",$dataAgeConfig), $hashMapInstance))
#set ($cellData = "
")
#end
#elseif ($datatype.equals($typeIcon))
#set ($typeName = $CommonFunctions.displayReady($row.getType()))
#set ($cellData = "
")
#set ($alignData = "align='center'")
#elseif ($qid.equals("COREDATA_ProjectDiscussion"))
#set ($cellData = $CommonFunctions.displayReady($cellData, 120))
#else
#set ($cellData = $CommonFunctions.displayReady($cellData, $hashMapInstance))
#end
#set ($elementName = $CommonFunctions.displayReady($summaryColumn.getLabel()))
#if ($portfolioView)
#set ($isClickable = false)
#end
#if ($isClickable)#end #if(($cellData.length() > 0) || ($qid.equals("COREDATA_Tracking")))$cellData #else $notset_text #end #if ($isClickable)#end |
#end
#elseif ($qid.startsWith("COMPUTATION_"))
#set ($cellData = $summaryValue)
#set ($alignData = $stringAlign)
#if ($formatting.equals("000000000001"))
#set ($cellData = $CommonFunctions.formatMoney($currentUserId,$cellData))
#set ($alignData = $currencyAlign)
#else
#set ($cellData = $CommonFunctions.formatNumber($cellData))
#set ($alignData = $numberAlign)
#end
#if (!$portfolioView)#end #if($cellData.length() > 0)$cellData #else $notset_text #end #if ($portfolioView)#end |
#elseif ($qid.startsWith("CUSTOMCAT_"))
#set ($cellData = $summaryValue)
#set ($alignData = $stringAlign)
#if($cellData.length() > 0)$CommonFunctions.displayReady($cellData, $hashMapInstance) #else $notset_text #end |
#else
#set ($cellData = $summaryValue)
#set ($alignData = $stringAlign)
#set ($responseIcon = "")
#if ($summaryValue.contains( ".gif" ))
#set ($summaryValue = $CommonFunctions.stripBracketsForImageFilenames($summaryValue))
#set ($responseIcon = $summaryValue)
#end
#if ($summaryValue.length() == 0)
N/A |
#elseif ($latestResponse.size() == 1)
#foreach ($responseElement in $latestResponse)
#if ($formatting.equals("000000000001"))
#set ($summaryLabelValue = $CommonFunctions.formatMoney($currentUserId,$responseElement))
#set ($alignData = $currencyAlign)
#elseif($datatype.equals("000000000008"))
#set ($summaryLabelValue = $responseElement)
#set ($alignData = $stringAlign)
#else
#if ($datatype.equals("Text"))
#set ($summaryLabelValue = $CommonFunctions.displayReady($responseElement,120))
#else
#set ($summaryLabelValue = $responseElement)
#set ($alignData = $numberAlign)
#end
#end
#if ($datatype.equals("000000000001") && $formatting != "000000000001")
#set ($summaryLabelValue = $CommonFunctions.formatNumber($summaryLabelValue))
#end
#if ($responseIcon.length() > 0)
|
#else
$CommonFunctions.displayReady($summaryLabelValue)
|
#end
#end
|
#elseif ($latestResponse.size() > 1)
|
#else
#if ($formatting.equals("000000000001"))
#set ($responseSummaryCalculation = $CommonFunctions.getQuestionResponseSummaryCalculation($qid))
#set ($summaryLabelValue = $CommonFunctions.formatMoney($currentUserId,$summaryValue))
#set ($alignData = $currencyAlign)
#elseif ($datatype.equals("000000000004"))
#set ($summaryLabelValue = $CommonFunctions.getFullNameDepartmentForUser($cellData,"|"))
#elseif($datatype.equals("000000000015"))
#set ($summaryLabelValue = $CommonFunctions.formatDate($currentUserId,$summaryValue))
#set ($alignData = $dateAlign)
#elseif($datatype.equals("000000000008") ||$datatype.equals("000000000006") )
#set ($summaryLabelValue = $CommonFunctions.chopAndUnescapeString($summaryValue,255))
#set ($alignData = $stringAlign)
#else
#if ($datatype.equals("000000000007") || $datatype.equals("000000000101"))
#set ($summaryLabelValue = $CommonFunctions.chopAndUnescapeString($summaryValue,120))
#else
#set ($summaryLabelValue = $CommonFunctions.displayReady($summaryValue))
#set ($alignData = $numberAlign)
#end
#end
#if ($datatype.equals("000000000001") && $formatting != "000000000001")
#set ($summaryLabelValue = $CommonFunctions.formatNumber($summaryLabelValue))
#end
#if ($responseIcon.length() > 0)
|
#else
$CommonFunctions.displayReady($summaryLabelValue)
|
#end
#end
#end
#set( $questionIndex = $questionIndex + 1 )
#end
#set ($mainIndex = $mainIndex + 1)
#end
#foreach ($summaryColumn in $sortedColumns)
#set ($columnId = $summaryColumn.getLegaQuestionId())
#set ($columnTitle = $summaryColumn.getLabel())
#set ($datatype = $summaryColumn.getDataType() )
#if ($datatype.equals($trackingItem))
#set ($columnTitle = "
")
#elseif ($columnId.equals("COREDATA_InterDependency"))
#set ($columnTitle = "
")
#else
#set ($columnTitle = $CommonFunctions.displayReady($columnTitle))
#end
#set ($adjustment = "")
#if ($sortAttr == "$summaryColumn.getLegaQuestionId()")
#set ($adjustment = "
")
#end
$adjustment$columnTitle |
#end