Ignore:
Timestamp:
Nov 30, 2012, 9:27:24 AM (10 years ago)
Author:
Nicklas Nordborg
Message:

References #440: Export data to files needed for mRNA/cDNA processing

Added a mockup for this that uses the same wizard as the 'lab protocol wizard' (#425).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/branches/ticket-422/resources/libprep/mrna_protocol.jsp

    r1745 r1759  
    5353    setFatalError(msg);
    5454  }
    55 }
     55 
     56  var configurations = []; // TODO - get configurations by AJAX
     57  var exportHtml = makeButton('Sample names for BA (csv) -- TODO', "goExport('SAMPLE_NAMES_BA')");
     58  for (var i = 0; i < configurations.length; i++)
     59  {
     60    var config = configurations[i];
     61    exportHtml += makeButton('Run parameters: '+config.name + ' (xml)', "goExport('"+config.id+"')");
     62  }
     63  setInnerHTML('export', exportHtml);
     64
     65}
     66
     67function makeButton(title, onClick)
     68{
     69  var btn = '';
     70  btn += '<span class="link" onclick="'+onClick+'">';
     71  btn += '<img src="../images/export.png">&nbsp;';
     72  btn += title+'</span><br>\n';
     73  return btn;
     74}
     75
    5676
    5777function getMRnaBioPlates()
     
    89109    frm.view.value = type;
    90110    frm.submit();
    91    
    92   }
    93 }
     111  }
     112}
     113
     114function goExport(exporter)
     115{
     116  var frm = document.forms['reggie'];
     117  if (frm.bioplate && !frm.bioplate.disabled)
     118  {
     119    alert('Not implemented');
     120  }
     121}
     122
    94123</script>
    95124
     
    139168      </tr>
    140169      <tr valign="top">
    141         <td class="prompt">Create protocol</td>
     170        <td class="prompt">Lab protocols</td>
    142171        <td class="input" id="protocol" style="white-space: nowrap; line-height: 1.5em;">
    143172          <span class="link" onclick="viewProtocol('list')"><img src="../images/listview.png">&nbsp;List layout</span><br>
     
    148177          The 'list layout' generates a table with one row for each well on the work plate.
    149178          The 'plate layout' generates a grid with wells arranged according to row and column coordinates.
     179        </td>
     180      </tr>
     181      <tr valign="top">
     182        <td class="prompt">Export files</td>
     183        <td class="input" id="export" style="white-space: nowrap; line-height: 1.5em;">
     184          TODO
     185        </td>
     186        <td class="status" id="export.status"></td>
     187        <td class="help"><span id="protocol.message" class="message" style="display: none;"></span>
     188          Select what to export. Typically, you'll need the .... files.
    150189        </td>
    151190      </tr>
Note: See TracChangeset for help on using the changeset viewer.