- Timestamp:
- Oct 23, 2013, 1:17:15 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/resources/reports/case_summary.jsp
r2083 r2098 560 560 } 561 561 562 var dna = consentOk ? response.dna : null; 563 if (dna && dna.length > 0) 564 { 565 var truncateAt = TRUNCATE_SIZE[Math.min(dna.length-1, TRUNCATE_SIZE.length)]; 566 for (var i = 0; i < dna.length; i++) 567 { 568 var d = dna[i]; 569 addColumn('dna.name', makeLink('EXTRACT', d)); 570 addColumn('dna.registrationDate', formatDate(d.registrationDate)); 571 addColumn('dna.storageBox', asBioPlateLocation(d.bioWell)); 572 addColumn('dna.extractionDate', formatDate(d.extractionDate)); 573 addColumn('dna.extractionProtocol', makeLink('PROTOCOL', d.extractionProtocol, truncateAt)); 574 addColumn('dna.remainingQuantity', formatQuantity(d.remainingQuantity, null, ' µg')); 575 addColumn('dna.originalQuantity', formatQuantity(d.originalQuantity, null, ' µg')); 576 addColumn('dna.ndConc', formatQuantity(d.ndConc, null, ' ng/µl')); 577 addColumn('dna.comment', truncate(d.comment, truncateAt)); 578 } 579 } 580 else 581 { 582 if (consentOk) 583 { 584 addColumn('dna.name', asNoInfo('No DNA information has been registered')); 585 Main.hide('dna-details'); 586 } 587 else 588 { 589 Main.hide('dna-info'); 590 } 591 } 592 593 var ft = consentOk ? response.flowThrough : null; 594 if (ft && ft.length > 0) 595 { 596 var truncateAt = TRUNCATE_SIZE[Math.min(ft.length-1, TRUNCATE_SIZE.length)]; 597 for (var i = 0; i < ft.length; i++) 598 { 599 var f = ft[i]; 600 addColumn('ft.name', makeLink('EXTRACT', f)); 601 addColumn('ft.registrationDate', formatDate(f.registrationDate)); 602 addColumn('ft.storageBox', asBioPlateLocation(f.bioWell)); 603 addColumn('ft.extractionDate', formatDate(f.extractionDate)); 604 addColumn('ft.extractionProtocol', makeLink('PROTOCOL', f.extractionProtocol, truncateAt)); 605 addColumn('ft.remainingQuantity', formatQuantity(f.remainingQuantity, null, ' µg')); 606 addColumn('ft.originalQuantity', formatQuantity(f.originalQuantity, null, ' µg')); 607 addColumn('ft.comment', truncate(f.comment, truncateAt)); 608 } 609 } 610 else 611 { 612 if (consentOk) 613 { 614 addColumn('ft.name', asNoInfo('No FlowThrough information has been registered')); 615 Main.hide('ft-details'); 616 } 617 else 618 { 619 Main.hide('ft-info'); 620 } 621 } 622 562 623 563 624 var mrna = consentOk ? response.mrna : null; … … 1126 1187 </div> 1127 1188 </div> 1189 1190 <div class="info-section" id="dna-info"> 1191 <div> 1192 <table class="info-table dynamic-columns"> 1193 <thead> 1194 <tr id="dna.name"> 1195 <th>DNA</th> 1196 </tr> 1197 </thead> 1198 <tbody id="dna-details"> 1199 <tr id="dna.registrationDate"> 1200 <th>Registration date</th> 1201 </tr> 1202 <tr id="dna.storageBox"> 1203 <th>Storage box</th> 1204 </tr> 1205 <tr id="dna.extractionDate"> 1206 <th>Extraction date</th> 1207 </tr> 1208 <tr id="dna.extractionProtocol"> 1209 <th>Protocol</th> 1210 </tr> 1211 <tr id="dna.remainingQuantity"> 1212 <th>Remaining quantity</th> 1213 </tr> 1214 <tr id="dna.originalQuantity"> 1215 <th>Original quantity</th> 1216 </tr> 1217 <tr id="dna.ndConc"> 1218 <th>ND Conc.</th> 1219 </tr> 1220 <tr id="dna.comment" class="comment dynamic-column"> 1221 <th>Comment</th> 1222 </tr> 1223 </tbody> 1224 </table> 1225 </div> 1226 </div> 1227 1228 <div class="info-section" id="ft-info"> 1229 <div> 1230 <table class="info-table dynamic-columns"> 1231 <thead> 1232 <tr id="ft.name"> 1233 <th>FlowThrough</th> 1234 </tr> 1235 </thead> 1236 <tbody id="ft-details"> 1237 <tr id="ft.registrationDate"> 1238 <th>Registration date</th> 1239 </tr> 1240 <tr id="ft.storageBox"> 1241 <th>Storage box</th> 1242 </tr> 1243 <tr id="ft.extractionDate"> 1244 <th>Extraction date</th> 1245 </tr> 1246 <tr id="ft.extractionProtocol"> 1247 <th>Protocol</th> 1248 </tr> 1249 <tr id="ft.remainingQuantity"> 1250 <th>Remaining quantity</th> 1251 </tr> 1252 <tr id="ft.originalQuantity"> 1253 <th>Original quantity</th> 1254 </tr> 1255 <tr id="ft.comment" class="comment dynamic-column"> 1256 <th>Comment</th> 1257 </tr> 1258 </tbody> 1259 </table> 1260 </div> 1261 </div> 1128 1262 1129 1263 <div class="info-section" id="mrna-info">
Note: See TracChangeset
for help on using the changeset viewer.