DesignerLock
This commit is contained in:
@@ -191,25 +191,30 @@ Public Class frmMain
|
||||
|
||||
If IDB_ACTIVE = False And ERROR_STATE = "" Then
|
||||
Try
|
||||
WINDREAM.Start_WMCC_andCo()
|
||||
If Not IsNothing(WINDREAM.oSession) Then
|
||||
If WINDREAM.oSession.aLoggedin = False Then
|
||||
MsgBox("You could not be logged in to windream. Please check the log.", MsgBoxStyle.Critical)
|
||||
If Init_windream() = True Then
|
||||
WINDREAM.Start_WMCC_andCo()
|
||||
If Not IsNothing(WINDREAM.oSession) Then
|
||||
If WINDREAM.oSession.aLoggedin = False Then
|
||||
MsgBox("You could not be logged in to windream. Please check the log.", MsgBoxStyle.Critical)
|
||||
End If
|
||||
Else
|
||||
MsgBox("Login on windream was not possible. Please check the log.", MsgBoxStyle.Critical)
|
||||
End If
|
||||
Else
|
||||
MsgBox("Login on windream was not possible. Please check the log.", MsgBoxStyle.Critical)
|
||||
End If
|
||||
'_windreamPM = New ClassPMWindream
|
||||
'_windreamPM.Start_WMCC_andCo()
|
||||
|
||||
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
MsgBox("Unexpected Error in windream-login - Step 5: " & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Attention:")
|
||||
End Try
|
||||
Else
|
||||
Dim oSQL = $"SELECT SQL_COMMAND FROM TBDD_SQL_COMMANDS WHERE TITLE = 'PM_IDB_DOC_DATA'"
|
||||
IDB_DOC_DATA_SQL = ClassDatabase.Execute_Scalar(oSQL, CONNECTION_STRING)
|
||||
LOGGER.Debug($"Got the IDB_DOC_DATA_SQL..{IDB_DOC_DATA_SQL}")
|
||||
SOURCE_INIT = Init_IDB()
|
||||
If SOURCE_INIT = True Then
|
||||
Dim oSQL = $"SELECT SQL_COMMAND FROM TBDD_SQL_COMMANDS WHERE TITLE = 'PM_IDB_DOC_DATA'"
|
||||
IDB_DOC_DATA_SQL = ClassDatabase.Execute_Scalar(oSQL, CONNECTION_STRING)
|
||||
LOGGER.Debug($"Got the IDB_DOC_DATA_SQL..{IDB_DOC_DATA_SQL}")
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
|
||||
@@ -1097,9 +1102,7 @@ Public Class frmMain
|
||||
WINDREAM = New ClassPMWindream()
|
||||
WINDREAM.Create_Session()
|
||||
WINDREAM_ALLG = New ClassWindream_allgemein
|
||||
|
||||
LOGGER.Debug("windream initialized")
|
||||
Return True
|
||||
Return WINDREAM.IsLoggedIn
|
||||
Catch ex As Exception
|
||||
LOGGER.Error(ex)
|
||||
MsgBox("Error Init_windream:" & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Attention:")
|
||||
@@ -1133,12 +1136,6 @@ Public Class frmMain
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
If IDB_ACTIVE = False Then
|
||||
SOURCE_INIT = Init_windream()
|
||||
Else
|
||||
SOURCE_INIT = Init_IDB()
|
||||
End If
|
||||
|
||||
|
||||
If SOURCE_INIT = True Then
|
||||
|
||||
|
||||
Reference in New Issue
Block a user