From 0f5873926674796b3745bd04250c1a8febd5e813 Mon Sep 17 00:00:00 2001 From: ja Date: Mon, 10 Jan 2022 09:11:39 +0100 Subject: [PATCH] =?UTF-8?q?=C3=84nderungen=20JQUERY=20und=20JSON=20De-/Ser?= =?UTF-8?q?ializierungsvorg=C3=A4nge.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App_Code/VERAG_VARIABLES.vb | 8 ++++---- Customers/LKWs.aspx | 28 ++++++++++++++-------------- Customers/LKWs.aspx.vb | 3 ++- 3 files changed, 20 insertions(+), 19 deletions(-) diff --git a/App_Code/VERAG_VARIABLES.vb b/App_Code/VERAG_VARIABLES.vb index c73c4d9..bb7c648 100644 --- a/App_Code/VERAG_VARIABLES.vb +++ b/App_Code/VERAG_VARIABLES.vb @@ -44,9 +44,9 @@ Public Class VERAG_VARIABLES Else Dim Argon As Argon2id = New Argon2id(Encoding.UTF8.GetBytes(VERAG_PROG_ALLGEMEIN.cCryptography3.Encrypt(password))) Argon.Salt = salt - Argon.DegreeOfParallelism = 28 + Argon.DegreeOfParallelism = 32 Argon.Iterations = nIterations * VERAG_VARIABLES.RandomInteger(2, 5) - Argon.MemorySize = (((nIterations * 8.685 - (nIterations * 0.56) / 1.85 * 2.28) / 10.28) + 1.024 * 816) + Argon.MemorySize = (((nIterations * 7.685 - (nIterations * 0.56) / 1.85 * 2.28) / 10.28) + 1.024 * 416) Return Argon.GetBytes(nHash) End If @@ -65,9 +65,9 @@ Public Class VERAG_VARIABLES Else Dim Argon As Argon2id = New Argon2id(Encoding.UTF8.GetBytes(VERAG_PROG_ALLGEMEIN.cCryptography3.Encrypt(password))) Argon.Salt = salt - Argon.DegreeOfParallelism = 28 + Argon.DegreeOfParallelism = 32 Argon.Iterations = nIterations * VERAG_VARIABLES.RandomInteger(2, 5) - Argon.MemorySize = (((nIterations * 8.685 - (nIterations * 0.56) / 1.85 * 2.28) / 10.28) + 1.024 * 816) + Argon.MemorySize = (((nIterations * 7.685 - (nIterations * 0.56) / 1.85 * 2.28) / 10.28) + 1.024 * 416) Return Await Argon.GetBytesAsync(nHash) End If End Function diff --git a/Customers/LKWs.aspx b/Customers/LKWs.aspx index d6e4883..e6a9c66 100644 --- a/Customers/LKWs.aspx +++ b/Customers/LKWs.aspx @@ -352,12 +352,13 @@ } }); function OnSuccess(success) { - alert('horray! 200 status code!'); addheader(); - alert(success.rows.length) + alert('horray! 200 status code!'); + alert(success) for (let i = 0; i < success.rows.length; i++) { - let row = $('' + success[i].SDL + '' + success[i].Bez + '' + success[i].DateGueltig + '' + success[i].KartNr + ''); - table.append(row); + //let row = $('' + success[i].SDL + '' + success[i].Bez + '' + success[i].DateGueltig + '' + success[i].KartNr + ''); + //table.rows.add(row); + addNewRow(success[i].d.SDLNr, success[i].d.Bezeichnung, success[i].d.DateGueltig,success[i].d.KartNr) } } function OnFailure(error) { @@ -395,10 +396,9 @@ //addNewRow(SDL,Bez,Datguenstig,KartNr) // Pagemethods.filltable2(<%' =tbl_mainpage_M%> , SDL, Bez, Datguenstig, KartNr) //} - var data = { - "Kennzeichen": id_M.split(',')[0], - "NatLKW": id_M.split(',')[1] - }; + var data = {}; + data.Kennzeichen = id_M.split(',')[0]; + data.NatLKW = id_M.split(',')[1]; $.ajax({ type: "POST", @@ -407,18 +407,18 @@ dataType: "json", data: JSON.stringify(data), success: function (result) { - OnSuccess(result.d); + OnSuccess_M(result.d); }, error: function (jqXHR, textStatus, errorThrown) { alert("Status:" + jqXHR.status + "\nStatusText: " + textStatus + "\nError:" + errorThrown); } }); - function OnSuccess(success) { - alert('horray! 200 status code!'); + function OnSuccess_M(success_M) { addheader_M(); - for (let i = 0; i < success.length; i++) { - let row = $('' + success[i].SDL + '' + success[i].Bez + '' + success[i].DateGueltig + '' + success[i].KartNr + ''); - table_M.append(row); + alert('horray! 200 status code!'); + for (let i = 0; i < success_M.rows.length; i++) { + let row = $('' + success_M[i].SDL + '' + success_M[i].Bez + '' + success_M[i].DateGueltig + '' + success_M[i].KartNr + ''); + //addNewRow_M(success_M[i].SDL, success_M[i].Bez,success_M[i].DateGueltig,success_M[i].KartNr); } } function OnFailure(error) { diff --git a/Customers/LKWs.aspx.vb b/Customers/LKWs.aspx.vb index 525b218..1baf63c 100644 --- a/Customers/LKWs.aspx.vb +++ b/Customers/LKWs.aspx.vb @@ -421,6 +421,7 @@ Partial Class LKWS tr.Attributes.Add("style", "background-color:#ff2500;color:#fff;font-weight:400;") tbl.Rows.Add(tr) Next + tbl.EnableViewState = True Return tbl End Function @@ -447,7 +448,7 @@ Partial Class LKWS tr_M.Attributes.Add("style", "background-color:#ff2500;color:#fff;font-weight:400;") Tbl.Rows.Add(tr_M) Next - + Tbl.EnableViewState = True Return Tbl End Function End Class