Variation, PSN, Reactor, Extra RDS rule,

OpenInsightApi and testRunTitle
This commit is contained in:
2023-03-07 08:04:38 -07:00
parent e919dcc395
commit 5f07669573
11 changed files with 167 additions and 24 deletions

View File

@ -7,16 +7,18 @@
getValue(self, self.length, getContextData('2', 'cds.PRODUCT', ''), $('dcp.HGCV3/pcl/Pattern', ''), $('dcp.HGCV3/pcl/Lot', ''));
function getValue(value, length, product, pattern, lot) {
if (pattern === 'ONEPT.PAT' && lot.toUpperCase().indexOf('LOW') > -1)
if (pattern === 'ONEPT.PAT' && lot.toUpperCase().indexOf('EP') > -1)
return 'EpiPro';
else if (pattern === 'ONEPT.PAT' && lot.toUpperCase().indexOf('LO') > -1)
return 'Low';
else if (pattern === 'ONEPT.PAT' && lot.toUpperCase().indexOf('MID') > -1)
else if (pattern === 'ONEPT.PAT' && lot.toUpperCase().indexOf('MI') > -1)
return 'Mid';
else if (pattern === 'ONEPT.PAT' && lot.toUpperCase().indexOf('HIGH') > -1)
else if (pattern === 'ONEPT.PAT' && lot.toUpperCase().indexOf('HI') > -1)
return 'High';
else if (pattern === 'ONEPT.PAT' && lot.toUpperCase().indexOf('THIN') > -1)
else if (pattern === 'ONEPT.PAT' && lot.toUpperCase().indexOf('TH') > -1)
return 'Thin';
else if (length !== 0 || product === '-')
return value;
else
else if (length === 0)
return product;
else
return value;
}