7173 |
17 May 23 |
nicklas |
1 |
<%@ page |
7173 |
17 May 23 |
nicklas |
2 |
pageEncoding="UTF-8" |
7173 |
17 May 23 |
nicklas |
3 |
session="false" |
7173 |
17 May 23 |
nicklas |
4 |
import="net.sf.basedb.core.User" |
7173 |
17 May 23 |
nicklas |
5 |
import="net.sf.basedb.core.DbControl" |
7173 |
17 May 23 |
nicklas |
6 |
import="net.sf.basedb.core.SessionControl" |
7173 |
17 May 23 |
nicklas |
7 |
import="net.sf.basedb.core.Application" |
7173 |
17 May 23 |
nicklas |
8 |
import="net.sf.basedb.clients.web.Base" |
7173 |
17 May 23 |
nicklas |
9 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
7173 |
17 May 23 |
nicklas |
10 |
%> |
7173 |
17 May 23 |
nicklas |
11 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
7173 |
17 May 23 |
nicklas |
12 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
7173 |
17 May 23 |
nicklas |
13 |
<% |
7173 |
17 May 23 |
nicklas |
14 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
7173 |
17 May 23 |
nicklas |
15 |
final String ID = sc.getId(); |
7173 |
17 May 23 |
nicklas |
16 |
final float scale = Base.getScale(sc); |
7173 |
17 May 23 |
nicklas |
17 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
7173 |
17 May 23 |
nicklas |
18 |
DbControl dc = null; |
7173 |
17 May 23 |
nicklas |
19 |
try |
7173 |
17 May 23 |
nicklas |
20 |
{ |
7173 |
17 May 23 |
nicklas |
21 |
dc = sc.newDbControl(); |
7173 |
17 May 23 |
nicklas |
22 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
7173 |
17 May 23 |
nicklas |
23 |
%> |
7173 |
17 May 23 |
nicklas |
24 |
<base:page type="default" > |
7173 |
17 May 23 |
nicklas |
25 |
<base:head |
7173 |
17 May 23 |
nicklas |
26 |
scripts="~../reggie-2.js,~move_protocol.js" |
7173 |
17 May 23 |
nicklas |
27 |
styles="path.css,~../css/reggie-2.css" |
7173 |
17 May 23 |
nicklas |
28 |
/> |
7173 |
17 May 23 |
nicklas |
29 |
<base:body> |
7173 |
17 May 23 |
nicklas |
30 |
|
7173 |
17 May 23 |
nicklas |
31 |
<p:path><p:pathelement |
7173 |
17 May 23 |
nicklas |
32 |
title="Reggie" href="<%="../index.jsp?ID="+ID%>" |
7173 |
17 May 23 |
nicklas |
33 |
/><p:pathelement title="Lab protocols for moving samples to storage boxes " |
7173 |
17 May 23 |
nicklas |
34 |
/></p:path> |
7173 |
17 May 23 |
nicklas |
35 |
|
7173 |
17 May 23 |
nicklas |
36 |
<div class="content"> |
7173 |
17 May 23 |
nicklas |
37 |
|
7173 |
17 May 23 |
nicklas |
38 |
<form name="reggie" action="move_protocol2.jsp" method="post" target="_blank" id="wizard" class="wizard"> |
7173 |
17 May 23 |
nicklas |
39 |
<input type="hidden" name="ID" value="<%=ID%>"> |
7173 |
17 May 23 |
nicklas |
40 |
<input type="hidden" name="view" value="list"> |
7173 |
17 May 23 |
nicklas |
41 |
|
7173 |
17 May 23 |
nicklas |
42 |
<div class="step" id="step-1"> |
7173 |
17 May 23 |
nicklas |
43 |
<div class="step-no">1</div> |
7173 |
17 May 23 |
nicklas |
44 |
<div class="step-title">Select Transport box</div> |
7173 |
17 May 23 |
nicklas |
45 |
<div class="step-content"> |
7173 |
17 May 23 |
nicklas |
46 |
|
7173 |
17 May 23 |
nicklas |
47 |
<table class="step-form"> |
7173 |
17 May 23 |
nicklas |
48 |
<tr> |
7173 |
17 May 23 |
nicklas |
49 |
<td class="prompt">Transport box</td> |
7173 |
17 May 23 |
nicklas |
50 |
<td class="input"> |
7173 |
17 May 23 |
nicklas |
51 |
<select name="transportBox" id="transportBox"></select> |
7173 |
17 May 23 |
nicklas |
52 |
</td> |
7173 |
17 May 23 |
nicklas |
53 |
<td class="status" id="bioplate.status"></td> |
7173 |
17 May 23 |
nicklas |
54 |
<td class="help" rowspan="2"> |
7173 |
17 May 23 |
nicklas |
55 |
<span id="bioplate.message" class="message"></span> |
7173 |
17 May 23 |
nicklas |
56 |
Select an existing Transport box. The list contain all transport boxes that |
7173 |
17 May 23 |
nicklas |
57 |
has not yet been registered as completed. |
7173 |
17 May 23 |
nicklas |
58 |
</td> |
7173 |
17 May 23 |
nicklas |
59 |
</tr> |
7173 |
17 May 23 |
nicklas |
60 |
<tbody class="info-section"> |
7173 |
17 May 23 |
nicklas |
61 |
<tr> |
7173 |
17 May 23 |
nicklas |
62 |
<td class="prompt">Comments</td> |
7173 |
17 May 23 |
nicklas |
63 |
<td class="info" id="comments"></td> |
7173 |
17 May 23 |
nicklas |
64 |
<td class="status"></td> |
7173 |
17 May 23 |
nicklas |
65 |
<td class="help"></td> |
7173 |
17 May 23 |
nicklas |
66 |
</tr> |
7173 |
17 May 23 |
nicklas |
67 |
</tbody> |
7173 |
17 May 23 |
nicklas |
68 |
<tr class="align-top"> |
7173 |
17 May 23 |
nicklas |
69 |
<td class="prompt">Lab protocols</td> |
7173 |
17 May 23 |
nicklas |
70 |
<td class="input"> |
7173 |
17 May 23 |
nicklas |
71 |
<span id="listview" class="link" data-protocol-type="list"><img src="../images/listview.png"> List layout</span><br> |
7173 |
17 May 23 |
nicklas |
72 |
<span id="plateview" class="link" data-protocol-type="plate"><img src="../images/plateview.png"> Box layout</span><br> |
7173 |
17 May 23 |
nicklas |
73 |
</td> |
7173 |
17 May 23 |
nicklas |
74 |
<td class="status" id="protocol.status"></td> |
7173 |
17 May 23 |
nicklas |
75 |
<td class="help"> |
7173 |
17 May 23 |
nicklas |
76 |
<span id="protocol.message" class="message"></span> |
7173 |
17 May 23 |
nicklas |
77 |
The 'list layout' generates a table with one row for each location in the storage box. |
7173 |
17 May 23 |
nicklas |
78 |
The 'plate layout' generates a grid arranged according to row and column coordinates. |
7173 |
17 May 23 |
nicklas |
79 |
</td> |
7173 |
17 May 23 |
nicklas |
80 |
</tr> |
7173 |
17 May 23 |
nicklas |
81 |
</table> |
7173 |
17 May 23 |
nicklas |
82 |
</div> |
7173 |
17 May 23 |
nicklas |
83 |
</div> |
7173 |
17 May 23 |
nicklas |
84 |
|
7173 |
17 May 23 |
nicklas |
85 |
<div id="wizard-status"></div> |
7173 |
17 May 23 |
nicklas |
86 |
|
7173 |
17 May 23 |
nicklas |
87 |
</form> |
7173 |
17 May 23 |
nicklas |
88 |
</div> |
7173 |
17 May 23 |
nicklas |
89 |
|
7173 |
17 May 23 |
nicklas |
90 |
</base:body> |
7173 |
17 May 23 |
nicklas |
91 |
</base:page> |
7173 |
17 May 23 |
nicklas |
92 |
<% |
7173 |
17 May 23 |
nicklas |
93 |
} |
7173 |
17 May 23 |
nicklas |
94 |
finally |
7173 |
17 May 23 |
nicklas |
95 |
{ |
7173 |
17 May 23 |
nicklas |
96 |
if (dc != null) dc.close(); |
7173 |
17 May 23 |
nicklas |
97 |
} |
7173 |
17 May 23 |
nicklas |
98 |
%> |