epi-pro-reactor-pm-verification ready to test

This commit is contained in:
Mike Phares 2023-11-13 10:27:52 -07:00
parent 7b1c044730
commit c1bb74433b
2 changed files with 54 additions and 2 deletions

View File

@ -560,4 +560,38 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th scope="col">Day Shift</th>
<th scope="col">State</th>
<th scope="col">Loaded RDS</th>
<th scope="col">Average Temperature</th>
<th scope="col">Offset %</th>
<th scope="col">Time Collected</th>
<th scope="col">Hours</th>
<th scope="col">&nbsp;</th>
<th scope="col">Night Shift</th>
<th scope="col">State</th>
<th scope="col">Loaded RDS</th>
<th scope="col">Average Temperature</th>
<th scope="col">Offset %</th>
<th scope="col">Time Collected</th>
<th scope="col">Hours</th>
</tr>
</thead>
<tbody id ="EpiProTempVerification"></tbody>
</table>
</div>
<script>
$(document).ready(function () {
appendDiv();
});
</script>

View File

@ -152,7 +152,7 @@ function expandYield() {
icons[i].classList.toggle("fa-minus-circle"); icons[i].classList.toggle("fa-minus-circle");
} }
} }
function toggleWeek() { function toggleWeek() {
@ -223,3 +223,21 @@ function compareStrings(isDate, dir, string1, string2) {
return false; return false;
} }
function appendDiv() {
const tbody = document.getElementById("EpiProTempVerification");
$.ajax({
type: "GET",
url: 'https://oi-metrology-viewer-prod.mes.infineon.com/api/InfinityQSV3/epi-pro-temp-verification/?night=44&night=46&night=52&night=54',
success: function (r) {
if (r == null)
ShowErrorMessage("Invalid data");
else {
tbody.innerHTML = r;
}
},
error: function (e, _ajaxOptions, ex) {
DisplayWSMessage("error", "There was an error getting data.", e, ex);
}
});
}