- Timestamp:
- Mar 16, 2012, 9:44:17 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/resources/rnaqc_plate_export.jsp
r1550 r1564 39 39 var debug = false; 40 40 var rnaQcBioPlates = null 41 var runParameterConfigurations = null; 41 42 42 43 function init() … … 60 61 setFatalError(msg); 61 62 } 62 } 63 63 64 getConfigurationsForRunParametersExporter(); 65 var exportHtml = makeButton('Sample names (csv)', "goExport('SAMPLE_NAMES')"); 66 for (var i = 0; i < runParameterConfigurations.length; i++) 67 { 68 var config = runParameterConfigurations[i]; 69 exportHtml += makeButton('Run parameters: '+config.name + ' (xml)', "goExport('"+config.id+"')"); 70 } 71 72 setInnerHTML('export', exportHtml); 73 } 74 75 76 function makeButton(title, onClick) 77 { 78 var btn = ''; 79 btn += '<span class="link" onclick="'+onClick+'">'; 80 btn += '<img src="images/export.png"> '; 81 btn += title+'</span><br>\n'; 82 return btn; 83 } 84 85 function getConfigurationsForRunParametersExporter() 86 { 87 var request = Ajax.getXmlHttpRequest(); 88 var url = 'RnaQc.servlet?ID=<%=ID%>&cmd=GetConfigurationsForRunParametersExporter'; 89 request.open("GET", url, false); 90 request.send(null); 91 92 if (debug) Main.debug(request.responseText); 93 var response = JSON.parse(request.responseText); 94 if (response.status != 'ok') 95 { 96 setFatalError(response.message); 97 return false; 98 } 99 100 runParameterConfigurations = response.configurations; 101 } 64 102 65 103 function getActiveRnaQcBioPlates() … … 84 122 85 123 86 function goExport( )124 function goExport(exporter) 87 125 { 88 126 var frm = document.forms['reggie']; 89 127 var bioPlateId = frm.bioPlates[frm.bioPlates.selectedIndex].value; 90 var url = 'RnaQc.servlet?ID=<%=ID%>&cmd=ExportSampleNamesForCaliper&bioPlateId='+bioPlateId; 128 129 var url; 130 if (exporter == 'SAMPLE_NAMES') 131 { 132 url = 'RnaQc.servlet?ID=<%=ID%>&cmd=ExportSampleNamesForCaliper&bioPlateId='+bioPlateId; 133 } 134 else 135 { 136 url = 'RnaQc.servlet?ID=<%=ID%>&cmd=ExportRunParameters&bioPlateId='+bioPlateId+'&configurationId='+exporter; 137 } 91 138 window.location = url; 92 139 } … … 100 147 <p:path><p:pathelement 101 148 title="Reggie" href="<%="index.jsp?ID="+ID%>" 102 /><p:pathelement title="RNA quality control - Export Caliper sample names "149 /><p:pathelement title="RNA quality control - Export Caliper sample names and run parameters" 103 150 /></p:path> 104 151 … … 134 181 <td class="status" id="bioplates.status"></td> 135 182 <td class="help"><span id="bioplates.message" class="message" style="display: none;"></span> 136 Select the bioplate to export sample names from.183 Select the bioplate to export sample names or run parameters from. 137 184 <p> 138 185 The list contain RNAQC bioplates without quality score data (determined by 139 absence of QCRunDate annotation). 186 absence of QCRunDate annotation). 140 187 <p> 141 188 Tip! You can run the exporter for any bioplate as a regular plug-in by selecting 142 189 a bioplate from the list at <a 143 190 href="<%=request.getContextPath()%>/biomaterials/bioplates/index.jsp?ID=<%=ID%>" 144 >Biomaterial LIMS › Bioplates</a> and then use the <b>Export</b> button. 191 >Biomaterial LIMS › Bioplates</a> and then use the <b>Export</b> button. 192 </td> 193 </tr> 194 195 <tr valign="top"> 196 <td class="prompt">Export</td> 197 <td class="input" id="export" style="white-space: nowrap;"> 198 199 </td> 200 <td class="status" id="export.status"></td> 201 <td class="help"><span id="export.message" class="message" style="display: none;"></span> 202 Select what to export. Typically, you'll need the sample name file and the standard and 203 high sensitivity run files. 145 204 </td> 146 205 </tr> … … 150 209 </table> 151 210 152 153 211 <div class="messagecontainer error" id="errorMessage" style="display: none; width: 800px; margin-left: 20px; margin-bottom: 0px;"></div> 154 212 155 213 <div id="done" class="success" style="display: none; width: 800px; margin-left: 20px; margin-top: 20px;"></div> 156 157 <table style="margin-left: 20px; margin-top: 10px;" class="navigation"> 158 <tr> 159 <td><base:button id="goexport" title="Export" image="<%=home+"/images/export.png"%>" onclick="goExport()"/></td> 160 <td id="gonext.message" class="message"></td> 161 </tr> 162 </table> 214 163 215 </form> 164 216 </div>
Note: See TracChangeset
for help on using the changeset viewer.