MET08THFTIRQS408M - v2.47.0 - Ready to
test ISQ query
This commit is contained in:
26
Adaptation/.vscode/psn.js
vendored
Normal file
26
Adaptation/.vscode/psn.js
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
// (self.length != 0) ?
|
||||
// self :
|
||||
// (getContextData('2', 'cds.PRODUCT', '') == '-') ?
|
||||
// self :
|
||||
// getContextData('2', 'cds.PRODUCT', '')
|
||||
|
||||
getValue(self, self.length, getContextData('2', 'cds.PRODUCT', ''), $('dcp.BIORAD2/QS408M/Recipe', ''));
|
||||
|
||||
function getValue(value, length, product, recipe) {
|
||||
if (recipe.toUpperCase() === 'T-LOW')
|
||||
return 'T-Low';
|
||||
else if (recipe.toUpperCase() === 'T-MID')
|
||||
return 'T-Mid';
|
||||
else if (recipe.toUpperCase() === 'T-HIGH')
|
||||
return 'T-High';
|
||||
else if (recipe.toUpperCase() === 'T_LOW')
|
||||
return 'T-Low';
|
||||
else if (recipe.toUpperCase() === 'T_MID')
|
||||
return 'T-Mid';
|
||||
else if (recipe.toUpperCase() === 'T_HIGH')
|
||||
return 'T-High';
|
||||
else if (length !== 0 || product === '-')
|
||||
return value;
|
||||
else
|
||||
return product;
|
||||
}
|
Reference in New Issue
Block a user