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

Last change on this file since 376 was 252, checked in by gav, 15 years ago

Added TaskBudgetStatus as per ticket #49.

File size: 1.4 KB
RevLine 
[66]1class Task {
[121]2
[66]3    TaskGroup taskGroup
4    TaskStatus taskStatus
[69]5    TaskPriority taskPriority
[252]6    TaskBudgetStatus taskBudgetStatus
[69]7    TaskType taskType
[168]8    Task parentTask
[66]9    Person leadPerson
[116]10    Asset primaryAsset
[131]11    TaskRecurringSchedule taskRecurringSchedule
12    TaskProcedure taskProcedure
[121]13
[66]14    String description
15    String comment = ""
16    Date targetStartDate = new Date()
17    Date targetCompletionDate = new Date()
[181]18    boolean scheduled = false
19    boolean approved = false
20    boolean trash = false
[66]21
[69]22    static hasMany = [entries: Entry, 
[147]23                        taskModifications: TaskModification,
[242]24                        assignedGroups: AssignedGroup,
[241]25                        assignedPersons: AssignedPerson,
[116]26                        subTasks: Task,
27                        associatedAssets: Asset,
28                        inventoryMovements: InventoryMovement]
[66]29
[131]30    static mappedBy = [taskRecurringSchedule:"task"]
31
[69]32    static belongsTo = [TaskGroup, TaskStatus, Task, Person]
[66]33
34    static constraints = {
[131]35        description(blank:false,maxSize:75)
36        comment()
[66]37        targetStartDate()
[131]38        targetCompletionDate()
[66]39        leadPerson()
[69]40        taskPriority()
[252]41        taskBudgetStatus()
[66]42        taskStatus()
[146]43        parentTask(nullable:true)
44        primaryAsset(nullable:true)
45        taskRecurringSchedule(nullable:true)
46        taskProcedure(nullable:true)
47
[66]48    }
49
[123]50    String toString() {"${this.id} - ${this.description}"}
[66]51}
Note: See TracBrowser for help on using the repository browser.