[55] | 1 | // locations to search for config files that get merged into the main config |
---|
| 2 | // config files can either be Java properties files or ConfigSlurper scripts |
---|
| 3 | |
---|
| 4 | // grails.config.locations = [ "classpath:${appName}-config.properties", |
---|
| 5 | // "classpath:${appName}-config.groovy", |
---|
| 6 | // "file:${userHome}/.grails/${appName}-config.properties", |
---|
| 7 | // "file:${userHome}/.grails/${appName}-config.groovy"] |
---|
| 8 | |
---|
| 9 | // if(System.properties["${appName}.config.location"]) { |
---|
| 10 | // grails.config.locations << "file:" + System.properties["${appName}.config.location"] |
---|
| 11 | // } |
---|
[888] | 12 | |
---|
[901] | 13 | grails.app.context=/gnumims/ |
---|
[888] | 14 | // Set false due to acegi security issue. |
---|
| 15 | // See: http://jira.grails.org/browse/GPACEGI-41 |
---|
| 16 | // See: http://www.gnumims.org/trac/ticket/98 |
---|
| 17 | grails.mime.file.extensions = false // enables the parsing of file extensions from URLs into the request format |
---|
| 18 | |
---|
[55] | 19 | grails.mime.types = [ html: ['text/html','application/xhtml+xml'], |
---|
| 20 | xml: ['text/xml', 'application/xml'], |
---|
| 21 | text: 'text-plain', |
---|
| 22 | js: 'text/javascript', |
---|
| 23 | rss: 'application/rss+xml', |
---|
| 24 | atom: 'application/atom+xml', |
---|
| 25 | css: 'text/css', |
---|
| 26 | csv: 'text/csv', |
---|
[165] | 27 | pdf: 'application/pdf', |
---|
| 28 | rtf: 'application/rtf', |
---|
| 29 | excel: 'application/vnd.ms-excel', |
---|
| 30 | ods: 'application/vnd.oasis.opendocument.spreadsheet', |
---|
[55] | 31 | all: '*/*', |
---|
| 32 | json: ['application/json','text/json'], |
---|
| 33 | form: 'application/x-www-form-urlencoded', |
---|
| 34 | multipartForm: 'multipart/form-data' |
---|
| 35 | ] |
---|
| 36 | // The default codec used to encode data with ${} |
---|
| 37 | grails.views.default.codec="none" // none, html, base64 |
---|
| 38 | grails.views.gsp.encoding="UTF-8" |
---|
| 39 | grails.converters.encoding="UTF-8" |
---|
| 40 | |
---|
[449] | 41 | // enable Sitemesh preprocessing of GSP pages |
---|
| 42 | grails.views.gsp.sitemesh.preprocess = true |
---|
| 43 | // scaffolding templates configuration |
---|
| 44 | grails.scaffolding.templates.domainSuffix = 'Instance' |
---|
| 45 | |
---|
| 46 | // Set to false to use the new Grails 1.2 JSONBuilder in the render method |
---|
| 47 | grails.json.legacy.builder=false |
---|
| 48 | |
---|
[55] | 49 | // enabled native2ascii conversion of i18n properties files |
---|
| 50 | grails.enable.native2ascii = true |
---|
| 51 | |
---|
[449] | 52 | // whether to install the java.util.logging bridge for sl4j. Disable fo AppEngine! |
---|
| 53 | grails.logging.jul.usebridge = true |
---|
| 54 | // packages to include in Spring bean scanning |
---|
| 55 | grails.spring.bean.packages = [] |
---|
| 56 | |
---|
[622] | 57 | /** |
---|
| 58 | * Internal searchable index config. |
---|
| 59 | */ |
---|
| 60 | // Is set true by createDataService.startSearchableIndex() once bootstrap completes. |
---|
| 61 | appSearchable.cascadeOnUpdate = false |
---|
[449] | 62 | |
---|
[197] | 63 | /** |
---|
[622] | 64 | * Directory configuration. |
---|
| 65 | * Pickup the Tomcat/Catalina directory else use the target or current dir. |
---|
| 66 | */ |
---|
| 67 | def fs = File.separator // Local variable. |
---|
| 68 | globalDirs.targetDir = new File("target${fs}").isDirectory() ? "target${fs}" : '' |
---|
| 69 | globalDirs.catalinaBase = System.properties.getProperty('catalina.base') |
---|
| 70 | globalDirs.logDirectory = globalDirs.catalinaBase ? "${globalDirs.catalinaBase}${fs}logs${fs}" : globalDirs.targetDir |
---|
| 71 | globalDirs.workDirectory = globalDirs.catalinaBase ? "${globalDirs.catalinaBase}${fs}work${fs}" : globalDirs.targetDir |
---|
[635] | 72 | globalDirs.tempDirectory = globalDirs.catalinaBase ? "${globalDirs.catalinaBase}${fs}temp${fs}${appName}${fs}" : globalDirs.targetDir |
---|
[622] | 73 | globalDirs.searchableIndexDirectory = "${globalDirs.workDirectory}SearchableIndex${fs}${appName}${fs}" |
---|
[635] | 74 | globalDirs.tempInventoryItemPicturesDirectory = "${globalDirs.tempDirectory}InventoryItemPictures${fs}" |
---|
[622] | 75 | |
---|
| 76 | /** |
---|
[200] | 77 | * Log4j configuration. |
---|
| 78 | * Causing this file to reload (e.g. edit+save) may break the appLog destination |
---|
| 79 | * and further logs will be written to files or directories like "[:]". |
---|
[197] | 80 | * For more info see http://logging.apache.org/log4j/1.2/manual.html |
---|
| 81 | * For log levels see http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html |
---|
| 82 | * Basic log levels are ALL < TRACE < DEBUG < INFO < WARN < ERROR < FATAL < OFF |
---|
| 83 | */ |
---|
| 84 | |
---|
| 85 | log4j = { |
---|
| 86 | appenders { |
---|
| 87 | // Use if we want to prevent creation of a stacktrace.log file. |
---|
| 88 | 'null' name:'stacktrace' |
---|
| 89 | |
---|
| 90 | // Use this if we want to modify the default appender called 'stdout'. |
---|
| 91 | console name:'stdout', layout:pattern(conversionPattern: '[%t] %-5p %c{2} %x - %m%n') |
---|
| 92 | |
---|
| 93 | // Custom log file. |
---|
| 94 | rollingFile name:"appLog", |
---|
[622] | 95 | file:"${globalDirs.logDirectory}${appName}.log".toString(), |
---|
[358] | 96 | maxFileSize:'300kB', |
---|
[480] | 97 | maxBackupIndex:1, |
---|
[197] | 98 | layout:pattern(conversionPattern: '%d{[EEE, dd-MMM-yyyy @ HH:mm:ss.SSS]} [%t] %-5p %c %x - %m%n') |
---|
[55] | 99 | } |
---|
[197] | 100 | |
---|
[449] | 101 | // This is for the built-in stuff and from the default Grails-1.2.1 config. |
---|
[197] | 102 | error 'org.codehaus.groovy.grails.web.servlet', // controllers |
---|
| 103 | 'org.codehaus.groovy.grails.web.pages', // GSP |
---|
| 104 | 'org.codehaus.groovy.grails.web.sitemesh', // layouts |
---|
| 105 | 'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping |
---|
| 106 | 'org.codehaus.groovy.grails.web.mapping', // URL mapping |
---|
| 107 | 'org.codehaus.groovy.grails.commons', // core / classloading |
---|
| 108 | 'org.codehaus.groovy.grails.plugins', // plugins |
---|
| 109 | 'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration |
---|
| 110 | 'org.springframework', |
---|
[449] | 111 | 'org.hibernate', |
---|
| 112 | 'net.sf.ehcache.hibernate' |
---|
[197] | 113 | |
---|
| 114 | warn 'org.mortbay.log' // Jetty |
---|
| 115 | |
---|
[579] | 116 | error 'grails.app' // Set the default log level for our app code. |
---|
| 117 | info 'grails.app.bootstrap' // Set the log level per type and per type.class |
---|
| 118 | error 'grails.app.service.AuthService' |
---|
| 119 | error 'grails.app.service.NavigationService' |
---|
| 120 | error 'grails.app.service.com.zeddware.grails.plugins.filterpane.FilterService' |
---|
[622] | 121 | info 'org.codehaus.groovy.grails.plugins.searchable' |
---|
| 122 | //info 'org.compass' |
---|
[579] | 123 | error 'grails.app.task' // Quartz jobs. |
---|
[622] | 124 | info 'grails.app.task.InventoryIndexJob' |
---|
[200] | 125 | |
---|
| 126 | // Move anything that should behave differently into this section. |
---|
| 127 | switch(environment) { |
---|
| 128 | case 'development': |
---|
[480] | 129 | // Configure the root logger to output to stdout and appLog appenders. |
---|
| 130 | root { |
---|
| 131 | error 'stdout','appLog' |
---|
| 132 | additivity = true |
---|
| 133 | } |
---|
[481] | 134 | //debug "org.hibernate.SQL" |
---|
[579] | 135 | debug 'grails.app.service' |
---|
| 136 | debug 'grails.app.controller' |
---|
[200] | 137 | break |
---|
| 138 | case 'test': |
---|
[480] | 139 | // Configure the root logger to only output to appLog appender. |
---|
| 140 | root { |
---|
[508] | 141 | error 'stdout','appLog' |
---|
[480] | 142 | additivity = true |
---|
| 143 | } |
---|
[579] | 144 | debug 'grails.app.service' |
---|
| 145 | debug 'grails.app.controller' |
---|
[200] | 146 | break |
---|
| 147 | case 'production': |
---|
[480] | 148 | // Configure the root logger to only output to appLog appender. |
---|
| 149 | root { |
---|
| 150 | error 'appLog' |
---|
| 151 | additivity = true |
---|
| 152 | } |
---|
[579] | 153 | warn 'grails.app.service' |
---|
| 154 | warn 'grails.app.controller' |
---|
| 155 | debug 'grails.app.service.AssetCsvService' |
---|
| 156 | debug 'grails.app.service.PersonCsvService' |
---|
| 157 | debug 'grails.app.service.InventoryCsvService' |
---|
[637] | 158 | info 'grails.app.service.InventoryItemService' |
---|
[579] | 159 | debug 'grails.app.service.AssetTreeService' /// @todo: remove after testing. |
---|
[200] | 160 | break |
---|
| 161 | } |
---|
[55] | 162 | } |
---|
| 163 | |
---|
[197] | 164 | /** |
---|
| 165 | * Environment specific configuration. |
---|
| 166 | */ |
---|
| 167 | environments { |
---|
| 168 | |
---|
| 169 | production { |
---|
| 170 | grails.serverURL = "http://www.changeme.com" // Set serverURL stem for creating absolute links. |
---|
[55] | 171 | } |
---|
| 172 | |
---|
[197] | 173 | development { |
---|
| 174 | grails.serverURL = "http://localhost:8080/${appName}" // Set serverURL stem for creating absolute links. |
---|
| 175 | } |
---|
[55] | 176 | |
---|
[197] | 177 | test { |
---|
| 178 | grails.serverURL = "http://localhost:8080/${appName}" // Set serverURL stem for creating absolute links. |
---|
| 179 | } |
---|
| 180 | |
---|
| 181 | } // end environments |
---|
| 182 | |
---|
[199] | 183 | /** |
---|
| 184 | * Navigation plugin menu. |
---|
| 185 | * The top level titles are taken from i18n message bundles. |
---|
| 186 | * Subitems i18n message bundles are not currently resolving with this plugin. |
---|
| 187 | */ |
---|
[139] | 188 | navigation.nav = [ |
---|
| 189 | [order:10, controller:'appCore', title:'home', action:'start', |
---|
| 190 | subItems: [ |
---|
| 191 | [order:10, controller:'appCore', title:'Start', action:'start', isVisible: { true }], |
---|
[627] | 192 | [order:20, controller:'appCore', title:'Manager', action:'manager', isVisible: { |
---|
| 193 | authenticateService.ifAnyGranted('ROLE_AppAdmin,ROLE_Manager,ROLE_TaskManager,ROLE_InventoryManager,ROLE_AssetManager,ROLE_ProductionManager') |
---|
| 194 | } |
---|
| 195 | ], |
---|
[139] | 196 | [order:30, controller:'appCore', title:'Admin', action:'appAdmin', isVisible: { authenticateService.ifAllGranted('ROLE_AppAdmin') }], |
---|
| 197 | [order:90, controller:'appCore', title:'Timeout', action:'changeSessionTimeout', isVisible: { params.action == 'changeSessionTimeout' }], |
---|
| 198 | [order:91, controller:'appCore', title:'Password', action:'changePassword', isVisible: { params.action == 'changePassword' }], |
---|
| 199 | ] |
---|
| 200 | ], |
---|
| 201 | [order:20, controller:'taskDetailed', title:'tasks', action:'search', |
---|
| 202 | subItems: [ |
---|
[215] | 203 | [order:10, controller:'taskDetailed', title:'Search', action:'search', isVisible: { true }], |
---|
| 204 | [order:11, controller:'taskDetailed', title:'Calendar', action:'searchCalendar', isVisible: { true }], |
---|
[418] | 205 | [order:20, controller:'taskDetailed', title:'+Scheduled', action:'create', isVisible: { true }], |
---|
[433] | 206 | [order:30, controller:'taskDetailed', title:'+Unsheduled', action:'createUnscheduled', isVisible: { true }], |
---|
| 207 | [order:40, controller:'taskDetailed', title:'+Callout', action:'createImmediateCallout', isVisible: { true }], |
---|
| 208 | [order:90, controller:'taskDetailed', title:'Show', action:'show', id:'nav', isVisible: { params.action == 'show' }], |
---|
| 209 | [order:91, controller:'taskDetailed', title:'Edit', action:'edit', id:'nav', isVisible: { params.action == 'edit' }] |
---|
[139] | 210 | ] |
---|
| 211 | ], |
---|
| 212 | [order:30, controller:'inventoryItemDetailed', title:'inventory', action:'search', |
---|
| 213 | subItems: [ |
---|
| 214 | [order:10, controller:'inventoryItemDetailed', title:'Search', action:'search', isVisible: { true }], |
---|
| 215 | [order:20, controller:'inventoryItemDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 216 | [order:90, controller:'inventoryItemDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
[646] | 217 | [order:91, controller:'inventoryItemDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }], |
---|
| 218 | [order:91, controller:'inventoryItemDetailed', title:'Reorder', action:'reorder', isVisible: { params.action == 'reorder' }] |
---|
[139] | 219 | ] |
---|
| 220 | ], |
---|
[306] | 221 | [order:40, controller:'assetDetailed', title:'assets', action:'search', |
---|
[139] | 222 | subItems: [ |
---|
[306] | 223 | [order:10, controller:'assetDetailed', title:'Search', action:'search', isVisible: { true }], |
---|
[139] | 224 | [order:20, controller:'assetDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 225 | [order:90, controller:'assetDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
[353] | 226 | [order:91, controller:'assetDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }], |
---|
| 227 | [order:99, controller:'assetSubItemDetailed', title:'Sub Items', action:'search', isVisible: { true }] |
---|
[139] | 228 | ] |
---|
| 229 | ] |
---|
| 230 | ] |
---|
[58] | 231 | |
---|
[199] | 232 | /** |
---|
| 233 | * Navigation plugin alternate menu. |
---|
[367] | 234 | * The alternate menu top level titles are not displayed anywhere. |
---|
[199] | 235 | * Subitems i18n message bundles are not currently resolving with this plugin. |
---|
| 236 | */ |
---|
[147] | 237 | navigation.navAlt = [ |
---|
| 238 | [order:10, controller:'person', title:'person', action:'list', |
---|
| 239 | subItems: [ |
---|
| 240 | [order:10, controller:'person', title:'Person List', action:'list', isVisible: { true }], |
---|
| 241 | [order:20, controller:'person', title:'Create', action:'create', isVisible: { true }], |
---|
| 242 | [order:90, controller:'person', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 243 | [order:91, controller:'person', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 244 | ] |
---|
| 245 | ], |
---|
[367] | 246 | [order:20, controller:'taskProcedureDetailed', title:'taskProcedure', action:'list', |
---|
[147] | 247 | subItems: [ |
---|
| 248 | [order:10, controller:'taskProcedureDetailed', title:'Task Procedure List', action:'list', isVisible: { true }], |
---|
| 249 | [order:20, controller:'taskProcedureDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 250 | [order:90, controller:'taskProcedureDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 251 | [order:91, controller:'taskProcedureDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 252 | ] |
---|
[367] | 253 | ], |
---|
| 254 | [order:30, controller:'assetSubItemDetailed', title:'assetSubItem', action:'search', |
---|
| 255 | subItems: [ |
---|
| 256 | [order:10, controller:'assetSubItemDetailed', title:'Sub Item Search', action:'search', isVisible: { true }], |
---|
| 257 | [order:20, controller:'assetSubItemDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 258 | [order:90, controller:'assetSubItemDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 259 | [order:91, controller:'assetSubItemDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 260 | ] |
---|
| 261 | ], |
---|
| 262 | [order:40, controller:'maintenancePolicyDetailed', title:'maintenancePolicy', action:'list', |
---|
| 263 | subItems: [ |
---|
| 264 | [order:10, controller:'maintenancePolicyDetailed', title:'Maintenance Policy List', action:'list', isVisible: { true }], |
---|
| 265 | [order:20, controller:'maintenancePolicyDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 266 | [order:90, controller:'maintenancePolicyDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 267 | [order:91, controller:'maintenancePolicyDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 268 | ] |
---|
[374] | 269 | ], |
---|
| 270 | [order:50, controller:'supplierDetailed', title:'supplier', action:'list', |
---|
| 271 | subItems: [ |
---|
| 272 | [order:10, controller:'supplierDetailed', title:'Supplier List', action:'list', isVisible: { true }], |
---|
| 273 | [order:20, controller:'supplierDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 274 | [order:90, controller:'supplierDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 275 | [order:91, controller:'supplierDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 276 | ] |
---|
| 277 | ], |
---|
[377] | 278 | [order:70, controller:'inventoryStoreDetailed', title:'inventoryStore', action:'list', |
---|
| 279 | subItems: [ |
---|
| 280 | [order:10, controller:'inventoryStoreDetailed', title:'Inventory Store List', action:'list', isVisible: { true }], |
---|
| 281 | [order:20, controller:'inventoryStoreDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 282 | [order:90, controller:'inventoryStoreDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 283 | [order:91, controller:'inventoryStoreDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 284 | ] |
---|
| 285 | ], |
---|
| 286 | [order:80, controller:'inventoryLocationDetailed', title:'inventoryLocation', action:'list', |
---|
| 287 | subItems: [ |
---|
| 288 | [order:10, controller:'inventoryLocationDetailed', title:'Inventory Location List', action:'list', isVisible: { true }], |
---|
| 289 | [order:20, controller:'inventoryLocationDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 290 | [order:90, controller:'inventoryLocationDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 291 | [order:91, controller:'inventoryLocationDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 292 | ] |
---|
[380] | 293 | ], |
---|
| 294 | [order:90, controller:'inventoryGroupDetailed', title:'inventoryGroup', action:'list', |
---|
| 295 | subItems: [ |
---|
| 296 | [order:10, controller:'inventoryGroupDetailed', title:'Inventory Group List', action:'list', isVisible: { true }], |
---|
| 297 | [order:20, controller:'inventoryGroupDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 298 | [order:90, controller:'inventoryGroupDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 299 | [order:91, controller:'inventoryGroupDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 300 | ] |
---|
[383] | 301 | ], |
---|
| 302 | [order:110, controller:'supplierTypeDetailed', title:'supplierType', action:'list', |
---|
| 303 | subItems: [ |
---|
| 304 | [order:10, controller:'supplierTypeDetailed', title:'Supplier Type List', action:'list', isVisible: { true }], |
---|
| 305 | [order:20, controller:'supplierTypeDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 306 | [order:90, controller:'supplierTypeDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 307 | [order:91, controller:'supplierTypeDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 308 | ] |
---|
[385] | 309 | ], |
---|
[386] | 310 | [order:120, controller:'siteDetailed', title:'site', action:'list', |
---|
[385] | 311 | subItems: [ |
---|
| 312 | [order:10, controller:'siteDetailed', title:'Site List', action:'list', isVisible: { true }], |
---|
| 313 | [order:20, controller:'siteDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 314 | [order:90, controller:'siteDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 315 | [order:91, controller:'siteDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 316 | ] |
---|
| 317 | ], |
---|
[386] | 318 | [order:130, controller:'sectionDetailed', title:'section', action:'list', |
---|
[385] | 319 | subItems: [ |
---|
| 320 | [order:10, controller:'sectionDetailed', title:'Section List', action:'list', isVisible: { true }], |
---|
| 321 | [order:20, controller:'sectionDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 322 | [order:90, controller:'sectionDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 323 | [order:91, controller:'sectionDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 324 | ] |
---|
[386] | 325 | ], |
---|
[387] | 326 | [order:140, controller:'extendedAttributeTypeDetailed', title:'extendedAttributeType', action:'list', |
---|
[386] | 327 | subItems: [ |
---|
| 328 | [order:10, controller:'extendedAttributeTypeDetailed', title:'Attribute Type List', action:'list', isVisible: { true }], |
---|
| 329 | [order:20, controller:'extendedAttributeTypeDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 330 | [order:90, controller:'extendedAttributeTypeDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 331 | [order:91, controller:'extendedAttributeTypeDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 332 | ] |
---|
[412] | 333 | ], |
---|
| 334 | [order:150, controller:'departmentDetailed', title:'department', action:'list', |
---|
| 335 | subItems: [ |
---|
| 336 | [order:10, controller:'departmentDetailed', title:'Department List', action:'list', isVisible: { true }], |
---|
| 337 | [order:20, controller:'departmentDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 338 | [order:90, controller:'departmentDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 339 | [order:91, controller:'departmentDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 340 | ] |
---|
[431] | 341 | ], |
---|
| 342 | [order:160, controller:'productionReferenceDetailed', title:'productionReference', action:'list', |
---|
| 343 | subItems: [ |
---|
| 344 | [order:10, controller:'productionReferenceDetailed', title:'Production Reference List', action:'list', isVisible: { true }], |
---|
| 345 | [order:20, controller:'productionReferenceDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 346 | [order:90, controller:'productionReferenceDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 347 | [order:91, controller:'productionReferenceDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 348 | ] |
---|
[440] | 349 | ], |
---|
| 350 | [order:170, controller:'costCodeDetailed', title:'costCode', action:'list', |
---|
| 351 | subItems: [ |
---|
| 352 | [order:10, controller:'costCodeDetailed', title:'Cost Code List', action:'list', isVisible: { true }], |
---|
| 353 | [order:20, controller:'costCodeDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 354 | [order:90, controller:'costCodeDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 355 | [order:91, controller:'costCodeDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 356 | ] |
---|
[471] | 357 | ], |
---|
| 358 | [order:180, controller:'personGroupDetailed', title:'personGroup', action:'list', |
---|
| 359 | subItems: [ |
---|
| 360 | [order:10, controller:'personGroupDetailed', title:'Person Group List', action:'list', isVisible: { true }], |
---|
| 361 | [order:20, controller:'personGroupDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 362 | [order:90, controller:'personGroupDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 363 | [order:91, controller:'personGroupDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 364 | ] |
---|
| 365 | ], |
---|
| 366 | [order:190, controller:'personGroupTypeDetailed', title:'personGroupType', action:'list', |
---|
| 367 | subItems: [ |
---|
| 368 | [order:10, controller:'personGroupTypeDetailed', title:'Person Group Type List', action:'list', isVisible: { true }], |
---|
| 369 | [order:20, controller:'personGroupTypeDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 370 | [order:90, controller:'personGroupTypeDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 371 | [order:91, controller:'personGroupTypeDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 372 | ] |
---|
[556] | 373 | ], |
---|
| 374 | [order:200, controller:'taskGroupDetailed', title:'taskProcedure', action:'list', |
---|
| 375 | subItems: [ |
---|
| 376 | [order:10, controller:'taskGroupDetailed', title:'Task Group List', action:'list', isVisible: { true }], |
---|
| 377 | [order:20, controller:'taskGroupDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 378 | [order:90, controller:'taskGroupDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 379 | [order:91, controller:'taskGroupDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 380 | ] |
---|
[559] | 381 | ], |
---|
| 382 | [order:210, controller:'unitOfMeasureDetailed', title:'unitOfMeasure', action:'list', |
---|
| 383 | subItems: [ |
---|
| 384 | [order:10, controller:'unitOfMeasureDetailed', title:'Unit Of Measure List', action:'list', isVisible: { true }], |
---|
| 385 | [order:20, controller:'unitOfMeasureDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 386 | [order:90, controller:'unitOfMeasureDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 387 | [order:91, controller:'unitOfMeasureDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 388 | ] |
---|
[595] | 389 | ], |
---|
| 390 | [order:220, controller:'inventoryItemPurchaseDetailed', title:'inventoryItemPurchase', action:'search', |
---|
| 391 | subItems: [ |
---|
| 392 | [order:10, controller:'inventoryItemPurchaseDetailed', title:'Purchase Search', action:'search', isVisible: { true }], |
---|
| 393 | [order:20, controller:'inventoryItemPurchaseDetailed', title:'Order', action:'create', isVisible: { true }], |
---|
| 394 | [order:90, controller:'inventoryItemPurchaseDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 395 | [order:91, controller:'inventoryItemPurchaseDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 396 | ] |
---|
[633] | 397 | ], |
---|
| 398 | [order:230, controller:'purchasingGroupDetailed', title:'purchasingGroup', action:'list', |
---|
| 399 | subItems: [ |
---|
| 400 | [order:10, controller:'purchasingGroupDetailed', title:'Purchasing Group List', action:'list', isVisible: { true }], |
---|
| 401 | [order:20, controller:'purchasingGroupDetailed', title:'Create', action:'create', isVisible: { true }], |
---|
| 402 | [order:90, controller:'purchasingGroupDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], |
---|
| 403 | [order:91, controller:'purchasingGroupDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] |
---|
| 404 | ] |
---|
[147] | 405 | ] |
---|
| 406 | ] |
---|
[199] | 407 | |
---|
| 408 | /** |
---|
[604] | 409 | * Custom application global settings. |
---|
[607] | 410 | * @todo: externalise these settings to a config file (along with the database settings) or have them configurable via the web interface+database. |
---|
[199] | 411 | */ |
---|
| 412 | taskRecurringScheduleJob.repeatInterval=10 |
---|
[608] | 413 | // It is recommended to limit the currencyList to the one that the site uses e.g: currencyList = ['AUD'] |
---|
[607] | 414 | currencyList = ['EUR', 'XCD', 'USD', 'XOF', 'NOK', 'AUD', 'XAF', 'NZD', 'MAD', 'DKK', 'GBP', 'CHF', 'XPF', 'ILS', 'ROL', 'TRL'] |
---|
[604] | 415 | |
---|