MS ÄNDerungen wegen License

This commit is contained in:
2020-01-10 14:02:24 +01:00
parent 77ee901233
commit 3c1657fa28
8 changed files with 96 additions and 44 deletions

View File

@@ -2,9 +2,18 @@
Public Class ClassLicense
Private Shared lic_string As String
Private Shared Sub Get_License(CLIENT_ID As Integer)
Dim sql As String = String.Format("SELECT LICENSE_DDCBSEARCHER FROM TBDD_CLIENT WHERE GUID = {0}", CLIENT_ID)
Try
Dim sql As String = String.Format("SELECT LICENSE FROM TBDD_MODULES WHERE SHORT_NAME = 'CW'")
lic_string = Database.GetScalarValue(sql)
Catch ex As Exception
Try
Dim sql As String = String.Format("SELECT LICENSE_DDCBSEARCHER FROM TBDD_CLIENT WHERE GUID = {0}", CLIENT_ID)
lic_string = Database.GetScalarValue(sql)
Catch ex1 As Exception
MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Error in Get_License:")
End Try
End Try
lic_string = Database.GetScalarValue(sql)
End Sub
Public Shared Sub Refresh_Licence(CLIENT_ID As Integer)
Try