Skip to content
Snippets Groups Projects
Commit 75e4a519 authored by barillac's avatar barillac
Browse files

corrected volume calculation

SVN: 31388
parent 485d41f4
No related branches found
No related tags found
No related merge requests found
...@@ -162,16 +162,19 @@ function DilutionWidget(containerId, serverFacade) { ...@@ -162,16 +162,19 @@ function DilutionWidget(containerId, serverFacade) {
break; break;
} }
} }
if(conjugatedCloneSelected === "") { var dilutionVolume = parseFloat(data["conjugatedClone"].properties["CYTOF_STAINING_CONC"]) / parseFloat(data["conjugatedClone"].properties["CYTOF_CONCENTRATION"]);
_this._updateCell(rowNumber,4, "");
_this._updateCell(rowNumber,5, ""); if(conjugatedCloneSelected === "") {
_this._updateCell(rowNumber,6, ""); _this._updateCell(rowNumber,4, "");
_this._updateCell(rowNumber,7, ""); _this._updateCell(rowNumber,5, "");
} else { _this._updateCell(rowNumber,6, "");
_this._updateCell(rowNumber,4, data["clone"].properties["REACTIVITY"]); _this._updateCell(rowNumber,7, "");
_this._updateCell(rowNumber,5, data["lot"].properties["SUPPLIER"]); } else {
_this._updateCell(rowNumber,6, data["conjugatedClone"].properties["CYTOF_CONCENTRATION"]); _this._updateCell(rowNumber,4, data["clone"].properties["REACTIVITY"]);
} _this._updateCell(rowNumber,5, data["lot"].properties["SUPPLIER"]);
_this._updateCell(rowNumber,6, dilutionVolume);
}
_this._updateCalculatedValues(); _this._updateCalculatedValues();
} }
...@@ -187,7 +190,7 @@ function DilutionWidget(containerId, serverFacade) { ...@@ -187,7 +190,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 = this._totalVolume / parseFloat(concentration); var volumeToAdd = this._totalVolume * parseFloat(concentration);
totalVolumeToAdd += volumeToAdd; totalVolumeToAdd += volumeToAdd;
this._updateCell(rowNum,7, volumeToAdd); this._updateCell(rowNum,7, volumeToAdd);
} }
......
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