ToolClass
This commit is contained in:
@ -17,12 +17,10 @@ connection.on("NotifyAll", function (data) {
|
||||
}
|
||||
if (!data.httpContentBody) {
|
||||
if (!data.keyPressEvent || !data.lastScanServiceResultValue) {
|
||||
document.getElementById("httpContentBody").innerText = data;
|
||||
document.getElementById("mId").innerText = "";
|
||||
document.getElementById("recipe").innerText = "";
|
||||
document.getElementById("qaMetTests").innerText = "";
|
||||
}
|
||||
} else {
|
||||
document.getElementById("httpContentBody").innerText = data.httpContentBody;
|
||||
var postResult = JSON.parse(data.httpContentBody);
|
||||
if (!postResult.MId) {
|
||||
document.getElementById("mId").innerText = "";
|
||||
@ -31,18 +29,19 @@ connection.on("NotifyAll", function (data) {
|
||||
"mId",
|
||||
).innerText = `Use ${postResult.MId} for the wafer and input id`;
|
||||
}
|
||||
if (!postResult.Recipe) {
|
||||
document.getElementById("recipe").innerText = "";
|
||||
if (!postResult.QaMetTests) {
|
||||
document.getElementById("qaMetTests").innerText = data.httpContentBody;
|
||||
} else {
|
||||
if (postResult.Recipe != "Recipe") {
|
||||
document.getElementById("recipe").innerText = postResult.Recipe;
|
||||
} else {
|
||||
$.getJSON(appSettings.OpenInsightApplicationProgrammingInterface + "/materials/rds/" + postResult.LotName,
|
||||
function (data) {
|
||||
document.getElementById("recipe").innerText = data.rds.rdsLayers.length;
|
||||
},
|
||||
);
|
||||
var properties = [];
|
||||
var qaMetTests = "";
|
||||
for (const property in postResult)
|
||||
properties.push(property);
|
||||
for (var i = 0; i < properties.length; i++) {
|
||||
for (var j = 0; j < postResult[properties[i]].length; j++) {
|
||||
qaMetTests += properties[i] + " - [" + postResult[properties[i]][j].recipe + "] - [" + postResult[properties[i]][j].recipePattern + "]<br />";
|
||||
}
|
||||
}
|
||||
document.getElementById("qaMetTests").innerText = qaMetTests;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user