Änderung funktionerende 2 karten 202 sowie SDLNr 100

This commit is contained in:
ja
2022-02-07 14:39:28 +01:00
parent 842f72eb64
commit c87708eea9
15 changed files with 65 additions and 66 deletions

View File

@@ -567,22 +567,22 @@ iframe {overflow:hidden}
let customerid = '<%=Request.QueryString("CustomerID")%>';
// alert("Var:" + id.split(',')[0]+customerid);
if (result[i]["0"] == 200 && Kennz == id.split(',')[0] && Kundennr == customerid && Kundennr == id.split(',')[2] && SDLNr == id.split(',')[4]){
if (result[i]["0"] == 200 && Kennz == id.split(',')[0] && Kundennr == customerid && Kundennr == id.split(',')[2] && SDLNr == id.split(',')[4] && History == id.split(',')[5]){
iframe = '<iframe sandbox="allow-same-origin allow-scripts" loading="lazy" seamless="seamless" runat="server" enableviewstate="true" style="width:897.5px;height:306px;overflow:hidden !important" scrolling="no" id="iframe1_MautAT" contenteditable="false" src="SDL/MAUT/Formtemplate_MAUT_AT GoBox.aspx?Kennzeichen=' + Kennz + '&CustomerID=' + customerid + '&CardNo=' + cardno + '&CustomerNo=' + Kundennr + '&SDLNr=' + SDLNr + '&History=' + History + '"></iframe>';
strHTML4 = '<tr style="width:897.5px" data-bs-toggle="collapse" data-bs-target="#accordion' + result[i]["3"] + '" class="clickable"><td style="width:224.375px">' + result[i]["0"] + '</td><td style="width:224.375px">' + result[i]["1"] + '</td><td style="width:224.375px">' + result[i]["2"] + '</td><td style="width:224.375px">' + result[i]["3"] + '</td><span class="sign"></span></tr><tr id="accordion' + result[i]["3"] + '" class="collapse accordion-collapse"><td colspan="4">' + iframe + '</td><tr>'
} else if (result[i]["0"] == 100 && Kennz == id.split(',')[0] && Kundennr == customerid && Kundennr == id.split(',')[2] && SDLNr == id.split(',')[4]){
} else if (result[i]["0"] == 100 && Kennz == id.split(',')[0] && Kundennr == customerid && Kundennr == id.split(',')[2] && SDLNr == id.split(',')[4] && History == id.split(',')[5]){
iframe = ' <iframe sandbox="allow-same-origin allow-scripts" loading="lazy" seamless="seamless" runat="server" enableviewstate="true" style="width:897.5px;height:306px;overflow:hidden !important" scrolling="no" id="iframe1_TankDiesel" contenteditable="false" src="SDL/Formtemplate IDS Tankkarte.aspx?Kennzeichen=' + Kennz + '&CustomerID=' + customerid + '&CardNo=' + cardno + '&CustomerNo=' + Kundennr + '&SDLNr=' + SDLNr + '&History=' + History + '"></iframe>';
strHTML4 = '<tr style="width:897.5px" data-bs-toggle="collapse" data-bs-target="#accordion' + result[i][i]["3"] + '" class="clickable"><td style="width:224.375px">' + result[i]["0"] + '</td><td style="width:224.375px">' + result[i]["1"] + '</td><td style="width:224.375px">' + result[i]["2"] + '</td><td style="width:224.375px">' + result[i]["3"] + '</td><span class="sign"></span></tr><tr id="accordion' + result[i]["3"] + '" class="collapse accordion-collapse"><td colspan="4">' + iframe + '</td><tr>'
} else if (result[i]["0"] == 101 && Kennz == id.split(',')[0] && Kundennr == customerid && Kundennr == id.split(',')[2] && SDLNr == id.split(',')[4]){
strHTML4 = '<tr style="width:897.5px" data-bs-toggle="collapse" data-bs-target="#accordion' + result[i]["3"] + '" class="clickable"><td style="width:224.375px">' + result[i]["0"] + '</td><td style="width:224.375px">' + result[i]["1"] + '</td><td style="width:224.375px">' + result[i]["2"] + '</td><td style="width:224.375px">' + result[i]["3"] + '</td><span class="sign"></span></tr><tr id="accordion' + result[i]["3"] + '" class="collapse accordion-collapse"><td colspan="4">' + iframe + '</td><tr>'
} else if (result[i]["0"] == 101 && Kennz == id.split(',')[0] && Kundennr == customerid && Kundennr == id.split(',')[2] && SDLNr == id.split(',')[4] && History == id.split(',')[5]){
iframe = ' <iframe sandbox="allow-same-origin allow-scripts" loading="lazy" seamless="seamless" runat="server" enableviewstate="true" style="width:897.5px;height:306px;overflow:hidden !important" scrolling="no" id="iframe1_WoelflDiesel" contenteditable="false" src="SDL/Formtemplate IDS Wölfl.aspx?Kennzeichen=' + Kennz + '&CustomerID=' + customerid + '&CardNo=' + cardno + '&CustomerNo=' + Kundennr + '&SDLNr=' + SDLNr + '&History=' + History + '"></iframe>';
strHTML4 = '<tr style="width:897.5px" data-bs-toggle="collapse" data-bs-target="#accordion' + result[i]["3"] + '" class="clickable"><td style="width:224.375px">' + result[i]["0"] + '</td><td style="width:224.375px">' + result[i]["1"] + '</td><td style="width:224.375px">' + result[i]["2"] + '</td><td style="width:224.375px">' + result[i]["3"] + '</td><span class="sign"></span></tr><tr id="accordion' + result[i]["3"] + '" class="collapse accordion-collapse"><td colspan="4">' + iframe + '</td><tr>'
} else if (result[i]["0"] == 201 && Kennz == id.split(',')[0] && Kundennr == customerid && Kundennr == id.split(',')[2] && SDLNr == id.split(',')[4]){
} else if (result[i]["0"] == 201 && Kennz == id.split(',')[0] && Kundennr == customerid && Kundennr == id.split(',')[2] && SDLNr == id.split(',')[4] && History == id.split(',')[5]){
iframe = ' <iframe sandbox="allow-same-origin allow-scripts" loading="lazy" seamless="seamless" runat="server" enableviewstate="true" style="width:897.5px;height:306px;overflow:hidden !important" scrolling="no" id="iframe1_MautDE" contenteditable="false" src="SDL/MAUT/FormtemplateMAUT_DE_Toll Collect.aspx?Kennzeichen=' + Kennz + '&CustomerID=' + customerid + '&CardNo=' + cardno + '&CustomerNo=' + Kundennr + '&SDLNr=' + SDLNr + '&History=' + History + '"></iframe>';
strHTML4 = '<tr style="width:897.5px" data-bs-toggle="collapse" data-bs-target="#accordion' + result[i]["3"] + '" class="clickable"><td style="width:224.375px">' + result[i]["0"] + '</td><td style="width:224.375px">' + result[i]["1"] + '</td><td style="width:224.375px">' + result[i]["2"] + '</td><td style="width:224.375px">' + result[i]["3"] + '</td><span class="sign"></span></tr><tr id="accordion' + result[i]["3"] + '" class="collapse accordion-collapse"><td colspan="4">' + iframe + '</td><tr>'
} else if (result[i]["0"] == 202 && Kennz == id.split(',')[0] && Kundennr == customerid && Kundennr == id.split(',')[2] && SDLNr == id.split(',')[4]){
} else if (result[i]["0"] == 202 && Kennz == id.split(',')[0] && Kundennr == customerid && Kundennr == id.split(',')[2] && SDLNr == id.split(',')[4] && History == id.split(',')[5]){
iframe = ' <iframe sandbox="allow-same-origin allow-scripts" loading="lazy" seamless="seamless" runat="server" enableviewstate="true" style="width:897.5px;height:306px;overflow:hidden !important" scrolling="no" id="iframe1_IT_Maut" contenteditable="false" src="SDL/MAUT/Formtemplate MAUT IT.aspx?Kennzeichen=' + Kennz + '&CustomerID=' + customerid + '&CardNo=' + cardno + '&CustomerNo=' + Kundennr + '&SDLNr=' + SDLNr + '&History=' + History + '"></iframe>';
strHTML4 = '<tr style="width:897.5px" data-bs-toggle="collapse" data-bs-target="#accordion' + result[i]["3"] + '" class="clickable"><td style="width:224.375px">' + result[i]["0"] + '</td><td style="width:224.375px">' + result[i]["1"] + '</td><td style="width:224.375px">' + result[i]["2"] + '</td><td style="width:224.375px">' + result[i]["3"] + '</td><span class="sign"></span></tr><tr id="accordion' + result[i]["3"] + '" class="collapse accordion-collapse"><td colspan="4">' + iframe + '</td><tr>'
} else if (result[i]["0"] == 203 && Kennz == id.split(',')[0] && Kundennr == customerid && Kundennr == id.split(',')[2] && SDLNr == id.split(',')[4]){
} else if (result[i]["0"] == 203 && Kennz == id.split(',')[0] && Kundennr == customerid && Kundennr == id.split(',')[2] && SDLNr == id.split(',')[4] && History == id.split(',')[5]){
iframe = ' <iframe sandbox="allow-same-origin allow-scripts" loading="lazy" seamless="seamless" runat="server" enableviewstate="true" style="width:897.5px;height:306px;overflow:hidden !important" scrolling="no" id="iframe1_MautCZ" contenteditable="false" src="SDL/MAUT/Formtemplate MAUT_CZ_Plose.aspx?Kennzeichen=' + Kennz + '&CustomerID=' + customerid + '&CardNo=' + cardno + '&CustomerNo=' + Kundennr + '&SDLNr=' + SDLNr + '&History=' + History + '"></iframe>';
strHTML4 = '<tr style="width:897.5px" data-bs-toggle="collapse" seamless="seamless" data-bs-target="#accordion' + result[i]["3"] + '" class="clickable"><td style="width:224.375px">' + result[i]["0"] + '</td><td style="width:224.375px">' + result[i]["1"] + '</td><td style="width:224.375px">' + result[i]["2"] + '</td><td style="width:224.375px">' + result[i]["3"] + '</td><span class="sign"></span></tr><tr id="accordion' + result[i]["3"] + '" class="collapse accordion-collapse"><td colspan="4">' + iframe + '</td><tr>'
// } else if (result[i]["0"] == 204 && Kennz == id.split(',')[0] && Kundennr == customerid && Kundennr == id.split(',')[2] && SDLNr == id.split(',')[4] && History == id.split(',')[5]){

View File

@@ -645,7 +645,6 @@ Partial Class LKWS
strtempKartenNr = l2.KartenNr.ToString
End If
' If String.Equals(finalSDLNrstr, l2.SDLNr.ToString) = True AndAlso String.Equals(finalstr, l2.KfzKennzeichen.ToString) = True AndAlso String.Equals(finalstrKundNr, l2.KundenNr.ToString) = True Then
Dim Entrytemp As New List(Of String)
Entrytemp.Add(l2.SDLNr.ToString)

View File

@@ -136,13 +136,14 @@
detailtabelle(param1, param2, param3, param4, param5, param6);
//alert(param1)
function detailtabelle(id, CustomerID, Cardnummer, CustomerNo, SDLNr, History) {
function detailtabelle(id,CustomerID,Cardnummer,CustomerNo,SDLNr,History) {
// alert("Testdata:" + id)
let data = {};
data['Kennzeichen'] = id;
data['Kundennr'] = CustomerID;
data['CardNo'] = Cardnummer;
data['CardNo'] = Cardnummer;
data['CustomerNo'] = CustomerNo;
data['SDLNr'] = SDLNr;
data['History'] = History;
@@ -155,22 +156,19 @@
data: JSON.stringify(data),
success: function (data) {
//alert(data.d.AaData)
result = data.d.AaData[i];
//addheader();
for (var i = 0; i < result.length; i++) {
let result2 = data.d;
for (var i = 0; i < result2.AaData.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 (Kennzeichen == result["7"] && SDLNr == result["8"]) {
// alert(result.rows.length)
let result = result2.AaData[i];
document.getElementById('<%=txt_BestNr.ClientID%>').setAttribute('value', result["0"]);
document.getElementById('<%=Txt_Lieferdat.ClientID%>').setAttribute('value', result["1"]);
document.getElementById('<%=txt_KartenNr.ClientID%>').setAttribute('value', result["2"]);
document.getElementById('<%=txt_Pin.ClientID%>').setAttribute('value', result["3"]);
document.getElementById('<%=txt_Vermerk.ClientID%>').setAttribute('value', result["4"]);
document.getElementById('<%=txt_GueltigBis.ClientID%>').setAttribute('value', result["5"]);
document.getElementById('<%=cb_Ersatzkarte.ClientID%>').setAttribute('checked', result["6"]);
}
document.getElementById('<%=cb_Ersatzkarte.ClientID%>').setAttribute('checked', result["6"]);
}
//renderTable(data.d);
//alert(strHTML);

View File

@@ -73,12 +73,12 @@ Partial Class Customers_Default3
<WebMethod>
<ScriptMethod(ResponseFormat:=ResponseFormat.Json, UseHttpGet:=False)>
Public Shared Function filltabledetails(Kennzeichen As String, KundenNr As String, Cardno As String, SDLNr As String, History As String) As FormattedList
Public Shared Function filltabledetails(Kennzeichen As String, Kundennr As String, SDLNr As String, History As String) As FormattedList
Dim list As List(Of String) = New List(Of String)
Dim list2 As List(Of VERAG_PROG_ALLGEMEIN.cSDL) = VERAG_PROG_ALLGEMEIN.cSDL.GET_LIST_WEB_LKW(Integer.Parse(Kdnrtext), Kennzeichen)
Dim listdetails As New List(Of List(Of String))
For Each l2 In list2
If l2.KundenNr.ToString = KundenNr AndAlso l2.SDLNr = SDLNr Then
If l2.KundenNr.ToString = Kundennr AndAlso l2.SDLNr.ToString = SDLNr And l2.History.ToString = History Then
Dim strtempbestelltam As String = String.Empty
Dim strtempLieferdatum As String = String.Empty
Dim strtempKartenNr As String = String.Empty
@@ -138,7 +138,6 @@ Partial Class Customers_Default3
list.Add(strtempGueltigBis)
list.Add(strtempErsatzKarte)
list.Add(l2.KfzKennzeichen)
list.Add(l2.SDLNr.ToString)
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

View File

@@ -176,20 +176,20 @@
data: JSON.stringify(data),
success: function (data) {
//alert(data.d.AaData)
result = data.d.AaData;
result = data.d.AaData[i];
//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 (cardnumber == result[i]["2"]) {
document.getElementById('<%=txt_BestNr.ClientID%>').setAttribute('value', result[i]["0"]);
document.getElementById('<%=txt_Lieferdat.ClientID%>').setAttribute('value', result[i]["1"]);
document.getElementById('<%=txt_Kartennr.ClientID%>').setAttribute('value', result[i]["2"]);
document.getElementById('<%=txt_Pin.ClientID%>').setAttribute('value', result[i]["3"]);
document.getElementById('<%=txt_OBU_ID.ClientID%>').setAttribute('value', result[i]["4"]);
document.getElementById('<%=txt_Vermerk.ClientID%>').setAttribute('value', result[i]["5"]);
if (Kennzeichen == result["6"] && SDLNr == result["7"]) {
document.getElementById('<%=txt_BestNr.ClientID%>').setAttribute('value', result["0"]);
document.getElementById('<%=txt_Lieferdat.ClientID%>').setAttribute('value', result["1"]);
document.getElementById('<%=txt_Kartennr.ClientID%>').setAttribute('value', result["2"]);
document.getElementById('<%=txt_Pin.ClientID%>').setAttribute('value', result["3"]);
document.getElementById('<%=txt_OBU_ID.ClientID%>').setAttribute('value', result["4"]);
document.getElementById('<%=txt_Vermerk.ClientID%>').setAttribute('value', result["5"]);
}
}

View File

@@ -135,6 +135,7 @@ Partial Class Customers_Default3
list.Add(strtempVermerk)
list.Add(strtempRetourniert)
list.Add(l2.KfzKennzeichen)
list.Add(l2.SDLNr.ToString)
If String.Equals(strtempVerloren, "False") And String.Equals(strtempGestohlen, "False") And String.Equals(strtempGesperrt, "False") And String.Equals(strtempDefekt, "False") And String.Equals(strtempArchivt, "False") Then
listdetails.Add(list)
End If

View File

@@ -179,21 +179,21 @@
data: JSON.stringify(data),
success: function (data) {
//alert(data.d.AaData)
result = data.d.AaData;
result = data.d.AaData[i];
//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 (CardNumber == result[i]["7"]) {
document.getElementById('<%=txt_BestDatum.ClientID%>').setAttribute('value', result[i]["0"]);
document.getElementById('<%=txt_Lieferdatum.ClientID%>').setAttribute('value', result[i]["1"]);
document.getElementById('<%=txt_VIA_CARD.ClientID%>').setAttribute('value', result[i]["2"]);
document.getElementById('<%=txt_Telepass_Nr.ClientID%>').setAttribute('value', result[i]["3"]);
document.getElementById('<%=txt_Vermerk.ClientID%>').setAttribute('value', result[i]["4"]);
document.getElementById('<%=cb_Ersatztelpass.ClientID%>').setAttribute('checked', result[i]["5"]);
document.getElementById('<%=cb_retourniert.ClientID%>').setAttribute('checked', result[i]["6"]);
if (Kennzeichen == result["7"] && SDLNr == result["9"]) {
document.getElementById('<%=txt_BestDatum.ClientID%>').setAttribute('value', result["0"]);
document.getElementById('<%=txt_Lieferdatum.ClientID%>').setAttribute('value', result["1"]);
document.getElementById('<%=txt_VIA_CARD.ClientID%>').setAttribute('value', result["2"]);
document.getElementById('<%=txt_Telepass_Nr.ClientID%>').setAttribute('value', result["3"]);
document.getElementById('<%=txt_Vermerk.ClientID%>').setAttribute('value', result["4"]);
document.getElementById('<%=cb_Ersatztelpass.ClientID%>').setAttribute('checked', result["5"]);
document.getElementById('<%=cb_retourniert.ClientID%>').setAttribute('checked', result["6"]);
}
}

View File

@@ -146,6 +146,7 @@ Partial Class Customers_Default3
list.Add(strtempVermerk)
list.Add(l2.KfzKennzeichen)
list.Add(strtempKartenNummer)
list.Add(l2.SDLNr.ToString)
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

View File

@@ -180,20 +180,20 @@
data: JSON.stringify(data),
success: function (data) {
//alert(data.d.AaData)
result = data.d.AaData;
result = data.d.AaData[i];
//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 (Cardnumber == result[i]["7"]) {
document.getElementById('<%=txt_Bestdat.ClientID%>').setAttribute('value', result[i]["0"]);
document.getElementById('<%=txt_Lieferdat.ClientID%>').setAttribute('value', result[i]["1"]);
document.getElementById('<%=txt_VIACard.ClientID%>').setAttribute('value', result[i]["2"]);
document.getElementById('<%=txt_TelepassNr.ClientID%>').setAttribute('value', result[i]["3"]);
document.getElementById('<%=txt_Vermerk.ClientID%>').setAttribute('value', result[i]["4"]);
document.getElementById('<%=ckb_ErsatztelePass.ClientID%>').setAttribute('checked', result[i]["5"]);
document.getElementById('<%=ckb_retourniert.ClientID%>').setAttribute('checked', result[i]["6"]);
if (Kennzeichen == result["7"] && SDLNr == result["8"]) {
document.getElementById('<%=txt_Bestdat.ClientID%>').setAttribute('value', result["0"]);
document.getElementById('<%=txt_Lieferdat.ClientID%>').setAttribute('value', result["1"]);
document.getElementById('<%=txt_VIACard.ClientID%>').setAttribute('value', result["2"]);
document.getElementById('<%=txt_TelepassNr.ClientID%>').setAttribute('value', result["3"]);
document.getElementById('<%=txt_Vermerk.ClientID%>').setAttribute('value', result["4"]);
document.getElementById('<%=ckb_ErsatztelePass.ClientID%>').setAttribute('checked', result["5"]);
document.getElementById('<%=ckb_retourniert.ClientID%>').setAttribute('checked', result["6"]);
}
}
//renderTable(data.d);

View File

@@ -140,6 +140,7 @@ Partial Class Customers_Default3
list.Add(strtempTELEPASS_Nr)
list.Add(strtempRetourniert)
list.Add(l2.KfzKennzeichen)
list.Add(l2.SDLNr.ToString)
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") And l2.KartenNr = CardNr Then
listdetails.Add(list)
End If

View File

@@ -164,19 +164,19 @@
data: JSON.stringify(data),
success: function (data) {
//alert(data.d.AaData)
result = data.d.AaData;
result = data.d.AaData[i];
//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 (Cardnummer == result[i]["2"]) {
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"]);
if (Kennzeichen == result["5"] && SDLNr == result["6"]) {
document.getElementById('<%=txt_BestDatum.ClientID%>').setAttribute('value', result["0"]);
document.getElementById('<%=txt_Lieferdatum.ClientID%>').setAttribute('value', result["1"]);
document.getElementById('<%=txt_KartenNr.ClientID%>').setAttribute('value', result["2"]);
document.getElementById('<%=txt_Vermerk.ClientID%>').setAttribute('value', result["3"]);
document.getElementById('<%=cb_retourniert.ClientID%>').setAttribute('checked', result["4"]);
}
}

View File

@@ -129,6 +129,7 @@ Partial Class Customers_Default3
list.Add(strtempVermerk)
list.Add(strtempRetourniert)
list.Add(l2.KfzKennzeichen)
list.Add(l2.SDLNr.ToString)
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") And l2.KartenNr = CardNr Then
listdetails.Add(list)
End If
@@ -199,6 +200,7 @@ Partial Class Customers_Default3
list_M.Add(strtempVermerk)
list_M.Add(strtempRetourniert)
list_M.Add(l2.KfzKennzeichen)
list_M.Add(l2.SDLNr.ToString)
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") And l2.KartenNr = CardNr Then
listdetails_M.Add(list_M)
End If

View File

@@ -167,19 +167,19 @@
data: JSON.stringify(data),
success: function (data) {
//alert(data.d.AaData)
result = data.d.AaData;
result = data.d.AaData[i];
//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 (CardNumber == result[i]["2"]) {
document.getElementById('<%=txt_BestNr.ClientID%>').setAttribute('value', result[i]["0"]);
document.getElementById('<%=txt_Lieferdat.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('<%=ckb_retourniert.ClientID%>').setAttribute('checked', result[i]["4"]);
if (Kennzeichen == result["5"] && SDLNr == result["6"]) {
document.getElementById('<%=txt_BestNr.ClientID%>').setAttribute('value', result["0"]);
document.getElementById('<%=txt_Lieferdat.ClientID%>').setAttribute('value', result["1"]);
document.getElementById('<%=txt_KartenNr.ClientID%>').setAttribute('value', result["2"]);
document.getElementById('<%=txt_Vermerk.ClientID%>').setAttribute('value', result["3"]);
document.getElementById('<%=ckb_retourniert.ClientID%>').setAttribute('checked', result["4"]);
}
}

View File

@@ -129,6 +129,7 @@ Partial Class Customers_Default3
list.Add(strtempVermerk)
list.Add(strtempRetourniert)
list.Add(l2.KfzKennzeichen)
list.Add(l2.SDLNr.ToString)
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

View File

@@ -169,17 +169,14 @@
//alert('Horray! 200 status code!' + result[i]);
// alert(result.rows.length)
let result = result2.AaData[i];
//alert(result+"Ergebnis detailtabelle")
//alert(result+"Ergebnis detailtabelle")
document.getElementById('<%=txt_BestellDatum.ClientID%>').setAttribute('value', result["0"]);
document.getElementById('<%=txt_Lieferdatum.ClientID%>').setAttribute('value', result["1"]);
document.getElementById('<%=txt_KartNr.ClientID%>').setAttribute('value', result["2"]);
document.getElementById('<%=txt_CardNr.ClientID%>').setAttribute('value', result["3"]);
document.getElementById('<%=txt_PIN.ClientID%>').setAttribute('value', result["4"]);
document.getElementById('<%=txt_Vermerk.ClientID%>').setAttribute('value', result["5"]);
document.getElementById('<%=txt_GueltigBis.ClientID%>').setAttribute('value', result["8"]);
document.getElementById('<%=txt_GueltigBis.ClientID%>').setAttribute('value', result["8"]);
}
//renderTable(data.d);
//alert(strHTML);