- Timestamp:
- Dec 8, 2009, 4:03:29 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/TaskDetailedController.groovy
r216 r225 154 154 { params.action='show' } 155 155 156 def showTab = [:] 157 switch (params.showTab) { 158 case "showProcedureTab": 159 showTab.procedure = new String("true") 160 break 161 case "showRecurrenceTab": 162 showTab.recurrence = new String("true") 163 break 164 case "showInventoryTab": 165 showTab.inventory = new String("true") 166 break 167 case "showSubTasksTab": 168 showTab.subTasks = new String("true") 169 break 170 default: 171 showTab.task = new String("true") 172 } 173 156 174 def taskInstance = Task.get( params.id ) 157 175 … … 177 195 def subTaskInstanceList = Task.findAllByParentTaskAndTrash(taskInstance, false, params) 178 196 def subTaskInstanceTotal = Task.countByParentTaskAndTrash(taskInstance, false) 179 def showTaskTab = new String("true")180 197 181 198 def inventoryMovementList = InventoryMovement.findAllByTask(taskInstance, [max:100, sort:"id", order:"desc", offset:0]) … … 204 221 taskProcedureInstance: taskProcedureInstance, 205 222 taskProcedureExits: taskProcedureExits, 206 showTa skTab: showTaskTab,223 showTab: showTab, 207 224 subTaskInstanceList: subTaskInstanceList, 208 225 subTaskInstanceTotal: subTaskInstanceTotal,
Note: See TracChangeset
for help on using the changeset viewer.