extensions/net.sf.basedb.meludi/trunk/resources/personal/ffpe_block_registration_alt_rec.jsp

Code
Comments
Other
Rev Date Author Line
5044 19 Oct 18 olle 1 <%@ page
5044 19 Oct 18 olle 2   pageEncoding="UTF-8"
5044 19 Oct 18 olle 3   session="false"
5044 19 Oct 18 olle 4   import="net.sf.basedb.core.Application"
5044 19 Oct 18 olle 5   import="net.sf.basedb.core.User"
5044 19 Oct 18 olle 6   import="net.sf.basedb.core.DbControl"
5044 19 Oct 18 olle 7   import="net.sf.basedb.core.SessionControl"
5044 19 Oct 18 olle 8   import="net.sf.basedb.clients.web.Base"
5044 19 Oct 18 olle 9   import="net.sf.basedb.clients.web.util.HTML"
5044 19 Oct 18 olle 10   import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
5044 19 Oct 18 olle 11   import="net.sf.basedb.util.Values"
5044 19 Oct 18 olle 12 %>
5044 19 Oct 18 olle 13 <%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
5044 19 Oct 18 olle 14 <%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
5044 19 Oct 18 olle 15 <%
5044 19 Oct 18 olle 16 //final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.meludi", true);
5044 19 Oct 18 olle 17 final SessionControl sc = Base.getExistingSessionControl(request, true);
5044 19 Oct 18 olle 18 final String ID = sc.getId();
5044 19 Oct 18 olle 19 final float scale = Base.getScale(sc);
5044 19 Oct 18 olle 20 final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.meludi");
5044 19 Oct 18 olle 21 DbControl dc = null;
5044 19 Oct 18 olle 22 try
5044 19 Oct 18 olle 23 {
5044 19 Oct 18 olle 24   dc = sc.newDbControl();
5044 19 Oct 18 olle 25   final User user = User.getById(dc, sc.getLoggedInUserId());
5044 19 Oct 18 olle 26 %>
5044 19 Oct 18 olle 27 <base:page type="default" >
5044 19 Oct 18 olle 28 <base:head 
5044 19 Oct 18 olle 29   scripts="~../meludi-2.js,~ffpe_block_registration_alt_rec.js" 
5044 19 Oct 18 olle 30   styles="path.css,~../css/meludi-2.css" 
5044 19 Oct 18 olle 31 />
5044 19 Oct 18 olle 32 <base:body>
5044 19 Oct 18 olle 33
5044 19 Oct 18 olle 34   <p:path><p:pathelement id="meludi-index"
5044 19 Oct 18 olle 35     title="Meludi" href="<%="../index.jsp?ID="+ID%>" 
5044 19 Oct 18 olle 36     /><p:pathelement title="FFPE block registration" 
5044 19 Oct 18 olle 37     /></p:path>
5044 19 Oct 18 olle 38
5044 19 Oct 18 olle 39   <div class="content">
5044 19 Oct 18 olle 40   <form name="meludi" id="wizard" class="wizard">
5044 19 Oct 18 olle 41
5044 19 Oct 18 olle 42     <!-- 1. Personal number -->
5044 19 Oct 18 olle 43     <div class="step" id="step-1">
5044 19 Oct 18 olle 44       <div class="step-no">1</div>
5266 25 Jan 19 olle 45       <div class="step-title">Select case item to register FFPE block order items for</div>
5044 19 Oct 18 olle 46       <div class="step-content">
5044 19 Oct 18 olle 47
5044 19 Oct 18 olle 48         <table class="step-form">
5237 16 Jan 19 olle 49 <!--
5044 19 Oct 18 olle 50         <tr>
5044 19 Oct 18 olle 51           <td class="prompt">Personal number</td>
5044 19 Oct 18 olle 52           <td class="input">
5044 19 Oct 18 olle 53             <input type="text" name="personalNumber" id="personalNumber"
5044 19 Oct 18 olle 54               class="required"
5044 19 Oct 18 olle 55               style="width: 12em;" maxlength="12">
5044 19 Oct 18 olle 56           </td>
5044 19 Oct 18 olle 57           <td class="status" id="personalNumber.status"></td>
5044 19 Oct 18 olle 58           <td class="help">
5044 19 Oct 18 olle 59             <span id="personalNumber.message" class="message"></span>
5044 19 Oct 18 olle 60             ([YY]YYMMDDZZZZ) Enter personal number for FFPE block patient.
5044 19 Oct 18 olle 61           </td>
5044 19 Oct 18 olle 62         </tr>
5237 16 Jan 19 olle 63 -->
5265 24 Jan 19 olle 64         <tr>
5265 24 Jan 19 olle 65           <td class="prompt">Optional personal number</td>
5265 24 Jan 19 olle 66           <td class="input">
5265 24 Jan 19 olle 67             <input type="text" name="personalNumber" id="personalNumber"
5265 24 Jan 19 olle 68               style="width: 13em;" maxlength="13">
5265 24 Jan 19 olle 69           </td>
5265 24 Jan 19 olle 70           <td class="status" id="personalNumber.status"></td>
5265 24 Jan 19 olle 71           <td class="help">
5265 24 Jan 19 olle 72             <span id="personalNumber.message" class="message"></span>
5265 24 Jan 19 olle 73             (YYYYMMDD-ZZZZ) Enter personal number for FFPE block patient to select case item.
5265 24 Jan 19 olle 74           </td>
5265 24 Jan 19 olle 75         </tr>
5237 16 Jan 19 olle 76         <tr class="align-top">
5237 16 Jan 19 olle 77           <td class="prompt">Cases with unprocessed FFPE block order[s]</td>
5237 16 Jan 19 olle 78           <td class="input">
5237 16 Jan 19 olle 79             <select name="extractSourceItems" id="extractSourceItems" class="yellow-label-support" multiple size="30"></select>
5237 16 Jan 19 olle 80           </td>
5237 16 Jan 19 olle 81           <td class="status" id="extractSourceItems.status"></td>
5237 16 Jan 19 olle 82           <td class="help">
5237 16 Jan 19 olle 83             <span id="extractSourceItems.message" class="message" ></span>
5237 16 Jan 19 olle 84             Select the item to be used for FFPE block registration.
5237 16 Jan 19 olle 85           </td>
5237 16 Jan 19 olle 86         </tr>
5044 19 Oct 18 olle 87         </table>
5044 19 Oct 18 olle 88       </div>
5044 19 Oct 18 olle 89     </div>
5044 19 Oct 18 olle 90   
5044 19 Oct 18 olle 91     <!-- 2. Number of FFPE block -->
5044 19 Oct 18 olle 92     <div class="step" id="step-2">
5044 19 Oct 18 olle 93       <div class="step-no">2</div>
5044 19 Oct 18 olle 94       <div class="step-title">Number of FFPE blocks</div>
5044 19 Oct 18 olle 95       <div class="step-content">
5044 19 Oct 18 olle 96       
5044 19 Oct 18 olle 97       <table class="step-form">
5044 19 Oct 18 olle 98       <tr>
5044 19 Oct 18 olle 99         <td class="prompt">Case name</td>
5044 19 Oct 18 olle 100         <td class="input"><input type="text" name="caseName" id="caseName"
5044 19 Oct 18 olle 101           disabled
5044 19 Oct 18 olle 102           style="width: 12em;" maxlength="12"></td>
5044 19 Oct 18 olle 103         <td class="status" id="caseName.status"></td>
5044 19 Oct 18 olle 104         <td class="help">
5044 19 Oct 18 olle 105           <span id="caseName.message" class="message"></span>
5044 19 Oct 18 olle 106           Case name for patient.
5044 19 Oct 18 olle 107         </td>
5044 19 Oct 18 olle 108       </tr>
5044 19 Oct 18 olle 109       <tr>
5044 19 Oct 18 olle 110         <td class="prompt">Number of FFPE blocks</td>
5044 19 Oct 18 olle 111         <td class="input">
5044 19 Oct 18 olle 112           <input type="text" name="nofBlocks" id="nofBlocks"
5044 19 Oct 18 olle 113             class="required auto-init" data-auto-init="focus-on-enter" data-next-focus="arrivalDate"
5394 02 May 19 olle 114               style="width: 12em;" maxlength="4" value="1">
5044 19 Oct 18 olle 115         </td>
5044 19 Oct 18 olle 116         <td class="status" id="nofBlocks.status"></td>
5044 19 Oct 18 olle 117         <td class="help">
5044 19 Oct 18 olle 118           <span id="nofBlocks.message" class="message"></span>
5044 19 Oct 18 olle 119           Number of FFPE blocks.
5044 19 Oct 18 olle 120         </td>
5044 19 Oct 18 olle 121       </tr>
5044 19 Oct 18 olle 122       <tr valign="top">
5044 19 Oct 18 olle 123         <td class="prompt">Arrival date</td>
5044 19 Oct 18 olle 124         <td class="input">
5044 19 Oct 18 olle 125           <input type="text" name="arrivalDate" id="arrivalDate" 
5044 19 Oct 18 olle 126             class="auto-init" data-auto-init="focus-on-enter" data-next-focus=""
5044 19 Oct 18 olle 127             data-disallow-future-date="1"
5044 19 Oct 18 olle 128             style="width: 12em;" maxlength="10">
5044 19 Oct 18 olle 129             <base:icon 
5044 19 Oct 18 olle 130               id="arrivalDateCalendar"
5044 19 Oct 18 olle 131               subclass="auto-init"
5044 19 Oct 18 olle 132               data-auto-init="calendar"
5044 19 Oct 18 olle 133               data-textarea-id="arrivalDate"
5044 19 Oct 18 olle 134               data-date-format="yyyyMMdd"
5044 19 Oct 18 olle 135               data-title="Arrival date"
5044 19 Oct 18 olle 136               image="calendar.png" 
5044 19 Oct 18 olle 137               tooltip="Select a date from a calendar" 
5044 19 Oct 18 olle 138               tabindex="-1"
5044 19 Oct 18 olle 139             />
5203 07 Jan 19 olle 140           <base:button id="today" title="Today" image="<%=home+"/images/today.png"%>" />
5044 19 Oct 18 olle 141         </td>
5044 19 Oct 18 olle 142         <td class="status" id="arrivalDate.status"></td>
5044 19 Oct 18 olle 143         <td class="help">
5044 19 Oct 18 olle 144           <span id="arrivalDate.message" class="message"></span>
5044 19 Oct 18 olle 145           Date when the FFPE blocks arrived (YYYYMMDD or MMDD).
5044 19 Oct 18 olle 146         </td>
5044 19 Oct 18 olle 147       </tr>
5044 19 Oct 18 olle 148       </table>
5044 19 Oct 18 olle 149       </div>
5044 19 Oct 18 olle 150     </div>
5044 19 Oct 18 olle 151   
5044 19 Oct 18 olle 152     <!-- 3. FFPE block data -->
5044 19 Oct 18 olle 153     <div class="step" id="step-3">
5044 19 Oct 18 olle 154       <div class="step-no">3</div>
5044 19 Oct 18 olle 155       <div class="step-title">Enter FFPE block information</div>
5044 19 Oct 18 olle 156       <div class="step-content">
5044 19 Oct 18 olle 157     
5044 19 Oct 18 olle 158         <table id="ffpe-blocks" class="step-form">
5044 19 Oct 18 olle 159         </table>
5044 19 Oct 18 olle 160       </div>
5044 19 Oct 18 olle 161     </div>
5044 19 Oct 18 olle 162
5044 19 Oct 18 olle 163     <div id="wizard-status"></div>
5044 19 Oct 18 olle 164   
5044 19 Oct 18 olle 165     <table class="navigation" id="navigation">
5044 19 Oct 18 olle 166     <tr>
5044 19 Oct 18 olle 167       <td><base:button id="gocancel" title="Cancel" /></td>
5044 19 Oct 18 olle 168       <td><base:button id="gonext" title="Next" image="<%=home+"/images/gonext.png"%>" /></td>
5044 19 Oct 18 olle 169       <td><base:button id="goregister" title="Register" image="<%=home+"/images/gonext.png"%>" /></td>
5044 19 Oct 18 olle 170       <td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td>
5203 07 Jan 19 olle 171       <td><base:button id="today" title="Today" image="<%=home+"/images/today.png"%>" /></td>
5044 19 Oct 18 olle 172       <td id="gonext-message" class="message"></td>
5044 19 Oct 18 olle 173     </tr>
5044 19 Oct 18 olle 174     </table>
5044 19 Oct 18 olle 175   </form>
5044 19 Oct 18 olle 176   </div>
5044 19 Oct 18 olle 177   
5044 19 Oct 18 olle 178 </base:body>
5044 19 Oct 18 olle 179 </base:page>
5044 19 Oct 18 olle 180 <%
5044 19 Oct 18 olle 181 }
5044 19 Oct 18 olle 182 finally
5044 19 Oct 18 olle 183 {
5044 19 Oct 18 olle 184   if (dc != null) dc.close();
5044 19 Oct 18 olle 185 }
5044 19 Oct 18 olle 186 %>