source: trunk/grails-app/domain/Task.groovy @ 112

Last change on this file since 112 was 106, checked in by gav, 16 years ago

Some CSS adjustments to text color, img border, remove body height:100%, add buttons input.add to CSS.
Move admin stuff to AppAdmin? to make it very clear that it is not for daily use.
TaskDetailed? list and delete now use the IsActive? attribute.
Remove Task.comment size constraint.
Add more help-ballons to TaskDetailed? create.
Clean loose comments from main.gsp and auth.gsp
Use pretty pictures in TaskDetailed? views instead of Edit and Show words.

File size: 933 bytes
Line 
1class Task {
2    TaskGroup taskGroup
3    TaskStatus taskStatus
4    TaskPriority taskPriority
5    TaskType taskType
6    Task    parentTask
7    Person leadPerson
8    String description
9    String comment = ""
10    Date targetStartDate = new Date()
11    Date targetCompletionDate = new Date()
12    boolean isScheduled = false
13    boolean isApproved = false
14    boolean isActive = true
15
16    static hasMany = [entries: Entry, 
17                        taskModifications: TaskModification, 
18                        assignedPersons: AssignedPerson, 
19                        subTasks: Task]
20
21    static belongsTo = [TaskGroup, TaskStatus, Task, Person]
22
23    static constraints = {
24        targetStartDate()
25        description(blank:false,maxSize:75)
26        leadPerson()
27        taskPriority()
28        taskStatus()
29        parentTask(blank: true, nullable:true)
30        comment()
31       
32    }
33
34    String toString() {"${this.description}"}
35}
Note: See TracBrowser for help on using the repository browser.