ready to test - D

This commit is contained in:
Mike Phares 2023-11-09 11:21:24 -07:00
parent ffc2fbf634
commit 1ab4316c22

View File

@ -379,6 +379,42 @@ function GetMinMax(profilePoints, index) {
return { decades, maxDepth, concentrationMin, concentrationMax, resistanceEditedMin, resistanceEditedMax, resistivityMin, resistivityMax };
}
function appendDiv() {
const div = document.createElement("div");
div.innerHTML = `
<table>
<thead>
<tr>
<th>ReactorNo</th>
<th>E10State</th>
<th>loadedRDS</th>
<th>Value</th>
<th>TemperatureOffsetPercentage</th>
<th>SubGroupIdFormated</th>
</tr>
</thead>
<tbody id ="EpiProTempVerification"></tbody>
</table>
`;
const element = document.getElementById("DataAttachmentDiv");
element.appendChild(div);
const tbody = document.getElementById("EpiProTempVerification");
$.ajax({
type: "GET",
url: _apiUrl + '/InfinityQSV3/epi-pro-temp-verification',
success: function (r) {
if ((r.Results == null) || (r.Results.ToolType == null) || (r.Results.Metadata == null))
ShowErrorMessage("Invalid tool type: " + toolTypeID);
else {
tbody.innerHTML = r;
}
},
error: function (e, _ajaxOptions, ex) {
DisplayWSMessage("error", "There was an error getting data.", e, ex);
}
});
}
function setChart(index, ctx, data) {
var cd;
var depth;
@ -556,12 +592,16 @@ function detailSelectionChangedRunInfo(evt, ui) {
$("#DataAttachmentFrame").prop("src", attachmentUrlBase + "/data/files/" + attachmentId + "/" + _toolType.DisplayDataAttachment);
}
}
else {
if (ui.row.index == 5)
appendDiv();
else {
var ctx = document.getElementById('DataAttachmentCanvas');
$.getJSON(attachmentUrlBase + "/header/files/" + headerAttachmentId + "/" + _toolType.DisplayHeaderAttachment, function (data) {
setChart(ui.row.index, ctx, data);
});
}
}
}
function loadHeaderAttachmentRunInfo() {
@ -1028,8 +1068,7 @@ function oiExportButtonRunInfo() {
}
function setInitialDateTimesRunInfo(milliseconds) {
if (!milliseconds)
{
if (!milliseconds) {
var startDate = $("#StartDate").igDatePicker("value");
var startTime = $("#StartTime").igTimePicker("value");
var endDate = $("#EndDate").igDatePicker("value");