Changeset 920 for branches/features
- Timestamp:
- May 7, 2011, 12:42:44 PM (14 years ago)
- Location:
- branches/features/purchaseOrders
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/features/purchaseOrders
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/trunk merged eligible /branches/features/grailsUpgrade 889-911
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
branches/features/purchaseOrders/application.properties
r901 r920 6 6 app.vcsRevision=$Rev$ 7 7 app.version= 8 plugins.acegi=0.5.39 plugins.class-diagram=0.5.210 plugins.export=0.711 plugins.filterpane=0.712 plugins.help-balloons=1.413 8 plugins.hibernate=1.3.7 14 plugins.jasper=1.1.315 plugins.navigation=1.1.116 plugins.quartz=0.4.217 plugins.richui=0.818 plugins.searchable=0.6-SNAPSHOT19 9 plugins.tomcat=1.3.7 -
branches/features/purchaseOrders/grails-app/conf/BuildConfig.groovy
r901 r920 19 19 20 20 grails.war.resources = { stagingDir, args -> 21 // Remove some duplicate jars. 22 delete file: "${stagingDir}/WEB-INF/lib/jasperreports-2.0.5.jar" 23 delete file: "${stagingDir}/WEB-INF/lib/jasperreports-3.1.2.jar" 24 delete file: "${stagingDir}/WEB-INF/lib/aspectjrt-1.5.4.jar" 25 delete file: "${stagingDir}/WEB-INF/lib/commons-digester-1.7.jar" 26 delete file: "${stagingDir}/WEB-INF/lib/iText-2.0.8.jar" 21 // Remove some duplicate/not required jars. 22 // From export plugin lib dir. 27 23 delete file: "${stagingDir}/WEB-INF/lib/iText-2.1.5.jar" 28 delete file: "${stagingDir}/WEB-INF/lib/jfreechart-1.0.3.jar" 29 delete file: "${stagingDir}/WEB-INF/lib/poi-3.0.2-FINAL-20080204.jar" 30 delete file: "${stagingDir}/WEB-INF/lib/facebook-2.0.4.jar" 24 // From acegi plugin lib dir. 25 delete file: "${stagingDir}/WEB-INF/lib/facebook-java-api-2.0.4.jar" 26 delete file: "${stagingDir}/WEB-INF/lib/easymock.jar" 27 delete file: "${stagingDir}/WEB-INF/lib/cas-client-core-3.1.1.jar" 28 delete file: "${stagingDir}/WEB-INF/lib/openid4java-0.9.2.jar" 29 31 30 } 32 31 … … 57 56 } 58 57 58 plugins { 59 runtime ':acegi:0.5.3' 60 runtime ':export:0.7' 61 runtime ':filterpane:0.7' 62 runtime ':help-balloons:1.4' 63 runtime(':jasper:1.1.3') { 64 transitive = false 65 } 66 runtime ':navigation:1.1.1' 67 runtime ':quartz:0.4.2' 68 runtime ':richui:0.8' 69 runtime ':searchable:0.6-SNAPSHOT' 70 71 test ':geb:0.6-SNAPSHOT' 72 test ':spock:0.5-groovy-1.7' 73 } 74 59 75 dependencies { 60 76 // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg. … … 62 78 runtime 'mysql:mysql-connector-java:5.1.9' 63 79 80 // Japser plugin. 81 runtime('net.sf.jasperreports:jasperreports:3.7.2') { 82 excludes 'antlr', 'commons-beanutils', 'commons-collections', 'commons-logging', 83 'ant', 'mondrian', 'commons-javaflow','barbecue', 'xml-apis-ext','xml-apis', 'xalan', 'groovy-all', 'hibernate', 'saaj-api', 'servlet-api', 84 'xercesImpl','xmlParserAPIs','spring-core','bsh', 'spring-beans', 'jaxen', 'barcode4j','batik-svg-dom','batik-xml','batik-awt-util','batik-dom', 85 'batik-css','batik-gvt','batik-script', 'batik-svggen','batik-util','batik-bridge','persistence-api','jdtcore','bcmail-jdk14','bcprov-jdk14','bctsp-jdk14' 86 } 64 87 runtime('org.apache.poi:poi:3.5-FINAL') { 65 excludes ' servlet-api', 'commons-logging', 'log4j'88 excludes 'log4j', 'commons-logging' 66 89 } 67 90 68 runtime('net.sf.jasperreports:jasperreports:3.7.2') { 69 excludes 'xml-apis' 70 } 71 91 // Origin unknown, still required? 72 92 runtime('org.apache.ant:ant:1.7.1') 73 93 runtime('org.apache.ant:ant-launcher:1.7.1') 74 94 75 test( "org.seleniumhq.selenium:selenium-htmlunit-driver:latest.release") {95 test('org.seleniumhq.selenium:selenium-htmlunit-driver:latest.release') { 76 96 excludes 'xml-apis' 77 97 } 78 98 } 79 plugins {80 test ":geb:0.6-SNAPSHOT"81 test ":spock:0.5-groovy-1.7"82 }83 99 84 100 } -
branches/features/purchaseOrders/grails-app/conf/SecurityConfig.groovy
r532 r920 44 44 '/plugins/*/css/**': ['IS_AUTHENTICATED_ANONYMOUSLY'], 45 45 '/plugins/*/js/**': ['IS_AUTHENTICATED_ANONYMOUSLY'], 46 '/classDiagram*': ['IS_AUTHENTICATED_FULLY'],47 '/classDiagram/**': ['IS_AUTHENTICATED_FULLY'],48 46 '/login*': ['IS_AUTHENTICATED_ANONYMOUSLY'], 49 47 '/login/**': ['IS_AUTHENTICATED_ANONYMOUSLY'], -
branches/features/purchaseOrders/grails-app/controllers/AppCoreController.groovy
r707 r920 58 58 59 59 // Build the plugins string. 60 def pluginProperties = grailsApplication.metadata.findAll {it.key.contains('plugin')} 61 pluginProperties.each() { 62 it.key = WordUtils.capitalize( (it.key + GString.EMPTY).split("\\.")[-1] ) 63 } 64 pluginProperties = pluginProperties.sort { p1, p2 -> p1.key.compareToIgnoreCase(p2.key) } 65 def plugins = pluginProperties.collect{ it.key + '-' + it.value }.join(", ") 60 def userPlugins = org.codehaus.groovy.grails.plugins.PluginManagerHolder.pluginManager.userPlugins 61 62 userPlugins = userPlugins.sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } 63 64 def plugins = userPlugins.collect{ 65 WordUtils.capitalize(it.name) + '-' + it.version 66 }.join(", ") 66 67 67 68 def sections = Section.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } -
branches/features/purchaseOrders/grails-app/controllers/AssetDetailedController.groovy
r885 r920 164 164 if(params?.format && params.format != "html") { 165 165 166 def dateFmt = { d ate ->167 formatDate(format: "EEE, dd-MMM-yyyy", date: date)166 def dateFmt = { domain, value -> 167 formatDate(format: "EEE, dd-MMM-yyyy", date: value) 168 168 } 169 169 170 // def fmtAsset = { m ->170 // def fmtAsset = { d, m -> 171 171 // def r = '' 172 172 // def assetInstance = Asset.findByName(m) … … 184 184 // } 185 185 186 // def fmtSubAsset = { m ->186 // def fmtSubAsset = { d, m -> 187 187 // def r = '' 188 188 // m.each() { -
branches/features/purchaseOrders/grails-app/controllers/AssetSubItemDetailedController.groovy
r658 r920 60 60 if(params?.format && params.format != "html") { 61 61 62 def dateFmt = { d ate ->63 formatDate(format: "EEE, dd-MMM-yyyy", date: date)62 def dateFmt = { domain, value -> 63 formatDate(format: "EEE, dd-MMM-yyyy", date: value) 64 64 } 65 65 -
branches/features/purchaseOrders/grails-app/controllers/InventoryItemDetailedController.groovy
r727 r920 292 292 if(params?.format && params.format != "html") { 293 293 294 def dateFmt = { d ate ->295 formatDate(format: "EEE, dd-MMM-yyyy", date: date)294 def dateFmt = { domain, value -> 295 formatDate(format: "EEE, dd-MMM-yyyy", date: value) 296 296 } 297 297 … … 646 646 if(params?.format && params.format != "html") { 647 647 648 def dateFmt = { d ate ->649 formatDate(format: "EEE, dd-MMM-yyyy", date: date)648 def dateFmt = { domain, value -> 649 formatDate(format: "EEE, dd-MMM-yyyy", date: value) 650 650 } 651 651 -
branches/features/purchaseOrders/grails-app/controllers/InventoryItemPurchaseDetailedController.groovy
r893 r920 143 143 if(params?.format && params.format != "html") { 144 144 145 def dateFmt = { d ate ->146 formatDate(format: "EEE, dd-MMM-yyyy", date: date)145 def dateFmt = { domain, value -> 146 formatDate(format: "EEE, dd-MMM-yyyy", date: value) 147 147 } 148 148 -
branches/features/purchaseOrders/grails-app/controllers/TaskDetailedController.groovy
r871 r920 147 147 if(params?.format && params.format != "html") { 148 148 149 def dateFmt = { d ate ->150 formatDate(format: "EEE, dd-MMM-yyyy", date: date)149 def dateFmt = { domain, value -> 150 formatDate(format: "EEE, dd-MMM-yyyy", date: value) 151 151 } 152 152 … … 308 308 if(params?.format && params.format != "html") { 309 309 310 def dateFmt = { d ate ->311 formatDate(format: "EEE, dd-MMM-yyyy", date: date)310 def dateFmt = { domain, value -> 311 formatDate(format: "EEE, dd-MMM-yyyy", date: value) 312 312 } 313 313 -
branches/features/purchaseOrders/grails-app/domain/InventoryItem.groovy
r892 r920 13 13 BigDecimal estimatedUnitPriceAmount 14 14 Currency estimatedUnitPriceCurrency 15 String suppliersPartNumber 15 String suppliersPartNumber = "" 16 16 Integer unitsInStock = 0 17 17 Integer reorderPoint = 0 … … 26 26 27 27 static hasMany = [spareFor: Asset, 28 29 28 inventoryMovements: InventoryMovement, 29 alternateSuppliers: Supplier] 30 30 31 31 // static belongsTo = [] … … 48 48 estimatedUnitPriceAmount(nullable:true, max: new BigDecimal(1000000000000)) 49 49 estimatedUnitPriceCurrency(nullable:true) 50 suppliersPartNumber(blank:true, nullable:true,maxSize:50)50 suppliersPartNumber(blank:true, maxSize:50) 51 51 preferredSupplier(nullable:true) 52 52 } -
branches/features/purchaseOrders/grails-app/services/AssetTreeService.groovy
r800 r920 111 111 112 112 def sw = new StringWriter() 113 def m kp= new groovy.xml.MarkupBuilder(sw)114 115 m kp.div(class: buttonHtmlClass) {113 def mb = new groovy.xml.MarkupBuilder(sw) 114 115 mb.div(class: buttonHtmlClass) { 116 116 a( href: hrefShowPane() ) { 117 117 img(src: treeRootImg, alt: 'Asset Tree', title: 'Asset Tree') 118 118 } 119 } // mkp119 } 120 120 121 121 return sw.toString() … … 133 133 134 134 def sw = new StringWriter() 135 def m kp= new groovy.xml.MarkupBuilder(sw)136 137 m kp.div(class: paneHtmlClass, id: paneHtmlId, style: 'display:none;') {135 def mb = new groovy.xml.MarkupBuilder(sw) 136 137 mb.div(class: paneHtmlClass, id: paneHtmlId, style: 'display:none;') { 138 138 div(class: paneCloseHtmlClass) { 139 139 a( href: js.toggle(paneHtmlId) ) { … … 155 155 } // table 156 156 } // div 157 } // mkp157 } 158 158 159 159 return sw.toString() … … 203 203 204 204 def sw = new StringWriter() 205 def m kp= new groovy.xml.MarkupBuilder(sw)205 def mb = new groovy.xml.MarkupBuilder(sw) 206 206 207 207 // Offer a site create link if no sites are found. 208 208 if(!sites) { 209 m kp.div(class: tableDivHtmlClass) {209 mb.div(class: tableDivHtmlClass) { 210 210 211 211 div(class: paneCloseHtmlClass) { … … 235 235 } 236 236 } // button div 237 } // m kp237 } // mb 238 238 return sw.toString() 239 239 } // if(!sites) … … 242 242 // The main populated table. 243 243 /// @todo: use a loop for the subItem levels. 244 m kp.div(class: tableDivHtmlClass) {244 mb.div(class: tableDivHtmlClass) { 245 245 246 246 div(class: paneCloseHtmlClass) { … … 443 443 } 444 444 445 } // m kp445 } // mb 446 446 447 447 def totalTime = (System.currentTimeMillis() - startedAt)/1000 -
branches/features/purchaseOrders/grails-app/taglib/CustomTagLib.groovy
r829 r920 314 314 */ 315 315 def helpBalloon = {attrs, body -> 316 def m kp = new groovy.xml.MarkupBuilder(out) //this line will be unnecessary in versions of Grails after version 1.2316 def mb = new groovy.xml.MarkupBuilder(out) 317 317 318 318 def title = attrs["title"] … … 352 352 if(iconSrc) { 353 353 iconId = iconId ?: "customHb$num" 354 m kp.img(id: iconId, src: iconSrc)354 mb.img(id: iconId, src: iconSrc) 355 355 } 356 356 … … 367 367 });""" 368 368 369 m kp.script(type: "text/javascript") {370 yieldUnescaped(javascript)369 mb.script(type: "text/javascript") { 370 mkp.yieldUnescaped(javascript) 371 371 } 372 372 -
branches/features/purchaseOrders/grails-app/taglib/JsUtilTagLib.groovy
r568 r920 28 28 */ 29 29 def toggleControl = { attrs -> 30 def m kp = new groovy.xml.MarkupBuilder(out) //this line will be unnecessary in versions of Grails after version 1.230 def mb = new groovy.xml.MarkupBuilder(out) 31 31 32 32 def toggleJs … … 39 39 40 40 if(attrs.useDiv == 'false') { 41 m kp.a( href: toggleJs ) {42 yieldUnescaped(attrs.text)41 mb.a( href: toggleJs ) { 42 mkp.yieldUnescaped(attrs.text) 43 43 img(id: attrs.imageId, src: attrs.closedImgUrl, alt: "Show") 44 } // mkp44 } 45 45 46 46 } 47 47 else { 48 m kp.div() {48 mb.div() { 49 49 a( href: toggleJs ) { 50 yieldUnescaped(attrs.text)50 mkp.yieldUnescaped(attrs.text) 51 51 img(id: attrs.imageId, src: attrs.closedImgUrl, alt: "Show") 52 52 } 53 } // mkp53 } 54 54 } 55 55 -
branches/features/purchaseOrders/grails-app/views/appCore/manager.gsp
r746 r920 72 72 </tr> 73 73 74 <tr class="prop">75 <td valign="top" class="name">76 <label>Entity Relationship Diagram:</label>77 </td>78 <td valign="top" class="value">79 80 <a href="${createLink(controller:'classDiagram', action:'model', params:[outputFormat: 'pdf', skin: 'classicSpaced', showMethods: 'false', autoUpdate: 'false'])}">PDF</a>81 <br />82 <a href="${createLink(controller:'classDiagram', action:'legend', target:'_blank')}">Legend</a>83 <br />84 <a href="${createLink(controller:'classDiagram', action:'show')}">Interactive.</a>85 </td>86 </tr>87 88 74 </tbody> 89 75 </table> -
branches/features/purchaseOrders/scripts/_UpdateRev.groovy
r531 r920 114 114 return fail(code:"vcs.working.copy.not.found", args:[basedir]) 115 115 116 // Use svnkit to get the baserevision.116 // Use svnkit to get the last committed revision. 117 117 def clientManager = SVNClientManager.newInstance() 118 118 def wcClient = clientManager.getWCClient() 119 119 try { 120 result.revision = wcClient.doInfo(wc, SVNRevision.BASE).get Revision().toString()120 result.revision = wcClient.doInfo(wc, SVNRevision.BASE).getCommittedRevision().toString() 121 121 } 122 122 catch(org.tmatesoft.svn.core.SVNException e) {
Note: See TracChangeset
for help on using the changeset viewer.