Ignore:
Timestamp:
Feb 16, 2011, 8:10:39 PM (14 years ago)
Author:
gav
Message:

Domain change, first draft of TaskProcedureRevisions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/TaskDetailedController.groovy

    r747 r809  
    434434            def assignedPersonList = taskInstance.assignedPersons.sort { p1, p2 -> p1.person.firstName.compareToIgnoreCase(p2.person.firstName) }
    435435
    436             def taskProcedureInstance = TaskProcedure.get(taskInstance.taskProcedure?.id)
     436            def taskProcedureRevision = TaskProcedureRevision.get(taskInstance.taskProcedureRevision?.id)
    437437            def taskProcedureExits = new Boolean("true")
    438             if(!taskProcedureInstance) {
     438            if(!taskProcedureRevision) {
    439439                taskProcedureExits = false
    440440            }
    441 
    442             def maParams = [:]
    443             maParams.max = 100
    444             maParams.order = "asc"
    445             maParams.sort = "procedureStepNumber"
    446             def maintenanceActionList = MaintenanceAction.findAllByTaskProcedure(taskProcedureInstance, maParams)
    447441
    448442            def taskRecurringScheduleInstance = TaskRecurringSchedule.get(taskInstance.taskRecurringSchedule?.id)
     
    456450                            entryCauseList: entryCauseList,
    457451                            entryWorkDoneList: entryWorkDoneList,
    458                             taskProcedureInstance: taskProcedureInstance,
     452                            taskProcedureRevision: taskProcedureRevision,
    459453                            taskProcedureExits: taskProcedureExits,
    460454                            showTab: showTab,
     
    462456                            subTaskInstanceTotal: subTaskInstanceTotal,
    463457                            subTaskInstanceMax: params.max,
    464                             maintenanceActionList: maintenanceActionList,
    465458                            taskRecurringScheduleInstance: taskRecurringScheduleInstance,
    466459                            taskRecurringScheduleExits: taskRecurringScheduleExits,
Note: See TracChangeset for help on using the changeset viewer.