Mike Phares d9f6ada5cb Assembly Version
WS Result bug fix and Nuget bump, PSN, Reactor and Extra RDS rule
OpenInsightApi and testRunTitle
serializerValue
2023-03-07 11:48:46 -07:00

26 lines
920 B
JavaScript

// (self.length != 0) ?
// self :
// (getContextData('2', 'cds.PROCESS_JOBID', '') == '-') ?
// self :
// getContextData('2', 'cds.PROCESS_JOBID', '')
getValue(self, self.length, $('dcp.BIORAD4/Stratus/MesEntity', ''), $('dcp.BIORAD4/Stratus/Recipe', ''), getContextData('2', 'cds.PROCESS_JOBID', ''));
function getValue(value, length, mesEntity, recipe, processJobId) {
if (recipe.toUpperCase() === 'T-LOW')
return mesEntity;
else if (recipe.toUpperCase() === 'T-MID')
return mesEntity;
else if (recipe.toUpperCase() === 'T-HIGH')
return mesEntity;
else if (recipe.toUpperCase() === 'T_LOW')
return mesEntity;
else if (recipe.toUpperCase() === 'T_MID')
return mesEntity;
else if (recipe.toUpperCase() === 'T_HIGH')
return mesEntity;
else if (length === 0)
return processJobId;
else
return value;
}