Variation, PSN, Reactor, Extra RDS rule,
OpenInsightApi and testRunTitle
This commit is contained in:
16
Adaptation/.vscode/psn.js
vendored
16
Adaptation/.vscode/psn.js
vendored
@ -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;
|
||||
}
|
Reference in New Issue
Block a user