1820 |
06 Feb 13 |
olle |
1 |
<%@ page |
1820 |
06 Feb 13 |
olle |
2 |
pageEncoding="UTF-8" |
1820 |
06 Feb 13 |
olle |
3 |
session="false" |
1820 |
06 Feb 13 |
olle |
4 |
import="net.sf.basedb.core.User" |
1820 |
06 Feb 13 |
olle |
5 |
import="net.sf.basedb.core.DbControl" |
1820 |
06 Feb 13 |
olle |
6 |
import="net.sf.basedb.core.SessionControl" |
1820 |
06 Feb 13 |
olle |
7 |
import="net.sf.basedb.core.Application" |
1820 |
06 Feb 13 |
olle |
8 |
import="net.sf.basedb.clients.web.Base" |
1820 |
06 Feb 13 |
olle |
9 |
import="net.sf.basedb.clients.web.extensions.ExtensionsControl" |
1820 |
06 Feb 13 |
olle |
10 |
%> |
1820 |
06 Feb 13 |
olle |
11 |
<%@ taglib prefix="base" uri="/WEB-INF/base.tld" %> |
1820 |
06 Feb 13 |
olle |
12 |
<%@ taglib prefix="p" uri="/WEB-INF/path.tld" %> |
1820 |
06 Feb 13 |
olle |
13 |
<% |
3976 |
26 May 16 |
nicklas |
14 |
final SessionControl sc = Base.getExistingSessionControl(request, "net.sf.basedb.reggie", true); |
1820 |
06 Feb 13 |
olle |
15 |
final String ID = sc.getId(); |
1820 |
06 Feb 13 |
olle |
16 |
final float scale = Base.getScale(sc); |
1820 |
06 Feb 13 |
olle |
17 |
final String home = ExtensionsControl.getHomeUrl("net.sf.basedb.reggie"); |
1820 |
06 Feb 13 |
olle |
18 |
DbControl dc = null; |
1820 |
06 Feb 13 |
olle |
19 |
try |
1820 |
06 Feb 13 |
olle |
20 |
{ |
1820 |
06 Feb 13 |
olle |
21 |
dc = sc.newDbControl(); |
1820 |
06 Feb 13 |
olle |
22 |
final User user = User.getById(dc, sc.getLoggedInUserId()); |
1820 |
06 Feb 13 |
olle |
23 |
%> |
1820 |
06 Feb 13 |
olle |
24 |
<base:page type="default" > |
2608 |
28 Aug 14 |
nicklas |
25 |
<base:head |
2608 |
28 Aug 14 |
nicklas |
26 |
scripts="~../reggie-2.js,~boxplot.js,~scanbquartermonthreportgenerator.js" |
2608 |
28 Aug 14 |
nicklas |
27 |
styles="path.css,~../css/reggie-2.css,~../css/report.css"> |
2608 |
28 Aug 14 |
nicklas |
28 |
<style> |
2608 |
28 Aug 14 |
nicklas |
29 |
canvas |
1820 |
06 Feb 13 |
olle |
30 |
{ |
2608 |
28 Aug 14 |
nicklas |
31 |
width: 700px; |
2608 |
28 Aug 14 |
nicklas |
32 |
height: 550px; |
2611 |
29 Aug 14 |
nicklas |
33 |
} |
2608 |
28 Aug 14 |
nicklas |
34 |
.guide |
1820 |
06 Feb 13 |
olle |
35 |
{ |
2608 |
28 Aug 14 |
nicklas |
36 |
position: absolute; |
2608 |
28 Aug 14 |
nicklas |
37 |
z-index: 99; |
2608 |
28 Aug 14 |
nicklas |
38 |
display: none; |
2608 |
28 Aug 14 |
nicklas |
39 |
background-color: #224488; |
1853 |
18 Feb 13 |
nicklas |
40 |
} |
1880 |
22 Feb 13 |
nicklas |
41 |
</style> |
1820 |
06 Feb 13 |
olle |
42 |
</base:head> |
2608 |
28 Aug 14 |
nicklas |
43 |
<base:body> |
1820 |
06 Feb 13 |
olle |
44 |
<p:path><p:pathelement |
1915 |
21 Mar 13 |
nicklas |
45 |
title="Reggie" href="<%="../index.jsp?ID="+ID%>" |
1849 |
18 Feb 13 |
nicklas |
46 |
/><p:pathelement title="Sample processing statistics" |
1820 |
06 Feb 13 |
olle |
47 |
/></p:path> |
2608 |
28 Aug 14 |
nicklas |
48 |
|
2608 |
28 Aug 14 |
nicklas |
49 |
<div id="x-guide" class="guide" style="width: 1px;"></div> |
2608 |
28 Aug 14 |
nicklas |
50 |
<div id="y-guide" class="guide" style="height: 1px;"></div> |
2608 |
28 Aug 14 |
nicklas |
51 |
|
1820 |
06 Feb 13 |
olle |
52 |
<div class="content"> |
2608 |
28 Aug 14 |
nicklas |
53 |
<form name="reggie" id="wizard" class="wizard"> |
2608 |
28 Aug 14 |
nicklas |
54 |
|
2608 |
28 Aug 14 |
nicklas |
55 |
<div class="step" id="step-1"> |
2608 |
28 Aug 14 |
nicklas |
56 |
<div class="step-no">1</div> |
2608 |
28 Aug 14 |
nicklas |
57 |
<div class="step-title">Report parameters</div> |
2608 |
28 Aug 14 |
nicklas |
58 |
<div class="step-content"> |
2608 |
28 Aug 14 |
nicklas |
59 |
|
2608 |
28 Aug 14 |
nicklas |
60 |
<table class="step-form" id="report-type-scanbquartermonthreport"> |
2608 |
28 Aug 14 |
nicklas |
61 |
<tr> |
2608 |
28 Aug 14 |
nicklas |
62 |
<td class="prompt">Report period</td> |
2608 |
28 Aug 14 |
nicklas |
63 |
<td valign="top" class="input"> |
2608 |
28 Aug 14 |
nicklas |
64 |
From <input type="text" name="fromdate" id="fromdate" |
2608 |
28 Aug 14 |
nicklas |
65 |
style="width: 8em;" maxlength="8"> |
2608 |
28 Aug 14 |
nicklas |
66 |
To <input type="text" name="todate" id="todate" |
2608 |
28 Aug 14 |
nicklas |
67 |
style="width: 8em;" maxlength="8"> |
2608 |
28 Aug 14 |
nicklas |
68 |
</td> |
2608 |
28 Aug 14 |
nicklas |
69 |
<td class="status" id="period.status"></td> |
2608 |
28 Aug 14 |
nicklas |
70 |
<td class="help"> |
2608 |
28 Aug 14 |
nicklas |
71 |
<span id="period.message" class="message"></span> |
2608 |
28 Aug 14 |
nicklas |
72 |
[YY]YYMMDD. Define which period the report should cover. |
2608 |
28 Aug 14 |
nicklas |
73 |
Empty fields will include all items. |
2608 |
28 Aug 14 |
nicklas |
74 |
</td> |
2608 |
28 Aug 14 |
nicklas |
75 |
</tr> |
2608 |
28 Aug 14 |
nicklas |
76 |
<tr> |
2608 |
28 Aug 14 |
nicklas |
77 |
<td class="prompt">View type</td> |
1820 |
06 Feb 13 |
olle |
78 |
<td class="input"> |
2608 |
28 Aug 14 |
nicklas |
79 |
<select name="viewtype" id="viewtype" style="width: 15em;"> |
2608 |
28 Aug 14 |
nicklas |
80 |
<option value="QUARTERMONTH" selected="yes">Quarter + Month</option> |
2608 |
28 Aug 14 |
nicklas |
81 |
<option value="AUTO">Auto</option> |
2608 |
28 Aug 14 |
nicklas |
82 |
<option value="WEEK">Week</option> |
2608 |
28 Aug 14 |
nicklas |
83 |
<option value="MONTH">Month</option> |
2608 |
28 Aug 14 |
nicklas |
84 |
<option value="QUARTER">Quarter</option> |
2608 |
28 Aug 14 |
nicklas |
85 |
<option value="YEAR">Year</option> |
1820 |
06 Feb 13 |
olle |
86 |
</select> |
1820 |
06 Feb 13 |
olle |
87 |
</td> |
2608 |
28 Aug 14 |
nicklas |
88 |
<td class="status" id="viewtype.status"></td> |
1820 |
06 Feb 13 |
olle |
89 |
<td class="help"> |
2608 |
28 Aug 14 |
nicklas |
90 |
<span id="viewtype.message" class="message"></span> |
2608 |
28 Aug 14 |
nicklas |
91 |
Auto will adjust the report depending on the size of the period. |
2608 |
28 Aug 14 |
nicklas |
92 |
<ul> |
2608 |
28 Aug 14 |
nicklas |
93 |
<li>Period shorter than 13 months - samples per month</li> |
2608 |
28 Aug 14 |
nicklas |
94 |
<li>Period shorter than 3 years - samples per quarter</li> |
2608 |
28 Aug 14 |
nicklas |
95 |
<li>Period is 3 years or greater - samples per year</li> |
2608 |
28 Aug 14 |
nicklas |
96 |
</ul> |
1820 |
06 Feb 13 |
olle |
97 |
</td> |
1820 |
06 Feb 13 |
olle |
98 |
</tr> |
2608 |
28 Aug 14 |
nicklas |
99 |
|
2608 |
28 Aug 14 |
nicklas |
100 |
<tr> |
2608 |
28 Aug 14 |
nicklas |
101 |
<td class="prompt">Chart site</td> |
2608 |
28 Aug 14 |
nicklas |
102 |
<td class="input"> |
2608 |
28 Aug 14 |
nicklas |
103 |
<select id="sites" name="sites" style="width: 15em;"></select> |
2608 |
28 Aug 14 |
nicklas |
104 |
</td> |
2608 |
28 Aug 14 |
nicklas |
105 |
<td class="status" id="sites.status"></td> |
2608 |
28 Aug 14 |
nicklas |
106 |
<td class="help"> |
2608 |
28 Aug 14 |
nicklas |
107 |
<span id="sites.message" class="message"></span> |
2608 |
28 Aug 14 |
nicklas |
108 |
Select what site to take input data from. |
2608 |
28 Aug 14 |
nicklas |
109 |
</td> |
2608 |
28 Aug 14 |
nicklas |
110 |
</tr> |
2608 |
28 Aug 14 |
nicklas |
111 |
|
2608 |
28 Aug 14 |
nicklas |
112 |
<tr> |
2608 |
28 Aug 14 |
nicklas |
113 |
<td class="prompt">Chart data</td> |
2608 |
28 Aug 14 |
nicklas |
114 |
<td class="input"> |
2608 |
28 Aug 14 |
nicklas |
115 |
<select name="chartvariant"> |
2608 |
28 Aug 14 |
nicklas |
116 |
<option value="allcharts" selected="yes">All</option> |
2608 |
28 Aug 14 |
nicklas |
117 |
<option value="originalquantitytissue">Original quantity tissue</option> |
2608 |
28 Aug 14 |
nicklas |
118 |
<option value="quantitytissueused">Quantity tissue used for SCAN-B specimens</option> |
2608 |
28 Aug 14 |
nicklas |
119 |
<option value="histologypiecequantity">Histology piece quantity</option> |
2608 |
28 Aug 14 |
nicklas |
120 |
<option value="remainingquantityforscanbspecimen">Remaining quantity for SCAN-B specimens</option> |
2608 |
28 Aug 14 |
nicklas |
121 |
<option value="originalquantitydna">Original quantity DNA for SCAN-B extractions</option> |
2608 |
28 Aug 14 |
nicklas |
122 |
<option value="originalquantityrna">Original quantity RNA for SCAN-B extractions</option> |
2608 |
28 Aug 14 |
nicklas |
123 |
<option value="dnayield">DNA yield</option> |
2608 |
28 Aug 14 |
nicklas |
124 |
<option value="rnayield">RNA yield</option> |
2608 |
28 Aug 14 |
nicklas |
125 |
<option value="dnayieldcorrected">DNA yield (corrected for only processing half of the lysate volume)</option> |
2608 |
28 Aug 14 |
nicklas |
126 |
<option value="rnayieldcorrected">RNA yield (corrected for only processing half of the lysate volume)</option> |
2608 |
28 Aug 14 |
nicklas |
127 |
<option value="rnaqc">RNA QC</option> |
2608 |
28 Aug 14 |
nicklas |
128 |
<option value="minutestornalater">Min to RNAlater</option> |
2608 |
28 Aug 14 |
nicklas |
129 |
</select> |
2608 |
28 Aug 14 |
nicklas |
130 |
</td> |
2608 |
28 Aug 14 |
nicklas |
131 |
<td valign="top" class="status" id="chartvariant.status"></td> |
2608 |
28 Aug 14 |
nicklas |
132 |
<td class="help"> |
2608 |
28 Aug 14 |
nicklas |
133 |
<span id="chartvariant.message" class="message"></span> |
2608 |
28 Aug 14 |
nicklas |
134 |
Select what data to report. |
2608 |
28 Aug 14 |
nicklas |
135 |
</td> |
2608 |
28 Aug 14 |
nicklas |
136 |
</tr> |
1820 |
06 Feb 13 |
olle |
137 |
</table> |
2608 |
28 Aug 14 |
nicklas |
138 |
</div> |
2608 |
28 Aug 14 |
nicklas |
139 |
</div> |
1820 |
06 Feb 13 |
olle |
140 |
|
2608 |
28 Aug 14 |
nicklas |
141 |
<div class="step" id="step-2"> |
2608 |
28 Aug 14 |
nicklas |
142 |
<div class="step-no">2</div> |
2608 |
28 Aug 14 |
nicklas |
143 |
<div class="step-title">Generated report |
2608 |
28 Aug 14 |
nicklas |
144 |
<span id="printButton" class="link"><img src="../images/print.png">Print version…</span> |
2608 |
28 Aug 14 |
nicklas |
145 |
</div> |
2608 |
28 Aug 14 |
nicklas |
146 |
<div class="step-content" id="step-2-content"> |
2608 |
28 Aug 14 |
nicklas |
147 |
<div id="reportdiv" style="text-align: center;"></div> |
2608 |
28 Aug 14 |
nicklas |
148 |
</div> |
1820 |
06 Feb 13 |
olle |
149 |
</div> |
1820 |
06 Feb 13 |
olle |
150 |
|
2608 |
28 Aug 14 |
nicklas |
151 |
|
2608 |
28 Aug 14 |
nicklas |
152 |
<div id="wizard-status"></div> |
3907 |
29 Apr 16 |
nicklas |
153 |
<div id="wizard-progress"></div> |
2608 |
28 Aug 14 |
nicklas |
154 |
|
2608 |
28 Aug 14 |
nicklas |
155 |
<table class="navigation" id="navigation"> |
2608 |
28 Aug 14 |
nicklas |
156 |
<tr> |
2608 |
28 Aug 14 |
nicklas |
157 |
<td><base:button id="gocancel" title="Cancel" /></td> |
2608 |
28 Aug 14 |
nicklas |
158 |
<td><base:button id="gonext" title="Next" image="<%=home+"/images/gonext.png"%>" /></td> |
2608 |
28 Aug 14 |
nicklas |
159 |
<td><base:button id="gocreate" title="Generate" image="<%=home+"/images/gonext.png"%>" /></td> |
2608 |
28 Aug 14 |
nicklas |
160 |
<td><base:button id="gorestart" title="Restart" image="<%=home+"/images/goback.png"%>" /></td> |
2608 |
28 Aug 14 |
nicklas |
161 |
<td id="gonext-message" class="message"></td> |
2608 |
28 Aug 14 |
nicklas |
162 |
</tr> |
2608 |
28 Aug 14 |
nicklas |
163 |
</table> |
2608 |
28 Aug 14 |
nicklas |
164 |
|
2608 |
28 Aug 14 |
nicklas |
165 |
|
1820 |
06 Feb 13 |
olle |
166 |
</form> |
1820 |
06 Feb 13 |
olle |
167 |
</div> |
1820 |
06 Feb 13 |
olle |
168 |
|
1820 |
06 Feb 13 |
olle |
169 |
</base:body> |
1820 |
06 Feb 13 |
olle |
170 |
</base:page> |
1820 |
06 Feb 13 |
olle |
171 |
<% |
1820 |
06 Feb 13 |
olle |
172 |
} |
1820 |
06 Feb 13 |
olle |
173 |
finally |
1820 |
06 Feb 13 |
olle |
174 |
{ |
1820 |
06 Feb 13 |
olle |
175 |
if (dc != null) dc.close(); |
1820 |
06 Feb 13 |
olle |
176 |
} |
1820 |
06 Feb 13 |
olle |
177 |
%> |