This commit is contained in:
2021-10-27 11:19:22 +02:00
parent 13f28aa1d8
commit f4813a04a9
76 changed files with 9922 additions and 2253 deletions

View File

@@ -141,8 +141,18 @@ Public Class cProgramFunctions
Return CBool(SQL.getValueTxtBySql(sqlstr, "FMZOLL"))
End Function
Shared Function getLandBez_fromISO1Land(LandKz As String, Optional returnValue As Object = Nothing)
Shared Function getLandBez_fromISO1Land(LandKz As String, Optional returnValue As Object = Nothing, Optional RechnungSprache As String = "DE")
If LandKz Is Nothing Then Return returnValue
Select Case RechnungSprache
Case "EN"
Select Case LandKz
Case "GB" : Return "UNITED KINGDOM"
Case "FR" : Return "FRANCE"
Case "ES" : Return "SPAIN"
Case "IT" : Return "ITALY"
Case "TR" : Return "TURKEY"
End Select
End Select
Dim sqlstr = "SELECT TOP 1 isnull([Länderverzeichnis für die Außenhandelsstatistik].[LandBez],'') AS [LandBez] FROM [Länderverzeichnis für die Außenhandelsstatistik] LEFT JOIN Währungstabelle ON [Länderverzeichnis für die Außenhandelsstatistik].LandNr = Währungstabelle.Währungsschlüssel WHERE Währungstabelle.LandKz='" & LandKz & "' "
Dim SQL As New VERAG_PROG_ALLGEMEIN.SQL
Return SQL.getValueTxtBySql(sqlstr, "FMZOLL")