Änderungen
This commit is contained in:
@@ -362,78 +362,43 @@
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$("<%=tablemain.ClientID%>").dataTable({
|
||||
"bJQueryUI": true,
|
||||
"sPaginationType": "full_numbers",
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "LKWs.aspx/filltable2",
|
||||
"fnServerData": function (sSource, aoData, fnCallback) {
|
||||
$.ajax({
|
||||
"type": "POST",
|
||||
"dataType": 'json',
|
||||
"contentType": "application/json; charset=utf-8",
|
||||
"url": sSource,
|
||||
"data": "{'sEcho': '" + aoData[0].value + "'}",
|
||||
"success": function (msg) {
|
||||
fnCallback(msg.d);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
$("<%=tablemain_m.ClientID%>").dataTable({
|
||||
"bJQueryUI": true,
|
||||
"sPaginationType": "full_numbers",
|
||||
"bServerSide": true,
|
||||
"sAjaxSource": "LKWs.aspx/filltable2_M",
|
||||
"fnServerData": function (sSource, aoData, fnCallback) {
|
||||
$.ajax({
|
||||
"type": "POST",
|
||||
"dataType": 'json',
|
||||
"contentType": "application/json; charset=utf-8",
|
||||
"url": sSource,
|
||||
"data": "{'sEcho': '" + aoData[0].value + "'}",
|
||||
"success": function (msg) {
|
||||
fnCallback(msg.d);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
function renderTable(result) {
|
||||
let dtData = [];
|
||||
// Data tables requires all data to be stuffed into a generic jagged array, so loop through our
|
||||
// typed object and create one.
|
||||
$.each(result, function () {
|
||||
dtData.push([
|
||||
this.SDLNr,
|
||||
this.Bez,
|
||||
this.Gueltigbis,
|
||||
this.Kartnr
|
||||
]);
|
||||
});
|
||||
|
||||
$('<%=tablemain.ClientID%>').dataTable({
|
||||
'aaData': dtData,
|
||||
"bJQueryUI": true
|
||||
});
|
||||
}
|
||||
function renderTable_M(result_M) {
|
||||
let dtData_M = [];
|
||||
// Data tables requires all data to be stuffed into a generic jagged array, so loop through our
|
||||
// typed object and create one.
|
||||
$.each(result_M, function () {
|
||||
dtData_M.push([
|
||||
this.SDLNr,
|
||||
this.Bez,
|
||||
this.Gueltigbis,
|
||||
this.Kartnr
|
||||
]);
|
||||
});
|
||||
|
||||
$("<%=tablemain_m.ClientID%>").dataTable({
|
||||
'aaData': dtData
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function renderTable(result) {
|
||||
let dtData = [];
|
||||
// Data tables requires all data to be stuffed into a generic jagged array, so loop through our
|
||||
// typed object and create one.
|
||||
$.each(result, function () {
|
||||
dtData.push([
|
||||
this._SDLNr,
|
||||
this._Bez,
|
||||
this._GueltigBis,
|
||||
this._Kartnr
|
||||
]);
|
||||
});
|
||||
|
||||
$('<%=tablemain.ClientID%>').dataTable({
|
||||
'aaData': dtData,
|
||||
"bJQueryUI": true
|
||||
});
|
||||
}
|
||||
function renderTable_M(result_M) {
|
||||
let dtData_M = [];
|
||||
// Data tables requires all data to be stuffed into a generic jagged array, so loop through our
|
||||
// typed object and create one.
|
||||
$.each(result_M, function () {
|
||||
dtData_M.push([
|
||||
this._SDLNr,
|
||||
this._Bez,
|
||||
this._GueltigBis,
|
||||
this._Kartnr
|
||||
]);
|
||||
});
|
||||
$('<%=tablemain_m.ClientID%>').dataTable({
|
||||
'aaData': dtData_M,
|
||||
"bJQueryUI": true
|
||||
});
|
||||
}
|
||||
|
||||
function doPostBack(id) {
|
||||
let Speditionslabel = document.getElementById('<%=lbl_sped_Placeholder.ClientID%>');
|
||||
@@ -469,12 +434,11 @@
|
||||
dataType: "json",
|
||||
async: "false",
|
||||
data: JSON.stringify(data),
|
||||
success: function (response) {
|
||||
let JSONObj = data.d;
|
||||
|
||||
success: function (result) {
|
||||
|
||||
alert('Horray! 200 status code!');
|
||||
|
||||
renderTable(JSONObj)
|
||||
alert(result.d)
|
||||
renderTable(result.d)
|
||||
},
|
||||
error: function (jqXHR, textStatus, errorThrown) {
|
||||
alert("Status:" + jqXHR.status + "\nStatusText: " + textStatus + "\nError:" + errorThrown);
|
||||
@@ -514,11 +478,11 @@
|
||||
async: "false",
|
||||
data: JSON.stringify(data),
|
||||
success: function (data) {
|
||||
result_M = data.d;
|
||||
|
||||
|
||||
alert('Horray! 200 status code!');
|
||||
|
||||
renderTable_M(result_M);
|
||||
alert(data.d)
|
||||
renderTable_M(data.d);
|
||||
},
|
||||
error: function (jqXHR, textStatus, errorThrown) {
|
||||
alert("Status:" + jqXHR.status + "\nStatusText: " + textStatus + "\nError:" + errorThrown);
|
||||
|
||||
Reference in New Issue
Block a user