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

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