4014 |
06 Jul 16 |
olle |
1 |
<%@ page |
4014 |
06 Jul 16 |
olle |
2 |
pageEncoding="UTF-8" |
4014 |
06 Jul 16 |
olle |
3 |
session="false" |
4014 |
06 Jul 16 |
olle |
4 |
import="net.sf.basedb.core.Application" |
4014 |
06 Jul 16 |
olle |
5 |
import="net.sf.basedb.core.User" |
4014 |
06 Jul 16 |
olle |
6 |
import="net.sf.basedb.core.DbControl" |
4014 |
06 Jul 16 |
olle |
7 |
import="net.sf.basedb.core.SessionControl" |
4014 |
06 Jul 16 |
olle |
8 |
import="net.sf.basedb.clients.web.Base" |
4014 |
06 Jul 16 |
olle |
9 |
import="net.sf.basedb.clients.web.util.HTML" |
4014 |
06 Jul 16 |
olle |
10 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
4014 |
06 Jul 16 |
olle |
11 |
import="net.sf.basedb.util.Values" |
4014 |
06 Jul 16 |
olle |
12 |
%> |
4014 |
06 Jul 16 |
olle |
13 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
4014 |
06 Jul 16 |
olle |
14 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
4014 |
06 Jul 16 |
olle |
15 |
<% |
4014 |
06 Jul 16 |
olle |
16 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
4014 |
06 Jul 16 |
olle |
17 |
final String ID = sc.getId(); |
4014 |
06 Jul 16 |
olle |
18 |
final float scale = Base.getScale(sc); |
4014 |
06 Jul 16 |
olle |
19 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
4014 |
06 Jul 16 |
olle |
20 |
|
4014 |
06 Jul 16 |
olle |
21 |
DbControl dc = null; |
4014 |
06 Jul 16 |
olle |
22 |
try |
4014 |
06 Jul 16 |
olle |
23 |
{ |
4014 |
06 Jul 16 |
olle |
24 |
dc = sc.newDbControl(); |
4014 |
06 Jul 16 |
olle |
25 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
4014 |
06 Jul 16 |
olle |
26 |
%> |
4014 |
06 Jul 16 |
olle |
27 |
<base:page type="default" > |
4014 |
06 Jul 16 |
olle |
28 |
<base:head |
4014 |
06 Jul 16 |
olle |
29 |
scripts="~../reggie-2.js,~generate-referral-forms.js" |
6277 |
03 Jun 21 |
nicklas |
30 |
styles="path.css,~../css/reggie-2.css,~export.css" |
4014 |
06 Jul 16 |
olle |
31 |
> |
6864 |
04 Nov 22 |
nicklas |
32 |
<style> |
6864 |
04 Nov 22 |
nicklas |
33 |
#downloadBd47CSV::before |
6864 |
04 Nov 22 |
nicklas |
34 |
{ |
6864 |
04 Nov 22 |
nicklas |
35 |
content: url('../../../images/file.png'); |
6864 |
04 Nov 22 |
nicklas |
36 |
vertical-align: -0.25em; |
6864 |
04 Nov 22 |
nicklas |
37 |
margin: 0 0.25em 0 0.5em; |
6864 |
04 Nov 22 |
nicklas |
38 |
} |
6864 |
04 Nov 22 |
nicklas |
39 |
#downloadBd47ZIP::before |
6864 |
04 Nov 22 |
nicklas |
40 |
{ |
6864 |
04 Nov 22 |
nicklas |
41 |
content: url('../../../images/file_compressed.png'); |
6864 |
04 Nov 22 |
nicklas |
42 |
vertical-align: -0.25em; |
6864 |
04 Nov 22 |
nicklas |
43 |
margin: 0 0.25em 0 0.5em; |
6864 |
04 Nov 22 |
nicklas |
44 |
} |
6864 |
04 Nov 22 |
nicklas |
45 |
</style> |
4014 |
06 Jul 16 |
olle |
46 |
</base:head> |
4014 |
06 Jul 16 |
olle |
47 |
<base:body> |
4014 |
06 Jul 16 |
olle |
48 |
|
4014 |
06 Jul 16 |
olle |
49 |
<p:path><p:pathelement |
4014 |
06 Jul 16 |
olle |
50 |
title="Reggie" href="<%="../index.jsp?ID="+ID%>" |
6277 |
03 Jun 21 |
nicklas |
51 |
/><p:pathelement title="Referral ID generator" |
4014 |
06 Jul 16 |
olle |
52 |
/></p:path> |
4014 |
06 Jul 16 |
olle |
53 |
|
4014 |
06 Jul 16 |
olle |
54 |
<div class="content"> |
6277 |
03 Jun 21 |
nicklas |
55 |
<form name="reggie" id="wizard" class="wizard"> |
6277 |
03 Jun 21 |
nicklas |
56 |
|
6277 |
03 Jun 21 |
nicklas |
57 |
<div class="step" id="step-1"> |
6277 |
03 Jun 21 |
nicklas |
58 |
<div class="step-no">1</div> |
6277 |
03 Jun 21 |
nicklas |
59 |
<div class="step-title">Enter info on the referral form batch to create</div> |
6277 |
03 Jun 21 |
nicklas |
60 |
<div class="step-content"> |
6277 |
03 Jun 21 |
nicklas |
61 |
|
6277 |
03 Jun 21 |
nicklas |
62 |
<table class="step-form"> |
6277 |
03 Jun 21 |
nicklas |
63 |
<tr> |
6277 |
03 Jun 21 |
nicklas |
64 |
<td class="prompt">Site</td> |
6277 |
03 Jun 21 |
nicklas |
65 |
<td class="input"> |
6277 |
03 Jun 21 |
nicklas |
66 |
<select id="site" name="site" style="width: 15em;"></select> |
6277 |
03 Jun 21 |
nicklas |
67 |
</td> |
6277 |
03 Jun 21 |
nicklas |
68 |
<td class="status" id="site.status"></td> |
6277 |
03 Jun 21 |
nicklas |
69 |
<td class="help"> |
6277 |
03 Jun 21 |
nicklas |
70 |
<span id="site.message" class="message"></span> |
6277 |
03 Jun 21 |
nicklas |
71 |
Select the site to generate referral ID values for. |
6277 |
03 Jun 21 |
nicklas |
72 |
</td> |
6277 |
03 Jun 21 |
nicklas |
73 |
</tr> |
6277 |
03 Jun 21 |
nicklas |
74 |
<tr> |
6277 |
03 Jun 21 |
nicklas |
75 |
<td class="prompt">Kit type</td> |
6277 |
03 Jun 21 |
nicklas |
76 |
<td class="input"> |
6277 |
03 Jun 21 |
nicklas |
77 |
<label><input type="radio" name="kitType" id="kitTypeStandard" value="standard" checked>Standard</label><br> |
6277 |
03 Jun 21 |
nicklas |
78 |
<label><input type="radio" name="kitType" id="kitTypeNeo" value="neoadjuvant">Neo-adjuvant</label> |
6277 |
03 Jun 21 |
nicklas |
79 |
</td> |
6277 |
03 Jun 21 |
nicklas |
80 |
<td valign="top" class="status" id="kitType.status"></td> |
6277 |
03 Jun 21 |
nicklas |
81 |
<td class="help"> |
6277 |
03 Jun 21 |
nicklas |
82 |
<span id="kitType.message" class="message"></span> |
6277 |
03 Jun 21 |
nicklas |
83 |
Select the type of kit. |
6277 |
03 Jun 21 |
nicklas |
84 |
</td> |
6277 |
03 Jun 21 |
nicklas |
85 |
</tr> |
6277 |
03 Jun 21 |
nicklas |
86 |
<tr> |
6277 |
03 Jun 21 |
nicklas |
87 |
<td class="prompt">Start number |
6277 |
03 Jun 21 |
nicklas |
88 |
<span id="sitePrefix" style="float: right; font-weight: normal;">00 -</span> |
6277 |
03 Jun 21 |
nicklas |
89 |
</td> |
6277 |
03 Jun 21 |
nicklas |
90 |
<td class="input"> |
6277 |
03 Jun 21 |
nicklas |
91 |
<input type="text" name="startNumber" id="startNumber" |
6277 |
03 Jun 21 |
nicklas |
92 |
class="required auto-init" data-auto-init="focus-on-enter" data-next-focus="numKits" |
6277 |
03 Jun 21 |
nicklas |
93 |
style="width: 6em;" maxlength="5"> |
6277 |
03 Jun 21 |
nicklas |
94 |
<span id="viewLogFile" class="link" style="display: none;" |
6277 |
03 Jun 21 |
nicklas |
95 |
title="Opens in a new window">View log file</span> |
6277 |
03 Jun 21 |
nicklas |
96 |
</td> |
6277 |
03 Jun 21 |
nicklas |
97 |
<td class="status" id="startNumber.status"></td> |
6277 |
03 Jun 21 |
nicklas |
98 |
<td class="help"> |
6277 |
03 Jun 21 |
nicklas |
99 |
<span id="startNumber.message" class="message"></span> |
6277 |
03 Jun 21 |
nicklas |
100 |
Enter the 5-digit number of the first referral ID. The site prefix |
6277 |
03 Jun 21 |
nicklas |
101 |
is automatically added to create a 7-digit SCAN-B ID. |
6277 |
03 Jun 21 |
nicklas |
102 |
</td> |
6277 |
03 Jun 21 |
nicklas |
103 |
</tr> |
6277 |
03 Jun 21 |
nicklas |
104 |
<tr> |
6277 |
03 Jun 21 |
nicklas |
105 |
<td class="prompt">Number of kits</td> |
6277 |
03 Jun 21 |
nicklas |
106 |
<td class="input"><input type="text" name="numKits" id="numKits" |
6277 |
03 Jun 21 |
nicklas |
107 |
class="required" style="width: 6em;" maxlength="3"> (max 100)</td> |
6277 |
03 Jun 21 |
nicklas |
108 |
<td class="status" id="numKits.status"></td> |
6277 |
03 Jun 21 |
nicklas |
109 |
<td class="help"> |
6277 |
03 Jun 21 |
nicklas |
110 |
<span id="numKits.message" class="message"></span> |
6277 |
03 Jun 21 |
nicklas |
111 |
Number of referral kits to generate. |
6277 |
03 Jun 21 |
nicklas |
112 |
</td> |
6277 |
03 Jun 21 |
nicklas |
113 |
</tr> |
6277 |
03 Jun 21 |
nicklas |
114 |
</table> |
4014 |
06 Jul 16 |
olle |
115 |
|
4014 |
06 Jul 16 |
olle |
116 |
</div> |
4014 |
06 Jul 16 |
olle |
117 |
</div> |
6277 |
03 Jun 21 |
nicklas |
118 |
|
6277 |
03 Jun 21 |
nicklas |
119 |
<div id="wizard-status"></div> |
6277 |
03 Jun 21 |
nicklas |
120 |
<div id="wizard-progress"></div> |
6277 |
03 Jun 21 |
nicklas |
121 |
|
6277 |
03 Jun 21 |
nicklas |
122 |
<table class="navigation" id="navigation"> |
6277 |
03 Jun 21 |
nicklas |
123 |
<tr> |
6277 |
03 Jun 21 |
nicklas |
124 |
<td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td> |
6277 |
03 Jun 21 |
nicklas |
125 |
<td><base:button id="gopreview" title="Preview" image="<%=home+"/images/export.png"%>" /></td> |
6277 |
03 Jun 21 |
nicklas |
126 |
<td><base:button id="goregister" title="Register" image="<%=home+"/images/gonext.png"%>" /></td> |
6277 |
03 Jun 21 |
nicklas |
127 |
<td id="gonext-message" class="message"></td> |
6277 |
03 Jun 21 |
nicklas |
128 |
</tr> |
6277 |
03 Jun 21 |
nicklas |
129 |
</table> |
6277 |
03 Jun 21 |
nicklas |
130 |
|
6277 |
03 Jun 21 |
nicklas |
131 |
</form> |
6277 |
03 Jun 21 |
nicklas |
132 |
|
6277 |
03 Jun 21 |
nicklas |
133 |
<div id="previewWrapper" style="display: none; top: 13em;"> |
6277 |
03 Jun 21 |
nicklas |
134 |
<div id="previewList"></div> |
4014 |
06 Jul 16 |
olle |
135 |
</div> |
4014 |
06 Jul 16 |
olle |
136 |
|
4014 |
06 Jul 16 |
olle |
137 |
</div> |
4014 |
06 Jul 16 |
olle |
138 |
|
4014 |
06 Jul 16 |
olle |
139 |
</base:body> |
4014 |
06 Jul 16 |
olle |
140 |
</base:page> |
4014 |
06 Jul 16 |
olle |
141 |
<% |
4014 |
06 Jul 16 |
olle |
142 |
} |
4014 |
06 Jul 16 |
olle |
143 |
finally |
4014 |
06 Jul 16 |
olle |
144 |
{ |
4014 |
06 Jul 16 |
olle |
145 |
if (dc != null) dc.close(); |
4014 |
06 Jul 16 |
olle |
146 |
} |
4014 |
06 Jul 16 |
olle |
147 |
%> |