MS0602
This commit is contained in:
@@ -195,8 +195,13 @@ Public Class ClassInit
|
||||
If ClassDatabase.Execute_non_Query(sql) = True Then
|
||||
|
||||
End If
|
||||
|
||||
sql = String.Format("INSERT INTO TBDD_USER_MODULE_LOG_IN (USER_ID,CLIENT_ID,MODULE,VERSION_CLIENT,MACHINE_NAME) VALUES ({0},{1},'Record-Organizer','{2}','{3}')", USER_GUID, CLIENT_SELECTED, My.Application.Info.Version.ToString, Environment.MachineName)
|
||||
Dim ConStringMain As String
|
||||
If clsDatabase.DB_PROXY_INITIALIZED = True Then
|
||||
ConStringMain = "PROXY: " & ClassProxy.MyPROXYConnectionString & " # MAIN: " & MyConnectionString
|
||||
Else
|
||||
ConStringMain = "Main: " & MyConnectionString
|
||||
End If
|
||||
sql = String.Format("INSERT INTO TBDD_USER_MODULE_LOG_IN (USER_ID,CLIENT_ID,MODULE,VERSION_CLIENT,MACHINE_NAME,CONNECTION_STRING) VALUES ({0},{1},'Record-Organizer','{2}','{3}','{4}')", USER_GUID, CLIENT_SELECTED, My.Application.Info.Version.ToString, Environment.MachineName, ConStringMain)
|
||||
ClassDatabase.Execute_non_Query(sql)
|
||||
|
||||
USER_IS_ADMIN = USER_DT.Rows(0).Item("RECORD_ADMIN")
|
||||
@@ -211,11 +216,16 @@ Public Class ClassInit
|
||||
Else
|
||||
|
||||
End If
|
||||
If clsWindream.Create_Session = False Then
|
||||
ClassLogger.Add("Could not create the login for windream!")
|
||||
ClassHelper.InsertEssential_Log(USER_GUID, "USER-ID", "Could not create a windream-session for user!")
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "windream-login Error:", "Could not create the login/session!", "ADDI will start anyway but be aware that searching and importing won't be possible!")
|
||||
End If
|
||||
Try
|
||||
If clsWindream.Create_Session = False Then
|
||||
ClassLogger.Add("Could not create the login for windream - No session created!")
|
||||
ClassHelper.MSGBOX_Handler("ERROR", "windream-login Error:", "Could not create the login/session!", "ADDI will start anyway but be aware that searching and importing won't be possible!")
|
||||
End If
|
||||
Catch ex As Exception
|
||||
ClassLogger.Add("Unexpected Error in clswindream.Init: " & ex.Message)
|
||||
MsgBox("Unexpected Error in Creating windream-Session: " & ex.Message & vbNewLine & "Please inform Your sysadmin!", MsgBoxStyle.Critical)
|
||||
End Try
|
||||
|
||||
sql = String.Format("SELECT COUNT(*) AS Expr1 FROM TBDD_USER_MODULE_LOG_IN WHERE UPPER(MODULE) = UPPER('Record-Organizer') AND CLIENT_ID = {0}", CLIENT_SELECTED)
|
||||
Dim anzahl = ClassDatabase.Execute_Scalar(sql, False)
|
||||
USERS_LOGGED_IN = CInt(anzahl)
|
||||
|
||||
Reference in New Issue
Block a user