Änderungen

This commit is contained in:
ja
2022-01-03 16:55:37 +01:00
parent f435658a09
commit 825e7a1e55
3 changed files with 15 additions and 10 deletions

View File

@@ -349,7 +349,8 @@
}); });
function OnSuccess(success) { function OnSuccess(success) {
alert('horray! 200 status code!'); alert('horray! 200 status code!');
alert(success) //alert(success)
table.innerHTML = success;
} }
function OnFailure(error) { function OnFailure(error) {
alert(error); alert(error);
@@ -392,9 +393,9 @@
url: "LKWs.aspx/filltable2", url: "LKWs.aspx/filltable2",
contentType: "application/json; charset=utf-8", contentType: "application/json; charset=utf-8",
dataType: "json", dataType: "json",
data: '{"' + id.split(',')[0] + '"}', data: '{' + id.split(',')[0] + '}',
success: function (result) { success: function (result) {
OnSuccess(result.data); OnSuccess(result.d);
}, },
error: function (jqXHR, textStatus, errorThrown) { error: function (jqXHR, textStatus, errorThrown) {
alert("Status:" + jqXHR.status + "\nStatusText: " + textStatus + "\nError:" + errorThrown); alert("Status:" + jqXHR.status + "\nStatusText: " + textStatus + "\nError:" + errorThrown);
@@ -402,7 +403,8 @@
}); });
function OnSuccess(success) { function OnSuccess(success) {
alert('horray! 200 status code!'); alert('horray! 200 status code!');
alert(success) //alert(success)
table_M.innerHTML = success;
} }
function OnFailure(error) { function OnFailure(error) {
alert(error); alert(error);
@@ -416,4 +418,5 @@
} }
} }
</script> </script>
</asp:Content> </asp:Content>

View File

@@ -400,7 +400,7 @@ Partial Class LKWS
<WebMethod> <WebMethod>
<ScriptMethod(ResponseFormat:=ResponseFormat.Json)> <ScriptMethod(ResponseFormat:=ResponseFormat.Json)>
Public Shared Sub filltable2(Kennzeichen As String) Public Shared Function filltable2(Kennzeichen As String) As Table
Dim tbl As Table = New Table Dim tbl As Table = New Table
Dim list2 As List(Of VERAG_PROG_ALLGEMEIN.cSDL) = VERAG_PROG_ALLGEMEIN.cSDL.GET_LIST_WEB_LKW(401940, Kennzeichen) Dim list2 As List(Of VERAG_PROG_ALLGEMEIN.cSDL) = VERAG_PROG_ALLGEMEIN.cSDL.GET_LIST_WEB_LKW(401940, Kennzeichen)
For Each l2 In list2 For Each l2 In list2
@@ -421,10 +421,11 @@ Partial Class LKWS
tr.Attributes.Add("style", "background-color:#ff2500;color:#fff;font-weight:400;") tr.Attributes.Add("style", "background-color:#ff2500;color:#fff;font-weight:400;")
tbl.Rows.Add(tr) tbl.Rows.Add(tr)
Next Next
End Sub Return tbl
End Function
<WebMethod> <WebMethod>
<ScriptMethod(ResponseFormat:=ResponseFormat.Json)> <ScriptMethod(ResponseFormat:=ResponseFormat.Json)>
Public Shared Sub filltable_M(Kennzeichen As String) Public Shared Function filltable_M(Kennzeichen As String) As Table
Dim list2 As List(Of VERAG_PROG_ALLGEMEIN.cSDL) = VERAG_PROG_ALLGEMEIN.cSDL.GET_LIST_WEB_LKW(401940, Kennzeichen) Dim list2 As List(Of VERAG_PROG_ALLGEMEIN.cSDL) = VERAG_PROG_ALLGEMEIN.cSDL.GET_LIST_WEB_LKW(401940, Kennzeichen)
Dim Tbl As New Table Dim Tbl As New Table
@@ -446,5 +447,6 @@ Partial Class LKWS
tr_M.Attributes.Add("style", "background-color:#ff2500;color:#fff;font-weight:400;") tr_M.Attributes.Add("style", "background-color:#ff2500;color:#fff;font-weight:400;")
Tbl.Rows.Add(tr_M) Tbl.Rows.Add(tr_M)
Next Next
End Sub Return Tbl
End Function
End Class End Class

View File

@@ -19,7 +19,7 @@ Visual Studio does not include an English language pack:
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Build ID: {30F97D92-5784-42DA-978C-0653408BBC2A} Build ID: {65520EA3-317D-46D0-8B57-3F01730ED0B6}
--------------------Build System Warning--------------------------------------- --------------------Build System Warning---------------------------------------
Current logging level may degrade build performance: Current logging level may degrade build performance: