Änderung der VerbindungsURL der JSON Objekte
This commit is contained in:
@@ -154,7 +154,7 @@
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "Formtemplate UTA Karte.aspx/filltabledetails",
|
url: "Formtemplate EcoTAX.aspx/filltabledetails",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: "true",
|
async: "true",
|
||||||
|
|||||||
@@ -134,7 +134,7 @@
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "Formtemplate UTA Karte.aspx/filltabledetails",
|
url: "Formtemplate FRESJUS_Tunnelkarte.aspx/filltabledetails",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: "true",
|
async: "true",
|
||||||
|
|||||||
@@ -128,7 +128,7 @@
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "Formtemplate UTA Karte.aspx/filltabledetails",
|
url: "Formtemplate IDS Tankkarte.aspx/filltabledetails",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: "true",
|
async: "true",
|
||||||
|
|||||||
@@ -108,7 +108,7 @@
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "Formtemplate UTA Karte.aspx/filltabledetails",
|
url: "Formtemplate MAN Abgaspalette.aspx/filltabledetails",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: "true",
|
async: "true",
|
||||||
|
|||||||
@@ -154,7 +154,7 @@
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "Formtemplate UTA Karte.aspx/filltabledetails",
|
url: "Formtemplate MultiBox_EcoTAX.aspx/filltabledetails",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: "true",
|
async: "true",
|
||||||
|
|||||||
@@ -144,7 +144,7 @@
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "Formtemplate UTA Karte.aspx/filltabledetails",
|
url: "Formtemplate Plose.aspx/filltabledetails",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: "true",
|
async: "true",
|
||||||
|
|||||||
@@ -157,7 +157,7 @@
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "Formtemplate UTA Karte.aspx/filltabledetails",
|
url: "Formtemplate VERAG_Card.aspx/filltabledetails",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: "true",
|
async: "true",
|
||||||
|
|||||||
@@ -146,7 +146,7 @@
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "Formtemplate UTA Karte.aspx/filltabledetails",
|
url: "Formtemplate HU_HUGO.aspx/filltabledetails",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: "true",
|
async: "true",
|
||||||
|
|||||||
@@ -151,7 +151,7 @@
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "Formtemplate UTA Karte.aspx/filltabledetails",
|
url: "Formtemplate IT_Plose.aspx/filltabledetails",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: "true",
|
async: "true",
|
||||||
|
|||||||
@@ -152,7 +152,7 @@
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "Formtemplate UTA Karte.aspx/filltabledetails",
|
url: "Formtemplate MAUT IT.aspx/filltabledetails",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: "true",
|
async: "true",
|
||||||
|
|||||||
@@ -70,8 +70,8 @@
|
|||||||
<div class="row w-100">
|
<div class="row w-100">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<label id="lbl_VIA_CARD" style="font-weight: 700">Karten-Nr.:</label>
|
<label id="lbl_KartenNr" 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" />
|
<input id="txt_KartenNr" readonly="readonly" type="number" runat="server" style="width: 260px; margin-left: 27px" value="Text" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -110,6 +110,71 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</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>
|
</form>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -128,6 +128,7 @@ Partial Class Customers_Default3
|
|||||||
list.Add(strtempKartenNr)
|
list.Add(strtempKartenNr)
|
||||||
list.Add(strtempVermerk)
|
list.Add(strtempVermerk)
|
||||||
list.Add(strtempRetourniert)
|
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
|
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)
|
listdetails.Add(list)
|
||||||
End If
|
End If
|
||||||
@@ -195,6 +196,7 @@ Partial Class Customers_Default3
|
|||||||
list_M.Add(strtempKartenNr)
|
list_M.Add(strtempKartenNr)
|
||||||
list_M.Add(strtempVermerk)
|
list_M.Add(strtempVermerk)
|
||||||
list_M.Add(strtempRetourniert)
|
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
|
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)
|
listdetails_M.Add(list_M)
|
||||||
End If
|
End If
|
||||||
|
|||||||
@@ -139,7 +139,7 @@
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "Formtemplate UTA Karte.aspx/filltabledetails",
|
url: "Formtemplate Maut_PL.aspx/filltabledetails",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: "true",
|
async: "true",
|
||||||
|
|||||||
@@ -143,7 +143,7 @@
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "Formtemplate UTA Karte.aspx/filltabledetails",
|
url: "FormtemplateMAUT_DE_Toll Collect.aspx/filltabledetails",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: "true",
|
async: "true",
|
||||||
|
|||||||
@@ -148,7 +148,7 @@
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "Formtemplate UTA Karte.aspx/filltabledetails",
|
url: "FormtemplateMAUT_MSECard.aspx/filltabledetails",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: "true",
|
async: "true",
|
||||||
|
|||||||
@@ -160,7 +160,7 @@
|
|||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "Formtemplate UTA Karte.aspx/filltabledetails",
|
url: "Formtemplate_MAUT_AT GoBox.aspx/filltabledetails",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: "true",
|
async: "true",
|
||||||
|
|||||||
Reference in New Issue
Block a user