Changeset 2244
- Timestamp:
- Feb 21, 2014, 2:58:47 PM (9 years ago)
- Location:
- extensions/net.sf.basedb.reggie/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/resources/css/reggie.css
r2229 r2244 150 150 { 151 151 content: url('../images/warning.png'); 152 } 153 .status.flag:before 154 { 155 content: url('../images/flag.png'); 152 156 } 153 157 .status.valid:before -
extensions/net.sf.basedb.reggie/trunk/resources/sampleproc/histology_glass.jsp
r2242 r2244 260 260 checkIndexValue(field); 261 261 } 262 frm['comment.'+well.row+'.'+well.column].value = well.bioMaterial.comment; 262 263 numWells++; 263 264 } … … 388 389 if (indexValue == 0) 389 390 { 390 setInputStatus(field, 'No good stain! Sample will be flagged and saved to Flagged Histology list.', ' warning');391 setInputStatus(field, 'No good stain! Sample will be flagged and saved to Flagged Histology list.', 'flag'); 391 392 } 392 393 else … … 610 611 { 611 612 well.GoodStain = parseInt(frm[field].value, 10); 613 well.bioMaterial.comment = frm['comment.'+well.row+'.'+well.column].value; 612 614 } 613 615 } … … 700 702 vertical-align: middle; 701 703 border: 1px solid #A0A0A0; 702 padding: 2px 2px 2px 1em;704 padding: 0.5em; 703 705 } 704 706 … … 725 727 { 726 728 padding: 2px; 729 } 730 731 .comment 732 { 733 width: 95%; 734 margin: 0.5em 0 0.5em 0; 735 } 736 737 .comment input 738 { 739 width: 100%; 727 740 } 728 741 … … 845 858 onkeypress="focusOnEnter(event, 'idx.1.0');return Numbers.integerOnly(event)" size="2"> 846 859 <span id="idx.0.0.status" class="status"></span> 860 <div class="comment"> 861 <input type="text" name="comment.0.0" placeholder="Comments"> 862 </div> 847 863 </td> 848 864 <td> … … 856 872 onkeypress="focusOnEnter(event, 'idx.1.1');return Numbers.integerOnly(event)" size="2"> 857 873 <span id="idx.1.0.status" class="status"></span> 874 <div class="comment"> 875 <input type="text" name="comment.1.0" placeholder="Comments"> 876 </div> 858 877 </td> 859 878 <td> … … 863 882 onkeypress="focusOnEnter(event, 'idx.2.0');return Numbers.integerOnly(event)" size="2"> 864 883 <span id="idx.1.1.status" class="status"></span> 884 <div class="comment"> 885 <input type="text" name="comment.1.1" placeholder="Comments"> 886 </div> 865 887 </td> 866 888 </tr> … … 872 894 onkeypress="focusOnEnter(event, 'idx.2.1');return Numbers.integerOnly(event)" size="2"> 873 895 <span id="idx.2.0.status" class="status"></span> 896 <div class="comment"> 897 <input type="text" name="comment.2.0" placeholder="Comments"> 898 </div> 874 899 </td> 875 900 <td> … … 879 904 onkeypress="return Numbers.integerOnly(event)" size="2"> 880 905 <span id="idx.2.1.status" class="status"></span> 906 <div class="comment"> 907 <input type="text" name="comment.2.1" placeholder="Comments"> 908 </div> 881 909 </td> 882 910 </tr> -
extensions/net.sf.basedb.reggie/trunk/resources/sampleproc/histology_score.jsp
r2243 r2244 291 291 if (getGoodStainedSampleForLocation(sample.well.location) == null) 292 292 { 293 className += ' warning';293 className += ' flag'; 294 294 } 295 295 } … … 933 933 } 934 934 935 .he-table td. warning936 { 937 background-image: url('../images/ warning.png');935 .he-table td.flag 936 { 937 background-image: url('../images/flag.png'); 938 938 } 939 939 … … 1061 1061 1062 1062 <div id="he-glass-container" style="display: none;"> 1063 1064 1063 </div> 1064 1065 1065 <div style="margin-left: 1em; margin-bottom: 0.5em;"> 1066 <base:icon image="warning.png" /> = No GoodStain sample for that location 1066 <base:icon image="<%=home + "/images/flag.png"%>" /> = No GoodStain sample for that location. 1067 The Histology piece will be added to the <i>Flagged histology</i> list. 1067 1068 </div> 1068 1069 -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/dao/ReactionPlate.java
r1890 r2244 204 204 jsonBm.put("id", bm.getId()); 205 205 jsonBm.put("name", bm.getName()); 206 jsonBm.put("comment", bm.getDescription()); 206 207 jsonWell.put("bioMaterial", jsonBm); 207 208 } -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/HistologyServlet.java
r2243 r2244 32 32 import net.sf.basedb.core.Item; 33 33 import net.sf.basedb.core.ItemQuery; 34 import net.sf.basedb.core.ItemSubtype;35 34 import net.sf.basedb.core.MeasuredBioMaterial; 36 35 import net.sf.basedb.core.PlateGeometry; … … 245 244 // Filter on id not equal to any that has a STAINED child 246 245 query.restrict(Restrictions.neq(Hql.property("id"), Expressions.all(subquery))); 247 246 248 247 List<Sample> samples = query.list(dc); 249 248 Set<BioPlate> plates = new TreeSet<BioPlate>(new NameableComparator<BioPlate>(false)); … … 674 673 { 675 674 JSONObject jsonWell = (JSONObject)jsonWells.get(i); 676 Number goodStain = (Number)jsonWell.get("GoodStain");677 678 Number wellId = (Number)jsonWell.get("id");679 BioWell hisWell = BioWell.getById(dc, wellId.intValue());680 MeasuredBioMaterial histology = hisWell.getBioMaterial();681 if (histology != null)682 { 675 JSONObject jsonHistology = (JSONObject)jsonWell.get("bioMaterial"); 676 if (jsonHistology != null) 677 { 678 Number goodStain = (Number)jsonWell.get("GoodStain"); 679 Number hisId = (Number)jsonHistology.get("id"); 680 MeasuredBioMaterial histology = Sample.getById(dc, hisId.intValue()); 681 683 682 jsonWell.put("histology", histology); 683 histology.setDescription((String)jsonHistology.get("comment")); 684 684 String flag = (String)Annotationtype.FLAG.getAnnotationValue(dc, histology); 685 685 if (goodStain.intValue() == 0) … … 776 776 stained.setName(stainedName); 777 777 stained.setBioWell(heGlass.getBioWell(heCoordinate)); 778 stained.setDescription(histology.getDescription()); 778 779 dc.saveItem(stained); 779 780
Note: See TracChangeset
for help on using the changeset viewer.