Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
778c9c89
Commit
778c9c89
authored
10 years ago
by
barillac
Browse files
Options
Downloads
Patches
Plain Diff
additional masses added, calculated volume corrected, column headers changed
SVN: 31374
parent
36ed3064
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/widgets/DilutionWidget.js
+12
-11
12 additions, 11 deletions
...1/as/webapps/newbrowser/html/js/widgets/DilutionWidget.js
with
12 additions
and
11 deletions
plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/widgets/DilutionWidget.js
+
12
−
11
View file @
778c9c89
...
@@ -20,10 +20,11 @@ function DilutionWidget(containerId, serverFacade) {
...
@@ -20,10 +20,11 @@ function DilutionWidget(containerId, serverFacade) {
this
.
_predefinedMass
=
[
139
,
141
,
142
,
143
,
144
this
.
_predefinedMass
=
[
139
,
141
,
142
,
143
,
144
,
145
,
146
,
147
,
148
,
149
,
145
,
146
,
147
,
148
,
149
,
150
,
151
,
152
,
153
,
154
,
150
,
151
,
152
,
153
,
154
,
156
,
158
,
159
,
160
,
162
,
155
,
156
,
158
,
159
,
160
,
164
,
165
,
166
,
167
,
168
,
161
,
162
,
163
,
164
,
165
,
169
,
170
,
171
,
172
,
174
,
166
,
167
,
168
,
169
,
170
,
175
];
,
171
,
172
,
173
,
174
,
175
,
176
];
this
.
_allProteins
=
null
;
this
.
_allProteins
=
null
;
this
.
_widgetTableId
=
"
dillution-widget-table
"
;
this
.
_widgetTableId
=
"
dillution-widget-table
"
;
this
.
_totalVolume
=
null
;
this
.
_totalVolume
=
null
;
...
@@ -171,7 +172,7 @@ function DilutionWidget(containerId, serverFacade) {
...
@@ -171,7 +172,7 @@ function DilutionWidget(containerId, serverFacade) {
var
row
=
$
(
tBody
.
rows
[
rowNum
]);
var
row
=
$
(
tBody
.
rows
[
rowNum
]);
var
concentration
=
row
.
children
()[
6
].
innerHTML
;
var
concentration
=
row
.
children
()[
6
].
innerHTML
;
if
(
concentration
!==
""
)
{
if
(
concentration
!==
""
)
{
var
volumeToAdd
=
parseFloat
(
concentration
)
/
this
.
_totalVolume
;
var
volumeToAdd
=
this
.
_totalVolume
/
parseFloat
(
concentration
);
totalVolumeToAdd
+=
volumeToAdd
;
totalVolumeToAdd
+=
volumeToAdd
;
this
.
_updateCell
(
rowNum
,
7
,
volumeToAdd
);
this
.
_updateCell
(
rowNum
,
7
,
volumeToAdd
);
}
}
...
@@ -208,14 +209,14 @@ function DilutionWidget(containerId, serverFacade) {
...
@@ -208,14 +209,14 @@ function DilutionWidget(containerId, serverFacade) {
//Headers
//Headers
var
$tableHeadTr
=
$
(
"
<tr>
"
);
var
$tableHeadTr
=
$
(
"
<tr>
"
);
$tableHeadTr
$tableHeadTr
.
append
(
"
<th><center>
Number
</center></th>
"
)
.
append
(
"
<th><center>
Index
</center></th>
"
)
.
append
(
"
<th><center>Metal Mass</center></th>
"
)
.
append
(
"
<th><center>Metal Mass</center></th>
"
)
.
append
(
"
<th><center>
Protein
</center></th>
"
)
.
append
(
"
<th><center>
Antibody
</center></th>
"
)
.
append
(
"
<th><center>Conjugated Clone</center></th>
"
)
.
append
(
"
<th><center>Conjugated Clone</center></th>
"
)
.
append
(
"
<th><center>Reactivity</center></th>
"
)
.
append
(
"
<th><center>Reactivity</center></th>
"
)
.
append
(
"
<th><center>Supplier</center></th>
"
)
.
append
(
"
<th><center>Supplier</center></th>
"
)
.
append
(
"
<th><center>
Concentration
</center></th>
"
)
.
append
(
"
<th><center>
Dilution Factor
</center></th>
"
)
.
append
(
"
<th><center>
Calculate
d</center></th>
"
);
.
append
(
"
<th><center>
Volume To Ad
d</center></th>
"
);
$tableHead
.
append
(
$tableHeadTr
);
$tableHead
.
append
(
$tableHeadTr
);
for
(
var
i
=
0
;
i
<
31
;
i
++
){
for
(
var
i
=
0
;
i
<
31
;
i
++
){
...
@@ -271,7 +272,7 @@ function DilutionWidget(containerId, serverFacade) {
...
@@ -271,7 +272,7 @@ function DilutionWidget(containerId, serverFacade) {
var
$tableRowTrF1
=
$
(
"
<tr>
"
);
var
$tableRowTrF1
=
$
(
"
<tr>
"
);
$tableRowTrF1
.
append
(
"
<td></td>
"
).
append
(
"
<td></td>
"
).
append
(
"
<td></td>
"
).
append
(
"
<td></td>
"
).
append
(
"
<td></td>
"
).
append
(
"
<td></td>
"
)
$tableRowTrF1
.
append
(
"
<td></td>
"
).
append
(
"
<td></td>
"
).
append
(
"
<td></td>
"
).
append
(
"
<td></td>
"
).
append
(
"
<td></td>
"
).
append
(
"
<td></td>
"
)
.
append
(
"
<td><b>
Volume
</b></td>
"
)
.
append
(
"
<td><b>
Total Volume Needed
</b></td>
"
)
.
append
(
$tableRowTrF1TextBoxLastTD
);
.
append
(
$tableRowTrF1TextBoxLastTD
);
$tableBody
.
append
(
$tableRowTrF1
);
$tableBody
.
append
(
$tableRowTrF1
);
...
@@ -282,7 +283,7 @@ function DilutionWidget(containerId, serverFacade) {
...
@@ -282,7 +283,7 @@ function DilutionWidget(containerId, serverFacade) {
$tableBody
.
append
(
$tableRowTrF2
);
$tableBody
.
append
(
$tableRowTrF2
);
var
$tableRowTrF3
=
$
(
"
<tr>
"
);
var
$tableRowTrF3
=
$
(
"
<tr>
"
);
$tableRowTrF3
.
append
(
"
<td></td>
"
).
append
(
"
<td></td>
"
).
append
(
"
<td></td>
"
).
append
(
"
<td></td>
"
).
append
(
"
<td></td>
"
).
append
(
"
<td></td>
"
)
$tableRowTrF3
.
append
(
"
<td></td>
"
).
append
(
"
<td></td>
"
).
append
(
"
<td></td>
"
).
append
(
"
<td></td>
"
).
append
(
"
<td></td>
"
).
append
(
"
<td></td>
"
)
.
append
(
"
<td><b>Total</b></td>
"
)
.
append
(
"
<td><b>Total
Antibody
</b></td>
"
)
.
append
(
"
<td style='text-align : center;'>0</td>
"
);
.
append
(
"
<td style='text-align : center;'>0</td>
"
);
$tableBody
.
append
(
$tableRowTrF3
);
$tableBody
.
append
(
$tableRowTrF3
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment