Changeset 549 for trunk/grails-app/services/CreateDataService.groovy
- Timestamp:
- May 27, 2010, 9:24:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/CreateDataService.groovy
r534 r549 13 13 def dateUtilService 14 14 def appConfigService 15 def inventoryItemService 15 16 def assignedGroupService 16 17 def assignedPersonService 18 19 def grailsApplication 17 20 18 21 /******************************************* … … 1203 1206 def inventoryItemInstance 1204 1207 1208 def pictureResource = grailsApplication.mainContext.getResource('images/logo.png') 1209 1205 1210 //InventoryItem #1 1206 1211 inventoryItemInstance = new InventoryItem(inventoryGroup: InventoryGroup.get(1), … … 1213 1218 reorderPoint: 0) 1214 1219 saveAndTest(inventoryItemInstance) 1220 inventoryItemService.savePicture(inventoryItemInstance, pictureResource) 1215 1221 1216 1222 //InventoryItem #2 … … 1225 1231 reorderPoint: 0) 1226 1232 saveAndTest(inventoryItemInstance) 1233 inventoryItemService.savePicture(inventoryItemInstance, pictureResource) 1227 1234 1228 1235 //InventoryItem #3 … … 1236 1243 reorderPoint: 2) 1237 1244 saveAndTest(inventoryItemInstance) 1245 inventoryItemService.savePicture(inventoryItemInstance, pictureResource) 1238 1246 1239 1247 //InventoryItem #4 … … 1247 1255 reorderPoint: 0) 1248 1256 saveAndTest(inventoryItemInstance) 1257 inventoryItemService.savePicture(inventoryItemInstance, pictureResource) 1249 1258 1250 1259 //InventoryItem #5 … … 1258 1267 reorderPoint: 2) 1259 1268 saveAndTest(inventoryItemInstance) 1269 inventoryItemService.savePicture(inventoryItemInstance, pictureResource) 1260 1270 } 1261 1271
Note: See TracChangeset
for help on using the changeset viewer.