Changeset 2065
- Timestamp:
- Oct 15, 2013, 8:02:38 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
r2054 r2065 1122 1122 </tr> 1123 1123 <tr id="mrna.extractionDate"> 1124 <th> Extractiondate</th>1124 <th>Cleanup date</th> 1125 1125 </tr> 1126 1126 <tr id="mrna.usedQuantity"> … … 1148 1148 </tr> 1149 1149 <tr id="cdna.extractionDate"> 1150 <th> Extractiondate</th>1150 <th>Synthesis date</th> 1151 1151 </tr> 1152 1152 </tbody> … … 1171 1171 </tr> 1172 1172 <tr id="lib.extractionDate"> 1173 <th> Extractiondate</th>1173 <th>Cleanup date</th> 1174 1174 </tr> 1175 1175 <tr id="lib.remainingQuantity"> … … 1209 1209 </tr> 1210 1210 <tr id="pooledlib.extractionDate"> 1211 <th> Extractiondate</th>1211 <th>Pool date</th> 1212 1212 </tr> 1213 1213 <tr id="pooledlib.remainingQuantity"> -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/CaseSummaryServlet.java
r2052 r2065 516 516 mrna.setAnnotation("editable", e.hasPermission(Permission.WRITE)); 517 517 mrna.setAnnotation("usedQuantity", created.getUsedQuantity((Extract)e.getParent())); 518 mrna.setAnnotation("extractionDate", Reggie.CONVERTER_DATE_TO_STRING.convert(created.getEventDate())); 518 // Get BioPlate CleanupDate annotation 519 BioPlate plate = mrna.getItem().getBioWell().getPlate(); 520 Date cleanupDate = (Date) Annotationtype.CLEANUP_DATE.getAnnotationValue(dc, plate); 521 mrna.setAnnotation("extractionDate", Reggie.CONVERTER_DATE_TO_STRING.convert(cleanupDate)); 519 522 } 520 523 … … 522 525 { 523 526 Extract e = cdna.getExtract(); 524 BioMaterialEvent created = e.getCreationEvent();525 527 526 528 cdna.loadBioPlateLocation(); 527 529 cdna.setAnnotation("registrationDate", Reggie.CONVERTER_DATE_TO_STRING.convert(e.getEntryDate())); 528 530 cdna.setAnnotation("editable", e.hasPermission(Permission.WRITE)); 529 cdna.setAnnotation("extractionDate", Reggie.CONVERTER_DATE_TO_STRING.convert(created.getEventDate())); 531 // Get BioPlate SynthesisDate annotation 532 BioPlate plate = cdna.getItem().getBioWell().getPlate(); 533 Date synthesisDate = (Date) Annotationtype.SYNTHESIS_DATE.getAnnotationValue(dc, plate); 534 cdna.setAnnotation("extractionDate", Reggie.CONVERTER_DATE_TO_STRING.convert(synthesisDate)); 530 535 } 531 536 … … 533 538 { 534 539 Extract e = lib.getExtract(); 535 BioMaterialEvent created = e.getCreationEvent();536 540 537 541 lib.loadBioPlateLocation(); 538 542 lib.setAnnotation("registrationDate", Reggie.CONVERTER_DATE_TO_STRING.convert(e.getEntryDate())); 539 543 lib.setAnnotation("editable", e.hasPermission(Permission.WRITE)); 540 lib.setAnnotation("extractionDate", Reggie.CONVERTER_DATE_TO_STRING.convert(created.getEventDate())); 544 // Get BioPlate CleanupDate annotation 545 BioPlate plate = lib.getItem().getBioWell().getPlate(); 546 Date cleanupDate = (Date) Annotationtype.CLEANUP_DATE.getAnnotationValue(dc, plate); 547 lib.setAnnotation("extractionDate", Reggie.CONVERTER_DATE_TO_STRING.convert(cleanupDate)); 541 548 lib.setAnnotation("originalQuantity", e.getOriginalQuantity()); 542 549 lib.setAnnotation("remainingQuantity", e.getRemainingQuantity());
Note: See TracChangeset
for help on using the changeset viewer.