#set ($noquestions_text = $CommonFunctions.displayTermFromResourceBundle($currentUserId, "ProjectDialogs", "businessformsummarycontent.noquestions")) #set ($nodescription_text = $CommonFunctions.displayTermFromResourceBundle($currentUserId, "ProjectDialogs", "businessformsummarycontent.nodescription")) #if ($CommonFunctions.isShowFormNotAnswered()) #set ($notanswered_text = $CommonFunctions.displayTermFromResourceBundle($currentUserId, "ProjectDialogs", "businessformsummarycontent.notanswered")) #else #set ($notanswered_text = "") #end #foreach ($summaryForm in $sortedObjects) #set ($legaMF = $summaryForm) #if ($summaryForm.getSummaryQuestionVector().size() == 0) #else #end #end
$noquestions_text
$CommonFunctions.displayReady($summaryForm.getName(),70)
#if ($summaryForm.getDescription().length() != 0) $CommonFunctions.displayReady($summaryForm.getDescription(),500) #else $nodescription_text #end
#set ($layoutQuestionList = $CommonFunctions.getFormLayoutInfo($legaMF.getLegaFormId())) #set ($layoutCounter = 1) #set ($groupItemCounter = 0) #set ($activeGroupIndex = 0) #set ($groupLayout = $layoutQuestionList.get($activeGroupIndex).get(0)) #set ($groupLimit = $layoutQuestionList.get($activeGroupIndex).get(1)) #set ($width = 100 / $groupLayout) #foreach ($summaryQuestion in $summaryForm.getSummaryQuestionVector()) #if ($groupItemCounter == 0) #set ($activeGroupIndex = $activeGroupIndex + 1) #if ($activeGroupIndex < $layoutQuestionList.size()) #set ($groupLayout = $layoutQuestionList.get($activeGroupIndex).get(0)) #set ($groupLimit = $layoutQuestionList.get($activeGroupIndex).get(1)) #set ($width = 100 / $groupLayout) #end #set ($groupItemCounter = 0) #set ($layoutCounter = 1) #else #set ($layoutCounter = $layoutCounter + 1) #if ($layoutCounter > $groupLayout) #set ($layoutCounter = 1) #end #end #end
#end #if ($layoutCounter == 1) #end #if ($summaryQuestion.getLegaResponseTypeId().equals("100000000001")) #else #end #set ($groupItemCounter = $groupItemCounter + 1) #if ($groupItemCounter >= $groupLimit) #set( $whileloop = [1,2,3,4,5] ) #set ($c = $layoutCounter) #foreach($loop in $whileloop) #if ($c < $groupLayout) #set ($c = $c + 1) #end #end
#set ($sectionHeader = false) #if ($summaryQuestion.getLegaResponseTypeId().equals("100000000001")) #set ($sectionHeader = true) #end #set ($HTMLQuestion = false) #if ($summaryQuestion.getLegaResponseTypeId().equals("000000000030")) #set ($HTMLQuestion = true) #end #if ($summaryQuestion.getSummaryUserResponseVector().size() > 0) #elseif (!$sectionHeader) #end
#foreach ($summLine in $summaryQuestion.getSummaryValueVector()) #end
#if ($summLine.startsWith("_TBRFORMATTED_")) $summLine.substring(14) #elseif ($HTMLQuestion) $CommonFunctions.unescape($summLine) #else #if (($CommonFunctions.isId($summLine)) && (($summaryQuestion.getLegaResponseTypeId().equals("000000000004")&& !$lq.getLegaSummaryTypeId().equals("000000000003")) || $summaryQuestion.getLegaResponseTypeId().equals("000000000110") || $summaryQuestion.getLegaResponseTypeId().equals("000000000111") || $summaryQuestion.getLegaResponseTypeId().equals("000000000112") || $summaryQuestion.getLegaResponseTypeId().equals("000000000113") || $summaryQuestion.getLegaResponseTypeId().equals("000000000114") || $summaryQuestion.getLegaResponseTypeId().equals("000000000115"))) #end #end
#set ($questionValue = $CommonFunctions.getCoreDataQuestionValue($currentUserId, $project.getId(),$summaryQuestion.getLegaQuestionId())) #if ($summaryQuestion.getLegaResponseTypeId().equals("000000000110")) $CommonFunctions.getHtmlForIds( $project.getRequestorId() ) #elseif ($summaryQuestion.getLegaResponseTypeId().equals("000000000111")) $CommonFunctions.getHtmlForList($project.getProjectSubmittedTos()) #elseif ($summaryQuestion.getLegaResponseTypeId().equals("000000000112")) $CommonFunctions.getHtmlForList($project.getProjectManagers()) #elseif ($summaryQuestion.getLegaResponseTypeId().equals("000000000113")) $CommonFunctions.getHtmlForList($project.getProjectOwners()) #elseif ($summaryQuestion.getLegaResponseTypeId().equals("000000000114")) $CommonFunctions.getHtmlForList($project.getProjectSponsors()) #elseif ($summaryQuestion.getLegaResponseTypeId().equals("000000000115")) $CommonFunctions.getHtmlForList($project.getProjectMembers()) #elseif ($summaryQuestion.getLegaResponseTypeId().equals("000000000120")) $project.getName() #else #if ($questionValue.length() > 0) $CommonFunctions.unescape($questionValue) #else $notanswered_text #end #end