From 301cb1e0f4a286020a2a515da1f08fa51e886a94 Mon Sep 17 00:00:00 2001 From: ja Date: Tue, 9 Nov 2021 16:11:39 +0100 Subject: [PATCH] =?UTF-8?q?=C3=84nderungen=20bzw=20Erweiterungen=20der=20K?= =?UTF-8?q?I=20f=C3=BCr=20Autokorrektur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App_Code/WebService.vb | 30 ++++++++++++- Customers/CustomsAviso.aspx.vb | 4 +- Customers/Invoices.aspx | 78 ++++++++++++++++++++++++++++++++-- 3 files changed, 106 insertions(+), 6 deletions(-) diff --git a/App_Code/WebService.vb b/App_Code/WebService.vb index adb5e3e..9ceaa22 100644 --- a/App_Code/WebService.vb +++ b/App_Code/WebService.vb @@ -4,7 +4,7 @@ Imports System.Web.Services Imports System.Web.Services.Protocols ' Wenn der Aufruf dieses Webdiensts aus einem Skript zulässig sein soll, heben Sie mithilfe von ASP.NET AJAX die Kommentarmarkierung für die folgende Zeile auf. -' _ + _ _ _ @@ -39,4 +39,32 @@ Public Class WebService myConn.Close() : Return lstCountries End Function + + Public Function ShowKdNrAuftrag(ByVal sLookUP As String) As List(Of String) + Dim lstCountries As New List(Of String)() + Dim Connectionstring As String = String.Empty + + If HttpContext.Current.Request.ServerVariables("SERVER_NAME") = "localhost" Then + 'ConnectionString = "Server=DEVELOPER\DEVSQL;Database=VERAG_HOMEPAGE;Uid=sa;Pwd=BmWr501956" + Connectionstring = "Server=DEVELOPER\DEVSQL;Database=VERAG_HOMEPAGE;Uid=AppUser;Pwd=yp/THDd?xM+pZ$;" + Else + Connectionstring = "Server=DEVELOPER.verag.ost.dmn\DEVSQL;Database=VERAG_HOMEPAGE;Uid=AppUser;Pwd=yp/THDd?xM+pZ$;" + 'ConnectionString = "Server=db593295684.db.1and1.com;Database=db593295684;Uid=dbo593295684;Pwd=atilla#2;" + End If + + Dim myConn As New SqlConnection(Connectionstring) + Dim objComm As New SqlCommand("SELECT LKW Kennzeichen FROM FROM [VERAG_HOMEPAGE].[dbo].[Rechnungsausgang] " & + "WHERE AbsenderKundenNr LIKE '%'+@LookUP+'%' ORDER BY Kennzeichen", myConn) + myConn.Open() + + objComm.Parameters.AddWithValue("@LookUP", sLookUP) + Dim reader As SqlDataReader = objComm.ExecuteReader() + + While reader.Read() + lstCountries.Add(reader("Kennzeichen").ToString()) + End While + + myConn.Close() : Return lstCountries + End Function + End Class \ No newline at end of file diff --git a/Customers/CustomsAviso.aspx.vb b/Customers/CustomsAviso.aspx.vb index b4c20d8..e95dd45 100644 --- a/Customers/CustomsAviso.aspx.vb +++ b/Customers/CustomsAviso.aspx.vb @@ -451,7 +451,7 @@ Partial Class CustomsAviso End Try Else regexval_txt_LKW.ForeColor = Drawing.Color.Red - regexval_txt_LKW.ErrorMessage = "Das LKW Kennzeichen ist nicht richtig formatiert.!" + regexval_txt_LKW.ErrorMessage = "Das LKW Kennzeichen ist nicht richtig formatiert." End If ElseIf txt_Absender_M.Text IsNot "" Then txt_Absender_M.ValidateRequestMode = UI.ValidateRequestMode.Enabled @@ -508,7 +508,7 @@ Partial Class CustomsAviso End If Else regexval_txt_LKWNr_M.ForeColor = Drawing.Color.Red - regexval_txt_LKWNr_M.ErrorMessage = "Das LKW Kennzeichen ist nicht richtig formatiert!" + regexval_txt_LKWNr_M.ErrorMessage = "Das LKW Kennzeichen ist nicht richtig formatiert." End If If rbt_Alle.Checked = True Then pickdate1.ValidateRequestMode = UI.ValidateRequestMode.Enabled diff --git a/Customers/Invoices.aspx b/Customers/Invoices.aspx index a84f244..a4036fa 100644 --- a/Customers/Invoices.aspx +++ b/Customers/Invoices.aspx @@ -130,8 +130,7 @@ - - + @@ -216,6 +215,9 @@