Changeset 1457
- Timestamp:
- Nov 10, 2011, 9:57:40 AM (12 years ago)
- Location:
- extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/PartitionRegistrationServlet.java
r1456 r1457 200 200 dc.saveItem(lysExtract); 201 201 202 Reggie.setAnnotationValue(lysExtract, partitionDateType, partitionDate); 202 lysExtract.getCreationEvent().setEventDate(null); 203 Reggie.setAnnotationValue(lysExtract, partitionDateType, partitionDate); 203 204 204 205 // Set box position -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/SpecimenTubeServlet.java
r1413 r1457 241 241 StringToDateConverter dateTimeConverter = new StringToDateConverter(new SimpleDateFormat("yyyyMMdd HHmm")); 242 242 StringToDateConverter dateConverter = new StringToDateConverter(new SimpleDateFormat("yyyyMMdd")); 243 Date samplingDate = dateTimeConverter.convert((String)jsonCase.get("samplingDate")); 243 Date samplingDateTime = dateTimeConverter.convert((String)jsonCase.get("samplingDate")); 244 Date createDate = dateConverter.convert((String)jsonCase.get("samplingDate")); 244 245 Date rnaLaterDate = dateTimeConverter.convert((String)jsonCase.get("rnaLaterDate")); 245 246 Date arrivalDate = dateConverter.convert((String)jsonCase.get("arrivalDate")); … … 268 269 dc.saveItem(specimen); 269 270 271 specimen.getCreationEvent().setEventDate(createDate); 270 272 String operatorComment = Values.getStringOrNull((String)jsonSpec.get("operatorComment")); 271 273 String specimenTypeString = Values.getStringOrNull((String)jsonSpec.get("specimenType")); … … 275 277 if (arrivalDate != null) Reggie.setAnnotationValue(specimen, arrivalDateType, arrivalDate); 276 278 if (laterality != null) Reggie.setAnnotationValue(specimen, lateralityType, laterality); 277 if (samplingDate != null) Reggie.setAnnotationValue(specimen, samplingDateType, samplingDate);279 if (samplingDateTime != null) Reggie.setAnnotationValue(specimen, samplingDateType, samplingDateTime); 278 280 if (rnaLaterDate != null) Reggie.setAnnotationValue(specimen, rnaLaterDateType, rnaLaterDate); 279 281 if (padCase != null) Reggie.setAnnotationValue(specimen, padType, padCase);
Note: See TracChangeset
for help on using the changeset viewer.