Ignore:
Timestamp:
May 1, 2009, 3:27:41 PM (15 years ago)
Author:
gav
Message:

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.

Location:
trunk/grails-app/domain
Files:
1 added
8 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/Asset.groovy

    r121 r122  
    11class Asset {
     2
    23    SystemSection systemSection
    34    AssetType assetType
     5
    46    String name
    57    String description = ""
     
    810    static hasMany = [maintenanceActions: MaintenanceAction]
    911
    10     static belongsTo = [SystemSection]
     12    static belongsTo = [SystemSection, AssetType]
    1113
    1214//     static constraints = {
  • trunk/grails-app/domain/AssetExtendedAttribute.groovy

    r121 r122  
    22
    33    AssetType assetType
     4    AssetExtendedAttributeType assetExtendedAttributeType
    45
    5     String name
    6     String description = ""
    76    String value
    87    boolean isActive = true
     
    1716
    1817    String toString() {
    19         "${this.name}"
     18        "${this.value}"
    2019    }
    2120}
  • trunk/grails-app/domain/AssetType.groovy

    r121 r122  
    55    boolean isActive = true
    66
    7     static hasMany = [assets: Asset, assemblies: Assembly, assetExtendedAttributes: AssetExtendedAttribute, maintenanceActions: MaintenanceAction]
     7    static hasMany = [assets: Asset,
     8                                    assemblies: Assembly,
     9                                    assetExtendedAttributes: AssetExtendedAttribute,
     10                                    maintenanceActions: MaintenanceAction]
    811
    912//     static belongsTo = []
  • trunk/grails-app/domain/ComponentItem.groovy

    r121 r122  
    11class ComponentItem {
     2
    23    String name
    34    String description = ""
  • trunk/grails-app/domain/MaintenanceAction.groovy

    r121 r122  
    22    MaintenancePolicy maintenancePolicy
    33    PlannedMaintenance plannedMaintenance
    4     SystemSection
     4    SystemSection systemSection
    55    Asset asset
    66    AssetType assetType
     
    1616    static belongsTo = [PlannedMaintenance]
    1717
    18 //     static constraints = {
    19 //
    20 //     }
     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    }
    2126
    2227    String toString() {
  • trunk/grails-app/domain/MaintenancePolicy.groovy

    r121 r122  
    1212//     }
    1313
    14 //     String toString() {
    15 //         "${this.name}"
    16 //     }
     14    String toString() {
     15        "${this.name}"
     16    }
    1717}
    1818
  • trunk/grails-app/domain/Period.groovy

    r120 r122  
    1 class Frequency {
    2     String frequency
     1class Period {
     2    String period
    33    boolean isActive = true
    44
    5     static hasMany = [lifePlans: LifePlan]
     5    static hasMany = [recurringSchedules: RecurringSchedule]
    66//
    77//     static belongsTo = []
     
    1212
    1313    String toString() {
    14         "${this.frequency}"
     14        "${this.period}"
    1515    }
    1616}
  • trunk/grails-app/domain/RecurringSchedule.groovy

    r121 r122  
    11class RecurringSchedule {
    22
     3    Task task
     4    Period period
    35    PlannedMaintenance plannedMaintenance
    4     Period period
    5     Task task
    66
    77    Integer recurEvery
     
    1313    static belongsTo = [Task]
    1414
    15 //     static constraints = {
    16 //     }
     15    static constraints = {
     16        plannedMaintenance(blank:true, nullable:true)
     17    }
    1718
    1819//     String toString() {
  • trunk/grails-app/domain/Task.groovy

    r121 r122  
    3636        comment()
    3737        primaryAsset(blank: true, nullable:true)
     38        recurringSchedule(blank: true, nullable:true)
    3839       
    3940    }
Note: See TracChangeset for help on using the changeset viewer.