source: branches/features/taskProcedureRework/grails-app/domain/MaintenanceAction.groovy @ 771

Last change on this file since 771 was 770, checked in by gav, 14 years ago

Domain change, improved draft of creating taskProcedure dynamic form.

File size: 763 bytes
Line 
1class MaintenanceAction {
2
3    TaskProcedure taskProcedure
4    MaintenancePolicy maintenancePolicy
5    Section section
6    Asset asset
7    AssetSubItem assetSubItem
8
9    String description
10    String reasoning = ""
11    Integer procedureStepNumber
12
13    Boolean toBeDeleted
14    Boolean isNew
15    static transients = [ 'toBeDeleted', 'isNew' ]
16
17//     static hasMany = []
18
19    static belongsTo = [TaskProcedure]
20
21    static constraints = {
22        section(nullable:true)
23        asset(nullable:true)
24        assetSubItem(nullable:true)
25        maintenancePolicy(nullable:true)
26        procedureStepNumber(nullable:true)
27        description(blank:false,maxSize:100)
28        reasoning(maxSize:100)
29    }
30
31    String toString() {
32        "${this.description}"
33    }
34}
35
Note: See TracBrowser for help on using the repository browser.