Removed HttpContext.Session
This commit is contained in:
@ -1,8 +1,10 @@
|
||||
var _CdeId = null;
|
||||
var _apiUrl = null;
|
||||
var _initialHeaderAttachmentId = null;
|
||||
var _initialHeaderId = null;
|
||||
var _BioRadId = null;
|
||||
var _toolType = null;
|
||||
var _initialHeaderId = null;
|
||||
var _toolTypeMetaData = null;
|
||||
var _initialHeaderAttachmentId = null;
|
||||
|
||||
$(document).ready(function () {
|
||||
if (location.pathname == "/") {
|
||||
@ -67,13 +69,15 @@ function initExport(apiUrl, startTimeValue, endTimeValue) {
|
||||
_apiUrl = apiUrl;
|
||||
var endTime = new Date(endTimeValue);
|
||||
var startTime = new Date(startTimeValue);
|
||||
$("#ToolType").igCombo({
|
||||
dataSource: _apiUrl + '/tooltypes',
|
||||
responseDataKey: "Results",
|
||||
textKey: "ToolTypeName",
|
||||
valueKey: "ID",
|
||||
mode: "dropdown",
|
||||
width: 150
|
||||
$.getJSON(_apiUrl + '/tooltypes', function (data) {
|
||||
$("#ToolType").igCombo({
|
||||
dataSource: data,
|
||||
responseDataKey: "Results",
|
||||
textKey: "ToolTypeName",
|
||||
valueKey: "ID",
|
||||
mode: "dropdown",
|
||||
width: 150
|
||||
});
|
||||
});
|
||||
$("#StartDateControl").igDatePicker({
|
||||
dateInputFormat: "date",
|
||||
@ -174,19 +178,6 @@ function loadRunInfoRunHeaders() {
|
||||
|
||||
function initRunHeaders(apiUrl) {
|
||||
_apiUrl = apiUrl;
|
||||
// $("#ToolType").igCombo({
|
||||
// dataSource: _apiUrl + '/tooltypes',
|
||||
// responseDataKey: "Results",
|
||||
// textKey: "ToolTypeName",
|
||||
// valueKey: "ID",
|
||||
// mode: "dropdown",
|
||||
// width: 150,
|
||||
// dataBound: function (evt, ui) {
|
||||
// $("#ToolType").igCombo("index", 0);
|
||||
// loadHeaderGridRunHeaders();
|
||||
// },
|
||||
// selectionChanged: loadHeaderGridRunHeaders,
|
||||
// });
|
||||
loadHeaderGridRunHeaders();
|
||||
$("#RefreshButton").click(function () {
|
||||
$("#HeaderGrid").igGrid("dataBind");
|
||||
@ -480,21 +471,7 @@ function pinButtonRunInfo() {
|
||||
success: function (e) {
|
||||
DisplayWSMessage("info", "Marked as pinned", e);
|
||||
$("#PinButton").prop("disabled", false);
|
||||
// $.ajax({
|
||||
// type: "GET",
|
||||
// url: _apiUrl + "/pin/" + toolTypeID + "/pinned",
|
||||
// success: function (r) {
|
||||
// if ((r.Results == null) || (r.Results.HeaderId == null))
|
||||
// DisplayWSMessage("error", "B) There was an error getting pinned info.");
|
||||
// else
|
||||
// DisplayWSMessage("info", r.Results.HeaderId);
|
||||
// },
|
||||
// error: function (e) {
|
||||
// DisplayWSMessage("error", "There was an error getting pinned info.", e);
|
||||
// }
|
||||
// });
|
||||
// $.getJSON(_apiUrl + "/awaitingdispo/", function (data) {
|
||||
$.getJSON(_apiUrl + "/pin/" + rowData.ToolTypeID + "/pinned?rds=" + rowData.RDS, function (data) {
|
||||
$.getJSON(_apiUrl + "/pin/" + rowData.ToolTypeID + "/pinned?biorad_id=" + _BioRadId + "&cde_id=" + _CdeId + "&rds=" + rowData.RDS, function (data) {
|
||||
$("#PinnedGrid").igGrid({
|
||||
dataSource: data,
|
||||
responseDataKey: "Results",
|
||||
@ -555,18 +532,28 @@ function initRunInfo(apiUrl, initialToolTypeID, initialHeaderId, initialHeaderAt
|
||||
_apiUrl = apiUrl;
|
||||
_initialHeaderId = initialHeaderId;
|
||||
_initialHeaderAttachmentId = initialHeaderAttachmentId;
|
||||
$("#ToolType").igCombo({
|
||||
dataSource: _apiUrl + '/tooltypes',
|
||||
responseDataKey: "Results",
|
||||
textKey: "ToolTypeName",
|
||||
valueKey: "ID",
|
||||
mode: "dropdown",
|
||||
width: 150,
|
||||
itemsRendered: function (evt, ui) {
|
||||
loadHeaderGridRunInfo();
|
||||
},
|
||||
selectionChanged: loadHeaderGridRunInfo,
|
||||
initialSelectedItems: [{ value: initialToolTypeID }]
|
||||
$.getJSON(_apiUrl + '/tooltypes', function (data) {
|
||||
for (var i = 0; i < data.Results.length; i++) {
|
||||
if (data.Results[i].ToolTypeName === "CDE") {
|
||||
_CdeId = data.Results[i].ID;
|
||||
}
|
||||
else if (data.Results[i].ToolTypeName === "BioRad") {
|
||||
_BioRadId = data.Results[i].ID;
|
||||
}
|
||||
}
|
||||
$("#ToolType").igCombo({
|
||||
dataSource: data,
|
||||
responseDataKey: "Results",
|
||||
textKey: "ToolTypeName",
|
||||
valueKey: "ID",
|
||||
mode: "dropdown",
|
||||
width: 150,
|
||||
itemsRendered: function (evt, ui) {
|
||||
loadHeaderGridRunInfo();
|
||||
},
|
||||
selectionChanged: loadHeaderGridRunInfo,
|
||||
initialSelectedItems: [{ value: initialToolTypeID }]
|
||||
});
|
||||
});
|
||||
setInitialDateTimesRunInfo();
|
||||
$("#HeaderGrid").on("dblclick", "tr", loadDetailsRunInfo);
|
||||
|
Reference in New Issue
Block a user