source: trunk/grails-app/domain/SystemSection.groovy @ 242

Last change on this file since 242 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
RevLine 
[118]1class SystemSection {
[162]2
[121]3    Site site
[162]4    Department department
[121]5
[118]6    String name
7    String description = ""
[162]8    String costCode = ""
[118]9    boolean isActive = true
10
[121]11    static hasMany = [assets: Asset, maintenanceActions: MaintenanceAction]
12
13    static belongsTo = [Site]
14
[118]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.