3561 |
27 Oct 15 |
olle |
var ExtractionReg = function() |
3561 |
27 Oct 15 |
olle |
2 |
{ |
3561 |
27 Oct 15 |
olle |
var exreg = {}; |
3561 |
27 Oct 15 |
olle |
var debug = 0; |
3561 |
27 Oct 15 |
olle |
5 |
|
3561 |
27 Oct 15 |
olle |
var consumablesFileIsValid = false; |
3561 |
27 Oct 15 |
olle |
var jsonConsumables = {}; |
3561 |
27 Oct 15 |
olle |
var jsonConsumablesOrig = {}; |
3561 |
27 Oct 15 |
olle |
var jsonConsumablesModified = {}; |
3561 |
27 Oct 15 |
olle |
var jsonKitArray = []; |
4206 |
04 Nov 16 |
olle |
var kitPlateInfo = {}; |
3561 |
27 Oct 15 |
olle |
12 |
|
3561 |
27 Oct 15 |
olle |
// Page initialization |
3561 |
27 Oct 15 |
olle |
exreg.initPage = function() |
3561 |
27 Oct 15 |
olle |
15 |
{ |
3561 |
27 Oct 15 |
olle |
// Step 1 |
3561 |
27 Oct 15 |
olle |
Events.addEventHandler('step-1', 'wizard-validate', exreg.validateStep1); |
3561 |
27 Oct 15 |
olle |
//Events.addEventHandler('consumablesFile', 'change', exreg.consumablesFileOnChange); |
3561 |
27 Oct 15 |
olle |
19 |
|
3561 |
27 Oct 15 |
olle |
// Step 2 |
3561 |
27 Oct 15 |
olle |
Events.addEventHandler('step-2', 'wizard-initialize', exreg.initializeStep2); |
3561 |
27 Oct 15 |
olle |
22 |
/* |
3561 |
27 Oct 15 |
olle |
Events.addEventHandler('step-2', 'wizard-validate', exreg.validateStep2); |
3561 |
27 Oct 15 |
olle |
24 |
*/ |
3561 |
27 Oct 15 |
olle |
25 |
|
3561 |
27 Oct 15 |
olle |
Buttons.addClickHandler('downloadLibPrepKitDataFile', exreg.downloadLibPrepKitDataFile); |
3561 |
27 Oct 15 |
olle |
27 |
|
3561 |
27 Oct 15 |
olle |
// Navigation |
3561 |
27 Oct 15 |
olle |
Buttons.addClickHandler('gocancel', Wizard.cancelWizard); |
3561 |
27 Oct 15 |
olle |
Buttons.addClickHandler('gorestart', Wizard.restartWizard); |
3561 |
27 Oct 15 |
olle |
Buttons.addClickHandler('gonext', Wizard.goNextOnClick); |
3561 |
27 Oct 15 |
olle |
Buttons.addClickHandler('goregister', Wizard.goRegister); |
3561 |
27 Oct 15 |
olle |
33 |
/* |
3561 |
27 Oct 15 |
olle |
Buttons.addClickHandler('gocreate', exreg.createProtocol); |
3561 |
27 Oct 15 |
olle |
35 |
*/ |
3561 |
27 Oct 15 |
olle |
36 |
|
3561 |
27 Oct 15 |
olle |
// Final registration |
3561 |
27 Oct 15 |
olle |
Events.addEventHandler('wizard', 'wizard-submit', exreg.submit); |
3561 |
27 Oct 15 |
olle |
39 |
|
3561 |
27 Oct 15 |
olle |
exreg.initializeStep1(); |
3561 |
27 Oct 15 |
olle |
41 |
} |
3561 |
27 Oct 15 |
olle |
42 |
|
3561 |
27 Oct 15 |
olle |
exreg.initializeStep1 = function() |
3561 |
27 Oct 15 |
olle |
44 |
{ |
3561 |
27 Oct 15 |
olle |
var frm = document.forms['meludi']; |
3561 |
27 Oct 15 |
olle |
Wizard.setCurrentStep(1); |
3561 |
27 Oct 15 |
olle |
Doc.show('step-1'); |
3561 |
27 Oct 15 |
olle |
Doc.show('gonext'); |
3561 |
27 Oct 15 |
olle |
49 |
} |
3561 |
27 Oct 15 |
olle |
50 |
|
3561 |
27 Oct 15 |
olle |
exreg.validateStep1 = function(event) |
3561 |
27 Oct 15 |
olle |
52 |
{ |
3561 |
27 Oct 15 |
olle |
var frm = document.forms['meludi']; |
3561 |
27 Oct 15 |
olle |
//alert("exreg.validateStep1(): consumablesFileIsValid = " + consumablesFileIsValid); |
3561 |
27 Oct 15 |
olle |
55 |
/* |
3561 |
27 Oct 15 |
olle |
if (!consumablesFileIsValid) |
3561 |
27 Oct 15 |
olle |
57 |
{ |
3561 |
27 Oct 15 |
olle |
event.preventDefault(); |
3561 |
27 Oct 15 |
olle |
59 |
} |
3561 |
27 Oct 15 |
olle |
else |
3561 |
27 Oct 15 |
olle |
61 |
{ |
3561 |
27 Oct 15 |
olle |
Wizard.setInputStatus('consumablesFile', 'valid'); |
3561 |
27 Oct 15 |
olle |
63 |
} |
3561 |
27 Oct 15 |
olle |
64 |
*/ |
3561 |
27 Oct 15 |
olle |
65 |
} |
3561 |
27 Oct 15 |
olle |
66 |
|
3561 |
27 Oct 15 |
olle |
exreg.consumablesFileOnChange = function() |
3561 |
27 Oct 15 |
olle |
68 |
{ |
3561 |
27 Oct 15 |
olle |
var frm = document.forms['meludi']; |
3561 |
27 Oct 15 |
olle |
var file = frm.consumablesFile.files[0]; |
3561 |
27 Oct 15 |
olle |
71 |
|
3561 |
27 Oct 15 |
olle |
var reader = new FileReader(); |
3561 |
27 Oct 15 |
olle |
reader.onload = exreg.consumablesFileLoaded; |
3561 |
27 Oct 15 |
olle |
reader.readAsText(file); |
3561 |
27 Oct 15 |
olle |
75 |
} |
3561 |
27 Oct 15 |
olle |
76 |
|
3561 |
27 Oct 15 |
olle |
exreg.consumablesFileLoaded = function(event) |
3561 |
27 Oct 15 |
olle |
78 |
{ |
3561 |
27 Oct 15 |
olle |
exreg.parseConsumablesFile(event.target.result); |
3561 |
27 Oct 15 |
olle |
80 |
} |
3561 |
27 Oct 15 |
olle |
81 |
|
3561 |
27 Oct 15 |
olle |
exreg.parseConsumablesFile = function(data) |
3561 |
27 Oct 15 |
olle |
83 |
{ |
3561 |
27 Oct 15 |
olle |
var frm = document.forms['meludi']; |
3561 |
27 Oct 15 |
olle |
consumablesFileIsValid = false; |
3561 |
27 Oct 15 |
olle |
86 |
|
3561 |
27 Oct 15 |
olle |
// Column data are stored in JSONArrays |
3561 |
27 Oct 15 |
olle |
var jsonHeaders = []; |
3561 |
27 Oct 15 |
olle |
var jsonKitName = []; |
3561 |
27 Oct 15 |
olle |
var jsonLibraryPrepBox1 = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexKit = []; |
3561 |
27 Oct 15 |
olle |
var jsonContentSetBox3 = []; |
3561 |
27 Oct 15 |
olle |
var jsonOligoPoolA_FPA = []; |
3561 |
27 Oct 15 |
olle |
var jsonOligoPoolB_FPB = []; |
3561 |
27 Oct 15 |
olle |
var jsonOligoHybridizationSequencingReagent3 = []; |
3561 |
27 Oct 15 |
olle |
var jsonStringentWash1_SW1 = []; |
3561 |
27 Oct 15 |
olle |
var jsonExtensionLigationMix3 = []; |
3561 |
27 Oct 15 |
olle |
var jsonPcrMasterMix2_PMM2 = []; |
3561 |
27 Oct 15 |
olle |
var jsonUB1 = []; |
3561 |
27 Oct 15 |
olle |
var jsonTDP = []; |
3561 |
27 Oct 15 |
olle |
var jsonFilterplate = []; |
3561 |
27 Oct 15 |
olle |
102 |
|
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA701 = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA702 = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA703 = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA704 = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA705 = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA706 = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA707 = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA708 = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA709 = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA710 = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA711 = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA712 = []; |
3561 |
27 Oct 15 |
olle |
115 |
|
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA501 = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA502 = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA503 = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA504 = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA505 = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA506 = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA507 = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA508 = []; |
3561 |
27 Oct 15 |
olle |
124 |
|
3561 |
27 Oct 15 |
olle |
// Find column separator as first character after first occurrence of search string |
3561 |
27 Oct 15 |
olle |
var separator = ExtractUtils.findSeparator(data, "Consumables"); |
3561 |
27 Oct 15 |
olle |
if (separator == null) |
3561 |
27 Oct 15 |
olle |
128 |
{ |
3561 |
27 Oct 15 |
olle |
// Comma is default separator |
3561 |
27 Oct 15 |
olle |
separator = ','; |
3561 |
27 Oct 15 |
olle |
131 |
} |
3561 |
27 Oct 15 |
olle |
//alert("add_consumables_lot_number_file.js::parseConsumablesFile(): separator = \"" + separator + "\""); |
3561 |
27 Oct 15 |
olle |
var columnSplitRegexp = new RegExp(" *" + separator + " *",''); |
3561 |
27 Oct 15 |
olle |
var lines = data.split(/[\n\r]+/); |
3561 |
27 Oct 15 |
olle |
//alert("add_consumables_lot_number_file.js::parseConsumablesFile(): lines.length = " + lines.length); |
3561 |
27 Oct 15 |
olle |
//var columns = lines[0].split(columnSplitRegexp); |
3561 |
27 Oct 15 |
olle |
137 |
|
3561 |
27 Oct 15 |
olle |
var numImported = 0; |
3561 |
27 Oct 15 |
olle |
for (var i = 1; i < lines.length; i++) |
3561 |
27 Oct 15 |
olle |
140 |
{ |
3561 |
27 Oct 15 |
olle |
if (lines[i].match(/^\s*$/)) continue; // Ignore empty lines |
3561 |
27 Oct 15 |
olle |
var columns = lines[i].split(columnSplitRegexp); |
3561 |
27 Oct 15 |
olle |
//alert("add_consumables_lot_number_file.js::parseConsumablesFile(): i = " + i + " columns[0] = " + columns[0] + " columns[1] = " + columns[1]); |
3561 |
27 Oct 15 |
olle |
// First column is either empty, or equal to barcode sequence for index primers |
3561 |
27 Oct 15 |
olle |
header = columns[1]; |
3561 |
27 Oct 15 |
olle |
firstDataIndex = 2; |
3561 |
27 Oct 15 |
olle |
// Skip lines without data |
3561 |
27 Oct 15 |
olle |
if (header != '') |
3561 |
27 Oct 15 |
olle |
149 |
{ |
3561 |
27 Oct 15 |
olle |
jsonHeaders[jsonHeaders.length] = header; |
3561 |
27 Oct 15 |
olle |
151 |
|
3561 |
27 Oct 15 |
olle |
for (var j = 0; j < (columns.length - firstDataIndex); j++) |
3561 |
27 Oct 15 |
olle |
153 |
{ |
3561 |
27 Oct 15 |
olle |
var data = columns[firstDataIndex + j]; |
3561 |
27 Oct 15 |
olle |
if (header == 'TruSight Tumor Library Preparation partI') |
3561 |
27 Oct 15 |
olle |
156 |
{ |
3561 |
27 Oct 15 |
olle |
jsonKitName[j] = data; |
3561 |
27 Oct 15 |
olle |
158 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'TruSight Tumor Library Prep Box 1') |
3561 |
27 Oct 15 |
olle |
160 |
{ |
3561 |
27 Oct 15 |
olle |
jsonLibraryPrepBox1[j] = data; |
3561 |
27 Oct 15 |
olle |
162 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'TruSight Tumor Index Kit') |
3561 |
27 Oct 15 |
olle |
164 |
{ |
3561 |
27 Oct 15 |
olle |
jsonIndexKit[j] = data; |
3561 |
27 Oct 15 |
olle |
166 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'TruSight Tumor Content Set Box 3') |
3561 |
27 Oct 15 |
olle |
168 |
{ |
3561 |
27 Oct 15 |
olle |
jsonContentSetBox3[j] = data; |
3561 |
27 Oct 15 |
olle |
170 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'TruSight Tumor Oligo Pool A (FPA)') |
3561 |
27 Oct 15 |
olle |
172 |
{ |
3561 |
27 Oct 15 |
olle |
jsonOligoPoolA_FPA[j] = data; |
3561 |
27 Oct 15 |
olle |
174 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'TruSight Tumor Oligo Pool B (FPB)') |
3561 |
27 Oct 15 |
olle |
176 |
{ |
3561 |
27 Oct 15 |
olle |
jsonOligoPoolB_FPB[j] = data; |
3561 |
27 Oct 15 |
olle |
178 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Oligo Hybridization for Sequencing Reagent 3 (OHS3)') |
3561 |
27 Oct 15 |
olle |
180 |
{ |
3561 |
27 Oct 15 |
olle |
jsonOligoHybridizationSequencingReagent3[j] = data; |
3561 |
27 Oct 15 |
olle |
182 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Stringent Wash 1 (SW1)') |
3561 |
27 Oct 15 |
olle |
184 |
{ |
3561 |
27 Oct 15 |
olle |
jsonStringentWash1_SW1[j] = data; |
3561 |
27 Oct 15 |
olle |
186 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Extension Ligation Mix 3 (ELM3)') |
3561 |
27 Oct 15 |
olle |
188 |
{ |
3561 |
27 Oct 15 |
olle |
jsonExtensionLigationMix3[j] = data; |
3561 |
27 Oct 15 |
olle |
190 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'PCR Master Mix 2 (PMM2)') |
3561 |
27 Oct 15 |
olle |
192 |
{ |
3561 |
27 Oct 15 |
olle |
jsonPcrMasterMix2_PMM2[j] = data; |
3561 |
27 Oct 15 |
olle |
194 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'UB1') |
3561 |
27 Oct 15 |
olle |
196 |
{ |
3561 |
27 Oct 15 |
olle |
jsonUB1[j] = data; |
3561 |
27 Oct 15 |
olle |
198 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'TDP') |
3561 |
27 Oct 15 |
olle |
200 |
{ |
3561 |
27 Oct 15 |
olle |
jsonTDP[j] = data; |
3561 |
27 Oct 15 |
olle |
202 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Filterplate') |
3561 |
27 Oct 15 |
olle |
204 |
{ |
3561 |
27 Oct 15 |
olle |
jsonFilterplate[j] = data; |
3561 |
27 Oct 15 |
olle |
206 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Index Primer A701') |
3561 |
27 Oct 15 |
olle |
208 |
{ |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA701[j] = data; |
3561 |
27 Oct 15 |
olle |
210 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Index Primer A702') |
3561 |
27 Oct 15 |
olle |
212 |
{ |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA702[j] = data; |
3561 |
27 Oct 15 |
olle |
214 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Index Primer A703') |
3561 |
27 Oct 15 |
olle |
216 |
{ |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA703[j] = data; |
3561 |
27 Oct 15 |
olle |
218 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Index Primer A704') |
3561 |
27 Oct 15 |
olle |
220 |
{ |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA704[j] = data; |
3561 |
27 Oct 15 |
olle |
222 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Index Primer A705') |
3561 |
27 Oct 15 |
olle |
224 |
{ |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA705[j] = data; |
3561 |
27 Oct 15 |
olle |
226 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Index Primer A706') |
3561 |
27 Oct 15 |
olle |
228 |
{ |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA706[j] = data; |
3561 |
27 Oct 15 |
olle |
230 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Index Primer A707') |
3561 |
27 Oct 15 |
olle |
232 |
{ |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA707[j] = data; |
3561 |
27 Oct 15 |
olle |
234 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Index Primer A708') |
3561 |
27 Oct 15 |
olle |
236 |
{ |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA708[j] = data; |
3561 |
27 Oct 15 |
olle |
238 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Index Primer A709') |
3561 |
27 Oct 15 |
olle |
240 |
{ |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA709[j] = data; |
3561 |
27 Oct 15 |
olle |
242 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Index Primer A710') |
3561 |
27 Oct 15 |
olle |
244 |
{ |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA710[j] = data; |
3561 |
27 Oct 15 |
olle |
246 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Index Primer A711') |
3561 |
27 Oct 15 |
olle |
248 |
{ |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA711[j] = data; |
3561 |
27 Oct 15 |
olle |
250 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Index Primer A712') |
3561 |
27 Oct 15 |
olle |
252 |
{ |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA712[j] = data; |
3561 |
27 Oct 15 |
olle |
254 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Index Primer A501') |
3561 |
27 Oct 15 |
olle |
256 |
{ |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA501[j] = data; |
3561 |
27 Oct 15 |
olle |
258 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Index Primer A502') |
3561 |
27 Oct 15 |
olle |
260 |
{ |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA502[j] = data; |
3561 |
27 Oct 15 |
olle |
262 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Index Primer A503') |
3561 |
27 Oct 15 |
olle |
264 |
{ |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA503[j] = data; |
3561 |
27 Oct 15 |
olle |
266 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Index Primer A504') |
3561 |
27 Oct 15 |
olle |
268 |
{ |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA504[j] = data; |
3561 |
27 Oct 15 |
olle |
270 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Index Primer A505') |
3561 |
27 Oct 15 |
olle |
272 |
{ |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA505[j] = data; |
3561 |
27 Oct 15 |
olle |
274 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Index Primer A506') |
3561 |
27 Oct 15 |
olle |
276 |
{ |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA506[j] = data; |
3561 |
27 Oct 15 |
olle |
278 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Index Primer A507') |
3561 |
27 Oct 15 |
olle |
280 |
{ |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA507[j] = data; |
3561 |
27 Oct 15 |
olle |
282 |
} |
3561 |
27 Oct 15 |
olle |
else if (header == 'Index Primer A508') |
3561 |
27 Oct 15 |
olle |
284 |
{ |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA508[j] = data; |
3561 |
27 Oct 15 |
olle |
286 |
} |
3561 |
27 Oct 15 |
olle |
287 |
} |
3561 |
27 Oct 15 |
olle |
288 |
} |
3561 |
27 Oct 15 |
olle |
289 |
} |
3561 |
27 Oct 15 |
olle |
290 |
|
3561 |
27 Oct 15 |
olle |
jsonConsumables['Headers'] = jsonHeaders; |
3561 |
27 Oct 15 |
olle |
292 |
|
3561 |
27 Oct 15 |
olle |
jsonConsumables['KitName'] = jsonKitName; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['LibraryPrepBox1'] = jsonLibraryPrepBox1; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['IndexKit'] = jsonIndexKit; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['ContentSetBox3'] = jsonContentSetBox3; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['OligoPoolA_FPA'] = jsonOligoPoolA_FPA; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['OligoPoolB_FPB'] = jsonOligoPoolB_FPB; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['OligoHybridizationSequencingReagent3'] = jsonOligoHybridizationSequencingReagent3; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['StringentWash1_SW1'] = jsonStringentWash1_SW1; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['ExtensionLigationMix3'] = jsonExtensionLigationMix3; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['PcrMasterMix2_PMM2'] = jsonPcrMasterMix2_PMM2; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['UB1'] = jsonUB1; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['TDP'] = jsonTDP; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['Filterplate'] = jsonFilterplate; |
3561 |
27 Oct 15 |
olle |
306 |
|
3561 |
27 Oct 15 |
olle |
jsonConsumables['IndexPrimerA701'] = jsonIndexPrimerA701; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['IndexPrimerA702'] = jsonIndexPrimerA702; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['IndexPrimerA703'] = jsonIndexPrimerA703; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['IndexPrimerA704'] = jsonIndexPrimerA704; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['IndexPrimerA705'] = jsonIndexPrimerA705; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['IndexPrimerA706'] = jsonIndexPrimerA706; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['IndexPrimerA707'] = jsonIndexPrimerA707; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['IndexPrimerA708'] = jsonIndexPrimerA708; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['IndexPrimerA709'] = jsonIndexPrimerA709; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['IndexPrimerA710'] = jsonIndexPrimerA710; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['IndexPrimerA711'] = jsonIndexPrimerA711; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['IndexPrimerA712'] = jsonIndexPrimerA712; |
3561 |
27 Oct 15 |
olle |
319 |
|
3561 |
27 Oct 15 |
olle |
jsonConsumables['IndexPrimerA501'] = jsonIndexPrimerA501; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['IndexPrimerA502'] = jsonIndexPrimerA502; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['IndexPrimerA503'] = jsonIndexPrimerA503; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['IndexPrimerA504'] = jsonIndexPrimerA504; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['IndexPrimerA505'] = jsonIndexPrimerA505; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['IndexPrimerA506'] = jsonIndexPrimerA506; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['IndexPrimerA507'] = jsonIndexPrimerA507; |
3561 |
27 Oct 15 |
olle |
jsonConsumables['IndexPrimerA508'] = jsonIndexPrimerA508; |
3561 |
27 Oct 15 |
olle |
328 |
|
3561 |
27 Oct 15 |
olle |
Wizard.setInputStatus('consumablesFile', 'valid'); |
3561 |
27 Oct 15 |
olle |
consumablesFileIsValid = true; |
3561 |
27 Oct 15 |
olle |
331 |
} |
3561 |
27 Oct 15 |
olle |
332 |
|
3561 |
27 Oct 15 |
olle |
exreg.initializeStep2 = function() |
3561 |
27 Oct 15 |
olle |
334 |
{ |
3561 |
27 Oct 15 |
olle |
var frm = document.forms['meludi']; |
3561 |
27 Oct 15 |
olle |
var url = '../LibPrep.servlet?ID='+App.getSessionId(); |
3561 |
27 Oct 15 |
olle |
url += '&cmd=GetLibPrepKitData'; |
3561 |
27 Oct 15 |
olle |
url += '&libPrepKitFilter='+encodeURIComponent(frm.libPrepKitFilter.value); |
3561 |
27 Oct 15 |
olle |
Wizard.showLoadingAnimation('Getting kit data...'); |
3561 |
27 Oct 15 |
olle |
Wizard.asyncJsonRequest(url, exreg.libPrepKitDataResults); |
3561 |
27 Oct 15 |
olle |
341 |
} |
3561 |
27 Oct 15 |
olle |
342 |
|
3561 |
27 Oct 15 |
olle |
exreg.libPrepKitDataResults = function(response) |
3561 |
27 Oct 15 |
olle |
344 |
{ |
3561 |
27 Oct 15 |
olle |
jsonConsumables = response.consumables; |
3561 |
27 Oct 15 |
olle |
// Make copy of original values |
3561 |
27 Oct 15 |
olle |
jsonConsumablesOrig = exreg.copyJsonConsumables(jsonConsumables); |
3561 |
27 Oct 15 |
olle |
348 |
|
3561 |
27 Oct 15 |
olle |
exreg.updateDetailsTable(); |
3561 |
27 Oct 15 |
olle |
350 |
} |
3561 |
27 Oct 15 |
olle |
351 |
|
3561 |
27 Oct 15 |
olle |
exreg.updateDetailsTable = function() |
3561 |
27 Oct 15 |
olle |
353 |
{ |
3561 |
27 Oct 15 |
olle |
var frm = document.forms['meludi']; |
3561 |
27 Oct 15 |
olle |
355 |
|
3561 |
27 Oct 15 |
olle |
// Store data one kit a time, i.e. 'jsonKitArray' is a JSONArray with one JSONObject for each kit |
3561 |
27 Oct 15 |
olle |
//exreg.libPrepKitDataToJsonArray(); |
3561 |
27 Oct 15 |
olle |
358 |
|
3561 |
27 Oct 15 |
olle |
var kitFilterValue = frm.libPrepKitFilter.value; |
3561 |
27 Oct 15 |
olle |
var kitFilterName = exreg.fetchLibPrepFilterName(kitFilterValue); |
3561 |
27 Oct 15 |
olle |
var numItemsFiltered = jsonConsumables['numItemsFiltered']; |
3561 |
27 Oct 15 |
olle |
var numItemsTot = jsonConsumables['numItemsTot']; |
3561 |
27 Oct 15 |
olle |
Doc.element('libPrepKitFilterName').innerHTML = '<b>Library preparation kit filter: ' + kitFilterName + '</b>'; |
3561 |
27 Oct 15 |
olle |
Doc.element('libPrepKitFilterName').innerHTML += ' (' + numItemsFiltered + ' of ' + numItemsTot + ')'; |
3561 |
27 Oct 15 |
olle |
var html = '<table id="detailsTable" class="step-form">'; |
3561 |
27 Oct 15 |
olle |
366 |
|
3561 |
27 Oct 15 |
olle |
// First header row |
3561 |
27 Oct 15 |
olle |
html += '<thead>'; |
3561 |
27 Oct 15 |
olle |
html += '<tr>'; |
3705 |
19 Jan 16 |
olle |
html += '<th></th>'; |
3705 |
19 Jan 16 |
olle |
371 |
// |
3561 |
27 Oct 15 |
olle |
html += '<th>TruSight Tumor Library Preparation partI</th>'; |
3705 |
19 Jan 16 |
olle |
373 |
// |
3705 |
19 Jan 16 |
olle |
html += '<td class="dottedleft">Registration date</td>'; |
3705 |
19 Jan 16 |
olle |
html += '<td class="dottedleft">Last updated</td>'; |
3705 |
19 Jan 16 |
olle |
html += '<td class="dottedleft">Expiration date</td>'; |
3705 |
19 Jan 16 |
olle |
html += '<td class="dottedleft">Active</td>'; |
3705 |
19 Jan 16 |
olle |
html += '<td class="dottedleft">#Times used</td>'; |
3705 |
19 Jan 16 |
olle |
html += '<td class="dottedleft">Unused FPA plate locations</td>'; |
3705 |
19 Jan 16 |
olle |
html += '<td class="dottedleft">Comment</td>'; |
3705 |
19 Jan 16 |
olle |
381 |
// |
3561 |
27 Oct 15 |
olle |
html += '<th class="dottedleft">TruSight Tumor Library Prep Box 1</th>'; |
3561 |
27 Oct 15 |
olle |
html += '<th class="dottedleft">TruSight Tumor Index Kit</th>'; |
3561 |
27 Oct 15 |
olle |
html += '<th class="dottedleft">TruSight Tumor Content Set Box 3</th>'; |
3561 |
27 Oct 15 |
olle |
html += '<th class="dottedleft">TruSight Tumor Oligo Pool A (FPA)</th>'; |
3561 |
27 Oct 15 |
olle |
html += '<th class="dottedleft">TruSight Tumor Oligo Pool B (FPB)</th>'; |
3561 |
27 Oct 15 |
olle |
html += '<th class="dottedleft">Oligo Hybridization for Sequencing Reagent 3 (OHS3)</th>'; |
3561 |
27 Oct 15 |
olle |
html += '<th class="dottedleft">Stringent Wash 1 (SW1)</th>'; |
3561 |
27 Oct 15 |
olle |
html += '<th class="dottedleft">Extension Ligation Mix 3 (ELM3)</th>'; |
3561 |
27 Oct 15 |
olle |
html += '<th class="dottedleft">PCR Master Mix 2 (PMM2)</th>'; |
3561 |
27 Oct 15 |
olle |
html += '<th class="dottedleft">UB1</th>'; |
3561 |
27 Oct 15 |
olle |
html += '<th class="dottedleft">TDP</th>'; |
3561 |
27 Oct 15 |
olle |
html += '<th class="dottedleft">Filterplate</th>'; |
3561 |
27 Oct 15 |
olle |
html += '<th colspan="12" class="dottedleft">Index 1 Primers Lot Number</th>'; |
3561 |
27 Oct 15 |
olle |
html += '<th colspan="8" class="dottedleft">Index 2 Primers Lot Number</th>'; |
3561 |
27 Oct 15 |
olle |
html += '</tr>'; |
3561 |
27 Oct 15 |
olle |
// Second header row |
3561 |
27 Oct 15 |
olle |
html += '<tr>'; |
3561 |
27 Oct 15 |
olle |
html += '<th></th>'; |
3705 |
19 Jan 16 |
olle |
400 |
|
3705 |
19 Jan 16 |
olle |
html += '<th></th>'; |
3561 |
27 Oct 15 |
olle |
html += '<th class="dottedleft"></th>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft"></td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft"></td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft"></td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft"></td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft"></td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft"></td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft"></td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft"></td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft"></td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft"></td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft"></td>'; |
3561 |
27 Oct 15 |
olle |
// Index 1 Primers Lot Number |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">ATCACGAC</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">ACAGTGGT</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">CAGATCCA</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">ACAAACGG</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">ACCCAGCA</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">AACCCCTC</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">CCCAACCT</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">CACCACAC</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">GAAACCCA</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">TGTGACCA</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">AGGGTCAA</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">AGGAGTGG</td>'; |
3561 |
27 Oct 15 |
olle |
// Index 2 Primers Lot Number |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">TGAACCTT</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">TGCTAAGT</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">TGTTCTCT</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">TAAGACAC</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">CTAATCGA</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">CTAGAACA</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">TAAGTTCC</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">TAGACCTA</td>'; |
3561 |
27 Oct 15 |
olle |
html += '</tr>'; |
3561 |
27 Oct 15 |
olle |
// Third header row |
3561 |
27 Oct 15 |
olle |
html += '<tr>'; |
3561 |
27 Oct 15 |
olle |
html += '<th></th>'; |
3705 |
19 Jan 16 |
olle |
440 |
|
3705 |
19 Jan 16 |
olle |
html += '<th></th>'; |
3561 |
27 Oct 15 |
olle |
html += '<th class="dottedleft"></th>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft"></td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft"></td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft"></td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft"></td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft"></td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft"></td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft"></td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft"></td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft"></td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft"></td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft"></td>'; |
3561 |
27 Oct 15 |
olle |
// Index 1 Primers Lot Number |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">A701</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">A702</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">A703</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">A704</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">A705</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">A706</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">A707</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">A708</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">A709</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">A710</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">A711</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">A712</td>'; |
3561 |
27 Oct 15 |
olle |
// Index 2 Primers Lot Number |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">A501</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">A502</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">A503</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">A504</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">A505</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">A506</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">A507</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft">A508</td>'; |
3561 |
27 Oct 15 |
olle |
476 |
// |
3561 |
27 Oct 15 |
olle |
html += '</tr>'; |
3561 |
27 Oct 15 |
olle |
html += '</thead>'; |
3561 |
27 Oct 15 |
olle |
html += '<tbody>'; |
3561 |
27 Oct 15 |
olle |
480 |
|
3561 |
27 Oct 15 |
olle |
// Get JSONArrays with data for kits |
3561 |
27 Oct 15 |
olle |
482 |
|
3561 |
27 Oct 15 |
olle |
var jsonHeaders = jsonConsumables['Headers']; |
3561 |
27 Oct 15 |
olle |
484 |
|
3561 |
27 Oct 15 |
olle |
var jsonKitName = jsonConsumables['KitName']; |
3705 |
19 Jan 16 |
olle |
486 |
|
3705 |
19 Jan 16 |
olle |
var jsonRegistrationDate = jsonConsumables['RegistrationDate']; |
3705 |
19 Jan 16 |
olle |
var jsonLastUpdatedDate = jsonConsumables['LastUpdatedDate']; |
3705 |
19 Jan 16 |
olle |
var jsonExpirationDate = jsonConsumables['ExpirationDate']; |
3705 |
19 Jan 16 |
olle |
var jsonActive = jsonConsumables['Active']; |
3705 |
19 Jan 16 |
olle |
var jsonTimesUsed = jsonConsumables['TimesUsed']; |
3705 |
19 Jan 16 |
olle |
var jsonUnusedFpaPlateLocs = jsonConsumables['UnusedFpaPlateLocs']; |
3705 |
19 Jan 16 |
olle |
var jsonComment = jsonConsumables['Comment']; |
3705 |
19 Jan 16 |
olle |
494 |
|
3561 |
27 Oct 15 |
olle |
var jsonLibraryPrepBox1 = jsonConsumables['LibraryPrepBox1']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexKit = jsonConsumables['IndexKit']; |
3561 |
27 Oct 15 |
olle |
var jsonContentSetBox3 = jsonConsumables['ContentSetBox3']; |
3561 |
27 Oct 15 |
olle |
var jsonOligoPoolA_FPA = jsonConsumables['OligoPoolA_FPA']; |
3561 |
27 Oct 15 |
olle |
var jsonOligoPoolB_FPB = jsonConsumables['OligoPoolB_FPB']; |
3561 |
27 Oct 15 |
olle |
var jsonOligoHybridizationSequencingReagent3 = jsonConsumables['OligoHybridizationSequencingReagent3']; |
3561 |
27 Oct 15 |
olle |
var jsonStringentWash1_SW1 = jsonConsumables['StringentWash1_SW1']; |
3561 |
27 Oct 15 |
olle |
var jsonExtensionLigationMix3 = jsonConsumables['ExtensionLigationMix3']; |
3561 |
27 Oct 15 |
olle |
var jsonPcrMasterMix2_PMM2 = jsonConsumables['PcrMasterMix2_PMM2']; |
3561 |
27 Oct 15 |
olle |
var jsonUB1 = jsonConsumables['UB1']; |
3561 |
27 Oct 15 |
olle |
var jsonTDP = jsonConsumables['TDP']; |
3561 |
27 Oct 15 |
olle |
var jsonFilterplate = jsonConsumables['Filterplate']; |
3561 |
27 Oct 15 |
olle |
507 |
|
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA701 = jsonConsumables['IndexPrimerA701']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA702 = jsonConsumables['IndexPrimerA702']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA703 = jsonConsumables['IndexPrimerA703']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA704 = jsonConsumables['IndexPrimerA704']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA705 = jsonConsumables['IndexPrimerA705']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA706 = jsonConsumables['IndexPrimerA706']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA707 = jsonConsumables['IndexPrimerA707']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA708 = jsonConsumables['IndexPrimerA708']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA709 = jsonConsumables['IndexPrimerA709']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA710 = jsonConsumables['IndexPrimerA710']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA711 = jsonConsumables['IndexPrimerA711']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA712 = jsonConsumables['IndexPrimerA712']; |
3561 |
27 Oct 15 |
olle |
520 |
|
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA501 = jsonConsumables['IndexPrimerA501']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA502 = jsonConsumables['IndexPrimerA502']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA503 = jsonConsumables['IndexPrimerA503']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA504 = jsonConsumables['IndexPrimerA504']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA505 = jsonConsumables['IndexPrimerA505']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA506 = jsonConsumables['IndexPrimerA506']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA507 = jsonConsumables['IndexPrimerA507']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA508 = jsonConsumables['IndexPrimerA508']; |
3561 |
27 Oct 15 |
olle |
529 |
|
3561 |
27 Oct 15 |
olle |
var numItems = jsonKitName.length; |
3561 |
27 Oct 15 |
olle |
531 |
|
3561 |
27 Oct 15 |
olle |
for (var i = 0; i < numItems; i++) |
3561 |
27 Oct 15 |
olle |
533 |
{ |
3610 |
20 Nov 15 |
olle |
var activeStr = 'yes'; |
3610 |
20 Nov 15 |
olle |
if (!jsonActive[i]) |
3610 |
20 Nov 15 |
olle |
536 |
{ |
3610 |
20 Nov 15 |
olle |
activeStr = 'no'; |
3610 |
20 Nov 15 |
olle |
538 |
} |
3610 |
20 Nov 15 |
olle |
var timesUsed = '' + jsonTimesUsed[i]; |
3610 |
20 Nov 15 |
olle |
540 |
|
3561 |
27 Oct 15 |
olle |
html += '<tr class="highlight">'; |
3705 |
19 Jan 16 |
olle |
// Add edit button |
3705 |
19 Jan 16 |
olle |
html += '<td><div class="button basicbutton interactable edit-details" style="width: 5em;" data-index="'+i+'">Edit…</div></td>'; |
3705 |
19 Jan 16 |
olle |
544 |
|
3705 |
19 Jan 16 |
olle |
html += '<th class="dottedleft" id="kitName'+i+'">' + Strings.encodeTags(jsonKitName[i]) + '</th>'; |
3705 |
19 Jan 16 |
olle |
546 |
|
3705 |
19 Jan 16 |
olle |
html += '<td class="dottedleft" id="registrationDate'+i+'">' + Strings.encodeTags(jsonRegistrationDate[i]) + '</td>'; |
3705 |
19 Jan 16 |
olle |
html += '<td class="dottedleft" id="lastUpdatedDate'+i+'">' + Strings.encodeTags(jsonLastUpdatedDate[i]) + '</td>'; |
3705 |
19 Jan 16 |
olle |
html += '<td class="dottedleft" id="expirationDate'+i+'">' + Strings.encodeTags(jsonExpirationDate[i]) + '</td>'; |
3705 |
19 Jan 16 |
olle |
html += '<td class="dottedleft" id="active'+i+'">' + Strings.encodeTags(activeStr) + '</td>'; |
3705 |
19 Jan 16 |
olle |
html += '<td class="dottedleft" id="numTimesUsed'+i+'">' + Strings.encodeTags(timesUsed) + '</td>'; |
3705 |
19 Jan 16 |
olle |
html += '<td class="dottedleft" id="unusedFpaLoc'+i+'">' + Strings.encodeTags(jsonUnusedFpaPlateLocs[i]) + '</td>'; |
3705 |
19 Jan 16 |
olle |
html += '<td class="dottedleft" id="kitComment'+i+'">' + Strings.encodeTags(jsonComment[i]) + '</td>'; |
3705 |
19 Jan 16 |
olle |
554 |
|
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="libraryPrepBox1'+i+'">' + Strings.encodeTags(jsonLibraryPrepBox1[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="indexKit'+i+'">' + Strings.encodeTags(jsonIndexKit[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="contentSetBox3'+i+'">' + Strings.encodeTags(jsonContentSetBox3[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="oligoPoolA_FPA'+i+'">' + Strings.encodeTags(jsonOligoPoolA_FPA[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="oligoPoolB_FPB'+i+'">' + Strings.encodeTags(jsonOligoPoolB_FPB[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="oligoHybridizationSequencingReagent3'+i+'">' + Strings.encodeTags(jsonOligoHybridizationSequencingReagent3[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="stringentWash1_SW1'+i+'">' + Strings.encodeTags(jsonStringentWash1_SW1[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="extensionLigationMix3'+i+'">' + Strings.encodeTags(jsonExtensionLigationMix3[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="pcrMasterMix2_PMM2'+i+'">' + Strings.encodeTags(jsonPcrMasterMix2_PMM2[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="ub1'+i+'">' + Strings.encodeTags(jsonUB1[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="tdp'+i+'">' + Strings.encodeTags(jsonTDP[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="filterplate'+i+'">' + Strings.encodeTags(jsonFilterplate[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
567 |
|
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="indexPrimerA701'+i+'">' + Strings.encodeTags(jsonIndexPrimerA701[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="indexPrimerA702'+i+'">' + Strings.encodeTags(jsonIndexPrimerA702[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="indexPrimerA703'+i+'">' + Strings.encodeTags(jsonIndexPrimerA703[i]) + '</td>'; |
3608 |
18 Nov 15 |
olle |
html += '<td class="dottedleft" id="indexPrimerA704'+i+'">' + Strings.encodeTags(jsonIndexPrimerA704[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="indexPrimerA705'+i+'">' + Strings.encodeTags(jsonIndexPrimerA705[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="indexPrimerA706'+i+'">' + Strings.encodeTags(jsonIndexPrimerA706[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="indexPrimerA707'+i+'">' + Strings.encodeTags(jsonIndexPrimerA707[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="indexPrimerA708'+i+'">' + Strings.encodeTags(jsonIndexPrimerA708[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="indexPrimerA709'+i+'">' + Strings.encodeTags(jsonIndexPrimerA709[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="indexPrimerA710'+i+'">' + Strings.encodeTags(jsonIndexPrimerA710[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="indexPrimerA711'+i+'">' + Strings.encodeTags(jsonIndexPrimerA711[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="indexPrimerA712'+i+'">' + Strings.encodeTags(jsonIndexPrimerA712[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
580 |
|
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="indexPrimerA501'+i+'">' + Strings.encodeTags(jsonIndexPrimerA501[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="indexPrimerA502'+i+'">' + Strings.encodeTags(jsonIndexPrimerA502[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="indexPrimerA503'+i+'">' + Strings.encodeTags(jsonIndexPrimerA503[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="indexPrimerA504'+i+'">' + Strings.encodeTags(jsonIndexPrimerA504[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="indexPrimerA505'+i+'">' + Strings.encodeTags(jsonIndexPrimerA505[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="indexPrimerA506'+i+'">' + Strings.encodeTags(jsonIndexPrimerA506[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="indexPrimerA507'+i+'">' + Strings.encodeTags(jsonIndexPrimerA507[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
html += '<td class="dottedleft" id="indexPrimerA508'+i+'">' + Strings.encodeTags(jsonIndexPrimerA508[i]) + '</td>'; |
3561 |
27 Oct 15 |
olle |
589 |
|
3561 |
27 Oct 15 |
olle |
// Add edit button |
3561 |
27 Oct 15 |
olle |
html += '<td><div class="button basicbutton interactable edit-details" style="width: 5em;" data-index="'+i+'">Edit…</div></td>'; |
3561 |
27 Oct 15 |
olle |
592 |
|
3561 |
27 Oct 15 |
olle |
html += '</tr>'; |
3561 |
27 Oct 15 |
olle |
594 |
} |
3561 |
27 Oct 15 |
olle |
html += '</tbody>'; |
3561 |
27 Oct 15 |
olle |
html += '</table>'; |
3561 |
27 Oct 15 |
olle |
Doc.element('detailsSection').innerHTML = html; |
3561 |
27 Oct 15 |
olle |
598 |
|
3561 |
27 Oct 15 |
olle |
// Highlight modified items |
3561 |
27 Oct 15 |
olle |
600 |
|
3705 |
19 Jan 16 |
olle |
var jsonRegistrationDateOrig = jsonConsumablesOrig['RegistrationDate']; |
3705 |
19 Jan 16 |
olle |
var jsonLastUpdatedDateOrig = jsonConsumablesOrig['LastUpdatedDate']; |
3705 |
19 Jan 16 |
olle |
var jsonExpirationDateOrig = jsonConsumablesOrig['ExpirationDate']; |
3705 |
19 Jan 16 |
olle |
var jsonActiveOrig = jsonConsumablesOrig['Active']; |
3705 |
19 Jan 16 |
olle |
var jsonTimesUsedOrig = jsonConsumablesOrig['TimesUsed']; |
3705 |
19 Jan 16 |
olle |
var jsonUnusedFpaPlateLocsOrig = jsonConsumablesOrig['UnusedFpaPlateLocs']; |
3705 |
19 Jan 16 |
olle |
var jsonCommentOrig = jsonConsumablesOrig['Comment']; |
3705 |
19 Jan 16 |
olle |
608 |
|
3561 |
27 Oct 15 |
olle |
var jsonLibraryPrepBox1Orig = jsonConsumablesOrig['LibraryPrepBox1']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexKitOrig = jsonConsumablesOrig['IndexKit']; |
3561 |
27 Oct 15 |
olle |
var jsonContentSetBox3Orig = jsonConsumablesOrig['ContentSetBox3']; |
3561 |
27 Oct 15 |
olle |
var jsonOligoPoolA_FPAOrig = jsonConsumablesOrig['OligoPoolA_FPA']; |
3561 |
27 Oct 15 |
olle |
var jsonOligoPoolB_FPBOrig = jsonConsumablesOrig['OligoPoolB_FPB']; |
3561 |
27 Oct 15 |
olle |
var jsonOligoHybridizationSequencingReagent3Orig = jsonConsumablesOrig['OligoHybridizationSequencingReagent3']; |
3561 |
27 Oct 15 |
olle |
var jsonStringentWash1_SW1Orig = jsonConsumablesOrig['StringentWash1_SW1']; |
3561 |
27 Oct 15 |
olle |
var jsonExtensionLigationMix3Orig = jsonConsumablesOrig['ExtensionLigationMix3']; |
3561 |
27 Oct 15 |
olle |
var jsonPcrMasterMix2_PMM2Orig = jsonConsumablesOrig['PcrMasterMix2_PMM2']; |
3561 |
27 Oct 15 |
olle |
var jsonUB1Orig = jsonConsumablesOrig['UB1']; |
3561 |
27 Oct 15 |
olle |
var jsonTDPOrig = jsonConsumablesOrig['TDP']; |
3561 |
27 Oct 15 |
olle |
var jsonFilterplateOrig = jsonConsumablesOrig['Filterplate']; |
3561 |
27 Oct 15 |
olle |
621 |
|
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA701Orig = jsonConsumablesOrig['IndexPrimerA701']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA702Orig = jsonConsumablesOrig['IndexPrimerA702']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA703Orig = jsonConsumablesOrig['IndexPrimerA703']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA704Orig = jsonConsumablesOrig['IndexPrimerA704']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA705Orig = jsonConsumablesOrig['IndexPrimerA705']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA706Orig = jsonConsumablesOrig['IndexPrimerA706']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA707Orig = jsonConsumablesOrig['IndexPrimerA707']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA708Orig = jsonConsumablesOrig['IndexPrimerA708']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA709Orig = jsonConsumablesOrig['IndexPrimerA709']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA710Orig = jsonConsumablesOrig['IndexPrimerA710']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA711Orig = jsonConsumablesOrig['IndexPrimerA711']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA712Orig = jsonConsumablesOrig['IndexPrimerA712']; |
3561 |
27 Oct 15 |
olle |
634 |
|
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA501Orig = jsonConsumablesOrig['IndexPrimerA501']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA502Orig = jsonConsumablesOrig['IndexPrimerA502']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA503Orig = jsonConsumablesOrig['IndexPrimerA503']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA504Orig = jsonConsumablesOrig['IndexPrimerA504']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA505Orig = jsonConsumablesOrig['IndexPrimerA505']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA506Orig = jsonConsumablesOrig['IndexPrimerA506']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA507Orig = jsonConsumablesOrig['IndexPrimerA507']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA508Orig = jsonConsumablesOrig['IndexPrimerA508']; |
3561 |
27 Oct 15 |
olle |
643 |
|
3561 |
27 Oct 15 |
olle |
for (var i = 0; i < numItems; i++) |
3561 |
27 Oct 15 |
olle |
645 |
{ |
3561 |
27 Oct 15 |
olle |
// Test of modification highlight |
3705 |
19 Jan 16 |
olle |
Doc.addOrRemoveClass('registrationDate'+i, 'nondefault', jsonRegistrationDate[i] != jsonRegistrationDateOrig[i]); |
3705 |
19 Jan 16 |
olle |
Doc.addOrRemoveClass('lastUpdatedDate'+i, 'nondefault', jsonLastUpdatedDate[i] != jsonLastUpdatedDateOrig[i]); |
3705 |
19 Jan 16 |
olle |
Doc.addOrRemoveClass('expirationDate'+i, 'nondefault', jsonExpirationDate[i] != jsonExpirationDateOrig[i]); |
3705 |
19 Jan 16 |
olle |
Doc.addOrRemoveClass('active'+i, 'nondefault', jsonActive[i] != jsonActiveOrig[i]); |
3705 |
19 Jan 16 |
olle |
Doc.addOrRemoveClass('numTimesUsed'+i, 'nondefault', jsonTimesUsed[i] != jsonTimesUsedOrig[i]); |
3705 |
19 Jan 16 |
olle |
Doc.addOrRemoveClass('unusedFpaLoc'+i, 'nondefault', jsonUnusedFpaPlateLocs[i] != jsonUnusedFpaPlateLocsOrig[i]); |
3705 |
19 Jan 16 |
olle |
Doc.addOrRemoveClass('kitComment'+i, 'nondefault', jsonComment[i] != jsonCommentOrig[i]); |
3705 |
19 Jan 16 |
olle |
654 |
|
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('libraryPrepBox1'+i, 'nondefault', jsonLibraryPrepBox1[i] != jsonLibraryPrepBox1Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('indexKit'+i, 'nondefault', jsonIndexKit[i] != jsonIndexKitOrig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('contentSetBox3'+i, 'nondefault', jsonContentSetBox3[i] != jsonContentSetBox3Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('oligoPoolA_FPA'+i, 'nondefault', jsonOligoPoolA_FPA[i] != jsonOligoPoolA_FPAOrig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('oligoPoolB_FPB'+i, 'nondefault', jsonOligoPoolB_FPB[i] != jsonOligoPoolB_FPBOrig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('oligoHybridizationSequencingReagent3'+i, 'nondefault', jsonOligoHybridizationSequencingReagent3[i] != jsonOligoHybridizationSequencingReagent3Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('stringentWash1_SW1'+i, 'nondefault', jsonStringentWash1_SW1[i] != jsonStringentWash1_SW1Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('extensionLigationMix3'+i, 'nondefault', jsonExtensionLigationMix3[i] != jsonExtensionLigationMix3Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('pcrMasterMix2_PMM2'+i, 'nondefault', jsonPcrMasterMix2_PMM2[i] != jsonPcrMasterMix2_PMM2Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('ub1'+i, 'nondefault', jsonUB1[i] != jsonUB1Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('tdp'+i, 'nondefault', jsonTDP[i] != jsonTDPOrig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('filterplate'+i, 'nondefault', jsonFilterplate[i] != jsonFilterplateOrig[i]); |
3561 |
27 Oct 15 |
olle |
667 |
|
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('indexPrimerA701'+i, 'nondefault', jsonIndexPrimerA701[i] != jsonIndexPrimerA701Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('indexPrimerA702'+i, 'nondefault', jsonIndexPrimerA702[i] != jsonIndexPrimerA702Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('indexPrimerA703'+i, 'nondefault', jsonIndexPrimerA703[i] != jsonIndexPrimerA703Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('indexPrimerA704'+i, 'nondefault', jsonIndexPrimerA704[i] != jsonIndexPrimerA704Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('indexPrimerA705'+i, 'nondefault', jsonIndexPrimerA705[i] != jsonIndexPrimerA705Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('indexPrimerA706'+i, 'nondefault', jsonIndexPrimerA706[i] != jsonIndexPrimerA706Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('indexPrimerA707'+i, 'nondefault', jsonIndexPrimerA707[i] != jsonIndexPrimerA707Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('indexPrimerA708'+i, 'nondefault', jsonIndexPrimerA708[i] != jsonIndexPrimerA708Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('indexPrimerA709'+i, 'nondefault', jsonIndexPrimerA709[i] != jsonIndexPrimerA709Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('indexPrimerA710'+i, 'nondefault', jsonIndexPrimerA710[i] != jsonIndexPrimerA710Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('indexPrimerA711'+i, 'nondefault', jsonIndexPrimerA711[i] != jsonIndexPrimerA711Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('indexPrimerA712'+i, 'nondefault', jsonIndexPrimerA712[i] != jsonIndexPrimerA712Orig[i]); |
3561 |
27 Oct 15 |
olle |
680 |
|
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('indexPrimerA501'+i, 'nondefault', jsonIndexPrimerA501[i] != jsonIndexPrimerA501Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('indexPrimerA502'+i, 'nondefault', jsonIndexPrimerA502[i] != jsonIndexPrimerA502Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('indexPrimerA503'+i, 'nondefault', jsonIndexPrimerA503[i] != jsonIndexPrimerA503Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('indexPrimerA504'+i, 'nondefault', jsonIndexPrimerA504[i] != jsonIndexPrimerA504Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('indexPrimerA505'+i, 'nondefault', jsonIndexPrimerA505[i] != jsonIndexPrimerA505Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('indexPrimerA506'+i, 'nondefault', jsonIndexPrimerA506[i] != jsonIndexPrimerA506Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('indexPrimerA507'+i, 'nondefault', jsonIndexPrimerA507[i] != jsonIndexPrimerA507Orig[i]); |
3561 |
27 Oct 15 |
olle |
Doc.addOrRemoveClass('indexPrimerA508'+i, 'nondefault', jsonIndexPrimerA508[i] != jsonIndexPrimerA508Orig[i]); |
3561 |
27 Oct 15 |
olle |
689 |
} |
3561 |
27 Oct 15 |
olle |
690 |
|
3561 |
27 Oct 15 |
olle |
// Collect data for modified kits |
3561 |
27 Oct 15 |
olle |
692 |
|
3561 |
27 Oct 15 |
olle |
var jsonKitNameModified = []; |
3705 |
19 Jan 16 |
olle |
694 |
|
3705 |
19 Jan 16 |
olle |
var jsonRegistrationDateModified = []; |
3705 |
19 Jan 16 |
olle |
var jsonLastUpdatedDateModified = []; |
3705 |
19 Jan 16 |
olle |
var jsonExpirationDateModified = []; |
3705 |
19 Jan 16 |
olle |
var jsonActiveModified = []; |
3705 |
19 Jan 16 |
olle |
var jsonTimesUsedModified = []; |
3705 |
19 Jan 16 |
olle |
var jsonUnusedFpaPlateLocsModified = []; |
3705 |
19 Jan 16 |
olle |
var jsonCommentModified = []; |
3705 |
19 Jan 16 |
olle |
702 |
|
3561 |
27 Oct 15 |
olle |
var jsonLibraryPrepBox1Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexKitModified = []; |
3561 |
27 Oct 15 |
olle |
var jsonContentSetBox3Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonOligoPoolA_FPAModified = []; |
3561 |
27 Oct 15 |
olle |
var jsonOligoPoolB_FPBModified = []; |
3561 |
27 Oct 15 |
olle |
var jsonOligoHybridizationSequencingReagent3Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonStringentWash1_SW1Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonExtensionLigationMix3Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonPcrMasterMix2_PMM2Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonUB1Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonTDPModified = []; |
3561 |
27 Oct 15 |
olle |
var jsonFilterplateModified = []; |
3561 |
27 Oct 15 |
olle |
715 |
|
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA701Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA702Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA703Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA704Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA705Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA706Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA707Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA708Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA709Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA710Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA711Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA712Modified = []; |
3561 |
27 Oct 15 |
olle |
728 |
|
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA501Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA502Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA503Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA504Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA505Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA506Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA507Modified = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA508Modified = []; |
3561 |
27 Oct 15 |
olle |
737 |
|
3561 |
27 Oct 15 |
olle |
var someKitIsModified = false; |
3561 |
27 Oct 15 |
olle |
var numKitsModified = 0; |
3561 |
27 Oct 15 |
olle |
for (var i = 0; i < numItems; i++) |
3561 |
27 Oct 15 |
olle |
741 |
{ |
3561 |
27 Oct 15 |
olle |
// Check if data for kit has been modified |
3561 |
27 Oct 15 |
olle |
var kitIsModified = false; |
3705 |
19 Jan 16 |
olle |
744 |
|
3705 |
19 Jan 16 |
olle |
if (jsonRegistrationDate[i] != jsonRegistrationDateOrig[i]) |
3561 |
27 Oct 15 |
olle |
746 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
748 |
} |
3705 |
19 Jan 16 |
olle |
else if (jsonLastUpdatedDate[i] != jsonLastUpdatedDateOrig[i]) |
3705 |
19 Jan 16 |
olle |
750 |
{ |
3705 |
19 Jan 16 |
olle |
kitIsModified = true; |
3705 |
19 Jan 16 |
olle |
752 |
} |
3705 |
19 Jan 16 |
olle |
else if (jsonExpirationDate[i] != jsonExpirationDateOrig[i]) |
3705 |
19 Jan 16 |
olle |
754 |
{ |
3705 |
19 Jan 16 |
olle |
kitIsModified = true; |
3705 |
19 Jan 16 |
olle |
756 |
} |
3705 |
19 Jan 16 |
olle |
else if (jsonActive[i] != jsonActiveOrig[i]) |
3705 |
19 Jan 16 |
olle |
758 |
{ |
3705 |
19 Jan 16 |
olle |
kitIsModified = true; |
3705 |
19 Jan 16 |
olle |
760 |
} |
3705 |
19 Jan 16 |
olle |
else if (jsonTimesUsed[i] != jsonTimesUsedOrig[i]) |
3705 |
19 Jan 16 |
olle |
762 |
{ |
3705 |
19 Jan 16 |
olle |
kitIsModified = true; |
3705 |
19 Jan 16 |
olle |
764 |
} |
3705 |
19 Jan 16 |
olle |
else if (jsonUnusedFpaPlateLocs[i] != jsonUnusedFpaPlateLocsOrig[i]) |
3705 |
19 Jan 16 |
olle |
766 |
{ |
3705 |
19 Jan 16 |
olle |
kitIsModified = true; |
3705 |
19 Jan 16 |
olle |
768 |
} |
3705 |
19 Jan 16 |
olle |
else if (jsonComment[i] != jsonCommentOrig[i]) |
3705 |
19 Jan 16 |
olle |
770 |
{ |
3705 |
19 Jan 16 |
olle |
kitIsModified = true; |
3705 |
19 Jan 16 |
olle |
772 |
} |
3705 |
19 Jan 16 |
olle |
773 |
|
3705 |
19 Jan 16 |
olle |
else if (jsonLibraryPrepBox1[i] != jsonLibraryPrepBox1Orig[i]) |
3705 |
19 Jan 16 |
olle |
775 |
{ |
3705 |
19 Jan 16 |
olle |
kitIsModified = true; |
3705 |
19 Jan 16 |
olle |
777 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonIndexKit[i] != jsonIndexKitOrig[i]) |
3561 |
27 Oct 15 |
olle |
779 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
781 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonContentSetBox3[i] != jsonContentSetBox3Orig[i]) |
3561 |
27 Oct 15 |
olle |
783 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
785 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonOligoPoolA_FPA[i] != jsonOligoPoolA_FPAOrig[i]) |
3561 |
27 Oct 15 |
olle |
787 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
789 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonOligoPoolB_FPB[i] != jsonOligoPoolB_FPBOrig[i]) |
3561 |
27 Oct 15 |
olle |
791 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
793 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonOligoHybridizationSequencingReagent3[i] != jsonOligoHybridizationSequencingReagent3Orig[i]) |
3561 |
27 Oct 15 |
olle |
795 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
797 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonStringentWash1_SW1[i] != jsonStringentWash1_SW1Orig[i]) |
3561 |
27 Oct 15 |
olle |
799 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
801 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonExtensionLigationMix3[i] != jsonExtensionLigationMix3Orig[i]) |
3561 |
27 Oct 15 |
olle |
803 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
805 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonPcrMasterMix2_PMM2[i] != jsonPcrMasterMix2_PMM2Orig[i]) |
3561 |
27 Oct 15 |
olle |
807 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
809 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonUB1[i] != jsonUB1Orig[i]) |
3561 |
27 Oct 15 |
olle |
811 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
813 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonTDP[i] != jsonTDPOrig[i]) |
3561 |
27 Oct 15 |
olle |
815 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
817 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonFilterplate[i] != jsonFilterplateOrig[i]) |
3561 |
27 Oct 15 |
olle |
819 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
821 |
} |
3561 |
27 Oct 15 |
olle |
822 |
|
3561 |
27 Oct 15 |
olle |
else if (jsonIndexPrimerA701[i] != jsonIndexPrimerA701Orig[i]) |
3561 |
27 Oct 15 |
olle |
824 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
826 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonIndexPrimerA702[i] != jsonIndexPrimerA702Orig[i]) |
3561 |
27 Oct 15 |
olle |
828 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
830 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonIndexPrimerA703[i] != jsonIndexPrimerA703Orig[i]) |
3561 |
27 Oct 15 |
olle |
832 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
834 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonIndexPrimerA704[i] != jsonIndexPrimerA704Orig[i]) |
3561 |
27 Oct 15 |
olle |
836 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
838 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonIndexPrimerA705[i] != jsonIndexPrimerA705Orig[i]) |
3561 |
27 Oct 15 |
olle |
840 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
842 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonIndexPrimerA706[i] != jsonIndexPrimerA706Orig[i]) |
3561 |
27 Oct 15 |
olle |
844 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
846 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonIndexPrimerA707[i] != jsonIndexPrimerA707Orig[i]) |
3561 |
27 Oct 15 |
olle |
848 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
850 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonIndexPrimerA708[i] != jsonIndexPrimerA708Orig[i]) |
3561 |
27 Oct 15 |
olle |
852 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
854 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonIndexPrimerA709[i] != jsonIndexPrimerA709Orig[i]) |
3561 |
27 Oct 15 |
olle |
856 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
858 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonIndexPrimerA710[i] != jsonIndexPrimerA710Orig[i]) |
3561 |
27 Oct 15 |
olle |
860 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
862 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonIndexPrimerA711[i] != jsonIndexPrimerA711Orig[i]) |
3561 |
27 Oct 15 |
olle |
864 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
866 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonIndexPrimerA712[i] != jsonIndexPrimerA712Orig[i]) |
3561 |
27 Oct 15 |
olle |
868 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
870 |
} |
3561 |
27 Oct 15 |
olle |
871 |
|
3561 |
27 Oct 15 |
olle |
else if (jsonIndexPrimerA501[i] != jsonIndexPrimerA501Orig[i]) |
3561 |
27 Oct 15 |
olle |
873 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
875 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonIndexPrimerA502[i] != jsonIndexPrimerA502Orig[i]) |
3561 |
27 Oct 15 |
olle |
877 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
879 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonIndexPrimerA503[i] != jsonIndexPrimerA503Orig[i]) |
3561 |
27 Oct 15 |
olle |
881 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
883 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonIndexPrimerA504[i] != jsonIndexPrimerA504Orig[i]) |
3561 |
27 Oct 15 |
olle |
885 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
887 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonIndexPrimerA505[i] != jsonIndexPrimerA505Orig[i]) |
3561 |
27 Oct 15 |
olle |
889 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
891 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonIndexPrimerA506[i] != jsonIndexPrimerA506Orig[i]) |
3561 |
27 Oct 15 |
olle |
893 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
895 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonIndexPrimerA507[i] != jsonIndexPrimerA507Orig[i]) |
3561 |
27 Oct 15 |
olle |
897 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
899 |
} |
3561 |
27 Oct 15 |
olle |
else if (jsonIndexPrimerA508[i] != jsonIndexPrimerA508Orig[i]) |
3561 |
27 Oct 15 |
olle |
901 |
{ |
3561 |
27 Oct 15 |
olle |
kitIsModified = true; |
3561 |
27 Oct 15 |
olle |
903 |
} |
3561 |
27 Oct 15 |
olle |
904 |
|
3561 |
27 Oct 15 |
olle |
if (kitIsModified) |
3561 |
27 Oct 15 |
olle |
906 |
{ |
3561 |
27 Oct 15 |
olle |
someKitIsModified = true; |
3561 |
27 Oct 15 |
olle |
// Store data for modified kit |
3561 |
27 Oct 15 |
olle |
909 |
|
3561 |
27 Oct 15 |
olle |
jsonKitNameModified[numKitsModified] = jsonKitName[i]; |
3705 |
19 Jan 16 |
olle |
911 |
|
3705 |
19 Jan 16 |
olle |
jsonRegistrationDateModified[numKitsModified] = jsonRegistrationDate[i]; |
3705 |
19 Jan 16 |
olle |
jsonLastUpdatedDateModified[numKitsModified] = jsonLastUpdatedDate[i]; |
3705 |
19 Jan 16 |
olle |
jsonExpirationDateModified[numKitsModified] = jsonExpirationDate[i]; |
3705 |
19 Jan 16 |
olle |
jsonActiveModified[numKitsModified] = jsonActive[i]; |
3705 |
19 Jan 16 |
olle |
jsonTimesUsedModified[numKitsModified] = jsonTimesUsed[i]; |
3705 |
19 Jan 16 |
olle |
jsonUnusedFpaPlateLocsModified[numKitsModified] = jsonUnusedFpaPlateLocs[i]; |
3705 |
19 Jan 16 |
olle |
jsonCommentModified[numKitsModified] = jsonComment[i]; |
3705 |
19 Jan 16 |
olle |
919 |
|
3561 |
27 Oct 15 |
olle |
jsonLibraryPrepBox1Modified[numKitsModified] = jsonLibraryPrepBox1[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexKitModified[numKitsModified] = jsonIndexKit[i]; |
3561 |
27 Oct 15 |
olle |
jsonContentSetBox3Modified[numKitsModified] = jsonContentSetBox3[i]; |
3561 |
27 Oct 15 |
olle |
jsonOligoPoolA_FPAModified[numKitsModified] = jsonOligoPoolA_FPA[i]; |
3561 |
27 Oct 15 |
olle |
jsonOligoPoolB_FPBModified[numKitsModified] = jsonOligoPoolB_FPB[i]; |
3561 |
27 Oct 15 |
olle |
jsonOligoHybridizationSequencingReagent3Modified[numKitsModified] = jsonOligoHybridizationSequencingReagent3[i]; |
3561 |
27 Oct 15 |
olle |
jsonStringentWash1_SW1Modified[numKitsModified] = jsonStringentWash1_SW1[i]; |
3561 |
27 Oct 15 |
olle |
jsonExtensionLigationMix3Modified[numKitsModified] = jsonExtensionLigationMix3[i]; |
3561 |
27 Oct 15 |
olle |
jsonPcrMasterMix2_PMM2Modified[numKitsModified] = jsonPcrMasterMix2_PMM2[i]; |
3561 |
27 Oct 15 |
olle |
jsonUB1Modified[numKitsModified] = jsonUB1[i]; |
3561 |
27 Oct 15 |
olle |
jsonTDPModified[numKitsModified] = jsonTDP[i]; |
3561 |
27 Oct 15 |
olle |
jsonFilterplateModified[numKitsModified] = jsonFilterplate[i]; |
3561 |
27 Oct 15 |
olle |
932 |
|
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA701Modified[numKitsModified] = jsonIndexPrimerA701[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA702Modified[numKitsModified] = jsonIndexPrimerA702[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA703Modified[numKitsModified] = jsonIndexPrimerA703[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA704Modified[numKitsModified] = jsonIndexPrimerA704[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA705Modified[numKitsModified] = jsonIndexPrimerA705[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA706Modified[numKitsModified] = jsonIndexPrimerA706[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA707Modified[numKitsModified] = jsonIndexPrimerA707[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA708Modified[numKitsModified] = jsonIndexPrimerA708[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA709Modified[numKitsModified] = jsonIndexPrimerA709[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA710Modified[numKitsModified] = jsonIndexPrimerA710[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA711Modified[numKitsModified] = jsonIndexPrimerA711[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA712Modified[numKitsModified] = jsonIndexPrimerA712[i]; |
3561 |
27 Oct 15 |
olle |
945 |
|
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA501Modified[numKitsModified] = jsonIndexPrimerA501[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA502Modified[numKitsModified] = jsonIndexPrimerA502[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA503Modified[numKitsModified] = jsonIndexPrimerA503[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA504Modified[numKitsModified] = jsonIndexPrimerA504[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA505Modified[numKitsModified] = jsonIndexPrimerA505[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA506Modified[numKitsModified] = jsonIndexPrimerA506[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA507Modified[numKitsModified] = jsonIndexPrimerA507[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA508Modified[numKitsModified] = jsonIndexPrimerA508[i]; |
3561 |
27 Oct 15 |
olle |
954 |
|
3561 |
27 Oct 15 |
olle |
numKitsModified++; |
3561 |
27 Oct 15 |
olle |
956 |
} |
3561 |
27 Oct 15 |
olle |
957 |
} |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified = {}; |
3561 |
27 Oct 15 |
olle |
959 |
|
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['Headers'] = jsonHeaders; |
3561 |
27 Oct 15 |
olle |
961 |
|
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['KitName'] = jsonKitNameModified; |
3705 |
19 Jan 16 |
olle |
963 |
|
3705 |
19 Jan 16 |
olle |
jsonConsumablesModified['RegistrationDate'] = jsonRegistrationDateModified; |
3705 |
19 Jan 16 |
olle |
jsonConsumablesModified['LastUpdatedDate'] = jsonLastUpdatedDateModified; |
3705 |
19 Jan 16 |
olle |
jsonConsumablesModified['ExpirationDate'] = jsonExpirationDateModified; |
3705 |
19 Jan 16 |
olle |
jsonConsumablesModified['Active'] = jsonActiveModified; |
3705 |
19 Jan 16 |
olle |
jsonConsumablesModified['TimesUsed'] = jsonTimesUsedModified; |
3705 |
19 Jan 16 |
olle |
jsonConsumablesModified['UnusedFpaPlateLocs'] = jsonUnusedFpaPlateLocsModified; |
3705 |
19 Jan 16 |
olle |
jsonConsumablesModified['Comment'] = jsonCommentModified; |
3705 |
19 Jan 16 |
olle |
971 |
|
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['LibraryPrepBox1'] = jsonLibraryPrepBox1Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['IndexKit'] = jsonIndexKitModified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['ContentSetBox3'] = jsonContentSetBox3Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['OligoPoolA_FPA'] = jsonOligoPoolA_FPAModified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['OligoPoolB_FPB'] = jsonOligoPoolB_FPBModified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['OligoHybridizationSequencingReagent3'] = jsonOligoHybridizationSequencingReagent3Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['StringentWash1_SW1'] = jsonStringentWash1_SW1Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['ExtensionLigationMix3'] = jsonExtensionLigationMix3Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['PcrMasterMix2_PMM2'] = jsonPcrMasterMix2_PMM2Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['UB1'] = jsonUB1Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['TDP'] = jsonTDPModified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['Filterplate'] = jsonFilterplateModified; |
3561 |
27 Oct 15 |
olle |
984 |
|
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['IndexPrimerA701'] = jsonIndexPrimerA701Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['IndexPrimerA702'] = jsonIndexPrimerA702Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['IndexPrimerA703'] = jsonIndexPrimerA703Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['IndexPrimerA704'] = jsonIndexPrimerA704Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['IndexPrimerA705'] = jsonIndexPrimerA705Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['IndexPrimerA706'] = jsonIndexPrimerA706Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['IndexPrimerA707'] = jsonIndexPrimerA707Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['IndexPrimerA708'] = jsonIndexPrimerA708Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['IndexPrimerA709'] = jsonIndexPrimerA709Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['IndexPrimerA710'] = jsonIndexPrimerA710Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['IndexPrimerA711'] = jsonIndexPrimerA711Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['IndexPrimerA712'] = jsonIndexPrimerA712Modified; |
3561 |
27 Oct 15 |
olle |
997 |
|
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['IndexPrimerA501'] = jsonIndexPrimerA501Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['IndexPrimerA502'] = jsonIndexPrimerA502Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['IndexPrimerA503'] = jsonIndexPrimerA503Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['IndexPrimerA504'] = jsonIndexPrimerA504Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['IndexPrimerA505'] = jsonIndexPrimerA505Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['IndexPrimerA506'] = jsonIndexPrimerA506Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['IndexPrimerA507'] = jsonIndexPrimerA507Modified; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesModified['IndexPrimerA508'] = jsonIndexPrimerA508Modified; |
3561 |
27 Oct 15 |
olle |
1006 |
|
3561 |
27 Oct 15 |
olle |
var buttons = Doc.element('detailsSection').getElementsByClassName('edit-details'); |
3705 |
19 Jan 16 |
olle |
// Add tool tips and click handlers to edit buttons (two buttons per table row) |
3561 |
27 Oct 15 |
olle |
for (var i = 0; i < buttons.length; i++) |
3561 |
27 Oct 15 |
olle |
1010 |
{ |
3705 |
19 Jan 16 |
olle |
// Add tool tip with kit name to button at end of table row |
3705 |
19 Jan 16 |
olle |
var kitName = jsonKitName[Math.floor(i/2)]; |
3705 |
19 Jan 16 |
olle |
var buttonTooltip = kitName; |
3705 |
19 Jan 16 |
olle |
if (i%2 == 0) |
3705 |
19 Jan 16 |
olle |
1015 |
{ |
3705 |
19 Jan 16 |
olle |
buttonTooltip = ''; |
3705 |
19 Jan 16 |
olle |
1017 |
} |
3653 |
08 Dec 15 |
olle |
var tooltip = []; |
3705 |
19 Jan 16 |
olle |
tooltip[tooltip.length] = buttonTooltip; |
3653 |
08 Dec 15 |
olle |
buttons[i].title = tooltip.join('\n'); |
3653 |
08 Dec 15 |
olle |
// Add click handler to button |
3561 |
27 Oct 15 |
olle |
Buttons.addClickHandler(buttons[i], exreg.editLibPrepKitDetails); |
3561 |
27 Oct 15 |
olle |
1023 |
} |
3561 |
27 Oct 15 |
olle |
1024 |
|
3561 |
27 Oct 15 |
olle |
Wizard.setCurrentStep(2); |
3561 |
27 Oct 15 |
olle |
Doc.show('gocancel'); |
3561 |
27 Oct 15 |
olle |
Doc.show('gocreate'); |
3561 |
27 Oct 15 |
olle |
// Disable "Register" button if no data has been changed |
3561 |
27 Oct 15 |
olle |
if (!someKitIsModified) |
3561 |
27 Oct 15 |
olle |
1030 |
{ |
3561 |
27 Oct 15 |
olle |
Doc.addClass('goregister', 'disabled'); |
3561 |
27 Oct 15 |
olle |
1032 |
} |
3561 |
27 Oct 15 |
olle |
else |
3561 |
27 Oct 15 |
olle |
1034 |
{ |
3561 |
27 Oct 15 |
olle |
Doc.removeClass('goregister', 'disabled'); |
3561 |
27 Oct 15 |
olle |
1036 |
} |
3561 |
27 Oct 15 |
olle |
Doc.show('goregister'); |
3561 |
27 Oct 15 |
olle |
1038 |
|
3561 |
27 Oct 15 |
olle |
Wizard.keepSessionAlive(); |
3561 |
27 Oct 15 |
olle |
1040 |
} |
3561 |
27 Oct 15 |
olle |
1041 |
|
3561 |
27 Oct 15 |
olle |
exreg.fetchJsonConsumables = function() |
3561 |
27 Oct 15 |
olle |
1043 |
{ |
3561 |
27 Oct 15 |
olle |
return jsonConsumables; |
3561 |
27 Oct 15 |
olle |
1045 |
} |
3561 |
27 Oct 15 |
olle |
1046 |
|
3561 |
27 Oct 15 |
olle |
exreg.copyJsonConsumables = function(jsonConsumablesSrc) |
3561 |
27 Oct 15 |
olle |
1048 |
{ |
3561 |
27 Oct 15 |
olle |
// Get JSONArrays with data for kits |
3561 |
27 Oct 15 |
olle |
1050 |
|
3561 |
27 Oct 15 |
olle |
var jsonHeaders = jsonConsumablesSrc['Headers']; |
3561 |
27 Oct 15 |
olle |
1052 |
|
3561 |
27 Oct 15 |
olle |
var jsonKitName = jsonConsumablesSrc['KitName']; |
3561 |
27 Oct 15 |
olle |
var jsonLibraryPrepBox1 = jsonConsumablesSrc['LibraryPrepBox1']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexKit = jsonConsumablesSrc['IndexKit']; |
3561 |
27 Oct 15 |
olle |
var jsonContentSetBox3 = jsonConsumablesSrc['ContentSetBox3']; |
3561 |
27 Oct 15 |
olle |
var jsonOligoPoolA_FPA = jsonConsumablesSrc['OligoPoolA_FPA']; |
3561 |
27 Oct 15 |
olle |
var jsonOligoPoolB_FPB = jsonConsumablesSrc['OligoPoolB_FPB']; |
3561 |
27 Oct 15 |
olle |
var jsonOligoHybridizationSequencingReagent3 = jsonConsumablesSrc['OligoHybridizationSequencingReagent3']; |
3561 |
27 Oct 15 |
olle |
var jsonStringentWash1_SW1 = jsonConsumablesSrc['StringentWash1_SW1']; |
3561 |
27 Oct 15 |
olle |
var jsonExtensionLigationMix3 = jsonConsumablesSrc['ExtensionLigationMix3']; |
3561 |
27 Oct 15 |
olle |
var jsonPcrMasterMix2_PMM2 = jsonConsumablesSrc['PcrMasterMix2_PMM2']; |
3561 |
27 Oct 15 |
olle |
var jsonUB1 = jsonConsumablesSrc['UB1']; |
3561 |
27 Oct 15 |
olle |
var jsonTDP = jsonConsumablesSrc['TDP']; |
3561 |
27 Oct 15 |
olle |
var jsonFilterplate = jsonConsumablesSrc['Filterplate']; |
3561 |
27 Oct 15 |
olle |
1066 |
|
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA701 = jsonConsumablesSrc['IndexPrimerA701']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA702 = jsonConsumablesSrc['IndexPrimerA702']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA703 = jsonConsumablesSrc['IndexPrimerA703']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA704 = jsonConsumablesSrc['IndexPrimerA704']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA705 = jsonConsumablesSrc['IndexPrimerA705']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA706 = jsonConsumablesSrc['IndexPrimerA706']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA707 = jsonConsumablesSrc['IndexPrimerA707']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA708 = jsonConsumablesSrc['IndexPrimerA708']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA709 = jsonConsumablesSrc['IndexPrimerA709']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA710 = jsonConsumablesSrc['IndexPrimerA710']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA711 = jsonConsumablesSrc['IndexPrimerA711']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA712 = jsonConsumablesSrc['IndexPrimerA712']; |
3561 |
27 Oct 15 |
olle |
1079 |
|
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA501 = jsonConsumablesSrc['IndexPrimerA501']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA502 = jsonConsumablesSrc['IndexPrimerA502']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA503 = jsonConsumablesSrc['IndexPrimerA503']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA504 = jsonConsumablesSrc['IndexPrimerA504']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA505 = jsonConsumablesSrc['IndexPrimerA505']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA506 = jsonConsumablesSrc['IndexPrimerA506']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA507 = jsonConsumablesSrc['IndexPrimerA507']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA508 = jsonConsumablesSrc['IndexPrimerA508']; |
3561 |
27 Oct 15 |
olle |
1088 |
|
3561 |
27 Oct 15 |
olle |
var jsonRegistrationDate = jsonConsumablesSrc['RegistrationDate']; |
3561 |
27 Oct 15 |
olle |
var jsonLastUpdatedDate = jsonConsumablesSrc['LastUpdatedDate']; |
3561 |
27 Oct 15 |
olle |
var jsonExpirationDate = jsonConsumablesSrc['ExpirationDate']; |
3610 |
20 Nov 15 |
olle |
var jsonActive = jsonConsumablesSrc['Active']; |
3561 |
27 Oct 15 |
olle |
var jsonTimesUsed = jsonConsumablesSrc['TimesUsed']; |
3561 |
27 Oct 15 |
olle |
var jsonUnusedFpaPlateLocs = jsonConsumablesSrc['UnusedFpaPlateLocs']; |
3561 |
27 Oct 15 |
olle |
var jsonComment = jsonConsumablesSrc['Comment']; |
3561 |
27 Oct 15 |
olle |
1096 |
|
3561 |
27 Oct 15 |
olle |
// Create new JSONArrays for copy |
3561 |
27 Oct 15 |
olle |
1098 |
|
3561 |
27 Oct 15 |
olle |
var jsonHeadersCopy = []; |
3561 |
27 Oct 15 |
olle |
1100 |
|
3561 |
27 Oct 15 |
olle |
var jsonKitNameCopy = []; |
3561 |
27 Oct 15 |
olle |
var jsonLibraryPrepBox1Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexKitCopy = []; |
3561 |
27 Oct 15 |
olle |
var jsonContentSetBox3Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonOligoPoolA_FPACopy = []; |
3561 |
27 Oct 15 |
olle |
var jsonOligoPoolB_FPBCopy = []; |
3561 |
27 Oct 15 |
olle |
var jsonOligoHybridizationSequencingReagent3Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonStringentWash1_SW1Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonExtensionLigationMix3Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonPcrMasterMix2_PMM2Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonUB1Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonTDPCopy = []; |
3561 |
27 Oct 15 |
olle |
var jsonFilterplateCopy = []; |
3561 |
27 Oct 15 |
olle |
1114 |
|
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA701Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA702Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA703Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA704Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA705Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA706Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA707Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA708Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA709Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA710Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA711Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA712Copy = []; |
3561 |
27 Oct 15 |
olle |
1127 |
|
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA501Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA502Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA503Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA504Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA505Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA506Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA507Copy = []; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA508Copy = []; |
3561 |
27 Oct 15 |
olle |
1136 |
|
3561 |
27 Oct 15 |
olle |
var jsonRegistrationDateCopy = []; |
3561 |
27 Oct 15 |
olle |
var jsonLastUpdatedDateCopy = []; |
3561 |
27 Oct 15 |
olle |
var jsonExpirationDateCopy = []; |
3610 |
20 Nov 15 |
olle |
var jsonActiveCopy = []; |
3561 |
27 Oct 15 |
olle |
var jsonTimesUsedCopy = []; |
3561 |
27 Oct 15 |
olle |
var jsonUnusedFpaPlateLocsCopy = []; |
3561 |
27 Oct 15 |
olle |
var jsonCommentCopy = []; |
3561 |
27 Oct 15 |
olle |
1144 |
|
3561 |
27 Oct 15 |
olle |
// Fill new JSONArrays with data from source |
3561 |
27 Oct 15 |
olle |
var numItems = jsonKitName.length; |
3561 |
27 Oct 15 |
olle |
1147 |
|
3561 |
27 Oct 15 |
olle |
for (var i = 0; i < numItems; i++) |
3561 |
27 Oct 15 |
olle |
1149 |
{ |
3561 |
27 Oct 15 |
olle |
jsonKitNameCopy[i] = jsonKitName[i]; |
3561 |
27 Oct 15 |
olle |
jsonLibraryPrepBox1Copy[i] = jsonLibraryPrepBox1[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexKitCopy[i] = jsonIndexKit[i]; |
3561 |
27 Oct 15 |
olle |
jsonContentSetBox3Copy[i] = jsonContentSetBox3[i]; |
3561 |
27 Oct 15 |
olle |
jsonOligoPoolA_FPACopy[i] = jsonOligoPoolA_FPA[i]; |
3561 |
27 Oct 15 |
olle |
jsonOligoPoolB_FPBCopy[i] = jsonOligoPoolB_FPB[i]; |
3561 |
27 Oct 15 |
olle |
jsonOligoHybridizationSequencingReagent3Copy[i] = jsonOligoHybridizationSequencingReagent3[i]; |
3561 |
27 Oct 15 |
olle |
jsonStringentWash1_SW1Copy[i] = jsonStringentWash1_SW1[i]; |
3561 |
27 Oct 15 |
olle |
jsonExtensionLigationMix3Copy[i] = jsonExtensionLigationMix3[i]; |
3561 |
27 Oct 15 |
olle |
jsonPcrMasterMix2_PMM2Copy[i] = jsonPcrMasterMix2_PMM2[i]; |
3561 |
27 Oct 15 |
olle |
jsonUB1Copy[i] = jsonUB1[i]; |
3561 |
27 Oct 15 |
olle |
jsonTDPCopy[i] = jsonTDP[i]; |
3561 |
27 Oct 15 |
olle |
jsonFilterplateCopy[i] = jsonFilterplate[i]; |
3561 |
27 Oct 15 |
olle |
1163 |
|
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA701Copy[i] = jsonIndexPrimerA701[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA702Copy[i] = jsonIndexPrimerA702[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA703Copy[i] = jsonIndexPrimerA703[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA704Copy[i] = jsonIndexPrimerA704[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA705Copy[i] = jsonIndexPrimerA705[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA706Copy[i] = jsonIndexPrimerA706[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA707Copy[i] = jsonIndexPrimerA707[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA708Copy[i] = jsonIndexPrimerA708[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA709Copy[i] = jsonIndexPrimerA709[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA710Copy[i] = jsonIndexPrimerA710[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA711Copy[i] = jsonIndexPrimerA711[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA712Copy[i] = jsonIndexPrimerA712[i]; |
3561 |
27 Oct 15 |
olle |
1176 |
|
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA501Copy[i] = jsonIndexPrimerA501[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA502Copy[i] = jsonIndexPrimerA502[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA503Copy[i] = jsonIndexPrimerA503[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA504Copy[i] = jsonIndexPrimerA504[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA505Copy[i] = jsonIndexPrimerA505[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA506Copy[i] = jsonIndexPrimerA506[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA507Copy[i] = jsonIndexPrimerA507[i]; |
3561 |
27 Oct 15 |
olle |
jsonIndexPrimerA508Copy[i] = jsonIndexPrimerA508[i]; |
3561 |
27 Oct 15 |
olle |
1185 |
|
3561 |
27 Oct 15 |
olle |
jsonRegistrationDateCopy[i] = jsonRegistrationDate[i]; |
3561 |
27 Oct 15 |
olle |
jsonLastUpdatedDateCopy[i] = jsonLastUpdatedDate[i]; |
3561 |
27 Oct 15 |
olle |
jsonExpirationDateCopy[i] = jsonExpirationDate[i]; |
3610 |
20 Nov 15 |
olle |
jsonActiveCopy[i] = jsonActive[i]; |
3561 |
27 Oct 15 |
olle |
jsonTimesUsedCopy[i] = jsonTimesUsed[i]; |
3561 |
27 Oct 15 |
olle |
jsonUnusedFpaPlateLocsCopy[i] = jsonUnusedFpaPlateLocs[i]; |
3561 |
27 Oct 15 |
olle |
jsonCommentCopy[i] = jsonComment[i]; |
3561 |
27 Oct 15 |
olle |
1193 |
} |
3561 |
27 Oct 15 |
olle |
1194 |
|
3561 |
27 Oct 15 |
olle |
// Create new JSONObject for copy |
3561 |
27 Oct 15 |
olle |
1196 |
|
3561 |
27 Oct 15 |
olle |
var jsonConsumablesCopy = {}; |
3561 |
27 Oct 15 |
olle |
1198 |
|
3561 |
27 Oct 15 |
olle |
// Fill new JSONObject with data from source |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['KitName'] = jsonKitNameCopy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['LibraryPrepBox1'] = jsonLibraryPrepBox1Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['IndexKit'] = jsonIndexKitCopy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['ContentSetBox3'] = jsonContentSetBox3Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['OligoPoolA_FPA'] = jsonOligoPoolA_FPACopy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['OligoPoolB_FPB'] = jsonOligoPoolB_FPBCopy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['OligoHybridizationSequencingReagent3'] = jsonOligoHybridizationSequencingReagent3Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['StringentWash1_SW1'] = jsonStringentWash1_SW1Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['ExtensionLigationMix3'] = jsonExtensionLigationMix3Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['PcrMasterMix2_PMM2'] = jsonPcrMasterMix2_PMM2Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['UB1'] = jsonUB1Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['TDP'] = jsonTDPCopy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['Filterplate'] = jsonFilterplateCopy; |
3561 |
27 Oct 15 |
olle |
1213 |
|
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['IndexPrimerA701'] = jsonIndexPrimerA701Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['IndexPrimerA702'] = jsonIndexPrimerA702Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['IndexPrimerA703'] = jsonIndexPrimerA703Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['IndexPrimerA704'] = jsonIndexPrimerA704Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['IndexPrimerA705'] = jsonIndexPrimerA705Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['IndexPrimerA706'] = jsonIndexPrimerA706Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['IndexPrimerA707'] = jsonIndexPrimerA707Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['IndexPrimerA708'] = jsonIndexPrimerA708Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['IndexPrimerA709'] = jsonIndexPrimerA709Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['IndexPrimerA710'] = jsonIndexPrimerA710Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['IndexPrimerA711'] = jsonIndexPrimerA711Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['IndexPrimerA712'] = jsonIndexPrimerA712Copy; |
3561 |
27 Oct 15 |
olle |
1226 |
|
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['IndexPrimerA501'] = jsonIndexPrimerA501Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['IndexPrimerA502'] = jsonIndexPrimerA502Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['IndexPrimerA503'] = jsonIndexPrimerA503Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['IndexPrimerA504'] = jsonIndexPrimerA504Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['IndexPrimerA505'] = jsonIndexPrimerA505Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['IndexPrimerA506'] = jsonIndexPrimerA506Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['IndexPrimerA507'] = jsonIndexPrimerA507Copy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['IndexPrimerA508'] = jsonIndexPrimerA508Copy; |
3561 |
27 Oct 15 |
olle |
1235 |
|
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['RegistrationDate'] = jsonRegistrationDateCopy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['LastUpdatedDate'] = jsonLastUpdatedDateCopy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['ExpirationDate'] = jsonExpirationDateCopy; |
3610 |
20 Nov 15 |
olle |
jsonConsumablesCopy['Active'] = jsonActiveCopy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['TimesUsed'] = jsonTimesUsedCopy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['UnusedFpaPlateLocs'] = jsonUnusedFpaPlateLocsCopy; |
3561 |
27 Oct 15 |
olle |
jsonConsumablesCopy['Comment'] = jsonCommentCopy; |
3561 |
27 Oct 15 |
olle |
1243 |
|
3561 |
27 Oct 15 |
olle |
return jsonConsumablesCopy; |
3561 |
27 Oct 15 |
olle |
1245 |
} |
3561 |
27 Oct 15 |
olle |
1246 |
|
3561 |
27 Oct 15 |
olle |
exreg.libPrepKitDataToJsonArray = function() |
3561 |
27 Oct 15 |
olle |
1248 |
{ |
3561 |
27 Oct 15 |
olle |
// Reset JSONArray |
3561 |
27 Oct 15 |
olle |
jsonKitArray = []; |
3561 |
27 Oct 15 |
olle |
1251 |
|
3561 |
27 Oct 15 |
olle |
// Get JSONArrays with data for kits |
3561 |
27 Oct 15 |
olle |
// One kit component a time, e.g. 'jsonKitName' is a JSONArray with kit names |
3561 |
27 Oct 15 |
olle |
1254 |
|
3561 |
27 Oct 15 |
olle |
var jsonHeaders = jsonConsumables['Headers']; |
3561 |
27 Oct 15 |
olle |
1256 |
|
3561 |
27 Oct 15 |
olle |
var jsonKitName = jsonConsumables['KitName']; |
3561 |
27 Oct 15 |
olle |
var jsonLibraryPrepBox1 = jsonConsumables['LibraryPrepBox1']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexKit = jsonConsumables['IndexKit']; |
3561 |
27 Oct 15 |
olle |
var jsonContentSetBox3 = jsonConsumables['ContentSetBox3']; |
3561 |
27 Oct 15 |
olle |
var jsonOligoPoolA_FPA = jsonConsumables['OligoPoolA_FPA']; |
3561 |
27 Oct 15 |
olle |
var jsonOligoPoolB_FPB = jsonConsumables['OligoPoolB_FPB']; |
3561 |
27 Oct 15 |
olle |
var jsonOligoHybridizationSequencingReagent3 = jsonConsumables['OligoHybridizationSequencingReagent3']; |
3561 |
27 Oct 15 |
olle |
var jsonStringentWash1_SW1 = jsonConsumables['StringentWash1_SW1']; |
3561 |
27 Oct 15 |
olle |
var jsonExtensionLigationMix3 = jsonConsumables['ExtensionLigationMix3']; |
3561 |
27 Oct 15 |
olle |
var jsonPcrMasterMix2_PMM2 = jsonConsumables['PcrMasterMix2_PMM2']; |
3561 |
27 Oct 15 |
olle |
var jsonUB1 = jsonConsumables['UB1']; |
3561 |
27 Oct 15 |
olle |
var jsonTDP = jsonConsumables['TDP']; |
3561 |
27 Oct 15 |
olle |
var jsonFilterplate = jsonConsumables['Filterplate']; |
3561 |
27 Oct 15 |
olle |
1270 |
|
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA701 = jsonConsumables['IndexPrimerA701']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA702 = jsonConsumables['IndexPrimerA702']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA703 = jsonConsumables['IndexPrimerA703']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA704 = jsonConsumables['IndexPrimerA704']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA705 = jsonConsumables['IndexPrimerA705']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA706 = jsonConsumables['IndexPrimerA706']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA707 = jsonConsumables['IndexPrimerA707']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA708 = jsonConsumables['IndexPrimerA708']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA709 = jsonConsumables['IndexPrimerA709']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA710 = jsonConsumables['IndexPrimerA710']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA711 = jsonConsumables['IndexPrimerA711']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA712 = jsonConsumables['IndexPrimerA712']; |
3561 |
27 Oct 15 |
olle |
1283 |
|
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA501 = jsonConsumables['IndexPrimerA501']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA502 = jsonConsumables['IndexPrimerA502']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA503 = jsonConsumables['IndexPrimerA503']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA504 = jsonConsumables['IndexPrimerA504']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA505 = jsonConsumables['IndexPrimerA505']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA506 = jsonConsumables['IndexPrimerA506']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA507 = jsonConsumables['IndexPrimerA507']; |
3561 |
27 Oct 15 |
olle |
var jsonIndexPrimerA508 = jsonConsumables['IndexPrimerA508']; |
3561 |
27 Oct 15 |
olle |
1292 |
|
3561 |
27 Oct 15 |
olle |
var jsonRegistrationDate = jsonConsumables['RegistrationDate']; |
3561 |
27 Oct 15 |
olle |
var jsonLastUpdatedDate = jsonConsumables['LastUpdatedDate']; |
3561 |
27 Oct 15 |
olle |
var jsonExpirationDate = jsonConsumables['ExpirationDate']; |
3610 |
20 Nov 15 |
olle |
var jsonActive = jsonConsumables['Active']; |
3561 |
27 Oct 15 |
olle |
var jsonTimesUsed = jsonConsumables['TimesUsed']; |
3561 |
27 Oct 15 |
olle |
var jsonUnusedFpaPlateLocs = jsonConsumables['UnusedFpaPlateLocs']; |
3561 |
27 Oct 15 |
olle |
var jsonComment = jsonConsumables['Comment']; |
3561 |
27 Oct 15 |
olle |
1300 |
|
3561 |
27 Oct 15 |
olle |
// Get JSONArrays with data for kits |
3561 |
27 Oct 15 |
olle |
// One kit a time, e.g. 'jsonKitArray' is a JSONArray with one JSONObject for each kit |
3561 |
27 Oct 15 |
olle |
1303 |
|
3561 |
27 Oct 15 |
olle |
var numItems = jsonKitName.length; |
3561 |
27 Oct 15 |
olle |
1305 |
|
3561 |
27 Oct 15 |
olle |
for (var i = 0; i < numItems; i++) |
3561 |
27 Oct 15 |
olle |
1307 |
{ |
3561 |
27 Oct 15 |
olle |
// Store data for kit number 'i' in JSONObject 'jsonKit' |
3561 |
27 Oct 15 |
olle |
var jsonKit = {}; |
3561 |
27 Oct 15 |
olle |
1310 |
|
3561 |
27 Oct 15 |
olle |
jsonKit['KitName'] = jsonKitName[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['LibraryPrepBox1'] = jsonLibraryPrepBox1[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['IndexKit'] = jsonIndexKit[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['ContentSetBox3'] = jsonContentSetBox3[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['OligoPoolA_FPA'] = jsonOligoPoolA_FPA[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['OligoPoolB_FPB'] = jsonOligoPoolB_FPB[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['OligoHybridizationSequencingReagent3'] = jsonOligoHybridizationSequencingReagent3[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['StringentWash1_SW1'] = jsonStringentWash1_SW1[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['ExtensionLigationMix3'] = jsonExtensionLigationMix3[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['PcrMasterMix2_PMM2'] = jsonPcrMasterMix2_PMM2[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['UB1'] = jsonUB1[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['TDP'] = jsonTDP[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['Filterplate'] = jsonFilterplate[i]; |
3561 |
27 Oct 15 |
olle |
1324 |
|
3561 |
27 Oct 15 |
olle |
jsonKit['IndexPrimerA701'] = jsonIndexPrimerA701[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['IndexPrimerA702'] = jsonIndexPrimerA702[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['IndexPrimerA703'] = jsonIndexPrimerA703[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['IndexPrimerA704'] = jsonIndexPrimerA704[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['IndexPrimerA705'] = jsonIndexPrimerA705[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['IndexPrimerA706'] = jsonIndexPrimerA706[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['IndexPrimerA707'] = jsonIndexPrimerA707[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['IndexPrimerA708'] = jsonIndexPrimerA708[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['IndexPrimerA709'] = jsonIndexPrimerA709[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['IndexPrimerA710'] = jsonIndexPrimerA710[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['IndexPrimerA711'] = jsonIndexPrimerA711[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['IndexPrimerA712'] = jsonIndexPrimerA712[i]; |
3561 |
27 Oct 15 |
olle |
1337 |
|
3561 |
27 Oct 15 |
olle |
jsonKit['IndexPrimerA501'] = jsonIndexPrimerA501[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['IndexPrimerA502'] = jsonIndexPrimerA502[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['IndexPrimerA503'] = jsonIndexPrimerA503[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['IndexPrimerA504'] = jsonIndexPrimerA504[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['IndexPrimerA505'] = jsonIndexPrimerA505[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['IndexPrimerA506'] = jsonIndexPrimerA506[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['IndexPrimerA507'] = jsonIndexPrimerA507[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['IndexPrimerA508'] = jsonIndexPrimerA508[i]; |
3561 |
27 Oct 15 |
olle |
1346 |
|
3561 |
27 Oct 15 |
olle |
jsonKit['RegistrationDate'] = jsonRegistrationDate[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['LastUpdatedDate'] = jsonLastUpdatedDate[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['ExpirationDate'] = jsonExpirationDate[i]; |
3610 |
20 Nov 15 |
olle |
jsonKit['Active'] = jsonActive[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['TimesUsed'] = jsonTimesUsed[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['UnusedFpaPlateLocs'] = jsonUnusedFpaPlateLocs[i]; |
3561 |
27 Oct 15 |
olle |
jsonKit['Comment'] = jsonComment[i]; |
3561 |
27 Oct 15 |
olle |
1354 |
|
3561 |
27 Oct 15 |
olle |
// Add JSONObject 'jsonKit' with data for kit number 'i' to JSONArray 'jsonKitArray' |
3561 |
27 Oct 15 |
olle |
jsonKitArray[i] = jsonKit; |
3561 |
27 Oct 15 |
olle |
1357 |
} |
3561 |
27 Oct 15 |
olle |
1358 |
} |
3561 |
27 Oct 15 |
olle |
1359 |
|
3561 |
27 Oct 15 |
olle |
exreg.editLibPrepKitDetails = function(event) |
3561 |
27 Oct 15 |
olle |
1361 |
{ |
3561 |
27 Oct 15 |
olle |
// 'index' is row value in table, starting with 0 |
3561 |
27 Oct 15 |
olle |
var index = Data.get(event.currentTarget, 'index'); |
3561 |
27 Oct 15 |
olle |
var frm = document.forms['meludi']; |
3561 |
27 Oct 15 |
olle |
var jsonKitName = jsonConsumables['KitName']; |
3561 |
27 Oct 15 |
olle |
var kitName = jsonKitName[index]; |
4206 |
04 Nov 16 |
olle |
// Call LibPrepServlet to get plate info for selected kit |
4206 |
04 Nov 16 |
olle |
var url = '../LibPrep.servlet?ID='+App.getSessionId(); |
4206 |
04 Nov 16 |
olle |
url += '&cmd=GetLibPrepKitAsPlate'; |
4206 |
04 Nov 16 |
olle |
url += '&index=' + index; |
4206 |
04 Nov 16 |
olle |
url += '&libPrepKitName=' + encodeURIComponent(kitName); |
4206 |
04 Nov 16 |
olle |
1372 |
|
4206 |
04 Nov 16 |
olle |
Wizard.showLoadingAnimation('Loading information about kit...'); |
4206 |
04 Nov 16 |
olle |
Wizard.asyncJsonRequest(url, exreg.kitPlateInfoLoaded); |
4206 |
04 Nov 16 |
olle |
1375 |
} |
4206 |
04 Nov 16 |
olle |
1376 |
|
4206 |
04 Nov 16 |
olle |
exreg.kitPlateInfoLoaded = function(response) |
4206 |
04 Nov 16 |
olle |
1378 |
{ |
4206 |
04 Nov 16 |
olle |
// Store plate info for selected kit for later use by pop-up dialog |
4206 |
04 Nov 16 |
olle |
kitPlateInfo = response.plate; |
4206 |
04 Nov 16 |
olle |
// Get row index value from response |
4206 |
04 Nov 16 |
olle |
var index = response.index; |
4206 |
04 Nov 16 |
olle |
1383 |
|
4206 |
04 Nov 16 |
olle |
// Continue with opening dialog pop-up window |
4206 |
04 Nov 16 |
olle |
var frm = document.forms['meludi']; |
4206 |
04 Nov 16 |
olle |
var jsonKitName = jsonConsumables['KitName']; |
4206 |
04 Nov 16 |
olle |
var kitName = jsonKitName[index]; |
3561 |
27 Oct 15 |
olle |
var url = 'edit_libprep_kit_details.jsp?ID='+App.getSessionId(); |
3561 |
27 Oct 15 |
olle |
url += '&index='+index; |
3561 |
27 Oct 15 |
olle |
//url += '&mode=' + 'LibPrepKitEdit'; |
3561 |
27 Oct 15 |
olle |
url += '&kitname=' + kitName; |
3561 |
27 Oct 15 |
olle |
Dialogs.openPopup(url, 'EditLibPrepKitDetails'+index, 750, 500); |
3561 |
27 Oct 15 |
olle |
1393 |
} |
3561 |
27 Oct 15 |
olle |
1394 |
|
4206 |
04 Nov 16 |
olle |
exreg.fetchKitPlateInfo = function() |
4206 |
04 Nov 16 |
olle |
1396 |
{ |
4206 |
04 Nov 16 |
olle |
return kitPlateInfo; |
4206 |
04 Nov 16 |
olle |
1398 |
} |
4206 |
04 Nov 16 |
olle |
1399 |
|
3561 |
27 Oct 15 |
olle |
exreg.downloadLibPrepKitDataFile = function() |
3561 |
27 Oct 15 |
olle |
1401 |
{ |
3561 |
27 Oct 15 |
olle |
var frm = document.forms['meludi']; |
3561 |
27 Oct 15 |
olle |
var kitFilterValue = frm.libPrepKitFilter.value; |
3561 |
27 Oct 15 |
olle |
var kitFilterName = exreg.fetchLibPrepFilterName(kitFilterValue); |
3561 |
27 Oct 15 |
olle |
var numItemsFiltered = jsonConsumables['numItemsFiltered']; |
3561 |
27 Oct 15 |
olle |
var numItemsTot = jsonConsumables['numItemsTot']; |
3561 |
27 Oct 15 |
olle |
var reagentInfo = {}; |
3561 |
27 Oct 15 |
olle |
1408 |
|
3561 |
27 Oct 15 |
olle |
var url = '../LibPrep.servlet?ID='+App.getSessionId(); |
3561 |
27 Oct 15 |
olle |
url += '&cmd=PrepareDownloadLibPrepKitDataFile'; |
3561 |
27 Oct 15 |
olle |
url += '&kitFilter='+encodeURIComponent(kitFilterValue); |
3561 |
27 Oct 15 |
olle |
url += '&kitFilterName='+encodeURIComponent(kitFilterName); |
3561 |
27 Oct 15 |
olle |
url += '&numItemsFiltered='+encodeURIComponent(numItemsFiltered); |
3561 |
27 Oct 15 |
olle |
url += '&numItemsTot='+encodeURIComponent(numItemsTot); |
3561 |
27 Oct 15 |
olle |
1415 |
|
3561 |
27 Oct 15 |
olle |
// Reagents |
3561 |
27 Oct 15 |
olle |
reagentInfo = jsonConsumables; |
3561 |
27 Oct 15 |
olle |
1418 |
|
3561 |
27 Oct 15 |
olle |
// POST |
3561 |
27 Oct 15 |
olle |
Wizard.showLoadingAnimation('Performing registration...'); |
3561 |
27 Oct 15 |
olle |
Wizard.asyncJsonRequest(url, exreg.downloadLibPrepKitDataFileResults, 'POST', JSON.stringify(reagentInfo)); |
3561 |
27 Oct 15 |
olle |
1422 |
} |
3561 |
27 Oct 15 |
olle |
1423 |
|
3561 |
27 Oct 15 |
olle |
exreg.downloadLibPrepKitDataFileResults = function(response) |
3561 |
27 Oct 15 |
olle |
1425 |
{ |
3561 |
27 Oct 15 |
olle |
var tmpFilePath = response; |
3561 |
27 Oct 15 |
olle |
var frm = document.forms['meludi']; |
3561 |
27 Oct 15 |
olle |
var kitFilterValue = frm.libPrepKitFilter.value; |
3561 |
27 Oct 15 |
olle |
1429 |
|
3561 |
27 Oct 15 |
olle |
var url = '../LibPrep.servlet?ID='+App.getSessionId(); |
3561 |
27 Oct 15 |
olle |
url += '&cmd=DownloadLibPrepKitDataFile'; |
3561 |
27 Oct 15 |
olle |
url += '&kitFilterValue='+encodeURIComponent(kitFilterValue); |
3561 |
27 Oct 15 |
olle |
url += '&tmpFilePath='+encodeURIComponent(tmpFilePath); |
3561 |
27 Oct 15 |
olle |
window.open(url); |
3561 |
27 Oct 15 |
olle |
1435 |
} |
3561 |
27 Oct 15 |
olle |
1436 |
|
3561 |
27 Oct 15 |
olle |
exreg.validateStep2 = function(event) |
3561 |
27 Oct 15 |
olle |
1438 |
{ |
3561 |
27 Oct 15 |
olle |
var valid = true; |
3561 |
27 Oct 15 |
olle |
valid &= consumablesFileIsValid; |
3561 |
27 Oct 15 |
olle |
1441 |
|
3561 |
27 Oct 15 |
olle |
//alert("exreg.validateStep2(): valid = " + valid); |
3561 |
27 Oct 15 |
olle |
if (!valid) event.preventDefault(); |
3561 |
27 Oct 15 |
olle |
1444 |
} |
3561 |
27 Oct 15 |
olle |
1445 |
|
3561 |
27 Oct 15 |
olle |
exreg.submit = function() |
3561 |
27 Oct 15 |
olle |
1447 |
{ |
3561 |
27 Oct 15 |
olle |
var frm = document.forms['meludi']; |
3561 |
27 Oct 15 |
olle |
1449 |
|
3561 |
27 Oct 15 |
olle |
var submitInfo = {}; |
3561 |
27 Oct 15 |
olle |
submitInfo = jsonConsumablesModified; |
3561 |
27 Oct 15 |
olle |
1452 |
|
3561 |
27 Oct 15 |
olle |
// Library preparation reagent file |
3561 |
27 Oct 15 |
olle |
1454 |
/* |
3561 |
27 Oct 15 |
olle |
submitInfo.referenceName = frm.consumablesFile.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.expirationDate = frm.expirationDate.value; |
3561 |
27 Oct 15 |
olle |
1457 |
*/ |
3561 |
27 Oct 15 |
olle |
1458 |
|
3561 |
27 Oct 15 |
olle |
var url = '../LibPrep.servlet?ID='+App.getSessionId(); |
3627 |
26 Nov 15 |
olle |
url += '&cmd=RegisterKits'; |
3561 |
27 Oct 15 |
olle |
url += '&overwrite=true'; |
3561 |
27 Oct 15 |
olle |
Wizard.showLoadingAnimation('Performing registration...'); |
3561 |
27 Oct 15 |
olle |
Wizard.asyncJsonRequest(url, exreg.submissionResults, 'POST', JSON.stringify(submitInfo)); |
3561 |
27 Oct 15 |
olle |
1464 |
} |
3561 |
27 Oct 15 |
olle |
1465 |
|
3561 |
27 Oct 15 |
olle |
exreg.submissionResults = function(response) |
3561 |
27 Oct 15 |
olle |
1467 |
{ |
3561 |
27 Oct 15 |
olle |
Wizard.showFinalMessage(response.messages); |
3561 |
27 Oct 15 |
olle |
Doc.show('gorestart'); |
3561 |
27 Oct 15 |
olle |
1470 |
/* |
3561 |
27 Oct 15 |
olle |
Doc.show('gocreate'); |
3561 |
27 Oct 15 |
olle |
1472 |
*/ |
3561 |
27 Oct 15 |
olle |
1473 |
} |
3561 |
27 Oct 15 |
olle |
1474 |
|
3561 |
27 Oct 15 |
olle |
exreg.createProtocol = function() |
3561 |
27 Oct 15 |
olle |
1476 |
{ |
3561 |
27 Oct 15 |
olle |
var frm = document.forms['meludi']; |
3561 |
27 Oct 15 |
olle |
var submitInfo = {}; |
3561 |
27 Oct 15 |
olle |
submitInfo.items = []; |
3561 |
27 Oct 15 |
olle |
1480 |
|
3561 |
27 Oct 15 |
olle |
submitInfo.docMode = 'report'; |
3561 |
27 Oct 15 |
olle |
// Get list of selected extract source items |
3561 |
27 Oct 15 |
olle |
var selItemsList = exreg.getSelectedItemsList(); |
3561 |
27 Oct 15 |
olle |
var numItems = selItemsList.length; |
3561 |
27 Oct 15 |
olle |
var totNumItems = numItems; |
3561 |
27 Oct 15 |
olle |
for (var i = 0; i < totNumItems; i++) |
3561 |
27 Oct 15 |
olle |
1487 |
{ |
3561 |
27 Oct 15 |
olle |
var item = null; |
3561 |
27 Oct 15 |
olle |
item = selItemsList[i]; |
3561 |
27 Oct 15 |
olle |
submitInfo.items[submitInfo.items.length] = item; |
3561 |
27 Oct 15 |
olle |
1491 |
} |
3561 |
27 Oct 15 |
olle |
1492 |
|
3561 |
27 Oct 15 |
olle |
// Extraction |
3561 |
27 Oct 15 |
olle |
submitInfo.startListName = frm.startListName.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.isolationDate = frm.isolationDate.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.extractionOperator = frm.extractionOperator.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.extractionProtocol = parseInt(frm.extractionProtocolId.value, 10); |
3561 |
27 Oct 15 |
olle |
var extractionProtocolName = frm.extractionProtocolName.value; |
3561 |
27 Oct 15 |
olle |
var protocolVersionNo = ''; |
3561 |
27 Oct 15 |
olle |
if (extractionProtocolName) |
3561 |
27 Oct 15 |
olle |
1501 |
{ |
3561 |
27 Oct 15 |
olle |
protocolVersionNo = extractionProtocolName; |
3561 |
27 Oct 15 |
olle |
// Remove part of string up to and including last "v" |
3561 |
27 Oct 15 |
olle |
var vIndex = protocolVersionNo.indexOf('v'); |
3561 |
27 Oct 15 |
olle |
while (vIndex >= 0) |
3561 |
27 Oct 15 |
olle |
1506 |
{ |
3561 |
27 Oct 15 |
olle |
// Remove part of string up to and including first "v" |
3561 |
27 Oct 15 |
olle |
protocolVersionNo = protocolVersionNo.substring(vIndex + 1); |
3561 |
27 Oct 15 |
olle |
vIndex = protocolVersionNo.indexOf('v'); |
3561 |
27 Oct 15 |
olle |
1510 |
} |
3561 |
27 Oct 15 |
olle |
1511 |
} |
3561 |
27 Oct 15 |
olle |
var protocolPreviewFlag = null; |
3561 |
27 Oct 15 |
olle |
if (trackingProtocolPreview) |
3561 |
27 Oct 15 |
olle |
1514 |
{ |
3561 |
27 Oct 15 |
olle |
protocolPreviewFlag = 'true'; |
3561 |
27 Oct 15 |
olle |
1516 |
} |
3561 |
27 Oct 15 |
olle |
submitInfo.extractionProtocolName = extractionProtocolName; |
3561 |
27 Oct 15 |
olle |
submitInfo.protocolVersionNo = protocolVersionNo; |
3561 |
27 Oct 15 |
olle |
submitInfo.protocolPreviewFlag = protocolPreviewFlag; |
3561 |
27 Oct 15 |
olle |
submitInfo.dnaDefaultVolume = ExtractUtils.getNumber(frm.dnaDefaultVolume.value); |
3561 |
27 Oct 15 |
olle |
1521 |
|
3561 |
27 Oct 15 |
olle |
// QIAcube |
3561 |
27 Oct 15 |
olle |
submitInfo.qiacubeDate = frm.qiacubeDate.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.qiacubeOperator = frm.qiacubeOperator.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.qiacubeRunNo = parseInt(frm.qiacubeRunNo.value, 10); |
3561 |
27 Oct 15 |
olle |
1526 |
|
3561 |
27 Oct 15 |
olle |
// Specimen reagents |
3561 |
27 Oct 15 |
olle |
submitInfo.xyleneSpecimen = frm.xyleneSpecimen.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.etoh995Specimen = frm.etoh995Specimen.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.allPrepFfpeKit = frm.allPrepFfpeKit.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.bufferPkdSpecimen = frm.bufferPkdSpecimen.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.bufferAtlSpecimen = frm.bufferAtlSpecimen.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.proteinaseKSpecimen = frm.proteinaseKSpecimen.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.rnaseASpecimen = frm.rnaseASpecimen.value; |
3561 |
27 Oct 15 |
olle |
1535 |
|
3561 |
27 Oct 15 |
olle |
// QIAcube |
3561 |
27 Oct 15 |
olle |
submitInfo.etoh995 = frm.etoh995.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.bufferRlt = frm.bufferRlt.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.bufferFrn = frm.bufferFrn.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.bufferRpe = frm.bufferRpe.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.bufferAl = frm.bufferAl.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.bufferAw1 = frm.bufferAw1.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.bufferAw2 = frm.bufferAw2.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.bufferAte = frm.bufferAte.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.bufferRdd = frm.bufferRdd.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.rnaseFreeWater = frm.rnaseFreeWater.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.dnaseMix = frm.dnaseMix.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.rneasyMinEluteSpinColumn = frm.rneasyMinEluteSpinColumn.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.qiaampMinEluteSpinColumn = frm.qiaampMinEluteSpinColumn.value; |
3561 |
27 Oct 15 |
olle |
1550 |
|
3561 |
27 Oct 15 |
olle |
// Quality control reagents |
3561 |
27 Oct 15 |
olle |
submitInfo.kapaSybrFast = frm.kapaSybrFast.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.qualityControlPrimersQcpRgt = frm.qualityControlPrimersQcpRgt.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.qualityControlTemplateQct = frm.qualityControlTemplateQct.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.qubitDnaHighSens = frm.qubitDnaHighSens.value; |
3561 |
27 Oct 15 |
olle |
submitInfo.qubitDnaBroadRange = frm.qubitDnaBroadRange.value; |
3561 |
27 Oct 15 |
olle |
1557 |
|
3561 |
27 Oct 15 |
olle |
// Save values in hidden input fields for retrieval after HTML request |
3561 |
27 Oct 15 |
olle |
var submitInfoJsonStr = JSON.stringify(submitInfo); |
3561 |
27 Oct 15 |
olle |
frm.hiddenSubmitInfo.value = submitInfoJsonStr; |
3561 |
27 Oct 15 |
olle |
frm.hiddenNumItems.value = submitInfo.items.length; |
3561 |
27 Oct 15 |
olle |
frm.hiddenCounterBalanceInfoRow.value = counterBalanceInfoRow; |
3561 |
27 Oct 15 |
olle |
1563 |
|
3561 |
27 Oct 15 |
olle |
// Calling frm.submit() will change jsp file to extraction_protocol2.jsp |
3561 |
27 Oct 15 |
olle |
frm.submit(); |
3561 |
27 Oct 15 |
olle |
1566 |
} |
3561 |
27 Oct 15 |
olle |
1567 |
|
3561 |
27 Oct 15 |
olle |
exreg.fetchLibPrepFilterName = function(filterValue) |
3561 |
27 Oct 15 |
olle |
1569 |
{ |
3561 |
27 Oct 15 |
olle |
var filterName = filterValue; |
3561 |
27 Oct 15 |
olle |
if (filterValue != null && filterValue != '') |
3561 |
27 Oct 15 |
olle |
1572 |
{ |
3561 |
27 Oct 15 |
olle |
if (filterValue == 'all') |
3561 |
27 Oct 15 |
olle |
1574 |
{ |
3561 |
27 Oct 15 |
olle |
filterName = 'All'; |
3561 |
27 Oct 15 |
olle |
1576 |
} |
3610 |
20 Nov 15 |
olle |
else if (filterValue == 'used_active') |
3561 |
27 Oct 15 |
olle |
1578 |
{ |
3610 |
20 Nov 15 |
olle |
filterName = 'Used & active'; |
3561 |
27 Oct 15 |
olle |
1580 |
} |
3610 |
20 Nov 15 |
olle |
else if (filterValue == 'used_inactive') |
3561 |
27 Oct 15 |
olle |
1582 |
{ |
3610 |
20 Nov 15 |
olle |
filterName = 'Used & inactive'; |
3561 |
27 Oct 15 |
olle |
1584 |
} |
3561 |
27 Oct 15 |
olle |
else if (filterValue == 'used') |
3561 |
27 Oct 15 |
olle |
1586 |
{ |
3561 |
27 Oct 15 |
olle |
filterName = 'Used'; |
3561 |
27 Oct 15 |
olle |
1588 |
} |
3561 |
27 Oct 15 |
olle |
else if (filterValue == 'unused') |
3561 |
27 Oct 15 |
olle |
1590 |
{ |
3561 |
27 Oct 15 |
olle |
filterName = 'Unused'; |
3561 |
27 Oct 15 |
olle |
1592 |
} |
3610 |
20 Nov 15 |
olle |
else if (filterValue == 'active') |
3561 |
27 Oct 15 |
olle |
1594 |
{ |
3610 |
20 Nov 15 |
olle |
filterName = 'Active'; |
3561 |
27 Oct 15 |
olle |
1596 |
} |
3610 |
20 Nov 15 |
olle |
else if (filterValue == 'inactive') |
3561 |
27 Oct 15 |
olle |
1598 |
{ |
3610 |
20 Nov 15 |
olle |
filterName = 'Inactive'; |
3561 |
27 Oct 15 |
olle |
1600 |
} |
3561 |
27 Oct 15 |
olle |
1601 |
} |
3561 |
27 Oct 15 |
olle |
return filterName; |
3561 |
27 Oct 15 |
olle |
1603 |
} |
3561 |
27 Oct 15 |
olle |
1604 |
|
3561 |
27 Oct 15 |
olle |
return exreg; |
3561 |
27 Oct 15 |
olle |
1606 |
}(); |
3561 |
27 Oct 15 |
olle |
1607 |
|
3561 |
27 Oct 15 |
olle |
Doc.onLoad(ExtractionReg.initPage); |
3561 |
27 Oct 15 |
olle |
1609 |
|