5341 |
02 Apr 19 |
nicklas |
1 |
<%@ page |
5341 |
02 Apr 19 |
nicklas |
2 |
pageEncoding="UTF-8" |
5341 |
02 Apr 19 |
nicklas |
3 |
session="false" |
5341 |
02 Apr 19 |
nicklas |
4 |
import="net.sf.basedb.core.User" |
5341 |
02 Apr 19 |
nicklas |
5 |
import="net.sf.basedb.core.DbControl" |
5341 |
02 Apr 19 |
nicklas |
6 |
import="net.sf.basedb.core.SessionControl" |
5341 |
02 Apr 19 |
nicklas |
7 |
import="net.sf.basedb.core.Application" |
5341 |
02 Apr 19 |
nicklas |
8 |
import="net.sf.basedb.util.formatter.DateFormatter" |
5341 |
02 Apr 19 |
nicklas |
9 |
import="net.sf.basedb.util.formatter.Formatter" |
5341 |
02 Apr 19 |
nicklas |
10 |
import="net.sf.basedb.clients.web.Base" |
5341 |
02 Apr 19 |
nicklas |
11 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
5341 |
02 Apr 19 |
nicklas |
12 |
import="java.util.Date" |
5341 |
02 Apr 19 |
nicklas |
13 |
%> |
5341 |
02 Apr 19 |
nicklas |
14 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
5341 |
02 Apr 19 |
nicklas |
15 |
<%@ taglib prefix="tbl" uri="/WEB-INF/table.tld" %> |
5341 |
02 Apr 19 |
nicklas |
16 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
5341 |
02 Apr 19 |
nicklas |
17 |
<% |
5341 |
02 Apr 19 |
nicklas |
18 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
5341 |
02 Apr 19 |
nicklas |
19 |
final String ID = sc.getId(); |
5341 |
02 Apr 19 |
nicklas |
20 |
final float scale = Base.getScale(sc); |
5341 |
02 Apr 19 |
nicklas |
21 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
5341 |
02 Apr 19 |
nicklas |
22 |
DbControl dc = null; |
5341 |
02 Apr 19 |
nicklas |
23 |
try |
5341 |
02 Apr 19 |
nicklas |
24 |
{ |
5341 |
02 Apr 19 |
nicklas |
25 |
dc = sc.newDbControl(); |
5341 |
02 Apr 19 |
nicklas |
26 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
5341 |
02 Apr 19 |
nicklas |
27 |
%> |
5341 |
02 Apr 19 |
nicklas |
28 |
<base:page type="default" title="Paused specimen wizard"> |
5341 |
02 Apr 19 |
nicklas |
29 |
<base:head |
5341 |
02 Apr 19 |
nicklas |
30 |
scripts="~../reggie-2.js,~paused-specimen.js" |
5341 |
02 Apr 19 |
nicklas |
31 |
styles="path.css,toolbar.css,~../css/reggie-2.css" |
5341 |
02 Apr 19 |
nicklas |
32 |
> |
5341 |
02 Apr 19 |
nicklas |
33 |
<style> |
5341 |
02 Apr 19 |
nicklas |
34 |
#specimenTable |
5341 |
02 Apr 19 |
nicklas |
35 |
{ |
5341 |
02 Apr 19 |
nicklas |
36 |
width: 100%; |
5341 |
02 Apr 19 |
nicklas |
37 |
border-collapse: collapse; |
5341 |
02 Apr 19 |
nicklas |
38 |
} |
5341 |
02 Apr 19 |
nicklas |
39 |
|
5341 |
02 Apr 19 |
nicklas |
40 |
#specimenTable thead |
5341 |
02 Apr 19 |
nicklas |
41 |
{ |
5341 |
02 Apr 19 |
nicklas |
42 |
border-bottom-width: 1px; |
5341 |
02 Apr 19 |
nicklas |
43 |
border-top-width: 1px; |
5341 |
02 Apr 19 |
nicklas |
44 |
} |
5341 |
02 Apr 19 |
nicklas |
45 |
|
5341 |
02 Apr 19 |
nicklas |
46 |
#specimenTable .highlight |
5341 |
02 Apr 19 |
nicklas |
47 |
{ |
5341 |
02 Apr 19 |
nicklas |
48 |
border-top-width: 1px; |
5341 |
02 Apr 19 |
nicklas |
49 |
border-top-style: dotted; |
5341 |
02 Apr 19 |
nicklas |
50 |
} |
5341 |
02 Apr 19 |
nicklas |
51 |
|
5341 |
02 Apr 19 |
nicklas |
52 |
#specimenTable .highlight.evenrow |
5341 |
02 Apr 19 |
nicklas |
53 |
{ |
5341 |
02 Apr 19 |
nicklas |
54 |
border-top-color: transparent; |
5341 |
02 Apr 19 |
nicklas |
55 |
} |
5341 |
02 Apr 19 |
nicklas |
56 |
|
5341 |
02 Apr 19 |
nicklas |
57 |
#specimenTable td, #specimenTable th |
5341 |
02 Apr 19 |
nicklas |
58 |
{ |
5341 |
02 Apr 19 |
nicklas |
59 |
text-align: center; |
5341 |
02 Apr 19 |
nicklas |
60 |
width: 12em; |
5341 |
02 Apr 19 |
nicklas |
61 |
} |
5341 |
02 Apr 19 |
nicklas |
62 |
|
5341 |
02 Apr 19 |
nicklas |
63 |
#specimenTable tbody td |
5341 |
02 Apr 19 |
nicklas |
64 |
{ |
5341 |
02 Apr 19 |
nicklas |
65 |
padding-top: 1px; |
5341 |
02 Apr 19 |
nicklas |
66 |
padding-bottom: 1px; |
5341 |
02 Apr 19 |
nicklas |
67 |
} |
5341 |
02 Apr 19 |
nicklas |
68 |
|
5341 |
02 Apr 19 |
nicklas |
69 |
#specimenTable tr td:first-child, #specimenTable tr th:first-child |
5341 |
02 Apr 19 |
nicklas |
70 |
{ |
5341 |
02 Apr 19 |
nicklas |
71 |
width: 7em; |
5341 |
02 Apr 19 |
nicklas |
72 |
text-align: right; |
5341 |
02 Apr 19 |
nicklas |
73 |
padding-right: 0.5em; |
5341 |
02 Apr 19 |
nicklas |
74 |
white-space: nowrap; |
5341 |
02 Apr 19 |
nicklas |
75 |
font-weight: bold; |
5341 |
02 Apr 19 |
nicklas |
76 |
} |
5341 |
02 Apr 19 |
nicklas |
77 |
|
5341 |
02 Apr 19 |
nicklas |
78 |
#specimenTable input[type="text"], #specimenTable select |
5341 |
02 Apr 19 |
nicklas |
79 |
{ |
5341 |
02 Apr 19 |
nicklas |
80 |
width: calc(100% - 10px); |
5341 |
02 Apr 19 |
nicklas |
81 |
} |
5341 |
02 Apr 19 |
nicklas |
82 |
|
5341 |
02 Apr 19 |
nicklas |
83 |
#specimenTable .case-summary |
5341 |
02 Apr 19 |
nicklas |
84 |
{ |
5341 |
02 Apr 19 |
nicklas |
85 |
margin-left: 4px; |
5341 |
02 Apr 19 |
nicklas |
86 |
float: right; |
5341 |
02 Apr 19 |
nicklas |
87 |
} |
5341 |
02 Apr 19 |
nicklas |
88 |
|
5341 |
02 Apr 19 |
nicklas |
89 |
#specimenTable .if-yellow |
5341 |
02 Apr 19 |
nicklas |
90 |
{ |
5341 |
02 Apr 19 |
nicklas |
91 |
padding-left: 18px; |
5341 |
02 Apr 19 |
nicklas |
92 |
} |
5341 |
02 Apr 19 |
nicklas |
93 |
|
5341 |
02 Apr 19 |
nicklas |
94 |
#specimenTable .yellow-specimen .if-yellow |
5341 |
02 Apr 19 |
nicklas |
95 |
{ |
5341 |
02 Apr 19 |
nicklas |
96 |
background-image: url('../images/yellow-label.png'); |
5341 |
02 Apr 19 |
nicklas |
97 |
background-repeat: no-repeat; |
5341 |
02 Apr 19 |
nicklas |
98 |
background-position: 2px 50%; |
5341 |
02 Apr 19 |
nicklas |
99 |
} |
5341 |
02 Apr 19 |
nicklas |
100 |
|
5344 |
02 Apr 19 |
nicklas |
101 |
#pausedInfo |
5344 |
02 Apr 19 |
nicklas |
102 |
{ |
5344 |
02 Apr 19 |
nicklas |
103 |
border-right-width: 0; |
5344 |
02 Apr 19 |
nicklas |
104 |
padding-left: 1em; |
5344 |
02 Apr 19 |
nicklas |
105 |
} |
5344 |
02 Apr 19 |
nicklas |
106 |
|
5341 |
02 Apr 19 |
nicklas |
107 |
</style> |
5341 |
02 Apr 19 |
nicklas |
108 |
</base:head> |
5341 |
02 Apr 19 |
nicklas |
109 |
<base:body> |
5341 |
02 Apr 19 |
nicklas |
110 |
|
5341 |
02 Apr 19 |
nicklas |
111 |
<p:path><p:pathelement |
5341 |
02 Apr 19 |
nicklas |
112 |
title="Reggie" href="<%="../index.jsp?ID="+ID%>" |
5341 |
02 Apr 19 |
nicklas |
113 |
/><p:pathelement title="Paused specimen wizard" |
5341 |
02 Apr 19 |
nicklas |
114 |
/></p:path> |
5341 |
02 Apr 19 |
nicklas |
115 |
|
5341 |
02 Apr 19 |
nicklas |
116 |
<div class="content"> |
5341 |
02 Apr 19 |
nicklas |
117 |
|
5341 |
02 Apr 19 |
nicklas |
118 |
<form name="reggie" id="wizard" class="wizard"> |
5341 |
02 Apr 19 |
nicklas |
119 |
|
5341 |
02 Apr 19 |
nicklas |
120 |
<div class="step auto-hide" id="step-1"> |
5341 |
02 Apr 19 |
nicklas |
121 |
<div class="step-no">1</div> |
5341 |
02 Apr 19 |
nicklas |
122 |
<div class="step-title">Select specimen items (found <span id="num-matching">?</span>)</div> |
5341 |
02 Apr 19 |
nicklas |
123 |
<div class="step-content"> |
5341 |
02 Apr 19 |
nicklas |
124 |
|
5341 |
02 Apr 19 |
nicklas |
125 |
<tbl:toolbar subclass="bg-filled-50"> |
5341 |
02 Apr 19 |
nicklas |
126 |
<tbl:button |
5341 |
02 Apr 19 |
nicklas |
127 |
id="btnExtractSpecimen" |
5341 |
02 Apr 19 |
nicklas |
128 |
image="<%=home + "/images/partition.png"%>" |
5341 |
02 Apr 19 |
nicklas |
129 |
title="Schedule for extraction" |
5344 |
02 Apr 19 |
nicklas |
130 |
tooltip="The selected specimen items will be scheduled for extraction" |
5341 |
02 Apr 19 |
nicklas |
131 |
/> |
5341 |
02 Apr 19 |
nicklas |
132 |
<tbl:button |
5341 |
02 Apr 19 |
nicklas |
133 |
id="btnPauseSpecimen" |
5341 |
02 Apr 19 |
nicklas |
134 |
image="<%=home + "/images/pause.png"%>" |
5341 |
02 Apr 19 |
nicklas |
135 |
title="Pause specimen" |
5344 |
02 Apr 19 |
nicklas |
136 |
tooltip="The selected specimen items will be paused (again)" |
5341 |
02 Apr 19 |
nicklas |
137 |
/> |
5344 |
02 Apr 19 |
nicklas |
138 |
<tbl:button |
5344 |
02 Apr 19 |
nicklas |
139 |
id="btnPauseSettings" |
5344 |
02 Apr 19 |
nicklas |
140 |
image="<%=home + "/images/install.png"%>" |
5344 |
02 Apr 19 |
nicklas |
141 |
title="Settings…" |
5344 |
02 Apr 19 |
nicklas |
142 |
tooltip="Select sites that should be paused by default" |
5344 |
02 Apr 19 |
nicklas |
143 |
/> |
5344 |
02 Apr 19 |
nicklas |
144 |
<tbl:label id="pausedInfo" clazz="" /> |
5341 |
02 Apr 19 |
nicklas |
145 |
</tbl:toolbar> |
5341 |
02 Apr 19 |
nicklas |
146 |
|
5341 |
02 Apr 19 |
nicklas |
147 |
<table id="specimenTable"> |
5341 |
02 Apr 19 |
nicklas |
148 |
<thead class="bg-filled-100"> |
5341 |
02 Apr 19 |
nicklas |
149 |
<tr> |
5341 |
02 Apr 19 |
nicklas |
150 |
<th></th> |
5341 |
02 Apr 19 |
nicklas |
151 |
<th class="dottedleft">Name</th> |
5341 |
02 Apr 19 |
nicklas |
152 |
<th>Status</th> |
5341 |
02 Apr 19 |
nicklas |
153 |
<th>Site</th> |
5341 |
02 Apr 19 |
nicklas |
154 |
<th>Sampling date</th> |
5341 |
02 Apr 19 |
nicklas |
155 |
<th>Arrival date</th> |
5341 |
02 Apr 19 |
nicklas |
156 |
<th>Storage box</th> |
5341 |
02 Apr 19 |
nicklas |
157 |
<th style="width: auto;"></th> |
5341 |
02 Apr 19 |
nicklas |
158 |
</tr> |
5341 |
02 Apr 19 |
nicklas |
159 |
|
5341 |
02 Apr 19 |
nicklas |
160 |
<tr> |
5341 |
02 Apr 19 |
nicklas |
161 |
<th><base:icon image="check_uncheck.png" id="check_uncheck" /></th> |
5341 |
02 Apr 19 |
nicklas |
162 |
<th class="dottedleft"><input type="text" name="nameFilter" id="nameFilter"></th> |
5341 |
02 Apr 19 |
nicklas |
163 |
<th> |
5341 |
02 Apr 19 |
nicklas |
164 |
<select name="statusFilter" id="statusFilter"> |
5341 |
02 Apr 19 |
nicklas |
165 |
<option value=""> |
5341 |
02 Apr 19 |
nicklas |
166 |
<option value="Disable">Paused |
5341 |
02 Apr 19 |
nicklas |
167 |
<option value="ReProcess">Scheduled |
5341 |
02 Apr 19 |
nicklas |
168 |
</select> |
5341 |
02 Apr 19 |
nicklas |
169 |
</th> |
5341 |
02 Apr 19 |
nicklas |
170 |
<th> |
5341 |
02 Apr 19 |
nicklas |
171 |
<select name="siteFilter" id="siteFilter"> |
5341 |
02 Apr 19 |
nicklas |
172 |
<option value=""> |
5341 |
02 Apr 19 |
nicklas |
173 |
</select> |
5341 |
02 Apr 19 |
nicklas |
174 |
</th> |
5341 |
02 Apr 19 |
nicklas |
175 |
<th><input type="text" name="samplingDateFilter" id="samplingDateFilter"></th> |
5341 |
02 Apr 19 |
nicklas |
176 |
<th><input type="text" name="arrivalDateFilter" id="arrivalDateFilter"></th> |
5341 |
02 Apr 19 |
nicklas |
177 |
<th><input type="text" name="storageBoxFilter" id="storageBoxFilter"></th> |
5341 |
02 Apr 19 |
nicklas |
178 |
<th style="width: auto;"></th> |
5341 |
02 Apr 19 |
nicklas |
179 |
</tr> |
5341 |
02 Apr 19 |
nicklas |
180 |
|
5341 |
02 Apr 19 |
nicklas |
181 |
</thead> |
5341 |
02 Apr 19 |
nicklas |
182 |
<tbody id="specimen-list"> |
5341 |
02 Apr 19 |
nicklas |
183 |
</tbody> |
5341 |
02 Apr 19 |
nicklas |
184 |
<tbody id="no-match" style="display: none;" class="topborder"> |
5341 |
02 Apr 19 |
nicklas |
185 |
<tr> |
5341 |
02 Apr 19 |
nicklas |
186 |
<td></td> |
5341 |
02 Apr 19 |
nicklas |
187 |
<td colspan="6" class="dottedleft" style="width: auto; font-weight: bold; text-align: left; padding: 1em;"> |
5341 |
02 Apr 19 |
nicklas |
188 |
Could not find any specimen items. |
5341 |
02 Apr 19 |
nicklas |
189 |
</td> |
5341 |
02 Apr 19 |
nicklas |
190 |
</tr> |
5341 |
02 Apr 19 |
nicklas |
191 |
</tbody> |
5341 |
02 Apr 19 |
nicklas |
192 |
</table> |
5341 |
02 Apr 19 |
nicklas |
193 |
</div> |
5341 |
02 Apr 19 |
nicklas |
194 |
</div> |
5341 |
02 Apr 19 |
nicklas |
195 |
|
5341 |
02 Apr 19 |
nicklas |
196 |
<div id="wizard-status"></div> |
5341 |
02 Apr 19 |
nicklas |
197 |
|
5341 |
02 Apr 19 |
nicklas |
198 |
<table class="navigation" id="navigation"> |
5341 |
02 Apr 19 |
nicklas |
199 |
<tr> |
5341 |
02 Apr 19 |
nicklas |
200 |
<td><base:button id="gocancel" title="Cancel" /></td> |
5341 |
02 Apr 19 |
nicklas |
201 |
<td><base:button id="gonext" title="Next" image="<%=home+"/images/gonext.png"%>" /></td> |
5341 |
02 Apr 19 |
nicklas |
202 |
<td><base:button id="goregister" title="Register" image="<%=home+"/images/import.png"%>" /></td> |
5341 |
02 Apr 19 |
nicklas |
203 |
<td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td> |
5341 |
02 Apr 19 |
nicklas |
204 |
<td id="gonext-message" class="message"></td> |
5341 |
02 Apr 19 |
nicklas |
205 |
</tr> |
5341 |
02 Apr 19 |
nicklas |
206 |
</table> |
5341 |
02 Apr 19 |
nicklas |
207 |
|
5341 |
02 Apr 19 |
nicklas |
208 |
</form> |
5341 |
02 Apr 19 |
nicklas |
209 |
</div> |
5341 |
02 Apr 19 |
nicklas |
210 |
|
5341 |
02 Apr 19 |
nicklas |
211 |
</base:body> |
5341 |
02 Apr 19 |
nicklas |
212 |
</base:page> |
5341 |
02 Apr 19 |
nicklas |
213 |
<% |
5341 |
02 Apr 19 |
nicklas |
214 |
} |
5341 |
02 Apr 19 |
nicklas |
215 |
finally |
5341 |
02 Apr 19 |
nicklas |
216 |
{ |
5341 |
02 Apr 19 |
nicklas |
217 |
if (dc != null) dc.close(); |
5341 |
02 Apr 19 |
nicklas |
218 |
} |
5341 |
02 Apr 19 |
nicklas |
219 |
%> |