- Timestamp:
- Feb 16, 2011, 8:10:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/TaskDetailedController.groovy
r747 r809 434 434 def assignedPersonList = taskInstance.assignedPersons.sort { p1, p2 -> p1.person.firstName.compareToIgnoreCase(p2.person.firstName) } 435 435 436 def taskProcedure Instance = TaskProcedure.get(taskInstance.taskProcedure?.id)436 def taskProcedureRevision = TaskProcedureRevision.get(taskInstance.taskProcedureRevision?.id) 437 437 def taskProcedureExits = new Boolean("true") 438 if(!taskProcedure Instance) {438 if(!taskProcedureRevision) { 439 439 taskProcedureExits = false 440 440 } 441 442 def maParams = [:]443 maParams.max = 100444 maParams.order = "asc"445 maParams.sort = "procedureStepNumber"446 def maintenanceActionList = MaintenanceAction.findAllByTaskProcedure(taskProcedureInstance, maParams)447 441 448 442 def taskRecurringScheduleInstance = TaskRecurringSchedule.get(taskInstance.taskRecurringSchedule?.id) … … 456 450 entryCauseList: entryCauseList, 457 451 entryWorkDoneList: entryWorkDoneList, 458 taskProcedure Instance: taskProcedureInstance,452 taskProcedureRevision: taskProcedureRevision, 459 453 taskProcedureExits: taskProcedureExits, 460 454 showTab: showTab, … … 462 456 subTaskInstanceTotal: subTaskInstanceTotal, 463 457 subTaskInstanceMax: params.max, 464 maintenanceActionList: maintenanceActionList,465 458 taskRecurringScheduleInstance: taskRecurringScheduleInstance, 466 459 taskRecurringScheduleExits: taskRecurringScheduleExits,
Note: See TracChangeset
for help on using the changeset viewer.