Delete Work Material

Added InfinityQSV3-GetEpiProTempVerification
Added nigth shift
This commit is contained in:
2023-11-13 09:44:37 -07:00
parent 03bd20fc8c
commit cff2e06f68
27 changed files with 419 additions and 769 deletions

View File

@ -379,6 +379,51 @@ function GetMinMax(profilePoints, index) {
return { decades, maxDepth, concentrationMin, concentrationMax, resistanceEditedMin, resistanceEditedMax, resistivityMin, resistivityMax };
}
function appendDiv() {
const div = document.createElement("div");
div.innerHTML = `
<table border = 1>
<thead>
<tr>
<th>Day Shift</th>
<th>State</th>
<th>Loaded RDS</th>
<th>Average Temperature</th>
<th>Offset %</th>
<th>Time Collected</th>
<th>Hours</th>
<th>&nbsp;</th>
<th>Night Shift</th>
<th>State</th>
<th>Loaded RDS</th>
<th>Average Temperature</th>
<th>Offset %</th>
<th>Time Collected</th>
<th>Hours</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/?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);
}
});
}
function setChart(index, ctx, data) {
var cd;
var depth;
@ -557,10 +602,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 == 4)
appendDiv();
else {
var ctx = document.getElementById('DataAttachmentCanvas');
$.getJSON(attachmentUrlBase + "/header/files/" + headerAttachmentId + "/" + _toolType.DisplayHeaderAttachment, function (data) {
setChart(ui.row.index, ctx, data);
});
}
}
}
@ -1028,8 +1077,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");