Skip to content
Snippets Groups Projects
Commit 778c9c89 authored by barillac's avatar barillac
Browse files

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
...@@ -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>Calculated</center></th>"); .append("<th><center>Volume To Add</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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment