Änderung der VerbindungsURL der JSON Objekte

This commit is contained in:
ja
2022-01-27 17:04:23 +01:00
parent 2dd3556c5e
commit 411a8f11f4
16 changed files with 84 additions and 17 deletions

View File

@@ -154,7 +154,7 @@
$.ajax({
type: "POST",
url: "Formtemplate UTA Karte.aspx/filltabledetails",
url: "Formtemplate EcoTAX.aspx/filltabledetails",
contentType: "application/json; charset=utf-8",
dataType: "json",
async: "true",

View File

@@ -134,7 +134,7 @@
$.ajax({
type: "POST",
url: "Formtemplate UTA Karte.aspx/filltabledetails",
url: "Formtemplate FRESJUS_Tunnelkarte.aspx/filltabledetails",
contentType: "application/json; charset=utf-8",
dataType: "json",
async: "true",

View File

@@ -128,7 +128,7 @@
$.ajax({
type: "POST",
url: "Formtemplate UTA Karte.aspx/filltabledetails",
url: "Formtemplate IDS Tankkarte.aspx/filltabledetails",
contentType: "application/json; charset=utf-8",
dataType: "json",
async: "true",

View File

@@ -108,7 +108,7 @@
$.ajax({
type: "POST",
url: "Formtemplate UTA Karte.aspx/filltabledetails",
url: "Formtemplate MAN Abgaspalette.aspx/filltabledetails",
contentType: "application/json; charset=utf-8",
dataType: "json",
async: "true",

View File

@@ -154,7 +154,7 @@
$.ajax({
type: "POST",
url: "Formtemplate UTA Karte.aspx/filltabledetails",
url: "Formtemplate MultiBox_EcoTAX.aspx/filltabledetails",
contentType: "application/json; charset=utf-8",
dataType: "json",
async: "true",

View File

@@ -144,7 +144,7 @@
$.ajax({
type: "POST",
url: "Formtemplate UTA Karte.aspx/filltabledetails",
url: "Formtemplate Plose.aspx/filltabledetails",
contentType: "application/json; charset=utf-8",
dataType: "json",
async: "true",

View File

@@ -157,7 +157,7 @@
$.ajax({
type: "POST",
url: "Formtemplate UTA Karte.aspx/filltabledetails",
url: "Formtemplate VERAG_Card.aspx/filltabledetails",
contentType: "application/json; charset=utf-8",
dataType: "json",
async: "true",

View File

@@ -146,7 +146,7 @@
$.ajax({
type: "POST",
url: "Formtemplate UTA Karte.aspx/filltabledetails",
url: "Formtemplate HU_HUGO.aspx/filltabledetails",
contentType: "application/json; charset=utf-8",
dataType: "json",
async: "true",

View File

@@ -151,7 +151,7 @@
$.ajax({
type: "POST",
url: "Formtemplate UTA Karte.aspx/filltabledetails",
url: "Formtemplate IT_Plose.aspx/filltabledetails",
contentType: "application/json; charset=utf-8",
dataType: "json",
async: "true",

View File

@@ -152,7 +152,7 @@
$.ajax({
type: "POST",
url: "Formtemplate UTA Karte.aspx/filltabledetails",
url: "Formtemplate MAUT IT.aspx/filltabledetails",
contentType: "application/json; charset=utf-8",
dataType: "json",
async: "true",

View File

@@ -70,8 +70,8 @@
<div class="row w-100">
<div class="col">
<div class="col">
<label id="lbl_VIA_CARD" style="font-weight: 700">Karten-Nr.:</label>
<input id="txt_VIA_CARD" readonly="readonly" type="number" runat="server" style="width: 260px; margin-left: 27px" value="Text" />
<label id="lbl_KartenNr" style="font-weight: 700">Karten-Nr.:</label>
<input id="txt_KartenNr" readonly="readonly" type="number" runat="server" style="width: 260px; margin-left: 27px" value="Text" />
</div>
</div>
</div>
@@ -110,6 +110,71 @@
</div>
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript">
function getParamValue(paramName) {
var url = window.location.search.substring(1); //get rid of "?" in querystring
var qArray = url.split('&'); //get key-value pairs
for (var i = 0; i < qArray.length; i++) {
var pArr = qArray[i].split('='); //split key and value
if (pArr[0] == paramName)
return pArr[1]; //return value
}
}
var param1 = getParamValue('Kennzeichen');
$('txt_ClientNr').val(param1);
detailtabelle(param1)
alert(param1)
function detailtabelle(id) {
// alert("Testdata:" + id)
let data = {};
data['Kennzeichen'] = id;
$.ajax({
type: "POST",
url: "Formtemplate MAUT_CZ_Plose.aspx/filltabledetails",
contentType: "application/json; charset=utf-8",
dataType: "json",
async: "true",
data: JSON.stringify(data),
success: function (data) {
//alert(data.d.AaData)
result = data.d.AaData;
//addheader();
for (var i = 0; i < result.length; i++) {
//let strHTML4 = '<tr><td>878465464634</td><td>DIESEL</td><td>12/05/2026</td><td>151515313521351</td></tr>'
//alert('Horray! 200 status code!' + result[i]);
// alert(result.rows.length)
if (id == result[i]["5"]) {
document.getElementById('<%=txt_BestDatum.ClientID%>').setAttribute('value', result[i]["0"]);
document.getElementById('<%=txt_Lieferdatum.ClientID%>').setAttribute('value', result[i]["1"]);
document.getElementById('<%=txt_KartenNr.ClientID%>').setAttribute('value', result[i]["2"]);
document.getElementById('<%=txt_Vermerk.ClientID%>').setAttribute('value', result[i]["3"]);
document.getElementById('<%=cb_retourniert.ClientID%>').setAttribute('checked', result[i]["4"]);
}
}
//renderTable(data.d);
//alert(strHTML);
},
error: function (jqXHR, textStatus, errorThrown) {
alert("Status:" + jqXHR.status + "\nStatusText: " + textStatus + "\nError:" + errorThrown);
}
});
}
function detailtabelle_M(id_M) {
// alert("Testdata:" + id)
let data = {};
data['Kennzeichen'] = id;
}
</script>
</form>
</body>
</html>

View File

@@ -128,6 +128,7 @@ Partial Class Customers_Default3
list.Add(strtempKartenNr)
list.Add(strtempVermerk)
list.Add(strtempRetourniert)
list.Add(l2.KfzKennzeichen)
If String.Equals(strtempVerloren, "False") Or String.Equals(strtempGestohlen, "False") Or String.Equals(strtempGesperrt, "False") Or String.Equals(strtempDefekt, "False") Or String.Equals(strtempArchivt, "False") Then
listdetails.Add(list)
End If
@@ -195,6 +196,7 @@ Partial Class Customers_Default3
list_M.Add(strtempKartenNr)
list_M.Add(strtempVermerk)
list_M.Add(strtempRetourniert)
list_M.Add(l2.KfzKennzeichen)
If String.Equals(strtempVerloren, "False") Or String.Equals(strtempGestohlen, "False") Or String.Equals(strtempGesperrt, "False") Or String.Equals(strtempDefekt, "False") Or String.Equals(strtempArchivt, "False") Then
listdetails_M.Add(list_M)
End If

View File

@@ -139,7 +139,7 @@
$.ajax({
type: "POST",
url: "Formtemplate UTA Karte.aspx/filltabledetails",
url: "Formtemplate Maut_PL.aspx/filltabledetails",
contentType: "application/json; charset=utf-8",
dataType: "json",
async: "true",

View File

@@ -143,7 +143,7 @@
$.ajax({
type: "POST",
url: "Formtemplate UTA Karte.aspx/filltabledetails",
url: "FormtemplateMAUT_DE_Toll Collect.aspx/filltabledetails",
contentType: "application/json; charset=utf-8",
dataType: "json",
async: "true",

View File

@@ -148,7 +148,7 @@
$.ajax({
type: "POST",
url: "Formtemplate UTA Karte.aspx/filltabledetails",
url: "FormtemplateMAUT_MSECard.aspx/filltabledetails",
contentType: "application/json; charset=utf-8",
dataType: "json",
async: "true",

View File

@@ -160,7 +160,7 @@
$.ajax({
type: "POST",
url: "Formtemplate UTA Karte.aspx/filltabledetails",
url: "Formtemplate_MAUT_AT GoBox.aspx/filltabledetails",
contentType: "application/json; charset=utf-8",
dataType: "json",
async: "true",