Changeset 5121


Ignore:
Timestamp:
Nov 21, 2018, 9:08:15 AM (4 years ago)
Author:
olle
Message:

Refs #1029. FFPE section (specimen) registration wizard updated with bug fix when finding H%E glass box position, when no box exists. Also marking registered items as used, so as not to appear in selections list for FFPE section registration wizard again:

  1. Java servlet class/file BaseLineRegistrationServlet.java in src/net/sf/basedb/meludi/servlet/ updated:
    a. Protected method void doGet(HttpServletRequest req, HttpServletResponse resp) updated for command "FindStoragePositions" with bug fix when finding H%E glass box position, when no box exists.
    b. Protected method void doPost(HttpServletRequest req, HttpServletResponse resp) updated for command "RegisterFFPESections" by marking registered items as used, so as not to appear in selections list for FFPE section registration wizard again.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.meludi/trunk/src/net/sf/basedb/meludi/servlet/BaseLineRegistrationServlet.java

    r5119 r5121  
    506506          // Store H&E glass box name as "Tray" parameter instead of as "Name"
    507507          heGlass.setTray(heGlass.getName());
    508           heGlass.setPosition("1");
     508          heGlass.setPosition("0");
    509509        }
    510510
     
    18501850              nofSections = Integer.parseInt(nofSectionsString);
    18511851            }
    1852 /*
    1853             Integer viableTumourCellsPercent = null;
    1854             String viableTumourCellsPercentString = (String)jsonFfpeSection.get("viableTumourCellsPercent");
    1855             if (viableTumourCellsPercentString != null && !viableTumourCellsPercentString.equals(""))
    1856             {
    1857               viableTumourCellsPercent = Integer.parseInt(viableTumourCellsPercentString);
    1858             }
    1859 */
    18601852            String comment = (String)jsonFfpeSection.get("comment");
    18611853            //String operator = (String)jsonFfpeSection.get("operator");
     
    18651857            //Date samplingDate = Meludi.CONVERTER_STRING_TO_DATE.convert(samplingDateString);
    18661858            //Date arrivalDate = Meludi.CONVERTER_STRING_TO_DATE.convert(arrivalDateString);
    1867 
    1868 /*
    1869             String dnaBox = (String)jsonFfpeSection.get("dnaBox");
    1870             String dnaRow = (String)jsonFfpeSection.get("dnaRow");
    1871             int dnaColumn = Integer.parseInt((String)jsonFfpeSection.get("dnaColumn"));
    1872 
    1873             String rnaBox = (String)jsonFfpeSection.get("rnaBox");
    1874             String rnaRow = (String)jsonFfpeSection.get("rnaRow");
    1875             int rnaColumn = Integer.parseInt((String)jsonFfpeSection.get("rnaColumn"));
    1876 */
    18771859
    18781860            String heGlassFBox = (String)jsonFfpeSection.get("heGlassFBox");
     
    19311913            Annotationtype.YELLOW_LABEL.setAnnotationValue(dc, specimen, yellowLabel);
    19321914            Annotationtype.NOF_SECTIONS.setAnnotationValue(dc, specimen, nofSections);
    1933             //Annotationtype.VIABLE_TUMOUR_CELLS_PERCENT.setAnnotationValue(dc, specimen, viableTumourCellsPercent);
    19341915            //if (samplingDate != null) Annotationtype.SAMPLING_DATE.setAnnotationValue(dc, specimen, samplingDate);
    19351916            //if (arrivalDate != null) Annotationtype.ARRIVAL_DATE.setAnnotationValue(dc, specimen, arrivalDate);
     
    20071988
    20081989            BioPlateEventParticipant stainEventParticipant = stainEvent.addParticipant(heGlassF, "glass", stainNo);
    2009             //numNewHEGlass++;
    20101990         
    2011             //heGlassF.setTray(storageBox);
    20121991            heGlassF.setTray(heGlassFBox);
    20131992            heGlassF.setPosition(heGlassFPosition);
     
    20201999            stained.setItemSubtype(Subtype.STAINED.load(dc));
    20212000            stained.setName(stainedName); // Safe, since this is a new stain
    2022             //stained.setBioWell(heGlass.getBioWell(heCoordinate));
    20232001            stained.setDescription(histology.getDescription());
    20242002            dc.saveItem(stained);
     
    20562034
    20572035            stainEventParticipant = stainEvent.addParticipant(heGlassE, "glass", stainNo);
    2058             //numNewHEGlass++;
    20592036         
    2060             //heGlassE.setTray(storageBox);
    20612037            heGlassE.setTray(heGlassEBox);
    20622038            heGlassE.setPosition(heGlassEPosition);
     
    20692045            stained.setItemSubtype(Subtype.STAINED.load(dc));
    20702046            stained.setName(stainedName); // Safe, since this is a new stain
    2071             //stained.setBioWell(heGlass.getBioWell(heCoordinate));
    20722047            stained.setDescription(histology.getDescription());
    20732048            dc.saveItem(stained);
     
    20862061            jsonMessages.add("HE stain '" + stained.getName() + "' created successfully.");
    20872062
    2088 /*
    20892063            // Update the FFPE block annotations
    20902064            Annotationtype.USED_FOR_FFPE_SECTION.setAnnotationValue(dc, ffpeBlock.getSample(), Boolean.TRUE);
    2091 */
    20922065          }
    20932066          jsonMessages.add(numUpdatedFfpeSections + " Specimen(s) updated.");
Note: See TracChangeset for help on using the changeset viewer.