Ignore:
Timestamp:
Mar 24, 2009, 3:30:12 AM (15 years ago)
Author:
gav
Message:

Start creating 'Detail views for Task. Add to BootStrap?. Small change to css.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/TaskRewrite/src/grails-app/conf/BootStrap.groovy

    r73 r84  
    227227        subTaskInstance.parentTask = Task.get(1)
    228228
     229        subTaskInstance = new Task(taskGroup:TaskGroup.findByName("Engineering Activites"),
     230                 taskStatus:TaskStatus.findByName("Not Started"),
     231                 taskPriority:TaskPriority.get(2),
     232                 taskType:TaskType.get(1),
     233                 leadPerson:Person.get(3),
     234                 description:"Replace sensor at next opportunity.",
     235                 comment:"Nothing else has worked.")
     236        BootStrapSaveAndTest(subTaskInstance)
     237        subTaskInstance.addToAssignedPersons(Person.get(1))
     238
     239        //Add task 3 as a subTask of task 1.
     240        taskInstance.addToSubTasks(Task.get(3))
     241        subTaskInstance.parentTask = Task.get(1)
     242
    229243        taskInstance = new Task(taskGroup:TaskGroup.findByName("Production Activites"),
    230244                 taskStatus:TaskStatus.findByName("Not Started"),
     
    259273        entryTypeInstance = new EntryType(name:"Work Request")
    260274        BootStrapSaveAndTest(entryTypeInstance)
     275
     276        //Entry
     277        def entryInstance
     278
     279        entryInstance = new Entry(enteredBy: Person.get(6),
     280                                                    task: Task.get(1),
     281                                                    entryType: EntryType.findByName("Fault"),
     282                                                    comment: "This level sensor is causing us trouble.",
     283                                                    durationMinute: 20)
     284        BootStrapSaveAndTest(entryInstance)
     285
     286        entryInstance = new Entry(enteredBy: Person.get(4),
     287                                                    task: Task.get(1),
     288                                                    entryType: EntryType.findByName("WorkDone"),
     289                                                    comment: "Cleaned sensor, see how it goes.",
     290                                                    durationMinute: 30)
     291        BootStrapSaveAndTest(entryInstance)
     292
     293        entryInstance = new Entry(enteredBy: Person.get(4),
     294                                                    task: Task.get(1),
     295                                                    entryType: EntryType.findByName("WorkDone"),
     296                                                    comment: "Checked up on it later and sensor is dropping out intermittently, created subTask to replace sensor.",
     297                                                    durationMinute: 20)
     298        BootStrapSaveAndTest(entryInstance)
    261299
    262300        //ModificationType
Note: See TracChangeset for help on using the changeset viewer.