Ignore:
Timestamp:
May 4, 2009, 1:59:11 PM (16 years ago)
Author:
gav
Message:

Detail controller and views for Asset, AssetExtendedAttribute?, PlannedMaintenance?, MaintenanceAction?, RecurringSchedule?, SystemSection?.
Some minor work on Task controller and views.
Change PlannedMaintenance? relationship, adjust ERD, Bootstrap and Domain classes to suite.

File:
1 edited

Legend:

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

    r106 r124  
    88    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
    99
     10//     def list = {
     11//         params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
     12//         def taskInstanceActives = Task.findAllByIsActive( true ).list( params )
     13// //         def taskInstanceList = taskInstanceActives.list( params )
     14//         return [ taskInstanceList: taskInstanceList, taskInstanceTotal: taskInstanceActives.count() ]
     15//     }
     16
    1017    def list = {
    1118        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
    12         def taskInstanceList = Task.findAllByIsActive( true )
    13         return [ taskInstanceList: taskInstanceList, taskInstanceTotal: taskInstanceList.count() ]
     19        [ taskInstanceList: Task.list( params ), taskInstanceTotal: Task.count() ]
    1420    }
    1521
Note: See TracChangeset for help on using the changeset viewer.