5910 |
17 Apr 20 |
nicklas |
1 |
<%@ page |
5910 |
17 Apr 20 |
nicklas |
2 |
pageEncoding="UTF-8" |
5910 |
17 Apr 20 |
nicklas |
3 |
session="false" |
5910 |
17 Apr 20 |
nicklas |
4 |
import="net.sf.basedb.core.User" |
5910 |
17 Apr 20 |
nicklas |
5 |
import="net.sf.basedb.core.DbControl" |
5910 |
17 Apr 20 |
nicklas |
6 |
import="net.sf.basedb.core.SessionControl" |
5910 |
17 Apr 20 |
nicklas |
7 |
import="net.sf.basedb.core.Application" |
5910 |
17 Apr 20 |
nicklas |
8 |
import="net.sf.basedb.util.formatter.DateFormatter" |
5910 |
17 Apr 20 |
nicklas |
9 |
import="net.sf.basedb.util.formatter.Formatter" |
5910 |
17 Apr 20 |
nicklas |
10 |
import="net.sf.basedb.clients.web.Base" |
5910 |
17 Apr 20 |
nicklas |
11 |
import="net.sf.basedb.clients.web.util.HTML" |
5910 |
17 Apr 20 |
nicklas |
12 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
5910 |
17 Apr 20 |
nicklas |
13 |
import="java.util.Date" |
5910 |
17 Apr 20 |
nicklas |
14 |
%> |
5910 |
17 Apr 20 |
nicklas |
15 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
5910 |
17 Apr 20 |
nicklas |
16 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
5910 |
17 Apr 20 |
nicklas |
17 |
<% |
5910 |
17 Apr 20 |
nicklas |
18 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
5910 |
17 Apr 20 |
nicklas |
19 |
final String ID = sc.getId(); |
5910 |
17 Apr 20 |
nicklas |
20 |
final float scale = Base.getScale(sc); |
5910 |
17 Apr 20 |
nicklas |
21 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
5910 |
17 Apr 20 |
nicklas |
22 |
final String pipeline = request.getParameter("pipeline"); |
5910 |
17 Apr 20 |
nicklas |
23 |
DbControl dc = null; |
5910 |
17 Apr 20 |
nicklas |
24 |
try |
5910 |
17 Apr 20 |
nicklas |
25 |
{ |
5910 |
17 Apr 20 |
nicklas |
26 |
dc = sc.newDbControl(); |
5910 |
17 Apr 20 |
nicklas |
27 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
5910 |
17 Apr 20 |
nicklas |
28 |
%> |
5910 |
17 Apr 20 |
nicklas |
29 |
<base:page type="default" > |
5910 |
17 Apr 20 |
nicklas |
30 |
<base:head |
5910 |
17 Apr 20 |
nicklas |
31 |
scripts="~../reggie-2.js,~import_followup_blood.js" |
5910 |
17 Apr 20 |
nicklas |
32 |
styles="path.css,~../css/reggie-2.css" |
5910 |
17 Apr 20 |
nicklas |
33 |
/> |
5910 |
17 Apr 20 |
nicklas |
34 |
<base:body> |
5910 |
17 Apr 20 |
nicklas |
35 |
|
5910 |
17 Apr 20 |
nicklas |
36 |
<p:path><p:pathelement |
5910 |
17 Apr 20 |
nicklas |
37 |
title="Reggie" href="<%="../index.jsp?ID="+ID%>" |
5910 |
17 Apr 20 |
nicklas |
38 |
/><p:pathelement title="Batch import of follow-up blood referral forms" |
5910 |
17 Apr 20 |
nicklas |
39 |
/></p:path> |
5910 |
17 Apr 20 |
nicklas |
40 |
|
5910 |
17 Apr 20 |
nicklas |
41 |
<div id="page-data" class="datacontainer" |
5910 |
17 Apr 20 |
nicklas |
42 |
data-pipeline="<%=HTML.encodeTags(pipeline)%>" |
5910 |
17 Apr 20 |
nicklas |
43 |
></div> |
5910 |
17 Apr 20 |
nicklas |
44 |
|
5910 |
17 Apr 20 |
nicklas |
45 |
<div class="content"> |
5910 |
17 Apr 20 |
nicklas |
46 |
<form name="reggie" id="wizard" class="wizard"> |
5910 |
17 Apr 20 |
nicklas |
47 |
|
5910 |
17 Apr 20 |
nicklas |
48 |
<div class="step" id="step-1"> |
5910 |
17 Apr 20 |
nicklas |
49 |
<div class="step-no">1</div> |
5910 |
17 Apr 20 |
nicklas |
50 |
<div class="step-title">Select Excel or CSV file</div> |
5910 |
17 Apr 20 |
nicklas |
51 |
<div class="step-content"> |
5910 |
17 Apr 20 |
nicklas |
52 |
|
5910 |
17 Apr 20 |
nicklas |
53 |
<table class="step-form"> |
5910 |
17 Apr 20 |
nicklas |
54 |
<tr class="align-top"> |
5910 |
17 Apr 20 |
nicklas |
55 |
<td class="prompt">Import from</td> |
5910 |
17 Apr 20 |
nicklas |
56 |
<td class="input"> |
5910 |
17 Apr 20 |
nicklas |
57 |
<input type="file" name="sampleFile" id="sampleFile" class="required" style="width: 95%;"> |
5910 |
17 Apr 20 |
nicklas |
58 |
</td> |
5910 |
17 Apr 20 |
nicklas |
59 |
<td class="status" id="sampleFile.status"></td> |
5910 |
17 Apr 20 |
nicklas |
60 |
<td class="help" rowspan="2"> |
5910 |
17 Apr 20 |
nicklas |
61 |
<span id="sampleFile.message" class="message"></span> |
5910 |
17 Apr 20 |
nicklas |
62 |
Select the Excel or CSV file that contains the follow-up blood information. |
5910 |
17 Apr 20 |
nicklas |
63 |
The following columns are required: <b>PersonalNumber</b>, <b>Name</b>, <b>BloodRccidNumber</b>, |
5910 |
17 Apr 20 |
nicklas |
64 |
<b>BloodSample</b>, <b>BloodSamplingDate</b>, <b>BloodSamplingTime</b>, <b>BloodFreezerDate</b>, |
5931 |
06 May 20 |
nicklas |
65 |
<b>BloodFreezerTime</b> and <b>OtherPathNote</b>. Empty lines and lines starting with # are |
5931 |
06 May 20 |
nicklas |
66 |
ignored. |
5910 |
17 Apr 20 |
nicklas |
67 |
<div id="worksheetSection.help" style="display:none;"> |
5910 |
17 Apr 20 |
nicklas |
68 |
Note that it is only possible to import from one worksheet at a time. |
5910 |
17 Apr 20 |
nicklas |
69 |
</div> |
5910 |
17 Apr 20 |
nicklas |
70 |
</td> |
5910 |
17 Apr 20 |
nicklas |
71 |
</tr> |
5910 |
17 Apr 20 |
nicklas |
72 |
<tr id="worksheetSection" style="display: none;"> |
5910 |
17 Apr 20 |
nicklas |
73 |
<td class="subprompt">- worksheet</td> |
5910 |
17 Apr 20 |
nicklas |
74 |
<td class="input"> |
5910 |
17 Apr 20 |
nicklas |
75 |
<select name="sheet" id="sheet" class="required" style="width: auto; min-width: 10em;"></select> |
5910 |
17 Apr 20 |
nicklas |
76 |
</td> |
5910 |
17 Apr 20 |
nicklas |
77 |
<td class="status" id="sheet.status"></td> |
5910 |
17 Apr 20 |
nicklas |
78 |
</tr> |
5910 |
17 Apr 20 |
nicklas |
79 |
</table> |
5910 |
17 Apr 20 |
nicklas |
80 |
</div> |
5910 |
17 Apr 20 |
nicklas |
81 |
</div> |
5910 |
17 Apr 20 |
nicklas |
82 |
|
5910 |
17 Apr 20 |
nicklas |
83 |
<table class="navigation" id="navigation" style="margin-bottom: 1em;"> |
5910 |
17 Apr 20 |
nicklas |
84 |
<tr> |
5910 |
17 Apr 20 |
nicklas |
85 |
<td><base:button id="gocancel" title="Cancel" /></td> |
5910 |
17 Apr 20 |
nicklas |
86 |
<td><base:button id="gonext" title="Next" image="<%=home+"/images/gonext.png"%>" /></td> |
5910 |
17 Apr 20 |
nicklas |
87 |
<td><base:button id="goregister" title="Import" image="<%=home+"/images/import.png"%>" /></td> |
5910 |
17 Apr 20 |
nicklas |
88 |
<td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td> |
5919 |
24 Apr 20 |
nicklas |
89 |
<td><base:button id="goabort" title="Abort…" image="<%=home+"/images/bomb.png"%>" /></td> |
5910 |
17 Apr 20 |
nicklas |
90 |
<td id="gonext-message" class="message"></td> |
5910 |
17 Apr 20 |
nicklas |
91 |
</tr> |
5910 |
17 Apr 20 |
nicklas |
92 |
</table> |
5910 |
17 Apr 20 |
nicklas |
93 |
|
5910 |
17 Apr 20 |
nicklas |
94 |
<div id="wizard-status"></div> |
5916 |
22 Apr 20 |
nicklas |
95 |
<div id="wizard-progress"></div> |
5910 |
17 Apr 20 |
nicklas |
96 |
|
5910 |
17 Apr 20 |
nicklas |
97 |
</form> |
5910 |
17 Apr 20 |
nicklas |
98 |
</div> |
5910 |
17 Apr 20 |
nicklas |
99 |
|
5910 |
17 Apr 20 |
nicklas |
100 |
</base:body> |
5910 |
17 Apr 20 |
nicklas |
101 |
</base:page> |
5910 |
17 Apr 20 |
nicklas |
102 |
<% |
5910 |
17 Apr 20 |
nicklas |
103 |
} |
5910 |
17 Apr 20 |
nicklas |
104 |
finally |
5910 |
17 Apr 20 |
nicklas |
105 |
{ |
5910 |
17 Apr 20 |
nicklas |
106 |
if (dc != null) dc.close(); |
5910 |
17 Apr 20 |
nicklas |
107 |
} |
5910 |
17 Apr 20 |
nicklas |
108 |
%> |