Änderungen
This commit is contained in:
@@ -363,7 +363,7 @@
|
||||
function doPostBack(id) {
|
||||
let Speditionslabel = document.getElementById('<%=lbl_sped_Placeholder.ClientID%>');
|
||||
let natplaceholder = document.getElementById('<%=lbl_Placeholder.ClientID%>');
|
||||
alert(id)
|
||||
//alert(id)
|
||||
let table = document.getElementById('<%=tablemain.ClientID%>');
|
||||
var rowCount = table.rows.length;
|
||||
|
||||
@@ -384,9 +384,7 @@
|
||||
// Pagemethods.filltable2(<%' =tbl_mainpage %> , SDL, Bez, Datguenstig, KartNr)
|
||||
//}
|
||||
var data = {};
|
||||
data['Kennzeichen'] = id.split(',')[0];
|
||||
|
||||
|
||||
data['Kennzeichen'] = id.split(',')[0];
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
@@ -397,35 +395,32 @@
|
||||
success: function (data) {
|
||||
result = data.d;
|
||||
// addheader();
|
||||
let strHTML = '<tr style="background-color:#043381;color:#fff"><th><td style="font-weight:600; color:white">SDL-Nr</td></th><th><td style="font-weight:600; color:white">Bezeichnung</td></th><th><td style="font-weight:600; color:white">Gueltig bis</td></th><th><td style="font-weight:600; color:white">Karten-Nummer</td></th></tr>';
|
||||
//let strHTML = '<tr style="background-color:#043381;color:#fff"><th><td style="font-weight:600; color:white">SDL-Nr</td></th><th><td style="font-weight:600; color:white">Bezeichnung</td></th><th><td style="font-weight:600; color:white">Gueltig bis</td></th><th><td style="font-weight:600; color:white">Karten-Nummer</td></th></tr>';
|
||||
let strHTML2 = '<tr width="140%"><td>1422151515155</td><td>DIESEL</td><td>12/05/2026</td><td>151515313521351</td></tr>'
|
||||
let strHTML3 = '<tr><td>1422151515155</td><td>DIESEL</td><td>12/05/2026</td><td>151515313521351</td></tr>'
|
||||
let strHTML4 = '<tr><td>1422151515155</td><td>DIESEL</td><td>12/05/2026</td><td>151515313521351</td></tr>'
|
||||
alert('Horray! 200 status code!');
|
||||
// alert(result.rows.length)
|
||||
$(JSONObj).each(function () {
|
||||
$(result).each(function () {
|
||||
let row = $(this)[0];
|
||||
strHTML += '<tr><td>' + row["SDL"] + '</td><td>' + row["Bez"] + '</td><td>' + row["Gueltigbis"] + '</td><td>' + row["KartNr"] + '</td></tr>';
|
||||
alert(strHTML)
|
||||
$('#<%=tablemain.ClientID%>').append(strHTML);
|
||||
});
|
||||
$('#<%=tablemain.ClientID%>').html(strHTML);
|
||||
//alert(strHTML);
|
||||
//$('#<%'=tablemain.ClientID%>').append(strheaderL);
|
||||
$('#<%=tablemain.ClientID%>').append(strHTML4);
|
||||
},
|
||||
error: function (jqXHR, textStatus, errorThrown) {
|
||||
alert("Status:" + jqXHR.status + "\nStatusText: " + textStatus + "\nError:" + errorThrown);
|
||||
}
|
||||
});
|
||||
function OnSuccess(result) {
|
||||
addheader();
|
||||
alert('Horray! 200 status code!');
|
||||
alert(result.rows.length)
|
||||
for (let i = 0; i < result.rows.length; i++) {
|
||||
let row = $('<tr><td>' + result.rows[i].SDL + '</td><td>' + result.rows[i].Bez + '</td><td>' + result.rows[i].DateGueltig + '</td><td>' + result.rows[i].KartNr + '</td></tr>');
|
||||
alert(row)
|
||||
}
|
||||
}
|
||||
|
||||
//filltable2(id.split(',')[0])
|
||||
}
|
||||
function doPostBack_M(id_M) {
|
||||
let Speditionslabel = document.getElementById('<%=lbl_sped_Placeholder_M.ClientID%>');
|
||||
let natplaceholder = document.getElementById('<%=lbl_Placeholder_M.ClientID%>');
|
||||
alert(id_M)
|
||||
// alert(id_M)
|
||||
let table_M = document.getElementById('<%=tbl_mainpage_M.ClientID%>');
|
||||
let rowCount = table_M.rows.length;
|
||||
|
||||
@@ -458,22 +453,22 @@
|
||||
success: function (data_m) {
|
||||
result = data_m.d;
|
||||
// addheader();
|
||||
let strHTML = '<tr style="background-color:#043381;color:#fff"><th><td style="font-weight:600; color:white">SDL-Nr</td></th><th><td style="font-weight:600; color:white">Bezeichnung</td></th><th><td style="font-weight:600; color:white">Gueltig bis</td></th><th><td style="font-weight:600; color:white">Karten-Nummer</td></th></tr>';
|
||||
let strHeader_M = '<tr style="background-color:#043381;color:#fff"><th><td style="font-weight:600; color:white">SDL-Nr</td></th><th><td style="font-weight:600; color:white">Bezeichnung</td></th><th><td style="font-weight:600; color:white">Gueltig bis</td></th><th><td style="font-weight:600; color:white">Karten-Nummer</td></th></tr>';
|
||||
let strHTML = ''
|
||||
alert('Horray! 200 status code!');
|
||||
|
||||
$(result).each(function () {
|
||||
let row = $(this)[0];
|
||||
strHTML += '<tr><td>' + row["SDL"] + '</td><td>' + row["Bez"] + '</td><td>' + row["Gueltigbis"] + '</td><td>' + row["KartNr"] + '</td></tr>';
|
||||
alert(strHTML)
|
||||
strHTML += '<tr><td>' + row["SDL"] + '</td><td>' + row["Bez"] + '</td><td>' + row["Gueltigbis"] + '</td><td>' + row["KartNr"] + '</td></tr>';
|
||||
});
|
||||
$('#<%=tablemain_m.ClientID%>').html(strHTML);
|
||||
//alert(strHTML)
|
||||
$('#<%=tablemain_m.ClientID%>').append(strHeader_M);
|
||||
$('#<%=tablemain_m.ClientID%>').append(strHTML);
|
||||
},
|
||||
error: function (jqXHR, textStatus, errorThrown) {
|
||||
alert("Status:" + jqXHR.status + "\nStatusText: " + textStatus + "\nError:" + errorThrown);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
//filltable2(id.split(',')[0])
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user