- Timestamp:
- Sep 18, 2010, 9:54:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/CreateDataService.groovy
r633 r650 1367 1367 1368 1368 //ExtendedAttributeType #8 1369 extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Manufacturer 's Number")1369 extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Manufacturer") 1370 1370 saveAndTest(extendedAttributeTypeInstance) 1371 1371 1372 1372 //ExtendedAttributeType #9 1373 extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Inventory Number") 1373 extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Hazards Identified") 1374 saveAndTest(extendedAttributeTypeInstance) 1375 1376 //ExtendedAttributeType #10 1377 extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Risk Assesment") 1378 saveAndTest(extendedAttributeTypeInstance) 1379 1380 //ExtendedAttributeType #11 1381 extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Safe Work Procedure") 1382 saveAndTest(extendedAttributeTypeInstance) 1383 1384 //ExtendedAttributeType #12 1385 extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Maintenance Frequency") 1386 saveAndTest(extendedAttributeTypeInstance) 1387 1388 //ExtendedAttributeType #13 1389 extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Maintenance Date") 1390 saveAndTest(extendedAttributeTypeInstance) 1391 1392 //ExtendedAttributeType #14 1393 extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Registration Required") 1394 saveAndTest(extendedAttributeTypeInstance) 1395 1396 //ExtendedAttributeType #15 1397 extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Registration Expiry Date") 1374 1398 saveAndTest(extendedAttributeTypeInstance) 1375 1399 } … … 1410 1434 def assetInstance1 = new Asset(name: "Print Tower 22", 1411 1435 description: "Complete Printing Asset #22", 1436 comment: "Includes everthing directly attached to the tower.", 1412 1437 section: Section.get(1)) 1413 1438 saveAndTest(assetInstance1) … … 1540 1565 1541 1566 //AssetExtendedAttribute #1 1567 assetExtendedAttributeInstance = new AssetExtendedAttribute(value: "United Press", 1568 asset: Asset.get(1), 1569 extendedAttributeType: ExtendedAttributeType.get(8)) 1570 saveAndTest(assetExtendedAttributeInstance) 1571 1572 //AssetExtendedAttribute #2 1542 1573 assetExtendedAttributeInstance = new AssetExtendedAttribute(value: "PU Mark 2", 1543 1574 asset: Asset.get(1), … … 1545 1576 saveAndTest(assetExtendedAttributeInstance) 1546 1577 1547 //AssetExtendedAttribute # 21578 //AssetExtendedAttribute #3 1548 1579 assetExtendedAttributeInstance = new AssetExtendedAttribute(value: "On the far side of Tank 5", 1549 1580 asset: Asset.get(1), 1550 1581 extendedAttributeType: ExtendedAttributeType.get(5)) 1582 saveAndTest(assetExtendedAttributeInstance) 1583 1584 //AssetExtendedAttribute #4 1585 assetExtendedAttributeInstance = new AssetExtendedAttribute(value: "765895", 1586 asset: Asset.get(1), 1587 extendedAttributeType: ExtendedAttributeType.get(3)) 1588 saveAndTest(assetExtendedAttributeInstance) 1589 1590 //AssetExtendedAttribute #5 1591 assetExtendedAttributeInstance = new AssetExtendedAttribute(value: "Crushing, Electrical, Pinch Points, Trip/Fall, High Pressure Air", 1592 asset: Asset.get(1), 1593 extendedAttributeType: ExtendedAttributeType.get(9)) 1551 1594 saveAndTest(assetExtendedAttributeInstance) 1552 1595 }
Note: See TracChangeset
for help on using the changeset viewer.