Last change
on this file since 172 was
162,
checked in by gav, 15 years ago
|
Add Department domain class, controller, views and demo data.
Add costCode and department attributes to SystemSection? and regen non-detailed controller and views, adjust detailed views to suite.
|
File size:
370 bytes
|
Line | |
---|
1 | class SystemSection { |
---|
2 | |
---|
3 | Site site |
---|
4 | Department department |
---|
5 | |
---|
6 | String name |
---|
7 | String description = "" |
---|
8 | String costCode = "" |
---|
9 | boolean isActive = true |
---|
10 | |
---|
11 | static hasMany = [assets: Asset, maintenanceActions: MaintenanceAction] |
---|
12 | |
---|
13 | static belongsTo = [Site] |
---|
14 | |
---|
15 | // static constraints = { |
---|
16 | // |
---|
17 | // } |
---|
18 | |
---|
19 | String toString() { |
---|
20 | "${this.name}" |
---|
21 | } |
---|
22 | } |
---|
23 | |
---|
Note: See
TracBrowser
for help on using the repository browser.