Verbesserung LKW Methoden und AJAX Calls sowie Anpassungen der TestPerformance-Zeitoptimierungen
This commit is contained in:
@@ -88,23 +88,19 @@
|
||||
<!-- <asp:Table ID="tbl_mainpage" ClientIDMode="Static" runat="server" Width="100%" style="background-color:#fff;overflow-y:auto;" CssClass="table table-striped col-12">
|
||||
<asp:TableHeaderRow ID="headrow1" runat="server" style="background-color:#043381;color:#fff;height:10px"><asp:TableHeaderCell ID="tblhc_SDLNr">SDL-Nr</asp:TableHeaderCell><asp:TableHeaderCell ID="tblhc_Bez">Bezeichnung</asp:TableHeaderCell><asp:TableHeaderCell ID="tbl_gueltig">Gültig Bis</asp:TableHeaderCell><asp:TableHeaderCell ID="tblhc_KarteNr">Karten-Nummer</asp:TableHeaderCell></asp:TableHeaderRow>
|
||||
</asp:Table>-->
|
||||
<table runat="server" id="tablemain" class="col-12">
|
||||
<table id="tablemain" runat="server" class="col-12">
|
||||
<tr style="background-color: #043381; color: #fff">
|
||||
<th style="text-align: center">
|
||||
<td style="font-weight: 600; color: white; text-align: center">SDL
|
||||
</td>
|
||||
<td style="font-weight: 600; color: white; text-align: center">SDL</td>
|
||||
</th>
|
||||
<th style="text-align: center">
|
||||
<td style="font-weight: 600; color: white; text-align: center">Bezeichnung
|
||||
</td>
|
||||
<td style="font-weight: 600; color: white; text-align: center">Bezeichnung</td>
|
||||
</th>
|
||||
<th style="text-align: center">
|
||||
<td style="font-weight: 600; color: white; text-align: center">Gültig bis
|
||||
</td>
|
||||
<td style="font-weight: 600; color: white; text-align: center">Gültig bis</td>
|
||||
</th>
|
||||
<th style="text-align: center">
|
||||
<td style="font-weight: 600; color: white; text-align: center">Kartennummer
|
||||
</td>
|
||||
<td style="font-weight: 600; color: white; text-align: center">Kartennummer</td>
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -150,27 +146,19 @@
|
||||
<!-- <asp:Table ID="tbl_mainpage_M" ClientIDMode="Static" runat="server" Width="100%" CssClass="table table-striped col-12">
|
||||
<asp:TableHeaderRow runat="server" ID="headrow_M" style="background-color:#043381;color:#fff"><asp:TableHeaderCell ID="tblhc_SDLNr_M">SDL_Nr</asp:TableHeaderCell><asp:TableHeaderCell ID="tblhc_Bez_M">Bezeichnung</asp:TableHeaderCell><asp:TableHeaderCell ID="tbl_gueltig_M">Gültig Bis</asp:TableHeaderCell><asp:TableHeaderCell ID="tblhc_KarteNr_M">Karten-Nummer</asp:TableHeaderCell></asp:TableHeaderRow>
|
||||
</asp:Table>-->
|
||||
<table runat="server" id="tablemain_m" class="col-12">
|
||||
<table id="tablemain_m" runat="server" class="col-12">
|
||||
<tr style="background-color:#043381;color:#fff">
|
||||
<th style="text-align:center">
|
||||
<td style="font-weight: 600;color:white">
|
||||
SDL
|
||||
</td>
|
||||
<td style="font-weight: 600;color:white">SDL</td>
|
||||
</th>
|
||||
<th style="text-align: center">
|
||||
<td style="font-weight: 600; color: white; text-align: center">
|
||||
Bezeichnung
|
||||
</td>
|
||||
<td style="font-weight: 600; color: white; text-align: center">Bezeichnung</td>
|
||||
</th>
|
||||
<th style="text-align: center">
|
||||
<td style="font-weight: 600; color: white; text-align: center">
|
||||
Gültig bis
|
||||
</td>
|
||||
<td style="font-weight: 600; color: white; text-align: center">Gültig bis</td>
|
||||
</th>
|
||||
<th style="text-align: center">
|
||||
<td style="font-weight: 600; color: white; text-align: center">
|
||||
Kartennummer
|
||||
</td>
|
||||
<td style="font-weight: 600; color: white; text-align: center">Kartennummer</td>
|
||||
</th>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -352,7 +340,43 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
<script type="text/javascript">
|
||||
function renderTable(result) {
|
||||
var 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) {
|
||||
var 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_M, function () {
|
||||
dtData.push([
|
||||
this.SDLNr,
|
||||
this.Bez,
|
||||
this.Gueltigbis,
|
||||
this.Kartnr
|
||||
]);
|
||||
});
|
||||
|
||||
$('#<%=tablemain_m.ClientID%>').dataTable({
|
||||
'aaData': dtData,
|
||||
"bJQueryUI": true
|
||||
});
|
||||
}
|
||||
function doPostBack(id) {
|
||||
let Speditionslabel = document.getElementById('<%=lbl_sped_Placeholder.ClientID%>');
|
||||
let natplaceholder = document.getElementById('<%=lbl_Placeholder.ClientID%>');
|
||||
@@ -389,15 +413,16 @@
|
||||
success: function (data) {
|
||||
let JSONObj = 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>';
|
||||
alert('Horray! 200 status code!');
|
||||
// alert(result.rows.length)
|
||||
$(JSONObj).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%>').html(strHTML);
|
||||
//$(JSONObj).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%>').html(strHTML);
|
||||
renderTable(JSONObj)
|
||||
},
|
||||
error: function (jqXHR, textStatus, errorThrown) {
|
||||
alert("Status:" + jqXHR.status + "\nStatusText: " + textStatus + "\nError:" + errorThrown);
|
||||
@@ -438,15 +463,16 @@
|
||||
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>';
|
||||
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)
|
||||
});
|
||||
$('#<%=tablemain_m.ClientID%>').html(strHTML);
|
||||
//$(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_m.ClientID%>').html(strHTML);
|
||||
renderTable_M(result);
|
||||
},
|
||||
error: function (jqXHR, textStatus, errorThrown) {
|
||||
alert("Status:" + jqXHR.status + "\nStatusText: " + textStatus + "\nError:" + errorThrown);
|
||||
|
||||
Reference in New Issue
Block a user