4165 |
21 Oct 16 |
nicklas |
1 |
<%@ page |
4165 |
21 Oct 16 |
nicklas |
2 |
pageEncoding="UTF-8" |
4165 |
21 Oct 16 |
nicklas |
3 |
session="false" |
4165 |
21 Oct 16 |
nicklas |
4 |
import="net.sf.basedb.core.User" |
4165 |
21 Oct 16 |
nicklas |
5 |
import="net.sf.basedb.core.DbControl" |
4165 |
21 Oct 16 |
nicklas |
6 |
import="net.sf.basedb.core.SessionControl" |
4165 |
21 Oct 16 |
nicklas |
7 |
import="net.sf.basedb.core.Application" |
4165 |
21 Oct 16 |
nicklas |
8 |
import="net.sf.basedb.util.formatter.DateFormatter" |
4165 |
21 Oct 16 |
nicklas |
9 |
import="net.sf.basedb.util.formatter.Formatter" |
4165 |
21 Oct 16 |
nicklas |
10 |
import="net.sf.basedb.clients.web.Base" |
4165 |
21 Oct 16 |
nicklas |
11 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
4165 |
21 Oct 16 |
nicklas |
12 |
import="java.util.Date" |
4165 |
21 Oct 16 |
nicklas |
13 |
%> |
4165 |
21 Oct 16 |
nicklas |
14 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
4165 |
21 Oct 16 |
nicklas |
15 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
4165 |
21 Oct 16 |
nicklas |
16 |
<% |
4165 |
21 Oct 16 |
nicklas |
17 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
4165 |
21 Oct 16 |
nicklas |
18 |
final String ID = sc.getId(); |
4165 |
21 Oct 16 |
nicklas |
19 |
final float scale = Base.getScale(sc); |
4165 |
21 Oct 16 |
nicklas |
20 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
4165 |
21 Oct 16 |
nicklas |
21 |
final Formatter dateFormat = new DateFormatter("yyyyMMdd"); |
4165 |
21 Oct 16 |
nicklas |
22 |
DbControl dc = null; |
4165 |
21 Oct 16 |
nicklas |
23 |
try |
4165 |
21 Oct 16 |
nicklas |
24 |
{ |
4165 |
21 Oct 16 |
nicklas |
25 |
dc = sc.newDbControl(); |
4165 |
21 Oct 16 |
nicklas |
26 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
4165 |
21 Oct 16 |
nicklas |
27 |
%> |
4165 |
21 Oct 16 |
nicklas |
28 |
<base:page type="default" > |
4165 |
21 Oct 16 |
nicklas |
29 |
<base:head |
4179 |
27 Oct 16 |
nicklas |
30 |
scripts="linkitems-2.js,~../reggie-2.js,~register.js" |
4165 |
21 Oct 16 |
nicklas |
31 |
styles="path.css,~../css/reggie-2.css" |
4179 |
27 Oct 16 |
nicklas |
32 |
> |
4179 |
27 Oct 16 |
nicklas |
33 |
<style> |
4179 |
27 Oct 16 |
nicklas |
34 |
|
4179 |
27 Oct 16 |
nicklas |
35 |
</style> |
4179 |
27 Oct 16 |
nicklas |
36 |
</base:head> |
4165 |
21 Oct 16 |
nicklas |
37 |
<base:body> |
4165 |
21 Oct 16 |
nicklas |
38 |
|
4165 |
21 Oct 16 |
nicklas |
39 |
<p:path><p:pathelement |
4165 |
21 Oct 16 |
nicklas |
40 |
title="Reggie" href="<%="../index.jsp?ID="+ID%>" |
4165 |
21 Oct 16 |
nicklas |
41 |
/><p:pathelement title="Register sample outtake" |
4165 |
21 Oct 16 |
nicklas |
42 |
/></p:path> |
4165 |
21 Oct 16 |
nicklas |
43 |
|
4165 |
21 Oct 16 |
nicklas |
44 |
<div class="content"> |
4165 |
21 Oct 16 |
nicklas |
45 |
|
4167 |
21 Oct 16 |
nicklas |
46 |
<form name="reggie" id="wizard" class="wizard"> |
4165 |
21 Oct 16 |
nicklas |
47 |
<input type="hidden" name="ID" value="<%=ID%>"> |
4165 |
21 Oct 16 |
nicklas |
48 |
|
4179 |
27 Oct 16 |
nicklas |
49 |
<div class="step" id="step-1"> |
4165 |
21 Oct 16 |
nicklas |
50 |
<div class="step-no">1</div> |
4165 |
21 Oct 16 |
nicklas |
51 |
<div class="step-title">Select an outtake work list</div> |
4165 |
21 Oct 16 |
nicklas |
52 |
<div class="step-content"> |
4165 |
21 Oct 16 |
nicklas |
53 |
|
4165 |
21 Oct 16 |
nicklas |
54 |
<table class="step-form"> |
4165 |
21 Oct 16 |
nicklas |
55 |
<tr> |
4165 |
21 Oct 16 |
nicklas |
56 |
<td class="prompt">Outtake work list</td> |
4165 |
21 Oct 16 |
nicklas |
57 |
<td class="input"> |
4179 |
27 Oct 16 |
nicklas |
58 |
<select name="workList" id="workList" class="required auto-init" |
4179 |
27 Oct 16 |
nicklas |
59 |
data-auto-init="focus-on-enter" data-next-focus="completedDate"></select> |
4165 |
21 Oct 16 |
nicklas |
60 |
</td> |
4165 |
21 Oct 16 |
nicklas |
61 |
<td class="status" id="workList.status"></td> |
4165 |
21 Oct 16 |
nicklas |
62 |
<td class="help"> |
4165 |
21 Oct 16 |
nicklas |
63 |
<span id="workList.message" class="message"></span> |
4165 |
21 Oct 16 |
nicklas |
64 |
Select an existing outtake work list. |
4165 |
21 Oct 16 |
nicklas |
65 |
</td> |
4165 |
21 Oct 16 |
nicklas |
66 |
</tr> |
4165 |
21 Oct 16 |
nicklas |
67 |
<tr> |
4165 |
21 Oct 16 |
nicklas |
68 |
<td class="prompt">Completed date</td> |
4165 |
21 Oct 16 |
nicklas |
69 |
<td class="input"> |
4165 |
21 Oct 16 |
nicklas |
70 |
<input type="text" name="completedDate" id="completedDate" |
4165 |
21 Oct 16 |
nicklas |
71 |
value="<%=dateFormat.format(new Date()) %>" |
4168 |
21 Oct 16 |
nicklas |
72 |
class="required auto-init" data-auto-init="focus-on-enter" data-next-focus="comments" |
4165 |
21 Oct 16 |
nicklas |
73 |
style="width: 8em;" maxlength="10"> |
4165 |
21 Oct 16 |
nicklas |
74 |
<base:icon |
4165 |
21 Oct 16 |
nicklas |
75 |
id="completedDateCalendar" |
4165 |
21 Oct 16 |
nicklas |
76 |
subclass="auto-init" |
4165 |
21 Oct 16 |
nicklas |
77 |
data-auto-init="calendar" |
4165 |
21 Oct 16 |
nicklas |
78 |
data-textarea-id="completedDate" |
4165 |
21 Oct 16 |
nicklas |
79 |
data-date-format="yyyyMMdd" |
4165 |
21 Oct 16 |
nicklas |
80 |
data-title="Completed date" |
4165 |
21 Oct 16 |
nicklas |
81 |
image="calendar.png" |
4165 |
21 Oct 16 |
nicklas |
82 |
tooltip="Select a date from a calendar" |
4165 |
21 Oct 16 |
nicklas |
83 |
tabindex="-1" |
4165 |
21 Oct 16 |
nicklas |
84 |
/> |
4165 |
21 Oct 16 |
nicklas |
85 |
</td> |
4165 |
21 Oct 16 |
nicklas |
86 |
<td class="status" id="completedDate.status"></td> |
4165 |
21 Oct 16 |
nicklas |
87 |
<td class="help"> |
4165 |
21 Oct 16 |
nicklas |
88 |
<span id="completedDate.message" class="message"></span> |
4165 |
21 Oct 16 |
nicklas |
89 |
(YYYYMMDD or MMDD) The date when the outtake was completed. |
4165 |
21 Oct 16 |
nicklas |
90 |
</td> |
4165 |
21 Oct 16 |
nicklas |
91 |
</tr> |
4165 |
21 Oct 16 |
nicklas |
92 |
<tr class="align-top"> |
4165 |
21 Oct 16 |
nicklas |
93 |
<td class="prompt">Outcome</td> |
4165 |
21 Oct 16 |
nicklas |
94 |
<td class="input"> |
4165 |
21 Oct 16 |
nicklas |
95 |
<label><input type="radio" name="outcome" id="outcomeSuccess" |
4165 |
21 Oct 16 |
nicklas |
96 |
checked>Success</label> - the outtake was completed as planned<br> |
4165 |
21 Oct 16 |
nicklas |
97 |
|
4165 |
21 Oct 16 |
nicklas |
98 |
<label><input type="radio" name="outcome" id="outcomeFailed" |
4165 |
21 Oct 16 |
nicklas |
99 |
>Failure</label> - the outtake could not be completed |
4165 |
21 Oct 16 |
nicklas |
100 |
</td> |
4165 |
21 Oct 16 |
nicklas |
101 |
<td class="status"></td> |
4165 |
21 Oct 16 |
nicklas |
102 |
<td class="help"> |
4165 |
21 Oct 16 |
nicklas |
103 |
Select the <b>Success</b> option if all samples could be handled as planned. |
4165 |
21 Oct 16 |
nicklas |
104 |
Use the <b>Failure</b> option if the outtake could not be completed. In |
4165 |
21 Oct 16 |
nicklas |
105 |
the next step it is possible to specify if sample biomaterial was consumed |
4165 |
21 Oct 16 |
nicklas |
106 |
or not. |
4165 |
21 Oct 16 |
nicklas |
107 |
</td> |
4165 |
21 Oct 16 |
nicklas |
108 |
</tr> |
4165 |
21 Oct 16 |
nicklas |
109 |
<tr class="align-top"> |
4165 |
21 Oct 16 |
nicklas |
110 |
<td class="prompt">Comments</td> |
4165 |
21 Oct 16 |
nicklas |
111 |
<td class="input"><textarea name="comments" id="comments" rows="6"></textarea></td> |
4165 |
21 Oct 16 |
nicklas |
112 |
<td class="status" id="comments.status"></td> |
4165 |
21 Oct 16 |
nicklas |
113 |
<td class="help"> |
4165 |
21 Oct 16 |
nicklas |
114 |
<span id="comments.message" class="message"></span> |
4165 |
21 Oct 16 |
nicklas |
115 |
Comments about the outtake. |
4165 |
21 Oct 16 |
nicklas |
116 |
</td> |
4165 |
21 Oct 16 |
nicklas |
117 |
</tr> |
4165 |
21 Oct 16 |
nicklas |
118 |
</table> |
4165 |
21 Oct 16 |
nicklas |
119 |
</div> |
4165 |
21 Oct 16 |
nicklas |
120 |
</div> |
4165 |
21 Oct 16 |
nicklas |
121 |
|
4179 |
27 Oct 16 |
nicklas |
122 |
<div class="step" id="step-2"> |
4179 |
27 Oct 16 |
nicklas |
123 |
<div class="step-no">2</div> |
4179 |
27 Oct 16 |
nicklas |
124 |
<div class="step-title">Outtake failed</div> |
4179 |
27 Oct 16 |
nicklas |
125 |
<div class="step-content"> |
4179 |
27 Oct 16 |
nicklas |
126 |
|
4179 |
27 Oct 16 |
nicklas |
127 |
<table class="step-form"> |
4179 |
27 Oct 16 |
nicklas |
128 |
<tr> |
4179 |
27 Oct 16 |
nicklas |
129 |
<td class="prompt">Sample consumed?</td> |
4179 |
27 Oct 16 |
nicklas |
130 |
<td class="input"> |
4179 |
27 Oct 16 |
nicklas |
131 |
<label><input type="radio" name="sampleConsumed" id="sampleConsumedNo" checked value="0">For no items</label><br> |
4179 |
27 Oct 16 |
nicklas |
132 |
<label><input type="radio" name="sampleConsumed" id="sampleConsumedYes" value="1">For all items</label><br> |
4179 |
27 Oct 16 |
nicklas |
133 |
</td> |
4179 |
27 Oct 16 |
nicklas |
134 |
<td class="status" id="sampleConsumed.status"></td> |
4179 |
27 Oct 16 |
nicklas |
135 |
<td class="help"> |
4179 |
27 Oct 16 |
nicklas |
136 |
<span id="sampleConsumed.message" class="message"></span> |
4179 |
27 Oct 16 |
nicklas |
137 |
Specify is biomaterial was consumed for the source items. |
4179 |
27 Oct 16 |
nicklas |
138 |
</td> |
4179 |
27 Oct 16 |
nicklas |
139 |
</tr> |
4179 |
27 Oct 16 |
nicklas |
140 |
<tr class="align-top"> |
4179 |
27 Oct 16 |
nicklas |
141 |
<td class="subprompt">Except</td> |
4179 |
27 Oct 16 |
nicklas |
142 |
<td class="input"> |
4179 |
27 Oct 16 |
nicklas |
143 |
<div class="selectionlist"> |
4179 |
27 Oct 16 |
nicklas |
144 |
<table style="width:100%;"> |
4179 |
27 Oct 16 |
nicklas |
145 |
<tr> |
4179 |
27 Oct 16 |
nicklas |
146 |
<td style="width: 80%;"> |
4179 |
27 Oct 16 |
nicklas |
147 |
<select name="except" id="except" |
4179 |
27 Oct 16 |
nicklas |
148 |
class="auto-init" |
4179 |
27 Oct 16 |
nicklas |
149 |
data-auto-init="link-container" |
4179 |
27 Oct 16 |
nicklas |
150 |
size="8" multiple> |
4179 |
27 Oct 16 |
nicklas |
151 |
</select> |
4179 |
27 Oct 16 |
nicklas |
152 |
</td> |
4179 |
27 Oct 16 |
nicklas |
153 |
<td style="vertical-align: top;"> |
4179 |
27 Oct 16 |
nicklas |
154 |
<base:buttongroup vertical="true"> |
4179 |
27 Oct 16 |
nicklas |
155 |
<base:button |
4179 |
27 Oct 16 |
nicklas |
156 |
id="btnBrowseExcept" |
4179 |
27 Oct 16 |
nicklas |
157 |
subclass="leftaligned" |
4179 |
27 Oct 16 |
nicklas |
158 |
style="width: 8em;" |
4179 |
27 Oct 16 |
nicklas |
159 |
title="Select…" |
4179 |
27 Oct 16 |
nicklas |
160 |
tooltip="Select biomaterial" |
4179 |
27 Oct 16 |
nicklas |
161 |
/> |
4179 |
27 Oct 16 |
nicklas |
162 |
<base:button |
4179 |
27 Oct 16 |
nicklas |
163 |
id="btnRemoveExcept" |
4179 |
27 Oct 16 |
nicklas |
164 |
subclass="leftaligned auto-init" |
4179 |
27 Oct 16 |
nicklas |
165 |
style="width: 8em;" |
4179 |
27 Oct 16 |
nicklas |
166 |
data-auto-init="remove-link" |
4179 |
27 Oct 16 |
nicklas |
167 |
data-list-id="except" |
4179 |
27 Oct 16 |
nicklas |
168 |
title="Remove" |
4179 |
27 Oct 16 |
nicklas |
169 |
tooltip="Remove the selected biomaterial" |
4179 |
27 Oct 16 |
nicklas |
170 |
/> |
4179 |
27 Oct 16 |
nicklas |
171 |
</base:buttongroup> |
4179 |
27 Oct 16 |
nicklas |
172 |
</td> |
4179 |
27 Oct 16 |
nicklas |
173 |
</tr> |
4179 |
27 Oct 16 |
nicklas |
174 |
</table> |
4179 |
27 Oct 16 |
nicklas |
175 |
</div> |
4179 |
27 Oct 16 |
nicklas |
176 |
|
4179 |
27 Oct 16 |
nicklas |
177 |
</td> |
4179 |
27 Oct 16 |
nicklas |
178 |
<td class="status" id="except.status"></td> |
4179 |
27 Oct 16 |
nicklas |
179 |
<td class="help"> |
4179 |
27 Oct 16 |
nicklas |
180 |
<span id="except.message" class="message"></span> |
4179 |
27 Oct 16 |
nicklas |
181 |
Specify all items that are an exepction to the <b>Sample consumed</b> option. |
4179 |
27 Oct 16 |
nicklas |
182 |
</td> |
4179 |
27 Oct 16 |
nicklas |
183 |
</tr> |
4179 |
27 Oct 16 |
nicklas |
184 |
</table> |
4179 |
27 Oct 16 |
nicklas |
185 |
|
4179 |
27 Oct 16 |
nicklas |
186 |
</div> |
4179 |
27 Oct 16 |
nicklas |
187 |
</div> |
4179 |
27 Oct 16 |
nicklas |
188 |
|
4165 |
21 Oct 16 |
nicklas |
189 |
<div id="wizard-status"></div> |
4165 |
21 Oct 16 |
nicklas |
190 |
|
4165 |
21 Oct 16 |
nicklas |
191 |
<table class="navigation" id="navigation"> |
4165 |
21 Oct 16 |
nicklas |
192 |
<tr> |
4165 |
21 Oct 16 |
nicklas |
193 |
<td><base:button id="gocancel" title="Cancel" /></td> |
4165 |
21 Oct 16 |
nicklas |
194 |
<td><base:button id="gonext" title="Next" image="<%=home+"/images/gonext.png"%>" /></td> |
4165 |
21 Oct 16 |
nicklas |
195 |
<td><base:button id="goregister" title="Register" image="<%=home+"/images/import.png"%>" /></td> |
4165 |
21 Oct 16 |
nicklas |
196 |
<td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td> |
4165 |
21 Oct 16 |
nicklas |
197 |
<td id="gonext-message" class="message"></td> |
4165 |
21 Oct 16 |
nicklas |
198 |
</tr> |
4165 |
21 Oct 16 |
nicklas |
199 |
</table> |
4165 |
21 Oct 16 |
nicklas |
200 |
</form> |
4165 |
21 Oct 16 |
nicklas |
201 |
</div> |
4165 |
21 Oct 16 |
nicklas |
202 |
|
4165 |
21 Oct 16 |
nicklas |
203 |
</base:body> |
4165 |
21 Oct 16 |
nicklas |
204 |
</base:page> |
4165 |
21 Oct 16 |
nicklas |
205 |
<% |
4165 |
21 Oct 16 |
nicklas |
206 |
} |
4165 |
21 Oct 16 |
nicklas |
207 |
finally |
4165 |
21 Oct 16 |
nicklas |
208 |
{ |
4165 |
21 Oct 16 |
nicklas |
209 |
if (dc != null) dc.close(); |
4165 |
21 Oct 16 |
nicklas |
210 |
} |
4165 |
21 Oct 16 |
nicklas |
211 |
%> |