Last change
on this file since 119 was
118,
checked in by gav, 16 years ago
|
First commit of Asset domain, including domain-classes, controllers, views and bootstrap.
|
File size:
850 bytes
|
Line | |
---|
1 | class LifePlan { |
---|
2 | Asset asset |
---|
3 | Form form |
---|
4 | Frequency frequency |
---|
5 | AssetType assetType |
---|
6 | Assembly assembly |
---|
7 | SubAssembly subAssembly |
---|
8 | ComponentItem componentItem |
---|
9 | |
---|
10 | String name |
---|
11 | String description = "" |
---|
12 | String resourceNumber = "" |
---|
13 | Integer timeInHours |
---|
14 | String maintenanceAction |
---|
15 | String notes = "" |
---|
16 | |
---|
17 | boolean isActive = true |
---|
18 | |
---|
19 | static hasMany = [systemSections: SystemSection] |
---|
20 | |
---|
21 | static belongsTo = [SystemSection] |
---|
22 | |
---|
23 | static constraints = { |
---|
24 | asset(blank:true,nullable:true) |
---|
25 | form(blank:true,nullable:true) |
---|
26 | frequency(blank:true,nullable:true) |
---|
27 | assetType(blank:true,nullable:true) |
---|
28 | assembly(blank:true,nullable:true) |
---|
29 | subAssembly(blank:true,nullable:true) |
---|
30 | componentItem(blank:true,nullable:true) |
---|
31 | } |
---|
32 | |
---|
33 | String toString() { |
---|
34 | "${this.name}" |
---|
35 | } |
---|
36 | } |
---|
37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.