Changeset 2101
- Timestamp:
- Oct 25, 2013, 8:15:42 AM (9 years ago)
- Location:
- extensions/net.sf.basedb.reggie/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/resources/reports/case_summary.jsp
r2100 r2101 634 634 addColumn('mrna.storageBox', asBioPlateLocation(r.bioWell)+asFileLink(r.platePdf, 'pdffile.png')); 635 635 addColumn('mrna.result', (r.result && r.result != 'Successful') ? asFailInfo(r.result, 'error.png') : null); 636 addColumn('mrna. extractionDate', formatDate(r.extractionDate));636 addColumn('mrna.cleanupDate', formatDate(r.cleanupDate)); 637 637 addColumn('mrna.usedQuantity', formatQuantity(r.usedQuantity, null, ' µg')); 638 addColumn('mrna.comment', truncate(r.comment, truncateAt)); 638 639 } 639 640 } … … 663 664 addColumn('cdna.storageBox', asBioPlateLocation(r.bioWell)); 664 665 addColumn('cdna.result', (r.result && r.result != 'Successful') ? asFailInfo(r.result, 'error.png') : null); 665 addColumn('cdna.extractionDate', formatDate(r.extractionDate)); 666 addColumn('cdna.synthesisDate', formatDate(r.synthesisDate)); 667 addColumn('cdna.comment', truncate(r.comment, truncateAt)); 666 668 } 667 669 } … … 691 693 addColumn('lib.storageBox', asBioPlateLocation(r.bioWell)); 692 694 addColumn('lib.result', (r.result && r.result != 'Successful') ? asFailInfo(r.result, 'error.png') : null); 693 addColumn('lib. extractionDate', formatDate(r.extractionDate));695 addColumn('lib.cleanupDate', formatDate(r.cleanupDate)); 694 696 addColumn('lib.remainingQuantity', formatQuantity(r.remainingQuantity, 0.001, ' ng')); 695 697 addColumn('lib.originalQuantity', formatQuantity(r.originalQuantity, 0.001, ' ng')); … … 698 700 addColumn('lib.ca_molarity', formatQuantity(r.ca_molarity, null, ' nM')); 699 701 addColumn('lib.qubitconc', formatQuantity(r.qubitconc, null, ' ng/µl')); 702 addColumn('lib.comment', truncate(r.comment, truncateAt)); 700 703 } 701 704 } … … 723 726 addColumn('pooledlib.name', makeLink('EXTRACT', r)); 724 727 addColumn('pooledlib.registrationDate', formatDate(r.registrationDate)); 725 addColumn('pooledlib. extractionDate', formatDate(r.extractionDate));728 addColumn('pooledlib.poolDate', formatDate(r.poolDate)); 726 729 addColumn('pooledlib.remainingQuantity', formatQuantity(r.remainingQuantity, 0.001, ' ng')); 727 730 addColumn('pooledlib.originalQuantity', formatQuantity(r.originalQuantity, 0.001, ' ng')); 728 addColumn('pooledlib.poolmolarity', formatQuantity(r.poolmolarity, null, ' nM')); 729 addColumn('pooledlib.poolconc', formatQuantity(r.poolconc, null, ' ng/µl')); 731 addColumn('pooledlib.poolMolarity', formatQuantity(r.poolMolarity, null, ' nM')); 732 addColumn('pooledlib.poolConc', formatQuantity(r.poolConc, null, ' ng/µl')); 733 addColumn('pooledlib.comment', truncate(r.comment, truncateAt)); 730 734 } 731 735 } … … 1327 1331 <th>Plate result</th> 1328 1332 </tr> 1329 <tr id="mrna. extractionDate">1333 <tr id="mrna.cleanupDate"> 1330 1334 <th>Cleanup date</th> 1331 1335 </tr> 1332 1336 <tr id="mrna.usedQuantity"> 1333 1337 <th>Used quantity</th> 1338 </tr> 1339 <tr id="mrna.comment" class="comment dynamic-column"> 1340 <th>Comment</th> 1334 1341 </tr> 1335 1342 </tbody> … … 1356 1363 <th>Plate result</th> 1357 1364 </tr> 1358 <tr id="cdna. extractionDate">1365 <tr id="cdna.synthesisDate"> 1359 1366 <th>Synthesis date</th> 1367 </tr> 1368 <tr id="cdna.comment" class="comment dynamic-column"> 1369 <th>Comment</th> 1360 1370 </tr> 1361 1371 </tbody> … … 1382 1392 <th>Plate result</th> 1383 1393 </tr> 1384 <tr id="lib. extractionDate">1394 <tr id="lib.cleanupDate"> 1385 1395 <th>Cleanup date</th> 1386 1396 </tr> … … 1402 1412 <tr id="lib.qubitconc"> 1403 1413 <th>QubitConc</th> 1414 </tr> 1415 <tr id="lib.comment" class="comment dynamic-column"> 1416 <th>Comment</th> 1404 1417 </tr> 1405 1418 </tbody> … … 1420 1433 <th>Registration date</th> 1421 1434 </tr> 1422 <tr id="pooledlib. extractionDate">1435 <tr id="pooledlib.poolDate"> 1423 1436 <th>Pool date</th> 1424 1437 </tr> … … 1429 1442 <th>Original quantity</th> 1430 1443 </tr> 1431 <tr id="pooledlib.pool molarity">1444 <tr id="pooledlib.poolMolarity"> 1432 1445 <th>PoolMolarity</th> 1433 1446 </tr> 1434 <tr id="pooledlib.pool conc">1447 <tr id="pooledlib.poolConc"> 1435 1448 <th>PoolConc</th> 1449 </tr> 1450 <tr id="pooledlib.comment" class="comment dynamic-column"> 1451 <th>Comment</th> 1436 1452 </tr> 1437 1453 </tbody> -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/CaseSummaryServlet.java
r2100 r2101 646 646 mrna.setAnnotation("editable", e.hasPermission(Permission.WRITE)); 647 647 mrna.setAnnotation("usedQuantity", created.getUsedQuantity((Extract)e.getParent())); 648 mrna.setAnnotation("comment", e.getDescription()); 649 648 650 // Get BioPlate CleanupDate annotation 649 651 BioPlate plate = mrna.getItem().getBioWell().getPlate(); 650 652 Date cleanupDate = (Date) Annotationtype.CLEANUP_DATE.getAnnotationValue(dc, plate); 651 mrna.setAnnotation(" extractionDate", Reggie.CONVERTER_DATE_TO_STRING.convert(cleanupDate));653 mrna.setAnnotation("cleanupDate", Reggie.CONVERTER_DATE_TO_STRING.convert(cleanupDate)); 652 654 // Get BioPlate PlateProcessResult annotation 653 655 String result = (String) Annotationtype.PLATE_PROCESS_RESULT.getAnnotationValue(dc, plate); … … 662 664 cdna.setAnnotation("registrationDate", Reggie.CONVERTER_DATE_TO_STRING.convert(e.getEntryDate())); 663 665 cdna.setAnnotation("editable", e.hasPermission(Permission.WRITE)); 666 cdna.setAnnotation("comment", e.getDescription()); 664 667 // Get BioPlate SynthesisDate annotation 665 668 BioPlate plate = cdna.getItem().getBioWell().getPlate(); 666 669 Date synthesisDate = (Date) Annotationtype.SYNTHESIS_DATE.getAnnotationValue(dc, plate); 667 cdna.setAnnotation(" extractionDate", Reggie.CONVERTER_DATE_TO_STRING.convert(synthesisDate));670 cdna.setAnnotation("synthesisDate", Reggie.CONVERTER_DATE_TO_STRING.convert(synthesisDate)); 668 671 // Get BioPlate PlateProcessResult annotation 669 672 String result = (String) Annotationtype.PLATE_PROCESS_RESULT.getAnnotationValue(dc, plate); … … 681 684 BioPlate plate = lib.getItem().getBioWell().getPlate(); 682 685 Date cleanupDate = (Date) Annotationtype.CLEANUP_DATE.getAnnotationValue(dc, plate); 683 lib.setAnnotation(" extractionDate", Reggie.CONVERTER_DATE_TO_STRING.convert(cleanupDate));686 lib.setAnnotation("cleanupDate", Reggie.CONVERTER_DATE_TO_STRING.convert(cleanupDate)); 684 687 lib.setAnnotation("originalQuantity", e.getOriginalQuantity()); 685 688 lib.setAnnotation("remainingQuantity", e.getRemainingQuantity()); … … 687 690 lib.loadAnnotations(dc, "ca_molarity", Annotationtype.CA_MOLARITY, null); 688 691 lib.loadAnnotations(dc, "qubitconc", Annotationtype.QUBIT_CONC, null); 692 lib.setAnnotation("comment", e.getDescription()); 689 693 // Get BioPlate PlateProcessResult annotation 690 694 String result = (String) Annotationtype.PLATE_PROCESS_RESULT.getAnnotationValue(dc, plate); … … 699 703 lib.setAnnotation("registrationDate", Reggie.CONVERTER_DATE_TO_STRING.convert(e.getEntryDate())); 700 704 lib.setAnnotation("editable", e.hasPermission(Permission.WRITE)); 701 lib.setAnnotation(" extractionDate", Reggie.CONVERTER_DATE_TO_STRING.convert(created.getEventDate()));705 lib.setAnnotation("poolDate", Reggie.CONVERTER_DATE_TO_STRING.convert(created.getEventDate())); 702 706 lib.setAnnotation("originalQuantity", e.getOriginalQuantity()); 703 707 lib.setAnnotation("remainingQuantity", e.getRemainingQuantity()); 704 lib.loadAnnotations(dc, "poolmolarity", Annotationtype.POOL_MOLARITY, null); 705 lib.loadAnnotations(dc, "poolconc", Annotationtype.POOL_CONC, null); 708 lib.loadAnnotations(dc, "poolMolarity", Annotationtype.POOL_MOLARITY, null); 709 lib.loadAnnotations(dc, "poolConc", Annotationtype.POOL_CONC, null); 710 lib.setAnnotation("comment", e.getDescription()); 706 711 } 707 712 }
Note: See TracChangeset
for help on using the changeset viewer.