Änderung
This commit is contained in:
@@ -125,27 +125,19 @@
|
||||
return pArr[1]; //return value
|
||||
}
|
||||
}
|
||||
var param1 = getParamValue('Kennzeichen');
|
||||
var param2 = getParamValue('CustomerID');
|
||||
var param3 = getParamValue('CardNo');
|
||||
var param4 = getParamValue('CustomerNo');
|
||||
var param5 = getParamValue('SDLNr');
|
||||
var param6 = getParamValue('History');
|
||||
var param1 = getParamValue('Kennzeichen');
|
||||
var param2 = getParamValue('CardNo');
|
||||
|
||||
$('txt_ClientNr').val(param1);
|
||||
detailtabelle(param1,param2)
|
||||
//alert(param1)
|
||||
|
||||
function detailtabelle(id, CardNo) {
|
||||
// alert("Testdata:" + id)
|
||||
|
||||
$('txt_ClientNr').val(param1);
|
||||
detailtabelle(param1, param2, param3, param4, param5, param6);
|
||||
//alert(param1)
|
||||
|
||||
function detailtabelle(id, CustomerID, Cardnummer, CustomerNo, SDLNr, History) {
|
||||
// alert("Testdata:" + id)
|
||||
|
||||
let data = {};
|
||||
data['Kennzeichen'] = id;
|
||||
data['Kundennr'] = CustomerID;
|
||||
data['CardNo'] = Cardnummer;
|
||||
data['CustomerNo'] = CustomerNo;
|
||||
data['SDLNr'] = SDLNr;
|
||||
data['History'] = History;
|
||||
let data = {};
|
||||
data['Kennzeichen'] = id;
|
||||
data['CardNo'] = CardNo;
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
@@ -163,14 +155,14 @@
|
||||
//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 (CardNo == result["2"]) {
|
||||
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"]);
|
||||
if (CardNo == 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_Vermerk.ClientID%>').setAttribute('value', result[i]["4"]);
|
||||
document.getElementById('<%=txt_GueltigBis.ClientID%>').setAttribute('value', result[i]["5"]);
|
||||
document.getElementById('<%=cb_Ersatzkarte.ClientID%>').setAttribute('checked', result[i]["6"]);
|
||||
}
|
||||
}
|
||||
//renderTable(data.d);
|
||||
|
||||
@@ -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, CustomerNo 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.KfzKennzeichen = Kennzeichen And l2.KundenNr = KundenNr And l2.KartenNr = Cardno And l2.SDLNr = SDLNr And l2.History = History Then
|
||||
If l2.KfzKennzeichen = Kennzeichen And l2.KundenNr = KundenNr And l2.SDLNr = SDLNr And l2.History = History Then
|
||||
Dim strtempbestelltam As String = String.Empty
|
||||
Dim strtempLieferdatum As String = String.Empty
|
||||
Dim strtempKartenNr As String = String.Empty
|
||||
|
||||
@@ -131,26 +131,18 @@
|
||||
}
|
||||
}
|
||||
var param1 = getParamValue('Kennzeichen');
|
||||
var param2 = getParamValue('CustomerID');
|
||||
var param3 = getParamValue('CardNo');
|
||||
var param4 = getParamValue('CustomerNo');
|
||||
var param5 = getParamValue('SDLNr');
|
||||
var param6 = getParamValue('History');
|
||||
var param2 = getParamValue('CardNo');
|
||||
|
||||
$('txt_ClientNr').val(param1);
|
||||
detailtabelle(param1,param2,param3,param4,param5,param6)
|
||||
detailtabelle(param1,param2)
|
||||
//alert(param1)
|
||||
|
||||
function detailtabelle(id,CustomerID,Cardnummer,CustomerNo,SDLNr,History) {
|
||||
function detailtabelle(id,Cardnummer) {
|
||||
// alert("Testdata:" + id)
|
||||
|
||||
let data = {};
|
||||
data['Kennzeichen'] = id;
|
||||
data['Kundennr'] = CustomerID;
|
||||
data['CardNo'] = Cardnummer;
|
||||
data['CustomerNo'] = CustomerNo;
|
||||
data['SDLNr'] = SDLNr;
|
||||
data['History'] = History;
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
@@ -161,24 +153,22 @@
|
||||
data: JSON.stringify(data),
|
||||
success: function (data) {
|
||||
//alert(data.d.AaData)
|
||||
let result2 = data.d;
|
||||
result = data.d.AaData;
|
||||
//addheader();
|
||||
|
||||
for (var i = 0; i < result2.AaData.length; i++) {
|
||||
|
||||
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)
|
||||
let result = result2.AaData[i];
|
||||
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["6"]);
|
||||
|
||||
// alert(result.rows.length)
|
||||
if (Cardnummer == result[i]["2"]) {
|
||||
document.getElementById('<%=txt_BestellDatum.ClientID%>').setAttribute('value', result[i]["0"]);
|
||||
document.getElementById('<%=txt_Lieferdatum.ClientID%>').setAttribute('value', result[i]["1"]);
|
||||
document.getElementById('<%=txt_KartNr.ClientID%>').setAttribute('value', result[i]["2"]);
|
||||
document.getElementById('<%=txt_CardNr.ClientID%>').setAttribute('value', result[i]["3"]);
|
||||
document.getElementById('<%=txt_PIN.ClientID%>').setAttribute('value', result[i]["4"]);
|
||||
document.getElementById('<%=txt_Vermerk.ClientID%>').setAttribute('value', result[i]["5"]);
|
||||
document.getElementById('<%=txt_GueltigBis.ClientID%>').setAttribute('value', result[i]["6"]);
|
||||
}
|
||||
|
||||
}
|
||||
//renderTable(data.d);
|
||||
|
||||
@@ -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 And l2.KartenNr = CardNo Then
|
||||
If l2.KundenNr.ToString = Kundennr AndAlso l2.SDLNr = SDLNr AndAlso l2.History = History Then
|
||||
Dim strtempbestelltam As String = String.Empty
|
||||
Dim strtempLieferdatum As String = String.Empty
|
||||
Dim strtempKartenNr As String = String.Empty
|
||||
|
||||
Reference in New Issue
Block a user