From 1ab4316c2276a5a0eb3cd0a998b00698f009743f Mon Sep 17 00:00:00 2001 From: Mike Phares Date: Thu, 9 Nov 2023 11:21:24 -0700 Subject: [PATCH] ready to test - D --- Server/wwwroot/js/site.js | 51 ++++++++++++++++++++++++++++++++++----- 1 file changed, 45 insertions(+), 6 deletions(-) diff --git a/Server/wwwroot/js/site.js b/Server/wwwroot/js/site.js index b229bd1..b5c3c07 100644 --- a/Server/wwwroot/js/site.js +++ b/Server/wwwroot/js/site.js @@ -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 = ` + + + + + + + + + + + + +
ReactorNoE10StateloadedRDSValueTemperatureOffsetPercentageSubGroupIdFormated
+ `; + 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; @@ -557,10 +593,14 @@ function detailSelectionChangedRunInfo(evt, ui) { } } else { - var ctx = document.getElementById('DataAttachmentCanvas'); - $.getJSON(attachmentUrlBase + "/header/files/" + headerAttachmentId + "/" + _toolType.DisplayHeaderAttachment, function (data) { - setChart(ui.row.index, ctx, data); - }); + 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); + }); + } } } @@ -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");