4146 |
03 Oct 16 |
nicklas |
1 |
<%@ page |
4146 |
03 Oct 16 |
nicklas |
2 |
pageEncoding="UTF-8" |
4146 |
03 Oct 16 |
nicklas |
3 |
session="false" |
4146 |
03 Oct 16 |
nicklas |
4 |
import="net.sf.basedb.core.User" |
4146 |
03 Oct 16 |
nicklas |
5 |
import="net.sf.basedb.core.DbControl" |
4146 |
03 Oct 16 |
nicklas |
6 |
import="net.sf.basedb.core.SessionControl" |
4146 |
03 Oct 16 |
nicklas |
7 |
import="net.sf.basedb.core.Application" |
4146 |
03 Oct 16 |
nicklas |
8 |
import="net.sf.basedb.core.Item" |
4146 |
03 Oct 16 |
nicklas |
9 |
import="net.sf.basedb.clients.web.Base" |
4146 |
03 Oct 16 |
nicklas |
10 |
import="net.sf.basedb.clients.web.util.HTML" |
4146 |
03 Oct 16 |
nicklas |
11 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
4146 |
03 Oct 16 |
nicklas |
12 |
%> |
4146 |
03 Oct 16 |
nicklas |
13 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
4146 |
03 Oct 16 |
nicklas |
14 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
4146 |
03 Oct 16 |
nicklas |
15 |
<% |
4146 |
03 Oct 16 |
nicklas |
16 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
4146 |
03 Oct 16 |
nicklas |
17 |
final String ID = sc.getId(); |
4146 |
03 Oct 16 |
nicklas |
18 |
final float scale = Base.getScale(sc); |
4146 |
03 Oct 16 |
nicklas |
19 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
4146 |
03 Oct 16 |
nicklas |
20 |
DbControl dc = null; |
4146 |
03 Oct 16 |
nicklas |
21 |
try |
4146 |
03 Oct 16 |
nicklas |
22 |
{ |
4146 |
03 Oct 16 |
nicklas |
23 |
dc = sc.newDbControl(); |
4146 |
03 Oct 16 |
nicklas |
24 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
4146 |
03 Oct 16 |
nicklas |
25 |
%> |
4146 |
03 Oct 16 |
nicklas |
26 |
<base:page type="default" > |
4146 |
03 Oct 16 |
nicklas |
27 |
<base:head |
4146 |
03 Oct 16 |
nicklas |
28 |
scripts="~../reggie-2.js,~define.js" |
4146 |
03 Oct 16 |
nicklas |
29 |
styles="path.css,~../css/reggie-2.css" |
4146 |
03 Oct 16 |
nicklas |
30 |
> |
4146 |
03 Oct 16 |
nicklas |
31 |
</base:head> |
4146 |
03 Oct 16 |
nicklas |
32 |
<base:body> |
4146 |
03 Oct 16 |
nicklas |
33 |
|
4146 |
03 Oct 16 |
nicklas |
34 |
<p:path><p:pathelement |
4146 |
03 Oct 16 |
nicklas |
35 |
title="Reggie" href="<%="../index.jsp?ID="+ID%>" |
4146 |
03 Oct 16 |
nicklas |
36 |
/><p:pathelement title="Define sample outtake" |
4146 |
03 Oct 16 |
nicklas |
37 |
/></p:path> |
4146 |
03 Oct 16 |
nicklas |
38 |
|
4146 |
03 Oct 16 |
nicklas |
39 |
<div id="page-data" class="datacontainer" |
4146 |
03 Oct 16 |
nicklas |
40 |
data-extract-type="<%=Item.EXTRACT.getValue()%>" |
4146 |
03 Oct 16 |
nicklas |
41 |
></div> |
4146 |
03 Oct 16 |
nicklas |
42 |
|
4146 |
03 Oct 16 |
nicklas |
43 |
<div class="content"> |
4146 |
03 Oct 16 |
nicklas |
44 |
|
4146 |
03 Oct 16 |
nicklas |
45 |
<form name="reggie" id="wizard" class="wizard"> |
4146 |
03 Oct 16 |
nicklas |
46 |
|
4146 |
03 Oct 16 |
nicklas |
47 |
|
4146 |
03 Oct 16 |
nicklas |
48 |
<div class="step" id="step-1"> |
4146 |
03 Oct 16 |
nicklas |
49 |
<div class="step-no">1</div> |
4146 |
03 Oct 16 |
nicklas |
50 |
<div class="step-title">Select a source item list</div> |
4146 |
03 Oct 16 |
nicklas |
51 |
<div class="step-content"> |
4146 |
03 Oct 16 |
nicklas |
52 |
|
4146 |
03 Oct 16 |
nicklas |
53 |
<table class="step-form"> |
4153 |
05 Oct 16 |
nicklas |
54 |
<tr> |
4153 |
05 Oct 16 |
nicklas |
55 |
<td class="prompt">Outtake name</td> |
4153 |
05 Oct 16 |
nicklas |
56 |
<td class="input"><input type="text" name="outtakeName" id="outtakeName" |
6326 |
14 Jun 21 |
nicklas |
57 |
class="auto-init required" data-auto-init="focus-on-enter" data-next-focus="outtakeType" |
4153 |
05 Oct 16 |
nicklas |
58 |
maxlength="255"></td> |
4153 |
05 Oct 16 |
nicklas |
59 |
<td class="status" id="outtakeName.status"></td> |
4153 |
05 Oct 16 |
nicklas |
60 |
<td class="help"> |
4153 |
05 Oct 16 |
nicklas |
61 |
<span id="outtakeName.message" class="message"></span> |
4153 |
05 Oct 16 |
nicklas |
62 |
Specify a name for this outtake. This will become the name |
4153 |
05 Oct 16 |
nicklas |
63 |
of the item list with aliquots. |
4153 |
05 Oct 16 |
nicklas |
64 |
</td> |
4153 |
05 Oct 16 |
nicklas |
65 |
</tr> |
6326 |
14 Jun 21 |
nicklas |
66 |
<tr> |
6326 |
14 Jun 21 |
nicklas |
67 |
<td class="prompt">Outtake type</td> |
6326 |
14 Jun 21 |
nicklas |
68 |
<td class="input"> |
6326 |
14 Jun 21 |
nicklas |
69 |
<select name="outtakeType" id="outtakeType" class="required auto-init" |
6326 |
14 Jun 21 |
nicklas |
70 |
data-auto-init="focus-on-enter" data-next-focus="sourceList.select" |
6326 |
14 Jun 21 |
nicklas |
71 |
style="width: 10em;"> |
6326 |
14 Jun 21 |
nicklas |
72 |
<option value="DNA">DNA |
6326 |
14 Jun 21 |
nicklas |
73 |
<option value="RNA">RNA |
6326 |
14 Jun 21 |
nicklas |
74 |
<option value="LYSATE">Lysate |
6729 |
05 May 22 |
nicklas |
75 |
<option value="FLOW_THROUGH">FlowThrough |
7037 |
13 Feb 23 |
nicklas |
76 |
<option value="BLOOD_DNA">BloodDNA |
6326 |
14 Jun 21 |
nicklas |
77 |
</select> |
6326 |
14 Jun 21 |
nicklas |
78 |
</td> |
6326 |
14 Jun 21 |
nicklas |
79 |
<td class="status" id="outtakeType.status"></td> |
6326 |
14 Jun 21 |
nicklas |
80 |
<td class="help"> |
6326 |
14 Jun 21 |
nicklas |
81 |
<span id="outtakeType.message" class="message"></span> |
6326 |
14 Jun 21 |
nicklas |
82 |
Select the type of items in the outtake. |
6326 |
14 Jun 21 |
nicklas |
83 |
</td> |
6326 |
14 Jun 21 |
nicklas |
84 |
|
6326 |
14 Jun 21 |
nicklas |
85 |
</tr> |
4146 |
03 Oct 16 |
nicklas |
86 |
<tr class="align-top"> |
4146 |
03 Oct 16 |
nicklas |
87 |
<td class="prompt">Source list</td> |
4146 |
03 Oct 16 |
nicklas |
88 |
<td class="input input100"> |
4146 |
03 Oct 16 |
nicklas |
89 |
<base:select |
4146 |
03 Oct 16 |
nicklas |
90 |
id="sourceList" |
4146 |
03 Oct 16 |
nicklas |
91 |
clazz="selectionlist" |
4146 |
03 Oct 16 |
nicklas |
92 |
required="true" |
4146 |
03 Oct 16 |
nicklas |
93 |
current="<%=null%>" |
4146 |
03 Oct 16 |
nicklas |
94 |
/> |
4146 |
03 Oct 16 |
nicklas |
95 |
</td> |
4146 |
03 Oct 16 |
nicklas |
96 |
<td class="status" id="sourceList.status"></td> |
4146 |
03 Oct 16 |
nicklas |
97 |
<td class="help"> |
4146 |
03 Oct 16 |
nicklas |
98 |
<span id="sourceList.message" class="message"></span> |
6326 |
14 Jun 21 |
nicklas |
99 |
Select a source item list that contains items of the selected type. |
4146 |
03 Oct 16 |
nicklas |
100 |
</td> |
4146 |
03 Oct 16 |
nicklas |
101 |
</tr> |
4153 |
05 Oct 16 |
nicklas |
102 |
<tbody class="info-section"> |
4146 |
03 Oct 16 |
nicklas |
103 |
<tr> |
4153 |
05 Oct 16 |
nicklas |
104 |
<td class="prompt">List type</td> |
4153 |
05 Oct 16 |
nicklas |
105 |
<td class="info" id="listType"></td> |
4153 |
05 Oct 16 |
nicklas |
106 |
<td class="status" id="listType.status"></td> |
4153 |
05 Oct 16 |
nicklas |
107 |
<td class="help"><span id="listType.message" class="message"></span></td> |
4146 |
03 Oct 16 |
nicklas |
108 |
</tr> |
4146 |
03 Oct 16 |
nicklas |
109 |
<tr> |
4153 |
05 Oct 16 |
nicklas |
110 |
<td class="prompt">Number of items</td> |
4153 |
05 Oct 16 |
nicklas |
111 |
<td class="info" id="listSize"></td> |
4153 |
05 Oct 16 |
nicklas |
112 |
<td class="status"></td> |
4153 |
05 Oct 16 |
nicklas |
113 |
<td class="help"></td> |
4153 |
05 Oct 16 |
nicklas |
114 |
</tr> |
4153 |
05 Oct 16 |
nicklas |
115 |
<tr> |
4153 |
05 Oct 16 |
nicklas |
116 |
<td class="prompt">Remaining quantity</td> |
4153 |
05 Oct 16 |
nicklas |
117 |
<td class="info" id="listRemainingQuantity"></td> |
4153 |
05 Oct 16 |
nicklas |
118 |
<td class="status" id="listRemainingQuantity.status"></td> |
4153 |
05 Oct 16 |
nicklas |
119 |
<td class="help"><span id="listRemainingQuantity.message" class="message"></span></td> |
4153 |
05 Oct 16 |
nicklas |
120 |
</tr> |
4153 |
05 Oct 16 |
nicklas |
121 |
<tr> |
4153 |
05 Oct 16 |
nicklas |
122 |
<td class="prompt">Concentration</td> |
6220 |
20 Apr 21 |
nicklas |
123 |
<td class="info" id="listConc"></td> |
6220 |
20 Apr 21 |
nicklas |
124 |
<td class="status" id="listConc.status"></td> |
6220 |
20 Apr 21 |
nicklas |
125 |
<td class="help"><span id="listConc.message" class="message"></span></td> |
4153 |
05 Oct 16 |
nicklas |
126 |
</tr> |
4153 |
05 Oct 16 |
nicklas |
127 |
</tbody> |
6326 |
14 Jun 21 |
nicklas |
128 |
<tr id="targetAmountSection"> |
4146 |
03 Oct 16 |
nicklas |
129 |
<td class="prompt">Target amount</td> |
4146 |
03 Oct 16 |
nicklas |
130 |
<td class="input"><input type="text" name="targetAmount" id="targetAmount" |
4146 |
03 Oct 16 |
nicklas |
131 |
class="auto-init required" data-auto-init="focus-on-enter" data-next-focus="targetVolume" |
4146 |
03 Oct 16 |
nicklas |
132 |
style="width: 8em;" maxlength="8"> µg</td> |
4146 |
03 Oct 16 |
nicklas |
133 |
<td class="status" id="targetAmount.status"></td> |
4146 |
03 Oct 16 |
nicklas |
134 |
<td class="help"> |
4146 |
03 Oct 16 |
nicklas |
135 |
<span id="targetAmount.message" class="message"></span> |
4146 |
03 Oct 16 |
nicklas |
136 |
Specify the target amount in µg of RNA/DNA to take for the |
4146 |
03 Oct 16 |
nicklas |
137 |
aliquots. |
4146 |
03 Oct 16 |
nicklas |
138 |
</td> |
4146 |
03 Oct 16 |
nicklas |
139 |
</tr> |
6326 |
14 Jun 21 |
nicklas |
140 |
<tr id="targetVolumeSection"> |
4146 |
03 Oct 16 |
nicklas |
141 |
<td class="prompt">Target volume</td> |
4146 |
03 Oct 16 |
nicklas |
142 |
<td class="input"><input type="text" name="targetVolume" id="targetVolume" |
4146 |
03 Oct 16 |
nicklas |
143 |
class="auto-init required" data-auto-init="focus-on-enter" data-next-focus="comments" |
4146 |
03 Oct 16 |
nicklas |
144 |
style="width: 8em;" maxlength="8"> µl</td> |
4146 |
03 Oct 16 |
nicklas |
145 |
<td class="status" id="targetVolume.status"></td> |
4146 |
03 Oct 16 |
nicklas |
146 |
<td class="help"> |
4146 |
03 Oct 16 |
nicklas |
147 |
<span id="targetVolume.message" class="message"></span> |
6326 |
14 Jun 21 |
nicklas |
148 |
Specify the target volume in µl of the aliquots. |
4146 |
03 Oct 16 |
nicklas |
149 |
</td> |
4146 |
03 Oct 16 |
nicklas |
150 |
</tr> |
6326 |
14 Jun 21 |
nicklas |
151 |
<tbody class="info-section" id="targetConcSection"> |
4153 |
05 Oct 16 |
nicklas |
152 |
<tr> |
4153 |
05 Oct 16 |
nicklas |
153 |
<td class="prompt">Target concentration</td> |
4153 |
05 Oct 16 |
nicklas |
154 |
<td class="info" id="targetConcentration"></td> |
4153 |
05 Oct 16 |
nicklas |
155 |
<td class="status"></td> |
4153 |
05 Oct 16 |
nicklas |
156 |
<td class="help"></td> |
4153 |
05 Oct 16 |
nicklas |
157 |
</tr> |
4153 |
05 Oct 16 |
nicklas |
158 |
</tbody> |
4146 |
03 Oct 16 |
nicklas |
159 |
<tr class="align-top"> |
4146 |
03 Oct 16 |
nicklas |
160 |
<td class="prompt">Comments</td> |
4146 |
03 Oct 16 |
nicklas |
161 |
<td class="input"><textarea name="comments" id="comments" rows="6"></textarea></td> |
4146 |
03 Oct 16 |
nicklas |
162 |
<td class="status" id="comments.status"></td> |
4146 |
03 Oct 16 |
nicklas |
163 |
<td class="help"> |
4146 |
03 Oct 16 |
nicklas |
164 |
<span id="comments.message" class="message"></span> |
4146 |
03 Oct 16 |
nicklas |
165 |
Comments about the outtake. |
4146 |
03 Oct 16 |
nicklas |
166 |
</td> |
4146 |
03 Oct 16 |
nicklas |
167 |
</tr> |
4146 |
03 Oct 16 |
nicklas |
168 |
</table> |
4146 |
03 Oct 16 |
nicklas |
169 |
</div> |
4146 |
03 Oct 16 |
nicklas |
170 |
</div> |
4146 |
03 Oct 16 |
nicklas |
171 |
|
4146 |
03 Oct 16 |
nicklas |
172 |
|
4146 |
03 Oct 16 |
nicklas |
173 |
<div id="wizard-status"></div> |
4146 |
03 Oct 16 |
nicklas |
174 |
|
4146 |
03 Oct 16 |
nicklas |
175 |
<table class="navigation" id="navigation"> |
4146 |
03 Oct 16 |
nicklas |
176 |
<tr> |
4146 |
03 Oct 16 |
nicklas |
177 |
<td><base:button id="gocancel" title="Cancel" /></td> |
4146 |
03 Oct 16 |
nicklas |
178 |
<td><base:button id="gonext" title="Next" image="<%=home+"/images/gonext.png"%>" /></td> |
4146 |
03 Oct 16 |
nicklas |
179 |
<td><base:button id="goregister" title="Register" image="<%=home+"/images/import.png"%>" /></td> |
4146 |
03 Oct 16 |
nicklas |
180 |
<td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td> |
4146 |
03 Oct 16 |
nicklas |
181 |
<td id="gonext-message" class="message"></td> |
4146 |
03 Oct 16 |
nicklas |
182 |
</tr> |
4146 |
03 Oct 16 |
nicklas |
183 |
</table> |
4146 |
03 Oct 16 |
nicklas |
184 |
|
4146 |
03 Oct 16 |
nicklas |
185 |
</form> |
4146 |
03 Oct 16 |
nicklas |
186 |
</div> |
4146 |
03 Oct 16 |
nicklas |
187 |
|
4146 |
03 Oct 16 |
nicklas |
188 |
</base:body> |
4146 |
03 Oct 16 |
nicklas |
189 |
</base:page> |
4146 |
03 Oct 16 |
nicklas |
190 |
<% |
4146 |
03 Oct 16 |
nicklas |
191 |
} |
4146 |
03 Oct 16 |
nicklas |
192 |
finally |
4146 |
03 Oct 16 |
nicklas |
193 |
{ |
4146 |
03 Oct 16 |
nicklas |
194 |
if (dc != null) dc.close(); |
4146 |
03 Oct 16 |
nicklas |
195 |
} |
4146 |
03 Oct 16 |
nicklas |
196 |
%> |