## JavaScript Embedded Resource Bundles #set ($gettimesheetconfirm_text = $CommonFunctions.getEncodedTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.gettimesheetconfirm")) #set ($applychooserwarning_text = $CommonFunctions.getEncodedTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.applychooserwarning")) #set ($addbutton_text = $CommonFunctions.getEncodedTermFromResourceBundle($currentUserId, "MainViews", "mainviews.taskviews.add")) #set ($addbutton_hint = $CommonFunctions.getEncodedTermFromResourceBundle($currentUserId, "MainViews", "mainviews.taskviews.add.hint")) #set ($approvalbutton_text = $CommonFunctions.getEncodedTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.approvals")) #set ($approvalbutton_hint = $CommonFunctions.getEncodedTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.approvals.hint")) #set ($progress_text = $CommonFunctions.getEncodedTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.generatingview")) ## HTML Embedded Resource Bundles #set ($weeklytotals_text = $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.weeklytotals")) #set ($resource_text = $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.resource")) #set ($hashMapInstance = $CommonFunctions.getHashMapInstance()) #set ($today = $CommonFunctions.getDate()) #parse ("viewconstants.vm") #if ($isPrinting) #end #parse("common_js.vm") #parse("systemmanager_js.vm") #parse("itimpactdialogs_js.vm") #parse ("commonmethods_js.vm") #parse ("pagingcontroljs.vm") #parse ("formvalidator.vm") #parse ("changedetector.vm") #if ($isPrinting) #else #end
#if ($requiresPaging) #end #if ($requiresPaging) #end
#if($cellsEditable) #parse("timesheettablecontrols.vm") #end #parse("hierarchybutton.vm") #parse("hideshownabutton.vm") #if ($viewId.equals("ExecutionProfileTimesheetsView")) #parse ("resourcefilterselectbox.vm") #end #parse ("portfoliocontrol.vm")
  #parse("pagingcontrol.vm")
#if (!$tsHSNAState.equals("SHOW")) #end #if ($viewId.equals("MyTimesheetView")) #elseif ($canApproveTimesheets) #end #if ($viewId.equals("ExecutionProfileTimesheetsView")) #end #parse("taskfiltercontrol.vm")
$CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.nadate.message1")  
#if (!$isPrinting) #end
#set ($weekLabel = $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.currentweek")) #if ($CommonFunctions.getDate().compareTo($dates.get(0)) < 0) #set ($weekLabel = $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.futureweek")) #elseif ($CommonFunctions.getDate().compareTo($dates.get(6)) > 0) #set ($weekLabel = $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.pastweek")) #end #set ($headerCount = 9) #if ($ownerId.equals("All")) #else #set ($headerCount = 8) #end #set ($headerCounter = $headerCount + 1) #if ((!$ownerId.equals("All")) && ($ownerId.length() > 0) && (!$ownerId.equals("_NOTSET_"))) #else #if ($ownerId.equals("All")) #end #end #else #end
$CommonFunctions.getDisplayReadyLabel("Project") $CommonFunctions.getDisplayReadyLabel("ProjectTask") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "ProjectDialogs", "wbs.columnstatus")$CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.resource") $CommonFunctions.getDisplayReadyLabel("SkillClass") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.spentplanned") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.remaining") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.addcomments")$CommonFunctions.getDisplayReadyLabel("SkillClass") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.spentplanned") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.remaining") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.addcomments")
7  $weekLabel: $CommonFunctions.formatDate($currentUserId,$firstDate) - $CommonFunctions.formatDate($currentUserId,$lastDate)  8  $CommonFunctions.displayTermFromResourceBundle($currentUserId,   #set($dateButtonToolTip = $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.otherweek")) #set($callback = "getTimesheetTable") #set($dateControlWidth = "auto") #set($hideDateText = true) #set($controlID = "timesheetDate") #parse("datecontrol.vm")
#if ($tasksList.size() > 0)
$CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.timesheetstatus") #if ( ($editableWindow && $isManager) || ($editableWindow && $isOwner && (!$tssValue.equals("Approved"))) ) #else #if ($tssValue.length() == 0) $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.status.notsubmitted") #elseif ($tssValue.equals("Submitted")) $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.status.submitted") #elseif ($tssValue.equals("Approved")) $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.status.approved") #else $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.status.unknown") #end #end
#set ($dayIndex = 0) #foreach($date in $dates) #set ($isToday = $today.equals($date)) #set ($dayIndex = $dayIndex + 1) #end
$days.get($dayIndex) $CommonFunctions.formatDate($currentUserId,$date) $weeklytotals_text
$CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.notaskmessage")
#if ($isPrinting) #if ($ownerId.equals("All")) #else #end #end #foreach ($task in $tasksList) #set ($startDateStyle = "tableBodyContentElement") #if ($task.getStatusId().equals("000000000001")) #if ($task.getStartDate().length() == 0) #set ($startDateStyle = "tableBodyContentElementChange") #elseif ($task.getStartDate().compareTo($today) < 0) #set ($startDateStyle = "tableBodyContentElementChange") #end #end #set ($targetDateStyle = "tableBodyContentElement") #if ( $task.getStatusId().equals("000000000001") || $task.getStatusId().equals("000000000002") ) #if ($task.getTargetDate().length() == 0) #set ($targetDateStyle = "tableBodyContentElementChange") #elseif ($task.getTargetDate().compareTo($today) < 0) #set ($targetDateStyle = "tableBodyContentElementChange") #end #end #set ($hierarchyList = $CommonFunctions.getTaskHierarchyNameVector($task.getProjectId(),$task.getComponentId())) #set ($currentTaskHierarchy = "") #foreach($taskParent in $hierarchyList) #set ($currentTaskHierarchy = $currentTaskHierarchy.concat($CommonFunctions.displayReady($taskParent, $hashMapInstance))) #set ($currentTaskHierarchy = $currentTaskHierarchy.concat("  ")) #end #set ($currentTaskName = $CommonFunctions.displayReady($task.getComponentName(), $hashMapInstance)) #if ($ownerId.equals("All")) #end #set ($spentMH = "0.0") #if ($task.getSpentManHours().length() > 0) #set ($spentMH = $task.getSpentManHours()) #end #set ($plannedMH = "0.0") #if ($task.getPlannedManHours().length() > 0) #set ($plannedMH = $task.getPlannedManHours()) #end #set ($remainingMH = "0.0") #if ($task.getRemainingManHours().length() > 0) #set ($remainingMH = $task.getRemainingManHours()) #end #set ($plannedModelManual = false) #if ($cellsEditable && $task.getPlannedModel().startsWith("HPU")) #set ($plannedModelManual = true) #end #set ($remainingModelManual = false) #if ($cellsEditable && $task.getRemainingModel().equals("Manual")) #set ($remainingModelManual = true) #end #set ($mhDiff = $CommonFunctions.compareStringNumbers($plannedMH, $spentMH)) #if ($mhDiff.startsWith("-")) #set ($diffColor = "#eeaaaa") #else #set ($diffColor = "#aaeeaa") #end #if (!$plannedModelManual) #else #end #if (!$remainingModelManual) #else #end #end #if ($ownerId.equals("All")) #set ($colspan = "8") #else #set ($colspan = "7") #end #if ($ownerId.equals("All")) #else #end
$CommonFunctions.getDisplayReadyLabel("Project") $CommonFunctions.getDisplayReadyLabel("ProjectTask") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "ProjectDialogs", "wbs.columnstatus")$resource_text $CommonFunctions.getDisplayReadyLabel("SkillClass") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.spentplanned") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.remaining") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.addcomments")$CommonFunctions.getDisplayReadyLabel("SkillClass") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.spentplanned") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.remaining") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.addcomments")7 Hours for Week of $CommonFunctions.formatDate($currentUserId,$firstDate) - $CommonFunctions.formatDate($currentUserId,$lastDate) 8
$CommonFunctions.displayReady($task.getProjectName(), $hashMapInstance)
$currentTaskHierarchy
$currentTaskName
$CommonFunctions.displayReady($task.getStatusName(), $hashMapInstance)$CommonFunctions.displayReady($task.getOwnerName(), $hashMapInstance)$CommonFunctions.displayReady($task.getSkillClassName(), $hashMapInstance) $CommonFunctions.simpleDecimalNumber($currentUserId,$spentMH)
[$plannedMH]
$CommonFunctions.simpleDecimalNumber($currentUserId,$spentMH) $CommonFunctions.simpleDecimalNumber($currentUserId,$remainingMH) #set ($cells = $task.getCellVector()) #foreach ($cell in $cells) #set ($isBlackout = false) #foreach ($blackoutDay in $blackoutDays) #if ($cell.getCellId().equals($blackoutDay)) #set ($isBlackout = true) #end #end #set ($isToday = $today.equals($cell.getCellId())) #if ($cell) #set ($inputId = "${task.projectId}_${task.componentId}_${task.resourceId}_${cell.cellId}_${task.ownerId}") #if ($cell.getFlag().equals("Edit")) #if($cellsEditable) #else #end #elseif ($cell.getFlag().equals("OEdit")) #elseif ($cell.getFlag().equals("YEdit")) #elseif ($cell.getFlag().equals("NoEdit")) #else #end #end #end
#if ($cell.getValue().length() > 0) $CommonFunctions.simpleDecimalNumber($currentUserId,$cell.getValue()) #else   #end #if ($cell.getValue().length() > 0) $CommonFunctions.simpleDecimalNumber($currentUserId,$cell.getValue()) #else   #endn/a$CommonFunctions.simpleDecimalNumber($currentUserId,$task.getWeekManHours())
$CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.dailytotals")  
#set ($dayIndex = 0) #foreach($daily in $dailies) #set ($dayIndex = $dayIndex + 1) #end
$CommonFunctions.simpleDecimalNumber($currentUserId,$daily)$CommonFunctions.simpleDecimalNumber($currentUserId,$weeklyTotal)
$CommonFunctions.getDisplayReadyLabel("Project") $CommonFunctions.getDisplayReadyLabel("ProjectTask") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "ProjectDialogs", "wbs.columnstatus")$CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.resource") $CommonFunctions.getDisplayReadyLabel("SkillClass") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.spentplanned") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.remaining") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.addcomments") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.timecells")$CommonFunctions.getDisplayReadyLabel("SkillClass") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.spentplanned") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.remaining") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.addcomments") $CommonFunctions.displayTermFromResourceBundle($currentUserId, "MainViews", "mainviews.timesheets.timecells")
#if (!$isPrinting) #end #set ($clientSide=true) #parse("numbervalidation.vm")