Test Pinned via API ||
This commit is contained in:
@ -221,31 +221,6 @@ 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);
|
||||
// }
|
||||
// });
|
||||
$("#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" },
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
function disableHeaderButtonsRunInfo() {
|
||||
@ -505,6 +480,26 @@ 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) {
|
||||
$("#PinnedGrid").igGrid({
|
||||
dataSource: data,
|
||||
responseDataKey: "Results",
|
||||
});
|
||||
});
|
||||
},
|
||||
error: function (e, ajaxOptions, ex) {
|
||||
DisplayWSMessage("error", "There was an error marking header as pinned.", e, ex);
|
||||
|
Reference in New Issue
Block a user