Need DB III

This commit is contained in:
2023-02-08 10:50:03 -07:00
parent 78567f9e39
commit 131abcd3cd
5 changed files with 32 additions and 14 deletions

View File

@ -221,18 +221,30 @@ function loadHeaderGridRunInfo() {
DisplayWSMessage("error", "There was an error getting tooltype info.", e);
}
});
$.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);
}
// $.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);
// }
// });
$("#PinnedGrid").igGrid({
width: "70%",
height: "100%",
dataSource: _apiUrl + "/pin/" + toolTypeID + "/pinned",
responseDataKey: "Results",
tabIndex: 1,
features: [
{ name: "Selection", mode: "row", multipleSelection: false },
{ name: "Filtering", type: "local" },
{ name: "Sorting", type: "local" },
]
});
}