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

Code
Comments
Other
Rev Date Author Line
4909 12 Jul 18 olle 1 <%@ page
4909 12 Jul 18 olle 2   pageEncoding="UTF-8"
4909 12 Jul 18 olle 3   session="false"
4909 12 Jul 18 olle 4   import="net.sf.basedb.core.Application"
4909 12 Jul 18 olle 5   import="net.sf.basedb.core.User"
4909 12 Jul 18 olle 6   import="net.sf.basedb.core.DbControl"
4909 12 Jul 18 olle 7   import="net.sf.basedb.core.SessionControl"
4909 12 Jul 18 olle 8   import="net.sf.basedb.clients.web.Base"
4909 12 Jul 18 olle 9   import="net.sf.basedb.clients.web.util.HTML"
4909 12 Jul 18 olle 10   import="net.sf.basedb.clients.web.extensions.ExtensionsControl"
4909 12 Jul 18 olle 11   import="net.sf.basedb.util.Values"
4909 12 Jul 18 olle 12   import="net.sf.basedb.util.formatter.DateFormatter"
4909 12 Jul 18 olle 13 %>
4909 12 Jul 18 olle 14 <%@ taglib prefix="base" uri="/WEB-INF/base.tld" %>
4909 12 Jul 18 olle 15 <%@ taglib prefix="p" uri="/WEB-INF/path.tld" %>
4909 12 Jul 18 olle 16 <%
4909 12 Jul 18 olle 17 //final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.meludi", true);
4909 12 Jul 18 olle 18 final SessionControl sc = Base.getExistingSessionControl(request, true);
4909 12 Jul 18 olle 19 final String ID = sc.getId();
4909 12 Jul 18 olle 20 final float scale = Base.getScale(sc);
4909 12 Jul 18 olle 21 final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.meludi");
4909 12 Jul 18 olle 22
4909 12 Jul 18 olle 23 DbControl dc = null;
4909 12 Jul 18 olle 24 try
4909 12 Jul 18 olle 25 {
4909 12 Jul 18 olle 26   dc = sc.newDbControl();
4909 12 Jul 18 olle 27   final User user = User.getById(dc, sc.getLoggedInUserId());
4909 12 Jul 18 olle 28   DateFormatter dateFormat = new DateFormatter("yyyy-MM-dd");
4909 12 Jul 18 olle 29 %>
4909 12 Jul 18 olle 30 <base:page type="default" >
4909 12 Jul 18 olle 31 <base:head 
4909 12 Jul 18 olle 32   scripts="~../meludi-2.js,~ffpe_section_order_form_sequential.js" 
4909 12 Jul 18 olle 33   styles="path.css,~../css/meludi-2.css"
4909 12 Jul 18 olle 34 >
4909 12 Jul 18 olle 35 <style>
4909 12 Jul 18 olle 36 #not-found
4909 12 Jul 18 olle 37 {
4909 12 Jul 18 olle 38   margin: 0 1em 0 4em; 
4909 12 Jul 18 olle 39   padding: 0.5em 1em; 
4909 12 Jul 18 olle 40   font-family: monospace,Courier New;
4909 12 Jul 18 olle 41   max-height: 25em;
4909 12 Jul 18 olle 42   overflow: auto;
4909 12 Jul 18 olle 43 }
4909 12 Jul 18 olle 44 </style>
4909 12 Jul 18 olle 45 </base:head>
4909 12 Jul 18 olle 46 <base:body>
4909 12 Jul 18 olle 47
4909 12 Jul 18 olle 48   <p:path><p:pathelement 
4909 12 Jul 18 olle 49     title="Meludi" href="<%="../index.jsp?ID="+ID%>" 
4909 12 Jul 18 olle 50     /><p:pathelement title="Generate FFPE section order form" 
4909 12 Jul 18 olle 51     /></p:path>
4909 12 Jul 18 olle 52
4909 12 Jul 18 olle 53   <div class="content">
4909 12 Jul 18 olle 54   <form name="meludi" id="wizard" class="wizard">
4909 12 Jul 18 olle 55   
4909 12 Jul 18 olle 56   <div class="step" id="step-1">
4909 12 Jul 18 olle 57     <div class="step-no">1</div>
4909 12 Jul 18 olle 58     <div class="step-title">Enter info on the referral form batch to create</div>
4909 12 Jul 18 olle 59     <div class="step-content">
4909 12 Jul 18 olle 60   
4909 12 Jul 18 olle 61       <div class="bg-filled-50" style="padding: 2px;">
4909 12 Jul 18 olle 62         * A form set consists of forms for the same site.<br>
4909 12 Jul 18 olle 63         * A form batch consists of a number of form sets with consecutive ID's.<br>
4909 12 Jul 18 olle 64         * A form batch is distributed as two files, with forms intended for printing on<br>
4909 12 Jul 18 olle 65         &nbsp;&nbsp;&nbsp;referral form sheets or regular paper, respectively:<br>
4909 12 Jul 18 olle 66         <br>
4909 12 Jul 18 olle 67         &nbsp;&nbsp;&nbsp;Batch file 1: Form sets with forms to be printed on referral form sheets.<br>
4909 12 Jul 18 olle 68         &nbsp;&nbsp;&nbsp;Batch file 2: Form sets with forms to be printed on regular paper.<br>
4909 12 Jul 18 olle 69         <br>
4909 12 Jul 18 olle 70         &nbsp;&nbsp;&nbsp;Printing options:<br>
4909 12 Jul 18 olle 71         <br>
4909 12 Jul 18 olle 72         &nbsp;&nbsp;&nbsp;Batch file 1 & 2: One-sided printing, one page per sheet, print size "Actual size".<br>
4909 12 Jul 18 olle 73         <br> 
4909 12 Jul 18 olle 74       </div>
4909 12 Jul 18 olle 75
4909 12 Jul 18 olle 76       <table class="step-form">
4909 12 Jul 18 olle 77       <tr>
4909 12 Jul 18 olle 78         <td class="prompt">Start FFPE block ID</td>
4909 12 Jul 18 olle 79         <td class="input"><input type="text" name="itemName" id="itemName"
4909 12 Jul 18 olle 80           class="required auto-init" data-auto-init="focus"
4909 12 Jul 18 olle 81           style="width: 12em;" maxlength="12"></td>
4909 12 Jul 18 olle 82         <td class="status" id="itemName.status"></td>
4909 12 Jul 18 olle 83         <td class="help">
4909 12 Jul 18 olle 84           <span id="itemName.message" class="message"></span>
4909 12 Jul 18 olle 85           The prefix + 5-digit ID for the first item on the form. Last updated: <b><span id="referralIdLastUpdated"></span></b>.
4909 12 Jul 18 olle 86         </td>
4909 12 Jul 18 olle 87       </tr>
4909 12 Jul 18 olle 88       <tr>
4909 12 Jul 18 olle 89         <td class="prompt"># sequential FFPE blocks in order form</td>
4909 12 Jul 18 olle 90         <td class="input"><input type="text" name="nofFfpeBlocks" id="nofFfpeBlocks"
4909 12 Jul 18 olle 91           class="required auto-init" data-auto-init="focus"
4909 12 Jul 18 olle 92           style="width: 12em;" maxlength="12"></td>
4909 12 Jul 18 olle 93         <td class="status" id="nofFfpeBlocks.status"></td>
4909 12 Jul 18 olle 94         <td class="help">
4909 12 Jul 18 olle 95           <span id="nofFfpeBlocks.message" class="message"></span>
4909 12 Jul 18 olle 96           Number of sequential FFPE blocks on the FFPE section order form.
4909 12 Jul 18 olle 97         </td>
4909 12 Jul 18 olle 98       </tr>
4909 12 Jul 18 olle 99       </table>
4909 12 Jul 18 olle 100       <div id="step1message"></div>
4909 12 Jul 18 olle 101     </div>
4909 12 Jul 18 olle 102   </div>
4909 12 Jul 18 olle 103
4909 12 Jul 18 olle 104   <div class="step" id="step-2">
4909 12 Jul 18 olle 105     <div class="step-no">2</div>
4909 12 Jul 18 olle 106     <div class="step-title">Referral form download</div>
4909 12 Jul 18 olle 107     <div class="step-content">
4909 12 Jul 18 olle 108
4909 12 Jul 18 olle 109       <table class="step-form">
4909 12 Jul 18 olle 110       </table>
4909 12 Jul 18 olle 111       <div id="step2message"></div>
4909 12 Jul 18 olle 112     </div>
4909 12 Jul 18 olle 113   </div>
4909 12 Jul 18 olle 114
4909 12 Jul 18 olle 115   <div id="wizard-status"></div>
4909 12 Jul 18 olle 116   <div id="wizard-progress"></div>
4909 12 Jul 18 olle 117
4909 12 Jul 18 olle 118   <div id="not-found" style="display: none;" class="bg-filled-100 fullborder"></div>
4909 12 Jul 18 olle 119
4909 12 Jul 18 olle 120   <table class="navigation" id="navigation">
4909 12 Jul 18 olle 121   <tr>
4909 12 Jul 18 olle 122     <td><base:button id="gocancel" title="Cancel" /></td>
4909 12 Jul 18 olle 123     <td><base:button id="gonext" title="Next" image="<%=home+"/images/gonext.png"%>" /></td>
4909 12 Jul 18 olle 124     <td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td>
4909 12 Jul 18 olle 125 <!--
4909 12 Jul 18 olle 126     <td><base:button id="downloadformbatch1" title="Download form batch file 1" image="<%=home+"/images/download.png"%>" /></td>
4909 12 Jul 18 olle 127 -->
4909 12 Jul 18 olle 128     <td><base:button id="downloadformbatch2" title="Download form batch file 2" image="<%=home+"/images/download.png"%>" /></td>
4909 12 Jul 18 olle 129 <!--
4909 12 Jul 18 olle 130     <td><base:button id="updateuseditemidlist" title="Update used item ID list" image="<%=home+"/images/gonext.png"%>" /></td>
4909 12 Jul 18 olle 131     <td id="gonext-message" class="message"></td>
4909 12 Jul 18 olle 132 -->
4909 12 Jul 18 olle 133   </tr>
4909 12 Jul 18 olle 134   </table>
4909 12 Jul 18 olle 135   
4909 12 Jul 18 olle 136   </form>
4909 12 Jul 18 olle 137   </div>
4909 12 Jul 18 olle 138   
4909 12 Jul 18 olle 139 </base:body>
4909 12 Jul 18 olle 140 </base:page>
4909 12 Jul 18 olle 141 <%
4909 12 Jul 18 olle 142 }
4909 12 Jul 18 olle 143 finally
4909 12 Jul 18 olle 144 {
4909 12 Jul 18 olle 145   if (dc != null) dc.close();
4909 12 Jul 18 olle 146 }
4909 12 Jul 18 olle 147 %>