|
Last change
on this file since 122 was
122,
checked in by gav, 17 years ago
|
|
Run generate-all on all controllers and views except Person and Authority.
Extensive work on Asset domain and application now compiles and runs well.
Update BootStrap? to suite.
|
|
File size:
785 bytes
|
| Line | |
|---|
| 1 | class MaintenanceAction { |
|---|
| 2 | MaintenancePolicy maintenancePolicy |
|---|
| 3 | PlannedMaintenance plannedMaintenance |
|---|
| 4 | SystemSection systemSection |
|---|
| 5 | Asset asset |
|---|
| 6 | AssetType assetType |
|---|
| 7 | Assembly assembly |
|---|
| 8 | SubAssembly subAssembly |
|---|
| 9 | ComponentItem componentItem |
|---|
| 10 | String description |
|---|
| 11 | String reasoning = "" |
|---|
| 12 | boolean isActive = true |
|---|
| 13 | |
|---|
| 14 | // static hasMany = [] |
|---|
| 15 | |
|---|
| 16 | static belongsTo = [PlannedMaintenance] |
|---|
| 17 | |
|---|
| 18 | static constraints = { |
|---|
| 19 | systemSection(blank:true, nullable:true) |
|---|
| 20 | asset(blank:true, nullable:true) |
|---|
| 21 | assetType(blank:true, nullable:true) |
|---|
| 22 | assembly(blank:true, nullable:true) |
|---|
| 23 | subAssembly(blank:true, nullable:true) |
|---|
| 24 | componentItem(blank:true, nullable:true) |
|---|
| 25 | } |
|---|
| 26 | |
|---|
| 27 | String toString() { |
|---|
| 28 | "${this.description}" |
|---|
| 29 | } |
|---|
| 30 | } |
|---|
| 31 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.