Implementierung FOrmbefüllung mit JSON OBjekten und getrennten Datenströmen
This commit is contained in:
@@ -61,8 +61,8 @@
|
||||
<div class="row w-100">
|
||||
<div class="col">
|
||||
<div class="col">
|
||||
<label id="lbl_Umstellungsdatum">Umstellungsdatum:</label>
|
||||
<input id="Text1" readonly="readonly" runat="server" style="width: 68px; margin-left: 0px" value="Text" />
|
||||
<label id="lbl_Umstellungsdatum" >Umstellungsdatum:</label>
|
||||
<input id="txt_Umstellungsdatum" readonly="readonly" runat="server" style="width: 68px; margin-left: 0px" value="Text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
@@ -103,7 +103,13 @@
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<label id="lbl_GueltigBis">Gueltig Bis:</label>
|
||||
<input id="GueltigBis" readonly="readonly" runat="server" />
|
||||
<input id="txt_GueltigBis" readonly="readonly" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<label id="lbl_retourniert">Retourniert:</label>
|
||||
<input id="cb_retourniert" readonly="readonly" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="height: 40px;"></div>
|
||||
@@ -123,7 +129,73 @@
|
||||
</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 UTA Karte.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]["8"]) {
|
||||
document.getElementById('<%=txt_BestNr.ClientID%>').setAttribute('value', result[i]["0"]);
|
||||
document.getElementById('<%=txt_Umstellungsdatum.ClientID%>').setAttribute('value', result[i]["1"]);
|
||||
document.getElementById('<%=txt_Kategorie.ClientID%>').setAttribute('value', result[i]["2"]);
|
||||
document.getElementById('<%=txt_Vertrabschldat.ClientID%>').setAttribute('value', result[i]["3"]);
|
||||
document.getElementById('<%=txt_Status.ClientID%>').setAttribute('checked', result[i]["4"]);
|
||||
document.getElementById('<%=txt_Schadstoffklasse.ClientID%>').setAttribute('checked', result[i]["5"]);
|
||||
document.getElementById('<%=txt_GueltigBis.ClientID%>').setAttribute('checked', result[i]["6"]);
|
||||
document.getElementById('<%=cb_retourniert%>').setAttribute('checked', result[i]["7"]);
|
||||
}
|
||||
}
|
||||
//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>
|
||||
|
||||
@@ -134,12 +134,9 @@ Partial Class Customers_Default3
|
||||
list.Add(strtempVermerk)
|
||||
list.Add(strtempGueltigBis)
|
||||
list.Add(strtempretourniert)
|
||||
list.Add(strtempVerloren)
|
||||
list.Add(strtempGestohlen)
|
||||
list.Add(strtempGesperrt)
|
||||
list.Add(strtempDefekt)
|
||||
list.Add(strtempArchivt)
|
||||
listdetails.Add(list)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
@@ -213,12 +210,9 @@ Partial Class Customers_Default3
|
||||
list_M.Add(strtempVermerk)
|
||||
list_M.Add(strtempGueltigBis)
|
||||
list_M.Add(strtempretourniert)
|
||||
list_M.Add(strtempVerloren)
|
||||
list_M.Add(strtempGestohlen)
|
||||
list_M.Add(strtempGesperrt)
|
||||
list_M.Add(strtempDefekt)
|
||||
list_M.Add(strtempArchivt)
|
||||
listdetails_M.Add(list_M)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
|
||||
@@ -91,15 +91,15 @@
|
||||
<div class="col">
|
||||
<div class="col">
|
||||
<div class="col" style="height: 40px;">
|
||||
<div id="checkboxes">
|
||||
<asp:CheckBoxList runat="server" Enabled="false">
|
||||
<asp:ListItem Text="Verloren" Value="Verloren" Selected="false"></asp:ListItem>
|
||||
<asp:ListItem Text="Gestohlen" Value="Gestohlen" Enabled="false"></asp:ListItem>
|
||||
<asp:ListItem Text="Gesperrt" Value="Verloren" Enabled="false"></asp:ListItem>
|
||||
<asp:ListItem Text="Defekt" Value="Verloren" Enabled="false"></asp:ListItem>
|
||||
<asp:ListItem Text="Archiviert" Value="Verloren" Enabled="false"></asp:ListItem>
|
||||
</asp:CheckBoxList>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<label id="lbl_retounriert">Vermerk:</label>
|
||||
</div>
|
||||
<div class="col">
|
||||
<input id="cb_retounriert" readonly="readonly" runat="server" type="checkbox" style="width: 198px; height: 48px; margin-left: 0px" value="Text" aria-multiline="true" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -108,7 +108,72 @@
|
||||
</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 UTA Karte.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]["6"]) {
|
||||
document.getElementById('<%=txt_BestDatum.ClientID%>').setAttribute('value', result[i]["0"]);
|
||||
document.getElementById('<%=txt_LieferDatum.ClientID%>').setAttribute('value', result[i]["1"]);
|
||||
document.getElementById('<%=txt_FresjusNr.ClientID%>').setAttribute('value', result[i]["2"]);
|
||||
document.getElementById('<%=txt_ECOKlasse.ClientID%>').setAttribute('value', result[i]["3"]);
|
||||
document.getElementById('<%=txt_Vermerk.ClientID%>').setAttribute('value', result[i]["4"]);
|
||||
document.getElementById('<%=cb_retounriert.ClientID%>').setAttribute('checked', result[i]["5"]);
|
||||
}
|
||||
}
|
||||
//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>
|
||||
|
||||
@@ -132,12 +132,10 @@ Partial Class Customers_Default3
|
||||
list.Add(strtempEcoClass)
|
||||
list.Add(strtempVermerk)
|
||||
list.Add(strtempErsatzKarte)
|
||||
list.Add(strtempVerloren)
|
||||
list.Add(strtempGestohlen)
|
||||
list.Add(strtempGesperrt)
|
||||
list.Add(strtempDefekt)
|
||||
list.Add(strtempArchivt)
|
||||
listdetails.Add(list)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
@@ -206,12 +204,10 @@ Partial Class Customers_Default3
|
||||
list_M.Add(strtempEcoClass)
|
||||
list_M.Add(strtempVermerk)
|
||||
list_M.Add(strtempErsatzKarte)
|
||||
list_M.Add(strtempVerloren)
|
||||
list_M.Add(strtempGestohlen)
|
||||
list_M.Add(strtempGesperrt)
|
||||
list_M.Add(strtempDefekt)
|
||||
list_M.Add(strtempArchivt)
|
||||
listdetails_M.Add(list_M)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
|
||||
@@ -79,9 +79,13 @@
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<label id="lbl_GueltigBis">Gueltig Bis:</label>
|
||||
<input id="GueltigBis" readonly="readonly" runat="server" />
|
||||
<input id="txt_GueltigBis" readonly="readonly" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label id="lbl_Ersatzkarte">Gueltig Bis:</label>
|
||||
<input id="cb_Ersatzkarte" readonly="readonly" runat="server" type="checkbox"/>
|
||||
</div>
|
||||
<div class="row" style="height: 40px;"></div>
|
||||
<div id="checkboxes">
|
||||
<asp:CheckBoxList runat="server" Enabled="false">
|
||||
@@ -99,7 +103,72 @@
|
||||
</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 UTA Karte.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]["7"]) {
|
||||
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('value', result[i]["6"]);
|
||||
}
|
||||
}
|
||||
//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>
|
||||
|
||||
@@ -135,12 +135,9 @@ Partial Class Customers_Default3
|
||||
list.Add(strtempVermerk)
|
||||
list.Add(strtempGueltigBis)
|
||||
list.Add(strtempErsatzKarte)
|
||||
list.Add(strtempVerloren)
|
||||
list.Add(strtempGestohlen)
|
||||
list.Add(strtempGesperrt)
|
||||
list.Add(strtempDefekt)
|
||||
list.Add(strtempArchivt)
|
||||
listdetails.Add(list)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
@@ -214,12 +211,9 @@ Partial Class Customers_Default3
|
||||
list_M.Add(strtempVermerk)
|
||||
list_M.Add(strtempGueltigBis)
|
||||
list_M.Add(strtempErsatzKarte)
|
||||
list_M.Add(strtempVerloren)
|
||||
list_M.Add(strtempGestohlen)
|
||||
list_M.Add(strtempGesperrt)
|
||||
list_M.Add(strtempDefekt)
|
||||
list_M.Add(strtempArchivt)
|
||||
listdetails_M.Add(list_M)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
|
||||
@@ -82,7 +82,69 @@
|
||||
</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 UTA Karte.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]["7"]) {
|
||||
document.getElementById('<%=txt_Bestelldatum.ClientID%>').setAttribute('value', result[i]["0"]);
|
||||
document.getElementById('<%=txt_Lieferdatum.ClientID%>').setAttribute('value', result[i]["1"]);
|
||||
document.getElementById('<%=txt_Vermerk.ClientID%>').setAttribute('value', result[i]["2"]);
|
||||
}
|
||||
}
|
||||
//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>
|
||||
|
||||
@@ -100,9 +100,9 @@ Partial Class Customers_Default3
|
||||
list.Add(strtempbestelltam)
|
||||
list.Add(strtempLieferdatum)
|
||||
list.Add(strtempVermerk)
|
||||
list.Add(strtempArchivt)
|
||||
|
||||
listdetails.Add(list)
|
||||
If String.Equals(strtempArchivt, "False") Then
|
||||
listdetails.Add(list)
|
||||
End If
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
@@ -142,8 +142,9 @@ Partial Class Customers_Default3
|
||||
list_M.Add(strtempLieferdatum)
|
||||
list_M.Add(strtempVermerk)
|
||||
list_M.Add(strtempArchivt)
|
||||
|
||||
listdetails_M.Add(list_M)
|
||||
If String.Equals(strtempArchivt, "False") Then
|
||||
listdetails_M.Add(list_M)
|
||||
End If
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
|
||||
@@ -48,14 +48,7 @@
|
||||
<div class="card-body">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<label id="lbl_Lieferdatum">Lieferdatum:</label>
|
||||
</div>
|
||||
<div class="col">
|
||||
<input id="txt_Lieferdatum" readonly="readonly" runat="server" style="margin-left: 10px" /></div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<label id="lbl_Bestelldatum">Bestelldatum:</label>
|
||||
@@ -64,6 +57,14 @@
|
||||
<input id="txt_Bestelldatum" readonly="readonly" runat="server" style="margin-left: 10px" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<label id="lbl_Lieferdatum">Lieferdatum:</label>
|
||||
</div>
|
||||
<div class="col">
|
||||
<input id="txt_Lieferdatum" readonly="readonly" runat="server" style="margin-left: 10px" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="height: 20px">
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -102,8 +103,7 @@
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<label id="lbl_GueltigBis">Gueltig Bis</label>
|
||||
<input id="txt_GueltigBis" readonly="readonly" type="date" runat="server" />
|
||||
|
||||
<input id="txt_GueltigBis" readonly="readonly" type="date" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -129,7 +129,72 @@
|
||||
</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 UTA Karte.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]["7"]) {
|
||||
document.getElementById('<%=txt_Bestelldatum.ClientID%>').setAttribute('value', result[i]["0"]);
|
||||
document.getElementById('<%=txt_Lieferdatum.ClientID%>').setAttribute('value', result[i]["1"]);
|
||||
document.getElementById('<%=txt_PANNr.ClientID%>').setAttribute('value', result[i]["2"]);
|
||||
document.getElementById('<%=txt_SERIENr.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('<%=ckb_retourniert.ClientID%>').setAttribute('checked', result[i]["6"]);
|
||||
}
|
||||
}
|
||||
//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>
|
||||
|
||||
@@ -137,12 +137,10 @@ Partial Class Customers_Default3
|
||||
list.Add(strtempVermerk)
|
||||
list.Add(strtempGueltigBis)
|
||||
list.Add(strtempRetourniert)
|
||||
list.Add(strtempVerloren)
|
||||
list.Add(strtempGestohlen)
|
||||
list.Add(strtempGesperrt)
|
||||
list.Add(strtempDefekt)
|
||||
list.Add(strtempArchivt)
|
||||
listdetails.Add(list)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
@@ -216,12 +214,10 @@ Partial Class Customers_Default3
|
||||
list_M.Add(strtempVermerk)
|
||||
list_M.Add(strtempGueltigBis)
|
||||
list_M.Add(strtempRetourniert)
|
||||
list_M.Add(strtempVerloren)
|
||||
list_M.Add(strtempGestohlen)
|
||||
list_M.Add(strtempGesperrt)
|
||||
list_M.Add(strtempDefekt)
|
||||
list_M.Add(strtempArchivt)
|
||||
listdetails_M.Add(list_M)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
|
||||
@@ -119,7 +119,71 @@
|
||||
</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 UTA Karte.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]["6"]) {
|
||||
document.getElementById('<%=txt_BestDatum.ClientID%>').setAttribute('value', result[i]["0"]);
|
||||
document.getElementById('<%=txt_Lieferdatum.ClientID%>').setAttribute('value', result[i]["1"]);
|
||||
document.getElementById('<%=txtOBU_Id.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('<%=cb_retourniert.ClientID%>').setAttribute('checked', result[i]["5"]);
|
||||
}
|
||||
}
|
||||
//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>
|
||||
|
||||
@@ -137,13 +137,10 @@ Partial Class Customers_Default3
|
||||
list.Add(strtempVermerk)
|
||||
list.Add(strtempErsatzTelePass)
|
||||
list.Add(strtempRetourniert)
|
||||
list.Add(strtempVerloren)
|
||||
list.Add(strtempGestohlen)
|
||||
list.Add(strtempGesperrt)
|
||||
list.Add(strtempDefekt)
|
||||
list.Add(strtempArchivt)
|
||||
|
||||
listdetails.Add(list)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
@@ -217,13 +214,10 @@ Partial Class Customers_Default3
|
||||
list_M.Add(strtempVermerk)
|
||||
list_M.Add(strtempErsatzTelePass)
|
||||
list_M.Add(strtempRetourniert)
|
||||
list_M.Add(strtempVerloren)
|
||||
list_M.Add(strtempGestohlen)
|
||||
list_M.Add(strtempGesperrt)
|
||||
list_M.Add(strtempDefekt)
|
||||
list_M.Add(strtempArchivt)
|
||||
|
||||
listdetails_M.Add(list_M)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
<div class="col">
|
||||
<div class="col">
|
||||
<label id="lbl_KartenNr">Karten-Nr.:</label>
|
||||
<input id="Text1" readonly="readonly" type="number" runat="server" style="width: 98px; margin-left: 58px" value="Text" />
|
||||
<input id="txt_KartenNr" readonly="readonly" type="number" runat="server" style="width: 98px; margin-left: 58px" value="Text" />
|
||||
<span id="symbol" style="width:30px"></span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -88,7 +88,7 @@
|
||||
<div class="col">
|
||||
<label id="lbl_Kaution_Beleg">Kaution/BelegNr.:</label>
|
||||
<input id="txt_Kaution" readonly="readonly" runat="server" style="width: 120px; margin-left:11px" value="Text" />
|
||||
<input id="Text2" readonly="readonly" runat="server" style="width: 80px; margin-left: -4px" value="Text" />
|
||||
<input id="txt_Beleg" readonly="readonly" runat="server" style="width: 80px; margin-left: -4px" value="Text" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -104,7 +104,17 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="col">
|
||||
<div class="row w-20">
|
||||
<div class="col">
|
||||
<div class="col">
|
||||
<label id="lbl_Ersatzkarte">Vermerk:</label>
|
||||
</div>
|
||||
<div class="col">
|
||||
<input id="cb_Ersatzkarte" readonly="readonly" type="checkbox" runat="server" style="width: 105px; height: 40px;" value="Text" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="height: 40px;"></div>
|
||||
<div id="checkboxes">
|
||||
<asp:CheckBoxList runat="server" Enabled="false">
|
||||
@@ -122,6 +132,73 @@
|
||||
</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 UTA Karte.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]["8"]) {
|
||||
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_Fahrer.ClientID%>').setAttribute('value', result[i]["3"]);
|
||||
document.getElementById('<%=txt_Kaution.ClientID%>').setAttribute('value', result[i]["4"]);
|
||||
document.getElementById('<%=txt_Beleg.ClientID%>').setAttribute('value', result[i]["5"]);
|
||||
document.getElementById('<%=txt_Vermerk.ClientID%>').setAttribute('value', result[i]["6"]);
|
||||
document.getElementById('<%=cb_Ersatzkarte.ClientID%>').setAttribute('checked', result[i]["7"]);
|
||||
}
|
||||
}
|
||||
//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>
|
||||
|
||||
@@ -86,7 +86,7 @@ Partial Class Customers_Default3
|
||||
Dim strtempKaut As String = String.Empty
|
||||
Dim strtempBelegNr As String = String.Empty
|
||||
Dim strtempVermerk As String = String.Empty
|
||||
Dim strtempRetourniert As String = String.Empty
|
||||
Dim strtempErsatzkarte As String = String.Empty
|
||||
Dim strtempVerloren As String = String.Empty
|
||||
Dim strtempGestohlen As String = String.Empty
|
||||
Dim strtempGesperrt As String = String.Empty
|
||||
@@ -114,8 +114,8 @@ Partial Class Customers_Default3
|
||||
If IsNothing(l2.Vermerk) = False Then
|
||||
strtempVermerk = l2.Vermerk.ToString
|
||||
End If
|
||||
If IsNothing(l2.Retourniert) = False Then
|
||||
strtempRetourniert = l2.Retourniert.ToString
|
||||
If IsNothing(l2.Ersatzkarte) = False Then
|
||||
strtempErsatzkarte = l2.Ersatzkarte.ToString
|
||||
End If
|
||||
If IsNothing(l2.Verloren) = False Then
|
||||
strtempVerloren = l2.Verloren.ToString
|
||||
@@ -141,13 +141,11 @@ Partial Class Customers_Default3
|
||||
list.Add(strtempKaut)
|
||||
list.Add(strtempBelegNr)
|
||||
list.Add(strtempVermerk)
|
||||
list.Add(strtempRetourniert)
|
||||
list.Add(strtempVerloren)
|
||||
list.Add(strtempGestohlen)
|
||||
list.Add(strtempGesperrt)
|
||||
list.Add(strtempDefekt)
|
||||
list.Add(strtempArchivt)
|
||||
listdetails.Add(list)
|
||||
list.Add(strtempErsatzkarte)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
@@ -171,7 +169,7 @@ Partial Class Customers_Default3
|
||||
Dim strtempKaut As String = String.Empty
|
||||
Dim strtempBelegNr As String = String.Empty
|
||||
Dim strtempVermerk As String = String.Empty
|
||||
Dim strtempRetourniert As String = String.Empty
|
||||
Dim strtempErsatzkarte As String = String.Empty
|
||||
Dim strtempVerloren As String = String.Empty
|
||||
Dim strtempGestohlen As String = String.Empty
|
||||
Dim strtempGesperrt As String = String.Empty
|
||||
@@ -199,8 +197,8 @@ Partial Class Customers_Default3
|
||||
If IsNothing(l2.Vermerk) = False Then
|
||||
strtempVermerk = l2.Vermerk.ToString
|
||||
End If
|
||||
If IsNothing(l2.Retourniert) = False Then
|
||||
strtempRetourniert = l2.Retourniert.ToString
|
||||
If IsNothing(l2.Ersatzkarte) = False Then
|
||||
strtempErsatzkarte = l2.Ersatzkarte.ToString
|
||||
End If
|
||||
If IsNothing(l2.Verloren) = False Then
|
||||
strtempVerloren = l2.Verloren.ToString
|
||||
@@ -226,13 +224,11 @@ Partial Class Customers_Default3
|
||||
list_M.Add(strtempKaut)
|
||||
list_M.Add(strtempBelegNr)
|
||||
list_M.Add(strtempVermerk)
|
||||
list_M.Add(strtempRetourniert)
|
||||
list_M.Add(strtempVerloren)
|
||||
list_M.Add(strtempGestohlen)
|
||||
list_M.Add(strtempGesperrt)
|
||||
list_M.Add(strtempDefekt)
|
||||
list_M.Add(strtempArchivt)
|
||||
listdetails_M.Add(list_M)
|
||||
list_M.Add(strtempErsatzkarte)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
|
||||
@@ -131,12 +131,10 @@ Partial Class Customers_Default3
|
||||
list.Add(strtempOBUID)
|
||||
list.Add(strtempVermerk)
|
||||
list.Add(strtempRetourniert)
|
||||
list.Add(strtempVerloren)
|
||||
list.Add(strtempGestohlen)
|
||||
list.Add(strtempDefekt)
|
||||
list.Add(strtempArchivt)
|
||||
list.Add(l2.KfzKennzeichen)
|
||||
listdetails.Add(list)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
@@ -206,11 +204,9 @@ Partial Class Customers_Default3
|
||||
list_M.Add(strtempOBUID)
|
||||
list_M.Add(strtempVermerk)
|
||||
list_M.Add(strtempRetourniert)
|
||||
list_M.Add(strtempVerloren)
|
||||
list_M.Add(strtempGestohlen)
|
||||
list_M.Add(strtempDefekt)
|
||||
list_M.Add(strtempArchivt)
|
||||
listdetails_M.Add(list_M)
|
||||
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_M.Add(list_M)
|
||||
End If
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
<div class="row" style="height: 10px;"></div>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<input id="Checkbox1" readonly="readonly" type="checkbox" runat="server" disabled="disabled" />
|
||||
<input id="cb_retourniert" readonly="readonly" type="checkbox" runat="server" disabled="disabled" />
|
||||
<label id="lbl_retourniert" for="cb_retourniert">retourniert</label>
|
||||
</div>
|
||||
</div>
|
||||
@@ -126,7 +126,73 @@
|
||||
</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 UTA Karte.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]["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"]);
|
||||
}
|
||||
|
||||
}
|
||||
//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>
|
||||
|
||||
@@ -89,6 +89,8 @@ Partial Class Customers_Default3
|
||||
Dim strtempGesperrt As String = String.Empty
|
||||
Dim strtempDefekt As String = String.Empty
|
||||
Dim strtempArchivt As String = String.Empty
|
||||
Dim strtempErsatztelepass As String = String.Empty
|
||||
Dim strtempVIACARD As String = String.Empty
|
||||
|
||||
|
||||
If IsNothing(l2.Bestelldatum) = False Then
|
||||
@@ -100,13 +102,18 @@ Partial Class Customers_Default3
|
||||
If IsNothing(l2.Lieferdatum) = False Then
|
||||
strtempLieferdatum = l2.Lieferdatum.ToString
|
||||
End If
|
||||
If IsNothing(l2.VIACARD) = False Then
|
||||
strtempVIACARD = l2.VIACARD.ToString
|
||||
End If
|
||||
If IsNothing(l2.TELEPASS_Nr) = False Then
|
||||
strtempTELEPASS_Nr = l2.TELEPASS_Nr.ToString
|
||||
End If
|
||||
If IsNothing(l2.Vermerk) = False Then
|
||||
strtempVermerk = l2.Vermerk.ToString
|
||||
End If
|
||||
|
||||
If IsNothing(l2.TelepassErsatzkarte) = False Then
|
||||
strtempErsatztelepass = l2.TelepassErsatzkarte.ToString
|
||||
End If
|
||||
If IsNothing(l2.Verloren) = False Then
|
||||
strtempVerloren = l2.Verloren.ToString
|
||||
End If
|
||||
@@ -127,15 +134,15 @@ Partial Class Customers_Default3
|
||||
|
||||
list.Add(strtempbestelltam)
|
||||
list.Add(strtempLieferdatum)
|
||||
list.Add(strtempVIACARD)
|
||||
list.Add(strtempTELEPASS_Nr)
|
||||
list.Add(strtempVermerk)
|
||||
list.Add(strtempErsatztelepass)
|
||||
list.Add(strtempRetourniert)
|
||||
list.Add(strtempVerloren)
|
||||
list.Add(strtempGestohlen)
|
||||
list.Add(strtempGesperrt)
|
||||
list.Add(strtempDefekt)
|
||||
list.Add(strtempArchivt)
|
||||
listdetails.Add(list)
|
||||
list.Add(strtempVermerk)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
@@ -161,7 +168,8 @@ Partial Class Customers_Default3
|
||||
Dim strtempGesperrt As String = String.Empty
|
||||
Dim strtempDefekt As String = String.Empty
|
||||
Dim strtempArchivt As String = String.Empty
|
||||
|
||||
Dim strtempErsatztelepass As String = String.Empty
|
||||
Dim strtempVIACARD As String = String.Empty
|
||||
|
||||
If IsNothing(l2.Bestelldatum) = False Then
|
||||
strtempbestelltam = l2.Bestelldatum.ToString
|
||||
@@ -172,12 +180,18 @@ Partial Class Customers_Default3
|
||||
If IsNothing(l2.Lieferdatum) = False Then
|
||||
strtempLieferdatum = l2.Lieferdatum.ToString
|
||||
End If
|
||||
If IsNothing(l2.VIACARD) = False Then
|
||||
strtempVIACARD = l2.VIACARD.ToString
|
||||
End If
|
||||
If IsNothing(l2.TELEPASS_Nr) = False Then
|
||||
strtempTELEPASS_Nr = l2.TELEPASS_Nr.ToString
|
||||
End If
|
||||
If IsNothing(l2.Vermerk) = False Then
|
||||
strtempVermerk = l2.Vermerk.ToString
|
||||
End If
|
||||
If IsNothing(l2.TelepassErsatzkarte) = False Then
|
||||
strtempErsatztelepass = l2.TelepassErsatzkarte.ToString
|
||||
End If
|
||||
If IsNothing(l2.Verloren) = False Then
|
||||
strtempVerloren = l2.Verloren.ToString
|
||||
End If
|
||||
@@ -198,18 +212,16 @@ Partial Class Customers_Default3
|
||||
|
||||
list_M.Add(strtempbestelltam)
|
||||
list_M.Add(strtempLieferdatum)
|
||||
list_M.Add(strtempVIACARD)
|
||||
list_M.Add(strtempTELEPASS_Nr)
|
||||
list_M.Add(strtempVermerk)
|
||||
list_M.Add(strtempErsatztelepass)
|
||||
list_M.Add(strtempRetourniert)
|
||||
list_M.Add(strtempVerloren)
|
||||
list_M.Add(strtempGestohlen)
|
||||
list_M.Add(strtempGesperrt)
|
||||
list_M.Add(strtempDefekt)
|
||||
list_M.Add(strtempArchivt)
|
||||
|
||||
If String.Equals(strtempVerloren, "False") And String.Equals(strtempGestohlen, "False") And String.Equals(strtempGesperrt, "False") Or String.Equals(strtempDefekt, "False") And String.Equals(strtempArchivt, "False") Then
|
||||
listdetails_M.Add(list_M)
|
||||
End If
|
||||
' list.Add(New Entry(l2.SDLNr.ToString, strtempKat, strtempGueltigBis, strtempKartenNr, strtempKaut, strtempArchivt, strtempBelegNr, strtempErsatzkarte, strtempDefektAm, strtempFahrer, strtempGesperrtAm, strtempHistory, strtempHasEntry, strtempFlottenPIN, strtempFREJUS_CARD_Nr, strtempGestohlenAm, strtempLKWAbgemeldet, strtempLKWAbgemeldetAM, strtempLieferdatum, strtempMasterPIN, strtempMOTORWAY_CARD_Nr, strtempMSE_Kd_Nr, strtempOBUID, strtempPAN_Nr, strtempPartner, strtempPIN, strtempRefKundenNr, strtempRetourniert, strtempRetourniertAm, strtempSachbearbeiter, strtempSERIE_Nr, strtempStatus, strtempTelepassErsatzkarte, strtempTelepassErsatzkarteAm, strtempTELEPASS_Kd_Nr, strtempTELEPASS_Nr, strtempUmstellungsdatum, strtempVerloren, strtempVertragsabschlussdatum, strtempVertragsNr, strtempVIACARD, strtempAenderungsdatum, strtempVermerk))
|
||||
|
||||
listdetails_M.Add(list_M)
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
|
||||
@@ -100,9 +100,8 @@
|
||||
<div class="col">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<label id="lbl_GueltigBis">Gueltig Bis</label>
|
||||
<input id="txt_GueltigBis" readonly="readonly" type="date" runat="server" />
|
||||
|
||||
<input id="ckb_ErsatztelePass" readonly="readonly" type="checkbox" runat="server" />
|
||||
<label id="lbl_ErsatztelePass" for="ckb_retourniert">Retourniert</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -128,7 +127,73 @@
|
||||
</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 UTA Karte.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]["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"]);
|
||||
}
|
||||
|
||||
}
|
||||
//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>
|
||||
|
||||
@@ -133,13 +133,9 @@ Partial Class Customers_Default3
|
||||
list.Add(strtempTELEPASS_Nr)
|
||||
list.Add(strtempVermerk)
|
||||
list.Add(strtempRetourniert)
|
||||
list.Add(strtempVerloren)
|
||||
list.Add(strtempGestohlen)
|
||||
list.Add(strtempGesperrt)
|
||||
list.Add(strtempDefekt)
|
||||
list.Add(strtempArchivt)
|
||||
|
||||
listdetails.Add(list)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
@@ -159,6 +155,7 @@ Partial Class Customers_Default3
|
||||
Dim strtempLieferdatum As String = String.Empty
|
||||
Dim strtempVIACARD As String = String.Empty
|
||||
Dim strtempTELEPASS_Nr As String = String.Empty
|
||||
Dim strtempErsatzTelepass As String = String.Empty
|
||||
Dim strtempVermerk As String = String.Empty
|
||||
Dim strtempRetourniert As String = String.Empty
|
||||
Dim strtempVerloren As String = String.Empty
|
||||
@@ -182,6 +179,9 @@ Partial Class Customers_Default3
|
||||
If IsNothing(l2.Vermerk) = False Then
|
||||
strtempVermerk = l2.Vermerk.ToString
|
||||
End If
|
||||
If IsNothing(l2.TelepassErsatzkarte) = False Then
|
||||
strtempErsatzTelepass = l2.TelepassErsatzkarte.ToString
|
||||
End If
|
||||
If IsNothing(l2.Retourniert) = False Then
|
||||
strtempRetourniert = l2.Retourniert.ToString
|
||||
End If
|
||||
@@ -208,14 +208,11 @@ Partial Class Customers_Default3
|
||||
list_M.Add(strtempVIACARD)
|
||||
list_M.Add(strtempTELEPASS_Nr)
|
||||
list_M.Add(strtempVermerk)
|
||||
list_M.Add(strtempErsatzTelepass)
|
||||
list_M.Add(strtempRetourniert)
|
||||
list_M.Add(strtempVerloren)
|
||||
list_M.Add(strtempGestohlen)
|
||||
list_M.Add(strtempGesperrt)
|
||||
list_M.Add(strtempDefekt)
|
||||
list_M.Add(strtempArchivt)
|
||||
|
||||
listdetails_M.Add(list_M)
|
||||
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
|
||||
|
||||
Next
|
||||
|
||||
|
||||
@@ -128,12 +128,9 @@ Partial Class Customers_Default3
|
||||
list.Add(strtempKartenNr)
|
||||
list.Add(strtempVermerk)
|
||||
list.Add(strtempRetourniert)
|
||||
list.Add(strtempVerloren)
|
||||
list.Add(strtempGestohlen)
|
||||
list.Add(strtempGesperrt)
|
||||
list.Add(strtempDefekt)
|
||||
list.Add(strtempArchivt)
|
||||
listdetails.Add(list)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
@@ -198,12 +195,9 @@ Partial Class Customers_Default3
|
||||
list_M.Add(strtempKartenNr)
|
||||
list_M.Add(strtempVermerk)
|
||||
list_M.Add(strtempRetourniert)
|
||||
list_M.Add(strtempVerloren)
|
||||
list_M.Add(strtempGestohlen)
|
||||
list_M.Add(strtempGesperrt)
|
||||
list_M.Add(strtempDefekt)
|
||||
list_M.Add(strtempArchivt)
|
||||
listdetails_M.Add(list_M)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
|
||||
@@ -114,7 +114,71 @@
|
||||
</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 UTA Karte.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]["7"]) {
|
||||
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"]);
|
||||
}
|
||||
|
||||
}
|
||||
//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>
|
||||
|
||||
@@ -99,7 +99,6 @@ Partial Class Customers_Default3
|
||||
If IsNothing(l2.KartenNr) = False Then
|
||||
strtempKartNr = l2.KartenNr.ToString
|
||||
End If
|
||||
|
||||
If IsNothing(l2.Vermerk) = False Then
|
||||
strtempVermerk = l2.Vermerk.ToString
|
||||
End If
|
||||
@@ -129,13 +128,9 @@ Partial Class Customers_Default3
|
||||
list.Add(strtempKartNr)
|
||||
list.Add(strtempVermerk)
|
||||
list.Add(strtempRetourniert)
|
||||
list.Add(strtempVerloren)
|
||||
list.Add(strtempGestohlen)
|
||||
list.Add(strtempGesperrt)
|
||||
list.Add(strtempDefekt)
|
||||
list.Add(strtempArchivt)
|
||||
|
||||
listdetails.Add(list)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
@@ -171,7 +166,6 @@ Partial Class Customers_Default3
|
||||
If IsNothing(l2.KartenNr) = False Then
|
||||
strtempKartNr = l2.KartenNr.ToString
|
||||
End If
|
||||
|
||||
If IsNothing(l2.Vermerk) = False Then
|
||||
strtempVermerk = l2.Vermerk.ToString
|
||||
End If
|
||||
@@ -201,14 +195,9 @@ Partial Class Customers_Default3
|
||||
list_M.Add(strtempKartNr)
|
||||
list_M.Add(strtempVermerk)
|
||||
list_M.Add(strtempRetourniert)
|
||||
list_M.Add(strtempVerloren)
|
||||
list_M.Add(strtempGestohlen)
|
||||
list_M.Add(strtempGesperrt)
|
||||
list_M.Add(strtempDefekt)
|
||||
list_M.Add(strtempArchivt)
|
||||
|
||||
listdetails_M.Add(list_M)
|
||||
listdetails_M.Add(list_M)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
|
||||
@@ -141,8 +141,6 @@ Partial Class Customers_Default3
|
||||
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
|
||||
|
||||
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
@@ -218,12 +216,9 @@ Partial Class Customers_Default3
|
||||
list_M.Add(strtempPIN)
|
||||
list_M.Add(strtempVermerk)
|
||||
list_M.Add(strtempRetourniert)
|
||||
list_M.Add(strtempVerloren)
|
||||
list_M.Add(strtempGestohlen)
|
||||
list_M.Add(strtempGesperrt)
|
||||
list_M.Add(strtempDefekt)
|
||||
list_M.Add(strtempArchivt)
|
||||
listdetails_M.Add(list_M)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
|
||||
@@ -102,23 +102,87 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="row" style="height: 40px;"></div>
|
||||
<div id="checkboxes">
|
||||
<asp:CheckBoxList runat="server" Enabled="false">
|
||||
<asp:ListItem Text="Abgemeldet" Value="Abgemeldet" Enabled="false"></asp:ListItem>
|
||||
<asp:ListItem Text="Verloren" Value="Verloren" Enabled="false"></asp:ListItem>
|
||||
<asp:ListItem Text="Gestohlen" Value="Gestohlen" Enabled="false"></asp:ListItem>
|
||||
<asp:ListItem Text="Gesperrt" Value="Gesperrt" Enabled="false"></asp:ListItem>
|
||||
<asp:ListItem Text="Defekt" Value="Defekt" Enabled="false"></asp:ListItem>
|
||||
<asp:ListItem Text="Archiviert" Value="Archiviert" Enabled="false"></asp:ListItem>
|
||||
</asp:CheckBoxList>
|
||||
<div class="row" style="height: 40px;">
|
||||
<div class="col">
|
||||
<input id="cbx_Ersatzkarte" readonly="readonly" runat="server" type="checkbox" style="width: 168px; height: 80px; margin-left: 0px" aria-multiline="true" value="Text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="height: 40px;">
|
||||
<div class="col">
|
||||
<input id="cbx_Abgemeldet" readonly="readonly" runat="server" type="checkbox" style="width: 168px; height: 80px; margin-left: 0px" aria-multiline="true" value="Text" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</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 UTA Karte.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]["7"]) {
|
||||
document.getElementById('<%=txt_Bestelldat.ClientID%>').setAttribute('value', result[i]["0"]);
|
||||
document.getElementById('<%=txt_lieferdat.ClientID%>').setAttribute('value', result[i]["1"]);
|
||||
document.getElementById('<%=txt_Kartennummer.ClientID%>').setAttribute('value', result[i]["2"]);
|
||||
document.getElementById('<%=txt_Vermerk.ClientID%>').setAttribute('value', result[i]["3"]);
|
||||
document.getElementById('<%=cbx_Ersatzkarte.ClientID%>').setAttribute('checked', result[i]["4"]);
|
||||
document.getElementById('<%=cbx_Abgemeldet.ClientID%>').setAttribute('checked', result[i]["5"]);
|
||||
}
|
||||
}
|
||||
//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>
|
||||
|
||||
@@ -132,12 +132,9 @@ Partial Class Customers_Default3
|
||||
list.Add(strtempVermerk)
|
||||
list.Add(strtempErsatzkarte)
|
||||
list.Add(strtempabgemeldet)
|
||||
list.Add(strtempVerloren)
|
||||
list.Add(strtempGestohlen)
|
||||
list.Add(strtempGesperrt)
|
||||
list.Add(strtempDefekt)
|
||||
list.Add(strtempArchivt)
|
||||
listdetails.Add(list)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
@@ -206,12 +203,9 @@ Partial Class Customers_Default3
|
||||
list_M.Add(strtempVermerk)
|
||||
list_M.Add(strtempErsatzkarte)
|
||||
list_M.Add(strtempabgemeldet)
|
||||
list_M.Add(strtempVerloren)
|
||||
list_M.Add(strtempGestohlen)
|
||||
list_M.Add(strtempGesperrt)
|
||||
list_M.Add(strtempDefekt)
|
||||
list_M.Add(strtempArchivt)
|
||||
listdetails_M.Add(list_M)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
|
||||
@@ -123,7 +123,71 @@
|
||||
</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 UTA Karte.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]["7"]) {
|
||||
document.getElementById('<%=txt_Bestelldat.ClientID%>').setAttribute('value', result[i]["0"]);
|
||||
document.getElementById('<%=txt_lieferdat.ClientID%>').setAttribute('value', result[i]["1"]);
|
||||
document.getElementById('<%=txt_Kartennummer.ClientID%>').setAttribute('value', result[i]["2"]);
|
||||
document.getElementById('<%=txt_Vermerk.ClientID%>').setAttribute('value', result[i]["3"]);
|
||||
document.getElementById('<%=cbx_Ersatzkarte.ClientID%>').setAttribute('checked', result[i]["4"]);
|
||||
document.getElementById('<%=cbx_Abgemeldet.ClientID%>').setAttribute('checked', result[i]["5"]);
|
||||
}
|
||||
}
|
||||
//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>
|
||||
|
||||
@@ -61,8 +61,8 @@
|
||||
<div class="row w-100">
|
||||
<div class="col">
|
||||
<div class="col">
|
||||
<label id="lbl_Umstellungsdatum">Umstellungsdatum:</label>
|
||||
<input id="Text1" readonly="readonly" runat="server" style="width: 68px; margin-left: 0px" value="Text" />
|
||||
<label id="lbl_Umstellungsdatum" runat="server">Umstellungsdatum:</label>
|
||||
<input id="txt_Umstellungsdatum" readonly="readonly" runat="server" style="width: 68px; margin-left: 0px" value="Text" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
@@ -98,12 +98,24 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<row>
|
||||
<label id="lbl_OBIU_Nr">OBIU-ID:</label>
|
||||
<input id="txt_OBIU_ID" readonly="readonly" runat="server" style="width: 318px; margin-left: 20px; font-weight: 400" value="Text" />
|
||||
</row>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="col">
|
||||
<label id="lbl_Vermerk">Vermerk:</label>
|
||||
<input id="txt_Vermerk" readonly="readonly" runat="server" style="width: 170px; height: 70px; margin-left: 98px" aria-multiline="true" value="Text" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<label id="lbl_GueltigBis">Gueltig Bis:</label>
|
||||
<input id="GueltigBis" readonly="readonly" runat="server" />
|
||||
<label id="lbl_GueltigBis" runat="server">Gueltig Bis:</label>
|
||||
<input id="txt_GueltigBis" readonly="readonly" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row" style="height: 40px;"></div>
|
||||
@@ -117,16 +129,80 @@
|
||||
</asp:CheckBoxList>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<row>
|
||||
<label id="lbl_OBIU_Nr">OBIU-ID:</label>
|
||||
<input id="txt_OBIU_ID" readonly="readonly" runat="server" style="width: 318px; margin-left: 20px; font-weight:400" value="Text" />
|
||||
</row>
|
||||
</div>
|
||||
</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 UTA Karte.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]["7"]) {
|
||||
document.getElementById('<%=txt_BestNr.ClientID%>').setAttribute('value', result[i]["0"]);
|
||||
document.getElementById('<%=txt_Umstellungsdatum.ClientID%>').setAttribute('value', result[i]["1"]);
|
||||
document.getElementById('<%=txt_Kategorie.ClientID%>').setAttribute('value', result[i]["2"]);
|
||||
document.getElementById('<%=txt_Vertrabschldat.ClientID%>').setAttribute('value', result[i]["3"]);
|
||||
document.getElementById('<%=txt_Status.ClientID%>').setAttribute('value', result[i]["4"]);
|
||||
document.getElementById('<%=txt_Schadstoffklasse.ClientID%>').setAttribute('value', result[i]["5"]);
|
||||
document.getElementById('<%=txt_OBIU_ID.ClientID%>').setAttribute('value', result[i]["6"]);
|
||||
document.getElementById('<%=txt_Vermerk.ClientID%>').setAttribute('value', result[i]["7"]);
|
||||
document.getElementById('<%=txt_GueltigBis.ClientID%>').setAttribute('value', result[i]["8"]);
|
||||
}
|
||||
}
|
||||
//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>
|
||||
|
||||
@@ -146,13 +146,9 @@ Partial Class Customers_Default3
|
||||
list.Add(strtempOBUID)
|
||||
list.Add(strtempVermerk)
|
||||
list.Add(strtempGueltigBis)
|
||||
list.Add(strtempVerloren)
|
||||
list.Add(strtempGestohlen)
|
||||
list.Add(strtempGesperrt)
|
||||
list.Add(strtempDefekt)
|
||||
list.Add(strtempArchivt)
|
||||
|
||||
listdetails.Add(list)
|
||||
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
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
@@ -237,13 +233,10 @@ Partial Class Customers_Default3
|
||||
list_M.Add(strtempOBUID)
|
||||
list_M.Add(strtempVermerk)
|
||||
list_M.Add(strtempGueltigBis)
|
||||
list_M.Add(strtempVerloren)
|
||||
list_M.Add(strtempGestohlen)
|
||||
list_M.Add(strtempGesperrt)
|
||||
list_M.Add(strtempDefekt)
|
||||
list_M.Add(strtempArchivt)
|
||||
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
|
||||
|
||||
listdetails_M.Add(list_M)
|
||||
Next
|
||||
|
||||
HttpContext.Current.Response.ContentType = "application/json"
|
||||
|
||||
Reference in New Issue
Block a user