1589 |
20 Mar 12 |
nicklas |
1 |
<%@ page |
1589 |
20 Mar 12 |
nicklas |
2 |
pageEncoding="UTF-8" |
1589 |
20 Mar 12 |
nicklas |
3 |
session="false" |
1589 |
20 Mar 12 |
nicklas |
4 |
import="net.sf.basedb.core.User" |
1589 |
20 Mar 12 |
nicklas |
5 |
import="net.sf.basedb.core.DbControl" |
1589 |
20 Mar 12 |
nicklas |
6 |
import="net.sf.basedb.core.SessionControl" |
1589 |
20 Mar 12 |
nicklas |
7 |
import="net.sf.basedb.core.Application" |
1589 |
20 Mar 12 |
nicklas |
8 |
import="net.sf.basedb.clients.web.Base" |
1692 |
08 Jun 12 |
nicklas |
9 |
import="net.sf.basedb.clients.web.util.HTML" |
1589 |
20 Mar 12 |
nicklas |
10 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
1589 |
20 Mar 12 |
nicklas |
11 |
import="java.text.SimpleDateFormat" |
1589 |
20 Mar 12 |
nicklas |
12 |
import="java.util.Date" |
1589 |
20 Mar 12 |
nicklas |
13 |
%> |
1589 |
20 Mar 12 |
nicklas |
14 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
1589 |
20 Mar 12 |
nicklas |
15 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
1589 |
20 Mar 12 |
nicklas |
16 |
<% |
3976 |
26 May 16 |
nicklas |
17 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
1589 |
20 Mar 12 |
nicklas |
18 |
final String ID = sc.getId(); |
1589 |
20 Mar 12 |
nicklas |
19 |
final float scale = Base.getScale(sc); |
1589 |
20 Mar 12 |
nicklas |
20 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
1589 |
20 Mar 12 |
nicklas |
21 |
DbControl dc = null; |
1589 |
20 Mar 12 |
nicklas |
22 |
try |
1589 |
20 Mar 12 |
nicklas |
23 |
{ |
1589 |
20 Mar 12 |
nicklas |
24 |
dc = sc.newDbControl(); |
1589 |
20 Mar 12 |
nicklas |
25 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
1692 |
08 Jun 12 |
nicklas |
26 |
String lastBlockBox = sc.getUserClientSetting("net.sf.basedb.reggie.histology.last-block-box"); |
1692 |
08 Jun 12 |
nicklas |
27 |
if (lastBlockBox == null) lastBlockBox = ""; |
1589 |
20 Mar 12 |
nicklas |
28 |
%> |
1589 |
20 Mar 12 |
nicklas |
29 |
<base:page type="default" > |
2782 |
10 Oct 14 |
nicklas |
30 |
<base:head |
2782 |
10 Oct 14 |
nicklas |
31 |
scripts="~../reggie-2.js,~histology_block.js" |
2782 |
10 Oct 14 |
nicklas |
32 |
styles="path.css,~../css/reggie-2.css" |
2782 |
10 Oct 14 |
nicklas |
33 |
> |
1692 |
08 Jun 12 |
nicklas |
34 |
<style> |
1692 |
08 Jun 12 |
nicklas |
35 |
#blockTable |
1692 |
08 Jun 12 |
nicklas |
36 |
{ |
1692 |
08 Jun 12 |
nicklas |
37 |
width: 100%; |
1692 |
08 Jun 12 |
nicklas |
38 |
border-collapse: collapse; |
1692 |
08 Jun 12 |
nicklas |
39 |
} |
1589 |
20 Mar 12 |
nicklas |
40 |
|
1692 |
08 Jun 12 |
nicklas |
41 |
#blockTable th |
1692 |
08 Jun 12 |
nicklas |
42 |
{ |
1692 |
08 Jun 12 |
nicklas |
43 |
padding-left: 2px; |
1692 |
08 Jun 12 |
nicklas |
44 |
padding-right: 2px; |
1692 |
08 Jun 12 |
nicklas |
45 |
text-align: left; |
1692 |
08 Jun 12 |
nicklas |
46 |
} |
1692 |
08 Jun 12 |
nicklas |
47 |
|
1692 |
08 Jun 12 |
nicklas |
48 |
#blockTable td |
1692 |
08 Jun 12 |
nicklas |
49 |
{ |
1692 |
08 Jun 12 |
nicklas |
50 |
padding: 2px; |
1692 |
08 Jun 12 |
nicklas |
51 |
text-align: left; |
1692 |
08 Jun 12 |
nicklas |
52 |
} |
1692 |
08 Jun 12 |
nicklas |
53 |
</style> |
1589 |
20 Mar 12 |
nicklas |
54 |
</base:head> |
2782 |
10 Oct 14 |
nicklas |
55 |
<base:body> |
1589 |
20 Mar 12 |
nicklas |
56 |
|
1589 |
20 Mar 12 |
nicklas |
57 |
<p:path><p:pathelement |
1915 |
21 Mar 13 |
nicklas |
58 |
title="Reggie" href="<%="../index.jsp?ID="+ID%>" |
1683 |
01 Jun 12 |
nicklas |
59 |
/><p:pathelement title="Register paraffin blocks" |
1589 |
20 Mar 12 |
nicklas |
60 |
/></p:path> |
1589 |
20 Mar 12 |
nicklas |
61 |
|
1589 |
20 Mar 12 |
nicklas |
62 |
<div class="content"> |
2782 |
10 Oct 14 |
nicklas |
63 |
<div id="page-data" class="datacontainer" |
2782 |
10 Oct 14 |
nicklas |
64 |
data-last-block-box="<%=HTML.encodeTags(lastBlockBox)%>" |
2782 |
10 Oct 14 |
nicklas |
65 |
></div> |
2782 |
10 Oct 14 |
nicklas |
66 |
<form name="reggie" id="wizard" class="wizard"> |
2782 |
10 Oct 14 |
nicklas |
67 |
|
2782 |
10 Oct 14 |
nicklas |
68 |
<div class="step" id="step-1"> |
2782 |
10 Oct 14 |
nicklas |
69 |
<div class="step-no">1</div> |
2782 |
10 Oct 14 |
nicklas |
70 |
<div class="step-title">Select Histology work list</div> |
2782 |
10 Oct 14 |
nicklas |
71 |
<div class="step-content"> |
1589 |
20 Mar 12 |
nicklas |
72 |
|
2782 |
10 Oct 14 |
nicklas |
73 |
<table class="step-form"> |
2782 |
10 Oct 14 |
nicklas |
74 |
<tr> |
1683 |
01 Jun 12 |
nicklas |
75 |
<td class="prompt">Histology work list</td> |
2782 |
10 Oct 14 |
nicklas |
76 |
<td class="input"> |
2782 |
10 Oct 14 |
nicklas |
77 |
<select name="workList" id="workList" class="required"></select> |
1589 |
20 Mar 12 |
nicklas |
78 |
</td> |
1683 |
01 Jun 12 |
nicklas |
79 |
<td class="status" id="workList.status"></td> |
2782 |
10 Oct 14 |
nicklas |
80 |
<td class="help"> |
2782 |
10 Oct 14 |
nicklas |
81 |
<span id="workList.message" class="message"></span> |
1683 |
01 Jun 12 |
nicklas |
82 |
Select an existing histology work list. |
1589 |
20 Mar 12 |
nicklas |
83 |
</td> |
1589 |
20 Mar 12 |
nicklas |
84 |
</tr> |
2782 |
10 Oct 14 |
nicklas |
85 |
<tr> |
2172 |
11 Dec 13 |
nicklas |
86 |
<td class="prompt">Embedding date</td> |
1683 |
01 Jun 12 |
nicklas |
87 |
<td class="input"> |
2782 |
10 Oct 14 |
nicklas |
88 |
<input type="text" name="embedDate" id="embedDate" |
2782 |
10 Oct 14 |
nicklas |
89 |
class="required auto-init" data-auto-init="focus-on-enter" data-next-focus="histologyProtocol" |
2782 |
10 Oct 14 |
nicklas |
90 |
style="width: 8em;" maxlength="10"> |
2782 |
10 Oct 14 |
nicklas |
91 |
<base:icon |
2782 |
10 Oct 14 |
nicklas |
92 |
id="embedDateCalendar" |
2782 |
10 Oct 14 |
nicklas |
93 |
subclass="auto-init" |
2782 |
10 Oct 14 |
nicklas |
94 |
data-auto-init="calendar" |
2782 |
10 Oct 14 |
nicklas |
95 |
data-textarea-id="embedDate" |
2782 |
10 Oct 14 |
nicklas |
96 |
data-date-format="yyyyMMdd" |
2782 |
10 Oct 14 |
nicklas |
97 |
data-title="Embedding date" |
2782 |
10 Oct 14 |
nicklas |
98 |
image="calendar.png" |
2782 |
10 Oct 14 |
nicklas |
99 |
tooltip="Select a date from a calendar" |
2782 |
10 Oct 14 |
nicklas |
100 |
tabindex="-1" |
2782 |
10 Oct 14 |
nicklas |
101 |
/> |
1589 |
20 Mar 12 |
nicklas |
102 |
</td> |
2344 |
09 Apr 14 |
nicklas |
103 |
<td class="status" id="embedDate.status"></td> |
1589 |
20 Mar 12 |
nicklas |
104 |
<td class="help"> |
2782 |
10 Oct 14 |
nicklas |
105 |
<span id="embedDate.message" class="message" style="display: none;"></span> |
2782 |
10 Oct 14 |
nicklas |
106 |
(YYYYMMDD or MMDD) |
1589 |
20 Mar 12 |
nicklas |
107 |
</td> |
1589 |
20 Mar 12 |
nicklas |
108 |
</tr> |
2782 |
10 Oct 14 |
nicklas |
109 |
<tr> |
1684 |
04 Jun 12 |
nicklas |
110 |
<td class="prompt">Protocol</td> |
2782 |
10 Oct 14 |
nicklas |
111 |
<td class="input"> |
2782 |
10 Oct 14 |
nicklas |
112 |
<select name="histologyProtocol" id="histologyProtocol"></select> |
2782 |
10 Oct 14 |
nicklas |
113 |
</td> |
1684 |
04 Jun 12 |
nicklas |
114 |
<td class="status" id="histologyProtocol.status"></td> |
2782 |
10 Oct 14 |
nicklas |
115 |
<td class="help"> |
2782 |
10 Oct 14 |
nicklas |
116 |
<span id="histologyProtocol.message" class="message"></span> |
1684 |
04 Jun 12 |
nicklas |
117 |
Select the protocol which was used when embedding the samples. |
1684 |
04 Jun 12 |
nicklas |
118 |
</td> |
1684 |
04 Jun 12 |
nicklas |
119 |
</tr> |
1589 |
20 Mar 12 |
nicklas |
120 |
</table> |
2782 |
10 Oct 14 |
nicklas |
121 |
</div> |
2782 |
10 Oct 14 |
nicklas |
122 |
</div> |
1589 |
20 Mar 12 |
nicklas |
123 |
|
2782 |
10 Oct 14 |
nicklas |
124 |
<div class="step auto-hide" id="step-2"> |
2782 |
10 Oct 14 |
nicklas |
125 |
<div class="step-no">2</div> |
2782 |
10 Oct 14 |
nicklas |
126 |
<div class="step-title">Storage location for paraffin blocks</div> |
2782 |
10 Oct 14 |
nicklas |
127 |
<div class="step-content"> |
2782 |
10 Oct 14 |
nicklas |
128 |
|
2782 |
10 Oct 14 |
nicklas |
129 |
<table class="step-form"> |
2782 |
10 Oct 14 |
nicklas |
130 |
<tr> |
2782 |
10 Oct 14 |
nicklas |
131 |
<td class="input" style="width: 54em;"> |
2782 |
10 Oct 14 |
nicklas |
132 |
<div id="blockBoxInput"></div> |
2782 |
10 Oct 14 |
nicklas |
133 |
</td> |
2782 |
10 Oct 14 |
nicklas |
134 |
<td class="status" id="blockBox.status"></td> |
2782 |
10 Oct 14 |
nicklas |
135 |
<td class="help"> |
2782 |
10 Oct 14 |
nicklas |
136 |
<span id="blockBox.message" class="message"></span> |
2782 |
10 Oct 14 |
nicklas |
137 |
Enter the box number/name in which the paraffin blocks are stored. |
2782 |
10 Oct 14 |
nicklas |
138 |
Changes are automatically propagated downwards. |
2782 |
10 Oct 14 |
nicklas |
139 |
</td> |
2782 |
10 Oct 14 |
nicklas |
140 |
</tr> |
2782 |
10 Oct 14 |
nicklas |
141 |
</table> |
2782 |
10 Oct 14 |
nicklas |
142 |
</div> |
1692 |
08 Jun 12 |
nicklas |
143 |
</div> |
1692 |
08 Jun 12 |
nicklas |
144 |
|
2782 |
10 Oct 14 |
nicklas |
145 |
<div id="wizard-status"></div> |
1589 |
20 Mar 12 |
nicklas |
146 |
|
2782 |
10 Oct 14 |
nicklas |
147 |
<table class="navigation" id="navigation"> |
2782 |
10 Oct 14 |
nicklas |
148 |
<tr> |
2782 |
10 Oct 14 |
nicklas |
149 |
<td><base:button id="gocancel" title="Cancel" /></td> |
2782 |
10 Oct 14 |
nicklas |
150 |
<td><base:button id="gonext" title="Next" image="<%=home+"/images/gonext.png"%>" /></td> |
2782 |
10 Oct 14 |
nicklas |
151 |
<td><base:button id="goregister" title="Register" image="<%=home+"/images/import.png"%>" /></td> |
2782 |
10 Oct 14 |
nicklas |
152 |
<td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td> |
2782 |
10 Oct 14 |
nicklas |
153 |
<td id="gonext-message" class="message"></td> |
2782 |
10 Oct 14 |
nicklas |
154 |
</tr> |
2782 |
10 Oct 14 |
nicklas |
155 |
</table> |
1589 |
20 Mar 12 |
nicklas |
156 |
|
1589 |
20 Mar 12 |
nicklas |
157 |
</form> |
1589 |
20 Mar 12 |
nicklas |
158 |
</div> |
1589 |
20 Mar 12 |
nicklas |
159 |
|
1589 |
20 Mar 12 |
nicklas |
160 |
</base:body> |
1589 |
20 Mar 12 |
nicklas |
161 |
</base:page> |
1589 |
20 Mar 12 |
nicklas |
162 |
<% |
1589 |
20 Mar 12 |
nicklas |
163 |
} |
1589 |
20 Mar 12 |
nicklas |
164 |
finally |
1589 |
20 Mar 12 |
nicklas |
165 |
{ |
1589 |
20 Mar 12 |
nicklas |
166 |
if (dc != null) dc.close(); |
1589 |
20 Mar 12 |
nicklas |
167 |
} |
1589 |
20 Mar 12 |
nicklas |
168 |
%> |