Changeset 1775
- Timestamp:
- Dec 11, 2012, 2:52:36 PM (11 years ago)
- Location:
- extensions/net.sf.basedb.reggie/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/resources/bloodform.jsp
r1773 r1775 473 473 Forms.selectListOption(frm.bloodSample, bloodInfo.bloodSample); 474 474 } 475 if (bloodInfo.otherPathNote) 476 { 477 frm.otherPathNote.value = bloodInfo.otherPathNote; 478 } 475 479 } 476 480 else … … 519 523 bloodInfo.serum = frm.serum.checked ? "Yes" : "No"; 520 524 bloodInfo.bloodSample = frm.bloodSample[frm.bloodSample.selectedIndex].value; 525 bloodInfo.otherPathNote = frm.otherPathNote.value; 521 526 if (frm.copyConsent.checked && frm.copyConsent.value) 522 527 { … … 529 534 frm.freezerTime.disabled = true; 530 535 frm.bloodSample.disabled = true; 536 frm.otherPathNote.disabled = true; 531 537 532 538 var updateMode = bloodInfo.id; … … 754 760 <td class="prompt" id="bloodSample.prompt">Blood sample</td> 755 761 <td class="input" id="bloodSample.input"> 756 <select name="bloodSample"> 762 <select onkeypress="focusOnEnter(event, 'otherPathNote')" 763 name="bloodSample" 764 > 757 765 <option selected value="">unknown 758 766 <option value="PreNeo">PreNeo … … 762 770 <td class="status" id="bloodSample.status"></td> 763 771 <td class="help"><span id="bloodSample.message" class="message" style="display: none;"></span></td> 772 </tr> 773 <tr> 774 <td class="prompt" id="otherPathNote.prompt">Other path note</td> 775 <td class="input" id="otherPathNote.input"><textarea rows="3" cols="30" 776 name="otherPathNote" value="" onkeypress="doOnTab(event, goNextAuto)"></textarea></td> 777 <td class="status" id="otherPathNote.status"></td> 778 <td class="help"><span id="otherPathNote.message" class="message" style="display: none;"></span></td> 764 779 </tr> 765 780 <tr id="copyConsentSection" style="display: none;"> -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/BloodRegistrationServlet.java
r1767 r1775 86 86 blood.loadAnnotations(dc, "serum", Annotationtype.BLOOD_SERUM, null); 87 87 blood.loadAnnotations(dc, "bloodSample", Annotationtype.BLOOD_SAMPLE, null); 88 blood.loadAnnotations(dc, "otherPathNote", Annotationtype.OTHER_PATH_NOTE, null); 88 89 89 90 // Wrap what we have so far up into JSON objects … … 203 204 Date freezerDate = Reggie.CONVERTER_STRING_TO_DATETIME.convert((String)jsonBlood.get("freezerDate")); 204 205 String bloodSample = Values.getStringOrNull((String)jsonBlood.get("bloodSample")); 206 String otherPathNote = Values.getStringOrNull((String)jsonBlood.get("otherPathNote")); 205 207 206 208 creationEvent.setEventDate(samplingDate); … … 209 211 Annotationtype.BLOOD_SERUM.setAnnotationValue(dc, blood, jsonBlood.get("serum")); 210 212 Annotationtype.BLOOD_SAMPLE.setAnnotationValue(dc, blood, bloodSample); 213 Annotationtype.OTHER_PATH_NOTE.setAnnotationValue(dc, blood, otherPathNote); 211 214 212 215 Number copyConsentId = (Number)jsonBlood.get("copyConsent"); … … 238 241 Date freezerDate = Reggie.CONVERTER_STRING_TO_DATETIME.convert((String)jsonBlood.get("freezerDate")); 239 242 String bloodSample = Values.getStringOrNull((String)jsonBlood.get("bloodSample")); 243 String otherPathNote = Values.getStringOrNull((String)jsonBlood.get("otherPathNote")); 240 244 241 245 blood.getCreationEvent().setEventDate(samplingDate); … … 245 249 Annotationtype.BLOOD_SERUM.setAnnotationValue(dc, blood, jsonBlood.get("serum")); 246 250 Annotationtype.BLOOD_SAMPLE.setAnnotationValue(dc, blood, bloodSample); 251 Annotationtype.OTHER_PATH_NOTE.setAnnotationValue(dc, blood, otherPathNote); 247 252 248 253 jsonMessages.add("Blood '" + blood.getName() + "' updated successfully."); -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/InstallServlet.java
r1693 r1775 225 225 Annotationtype.CONSENT, Annotationtype.CONSENT_DATE, 226 226 Annotationtype.BLOOD_SAMPLING_DATETIME, Annotationtype.BLOOD_FREEZER_DATETIME, 227 Annotationtype.BLOOD_SERUM, Annotationtype.BLOOD_SAMPLE)); 227 Annotationtype.BLOOD_SERUM, Annotationtype.BLOOD_SAMPLE, 228 Annotationtype.OTHER_PATH_NOTE)); 228 229 229 230 jsonChecks.add(checkAnnotationTypeCategory(dc, Subtype.SPECIMEN, createIfMissing,
Note: See TracChangeset
for help on using the changeset viewer.