finish translations for frmMain

This commit is contained in:
Jonathan Jenne 2022-09-15 13:14:22 +02:00
parent 5841457dd4
commit 03140a938e
5 changed files with 468 additions and 186 deletions

View File

@ -64,6 +64,24 @@ Namespace My.Resources
End Set End Set
End Property End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die [{0}] Workflows ähnelt.
'''</summary>
Friend Shared ReadOnly Property __0___Workflows() As String
Get
Return ResourceManager.GetString("[{0}] Workflows", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die {0} Vorgänge ähnelt.
'''</summary>
Friend Shared ReadOnly Property _0__Vorgänge() As String
Get
Return ResourceManager.GetString("{0} Vorgänge", resourceCulture)
End Get
End Property
'''<summary> '''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Achtung: ähnelt. ''' Sucht eine lokalisierte Zeichenfolge, die Achtung: ähnelt.
'''</summary> '''</summary>
@ -73,6 +91,51 @@ Namespace My.Resources
End Get End Get
End Property End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Aktuell keine Workflowdaten vorhanden! ähnelt.
'''</summary>
Friend Shared ReadOnly Property Aktuell_keine_Workflowdaten_vorhanden_() As String
Get
Return ResourceManager.GetString("Aktuell keine Workflowdaten vorhanden!", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Aktuelle Lizenz ist abgelaufen oder ungültig! ähnelt.
'''</summary>
Friend Shared ReadOnly Property Aktuelle_Lizenz_ist_abgelaufen_oder_ungültig_() As String
Get
Return ResourceManager.GetString("Aktuelle Lizenz ist abgelaufen oder ungültig!", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Anzahl Lizenzen: {0} ähnelt.
'''</summary>
Friend Shared ReadOnly Property Anzahl_Lizenzen___0_() As String
Get
Return ResourceManager.GetString("Anzahl Lizenzen: {0}", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Bitte konfigurieren Sie eine Datenbankverbindung! ähnelt.
'''</summary>
Friend Shared ReadOnly Property Bitte_konfigurieren_Sie_eine_Datenbankverbindung_() As String
Get
Return ResourceManager.GetString("Bitte konfigurieren Sie eine Datenbankverbindung!", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Bitte kontaktieren Sie Ihren Administrator! ähnelt.
'''</summary>
Friend Shared ReadOnly Property Bitte_kontaktieren_Sie_Ihren_Administrator_() As String
Get
Return ResourceManager.GetString("Bitte kontaktieren Sie Ihren Administrator!", resourceCulture)
End Get
End Property
'''<summary> '''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Bitte schließen Sie den offenen Workflow! ähnelt. ''' Sucht eine lokalisierte Zeichenfolge, die Bitte schließen Sie den offenen Workflow! ähnelt.
'''</summary> '''</summary>
@ -81,5 +144,214 @@ Namespace My.Resources
Return ResourceManager.GetString("Bitte schließen Sie den offenen Workflow!", resourceCulture) Return ResourceManager.GetString("Bitte schließen Sie den offenen Workflow!", resourceCulture)
End Get End Get
End Property End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Bitte wählen Sie ein Profil aus! ähnelt.
'''</summary>
Friend Shared ReadOnly Property Bitte_wählen_Sie_ein_Profil_aus_() As String
Get
Return ResourceManager.GetString("Bitte wählen Sie ein Profil aus!", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Der gewählte Beleg ist durch einen anderen Benutzer bereits in Bearbeitung oder anderweitig gesperrt! ähnelt.
'''</summary>
Friend Shared ReadOnly Property Der_gewählte_Beleg_ist_durch_einen_anderen_Benutzer_bereits_in_Bearbeitung_oder_anderweitig_gesperrt_() As String
Get
Return ResourceManager.GetString("Der gewählte Beleg ist durch einen anderen Benutzer bereits in Bearbeitung oder a"& _
"nderweitig gesperrt!", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Detailansicht Profil: {0} ähnelt.
'''</summary>
Friend Shared ReadOnly Property Detailansicht_Profil___0_() As String
Get
Return ResourceManager.GetString("Detailansicht Profil: {0}", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Es existiert bereits ein aktiver Workflow! ähnelt.
'''</summary>
Friend Shared ReadOnly Property Es_existiert_bereits_ein_aktiver_Workflow_() As String
Get
Return ResourceManager.GetString("Es existiert bereits ein aktiver Workflow!", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Es ist keine Windream Session vorhanden. Bitte überprüfen Sie das Log. ähnelt.
'''</summary>
Friend Shared ReadOnly Property Es_ist_keine_Windream_Session_vorhanden__Bitte_überprüfen_Sie_das_Log_() As String
Get
Return ResourceManager.GetString("Es ist keine Windream Session vorhanden. Bitte überprüfen Sie das Log.", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Fehlende Datenbank Konfiguration ähnelt.
'''</summary>
Friend Shared ReadOnly Property Fehlende_Datenbank_Konfiguration() As String
Get
Return ResourceManager.GetString("Fehlende Datenbank Konfiguration", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Filter aktiv ähnelt.
'''</summary>
Friend Shared ReadOnly Property Filter_aktiv() As String
Get
Return ResourceManager.GetString("Filter aktiv", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Gesamtübersicht ähnelt.
'''</summary>
Friend Shared ReadOnly Property Gesamtübersicht() As String
Get
Return ResourceManager.GetString("Gesamtübersicht", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Ghost Modus ({0}) deaktivieren ähnelt.
'''</summary>
Friend Shared ReadOnly Property Ghost_Modus___0___deaktivieren() As String
Get
Return ResourceManager.GetString("Ghost Modus ({0}) deaktivieren", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Größer ähnelt.
'''</summary>
Friend Shared ReadOnly Property Größer() As String
Get
Return ResourceManager.GetString("Größer", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die HINWEIS: Debug Modus ist eingeschaltet! ähnelt.
'''</summary>
Friend Shared ReadOnly Property HINWEIS__Debug_Modus_ist_eingeschaltet_() As String
Get
Return ResourceManager.GetString("HINWEIS: Debug Modus ist eingeschaltet!", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Kleiner ähnelt.
'''</summary>
Friend Shared ReadOnly Property Kleiner() As String
Get
Return ResourceManager.GetString("Kleiner", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Letzte Synchronisation: {0} ähnelt.
'''</summary>
Friend Shared ReadOnly Property Letzte_Synchronisation___0_() As String
Get
Return ResourceManager.GetString("Letzte Synchronisation: {0}", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Lizenz-Zähler: {0} ähnelt.
'''</summary>
Friend Shared ReadOnly Property Lizenz_Zähler___0_() As String
Get
Return ResourceManager.GetString("Lizenz-Zähler: {0}", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Massenabschluss ähnelt.
'''</summary>
Friend Shared ReadOnly Property Massenabschluss() As String
Get
Return ResourceManager.GetString("Massenabschluss", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Massenabschluss konnte nicht ausgeführt werden, weil windream nicht initialisiert werden konnte! ähnelt.
'''</summary>
Friend Shared ReadOnly Property Massenabschluss_konnte_nicht_ausgeführt_werden__weil_windream_nicht_initialisiert_werden_konnte_() As String
Get
Return ResourceManager.GetString("Massenabschluss konnte nicht ausgeführt werden, weil windream nicht initialisiert"& _
" werden konnte!", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Nächste Aktivitätsüberprüfung: {0} {1} ähnelt.
'''</summary>
Friend Shared ReadOnly Property Nächste_Aktivitätsüberprüfung___0___1_() As String
Get
Return ResourceManager.GetString("Nächste Aktivitätsüberprüfung: {0} {1}", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Normal ähnelt.
'''</summary>
Friend Shared ReadOnly Property Normal() As String
Get
Return ResourceManager.GetString("Normal", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Popup Erinnerung aktivieren ({0} min) ähnelt.
'''</summary>
Friend Shared ReadOnly Property Popup_Erinnerung_aktivieren___0__min_() As String
Get
Return ResourceManager.GetString("Popup Erinnerung aktivieren ({0} min)", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Popup Erinnerung deaktivieren ähnelt.
'''</summary>
Friend Shared ReadOnly Property Popup_Erinnerung_deaktivieren() As String
Get
Return ResourceManager.GetString("Popup Erinnerung deaktivieren", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Profil (Fixiert) ähnelt.
'''</summary>
Friend Shared ReadOnly Property Profil__Fixiert_() As String
Get
Return ResourceManager.GetString("Profil (Fixiert)", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die Sie wurden aufgrund von Inaktivität automatisch abgemeldet! ähnelt.
'''</summary>
Friend Shared ReadOnly Property Sie_wurden_aufgrund_von_Inaktivität_automatisch_abgemeldet_() As String
Get
Return ResourceManager.GetString("Sie wurden aufgrund von Inaktivität automatisch abgemeldet!", resourceCulture)
End Get
End Property
'''<summary>
''' Sucht eine lokalisierte Zeichenfolge, die System konnte die Profilworkflows nicht auswerten!{0}Bitte wählen Sie ein Profil durch Klicken auf einen Beleg oder eine Überschrift! ähnelt.
'''</summary>
Friend Shared ReadOnly Property System_konnte_die_Profilworkflows_nicht_auswerten_() As String
Get
Return ResourceManager.GetString("System konnte die Profilworkflows nicht auswerten!", resourceCulture)
End Get
End Property
End Class End Class
End Namespace End Namespace

View File

@ -123,4 +123,13 @@
<data name="Achtung:"> <data name="Achtung:">
<value>Attention:</value> <value>Attention:</value>
</data> </data>
<data name="Größer">
<value>Bigger</value>
</data>
<data name="Kleiner">
<value>Smaller</value>
</data>
<data name="Normal">
<value>Normal</value>
</data>
</root> </root>

View File

@ -123,4 +123,13 @@
<data name="Achtung:"> <data name="Achtung:">
<value>Attention:</value> <value>Attention:</value>
</data> </data>
<data name="Größer">
<value>Plus grand</value>
</data>
<data name="Kleiner">
<value>Petit</value>
</data>
<data name="Normal">
<value>Normal</value>
</data>
</root> </root>

View File

@ -120,7 +120,97 @@
<data name="Achtung:" xml:space="preserve"> <data name="Achtung:" xml:space="preserve">
<value>Achtung:</value> <value>Achtung:</value>
</data> </data>
<data name="Aktuell keine Workflowdaten vorhanden!" xml:space="preserve">
<value>Aktuell keine Workflowdaten vorhanden!</value>
</data>
<data name="Aktuelle Lizenz ist abgelaufen oder ungültig!" xml:space="preserve">
<value>Aktuelle Lizenz ist abgelaufen oder ungültig!</value>
</data>
<data name="Anzahl Lizenzen: {0}" xml:space="preserve">
<value>Anzahl Lizenzen: {0}</value>
</data>
<data name="Bitte konfigurieren Sie eine Datenbankverbindung!" xml:space="preserve">
<value>Bitte konfigurieren Sie eine Datenbankverbindung!</value>
</data>
<data name="Bitte kontaktieren Sie Ihren Administrator!" xml:space="preserve">
<value>Bitte kontaktieren Sie Ihren Administrator!</value>
</data>
<data name="Bitte schließen Sie den offenen Workflow!" xml:space="preserve"> <data name="Bitte schließen Sie den offenen Workflow!" xml:space="preserve">
<value>Bitte schließen Sie den offenen Workflow!</value> <value>Bitte schließen Sie den offenen Workflow!</value>
</data> </data>
<data name="Bitte wählen Sie ein Profil aus!" xml:space="preserve">
<value>Bitte wählen Sie ein Profil aus!</value>
</data>
<data name="Der gewählte Beleg ist durch einen anderen Benutzer bereits in Bearbeitung oder anderweitig gesperrt!" xml:space="preserve">
<value>Der gewählte Beleg ist durch einen anderen Benutzer bereits in Bearbeitung oder anderweitig gesperrt!</value>
</data>
<data name="Detailansicht Profil: {0}" xml:space="preserve">
<value>Detailansicht Profil: {0}</value>
</data>
<data name="Es existiert bereits ein aktiver Workflow!" xml:space="preserve">
<value>Es existiert bereits ein aktiver Workflow!</value>
</data>
<data name="Es ist keine Windream Session vorhanden. Bitte überprüfen Sie das Log." xml:space="preserve">
<value>Es ist keine Windream Session vorhanden. Bitte überprüfen Sie das Log.</value>
</data>
<data name="Fehlende Datenbank Konfiguration" xml:space="preserve">
<value>Fehlende Datenbank Konfiguration</value>
</data>
<data name="Filter aktiv" xml:space="preserve">
<value>Filter aktiv</value>
</data>
<data name="Gesamtübersicht" xml:space="preserve">
<value>Gesamtübersicht</value>
</data>
<data name="Ghost Modus ({0}) deaktivieren" xml:space="preserve">
<value>Ghost Modus ({0}) deaktivieren</value>
</data>
<data name="Größer" xml:space="preserve">
<value>Größer</value>
</data>
<data name="HINWEIS: Debug Modus ist eingeschaltet!" xml:space="preserve">
<value>HINWEIS: Debug Modus ist eingeschaltet!</value>
</data>
<data name="Kleiner" xml:space="preserve">
<value>Kleiner</value>
</data>
<data name="Letzte Synchronisation: {0}" xml:space="preserve">
<value>Letzte Synchronisation: {0}</value>
</data>
<data name="Lizenz-Zähler: {0}" xml:space="preserve">
<value>Lizenz-Zähler: {0}</value>
</data>
<data name="Massenabschluss" xml:space="preserve">
<value>Massenabschluss</value>
</data>
<data name="Massenabschluss konnte nicht ausgeführt werden, weil windream nicht initialisiert werden konnte!" xml:space="preserve">
<value>Massenabschluss konnte nicht ausgeführt werden, weil windream nicht initialisiert werden konnte!</value>
</data>
<data name="Normal" xml:space="preserve">
<value>Normal</value>
</data>
<data name="Nächste Aktivitätsüberprüfung: {0} {1}" xml:space="preserve">
<value>Nächste Aktivitätsüberprüfung: {0} {1}</value>
</data>
<data name="Popup Erinnerung aktivieren ({0} min)" xml:space="preserve">
<value>Popup Erinnerung aktivieren ({0} min)</value>
</data>
<data name="Popup Erinnerung deaktivieren" xml:space="preserve">
<value>Popup Erinnerung deaktivieren</value>
</data>
<data name="Profil (Fixiert)" xml:space="preserve">
<value>Profil (Fixiert)</value>
</data>
<data name="Sie wurden aufgrund von Inaktivität automatisch abgemeldet!" xml:space="preserve">
<value>Sie wurden aufgrund von Inaktivität automatisch abgemeldet!</value>
</data>
<data name="System konnte die Profilworkflows nicht auswerten!" xml:space="preserve">
<value>System konnte die Profilworkflows nicht auswerten!{0}Bitte wählen Sie ein Profil durch Klicken auf einen Beleg oder eine Überschrift!</value>
</data>
<data name="[{0}] Workflows" xml:space="preserve">
<value>[{0}] Workflows</value>
</data>
<data name="{0} Vorgänge" xml:space="preserve">
<value>{0} Vorgänge</value>
</data>
</root> </root>

View File

@ -16,10 +16,10 @@ Imports DevExpress.XtraBars.Ribbon
Imports DigitalData.Modules.ZooFlow Imports DigitalData.Modules.ZooFlow
Imports DevExpress.LookAndFeel Imports DevExpress.LookAndFeel
Public Class frmMain Public Class frmMain
Private Property FormHelper As FormHelper Private Property FormHelper As FormHelper
Private UserLoggedin As Integer = 0
Private CURR_DT_VWPM_PROFILE_ACTIVE As DataTable Private CURR_DT_VWPM_PROFILE_ACTIVE As DataTable
Private CURR_DT_OVERVIEW As DataTable Private CURR_DT_OVERVIEW As DataTable
Private OVERVIEW_ADDED_WHEN As String Private OVERVIEW_ADDED_WHEN As String
@ -31,7 +31,6 @@ Public Class frmMain
Private GridViewItem_Clicked = Nothing Private GridViewItem_Clicked = Nothing
Private GridCursorLocation As Point Private GridCursorLocation As Point
Private GRID_LOAD_TYPE As String = "OVERVIEW" Private GRID_LOAD_TYPE As String = "OVERVIEW"
Private GRID_INV_COL_REMOVED As Boolean = False
Private NO_WORKFLOWITEMS As Boolean = False Private NO_WORKFLOWITEMS As Boolean = False
Private InResetlayout As Boolean = False Private InResetlayout As Boolean = False
Private RefreshHelper As RefreshHelper Private RefreshHelper As RefreshHelper
@ -42,21 +41,25 @@ Public Class frmMain
Private OverviewOrDEtail As String = "OVERVIEW" Private OverviewOrDEtail As String = "OVERVIEW"
Private GridBuilder As GridBuilder Private GridBuilder As GridBuilder
Private allgFunk As New ClassAllgemeineFunktionen Private ReadOnly allgFunk As New ClassAllgemeineFunktionen
Private _Init As New ClassInit Private ReadOnly _Init As New ClassInit
Private CurrNavBarGroup As NavBarGroup Private CurrNavBarGroup As NavBarGroup
'Private DataASorDB As ClassDataASorDB 'Private DataASorDB As ClassDataASorDB
'Private DT_CHECKUSER_MODULE As DataTable
Private DT_CHECKUSER_MODULE As DataTable
Private IsFilterMode As Boolean Private IsFilterMode As Boolean
Private DetailLinkActive As Boolean = False Private DetailLinkActive As Boolean = False
Private FRONTEND_ACTION As String = "NONE" Private FRONTEND_ACTION As String = "NONE"
Private Ev_Filter_Panel_Closed As Boolean = False Private Ev_Filter_Panel_Closed As Boolean = False
Private omsgOpenWorkflow = My.Resources.frmMain_Strings.Bitte_schließen_Sie_den_offenen_Workflow_
Private omsgTitleWarning = My.Resources.frmMain_Strings.Achtung_
Private Const FullFilepatColName = "FULL_FILE_PATH" Private Const FullFilepathColumnName = "FULL_FILE_PATH"
Private Const FA_NONE = "NONE" Private Const FA_NONE = "NONE"
Friend Class S
Inherits My.Resources.frmMain_Strings
End Class
Private Function GET_LAST_ADDED(pDatatable As DataTable) As String Private Function GET_LAST_ADDED(pDatatable As DataTable) As String
Dim oADDED As String Dim oADDED As String
Try Try
@ -137,7 +140,7 @@ Public Class frmMain
End Try End Try
End Sub End Sub
Private Sub frmMain_KeyUp(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyUp Private Sub frmMain_KeyUp(sender As Object, e As KeyEventArgs) Handles Me.KeyUp
Select Case e.KeyCode Select Case e.KeyCode
Case Keys.F12 Case Keys.F12
frmLicense.ShowDialog() frmLicense.ShowDialog()
@ -152,9 +155,9 @@ Public Class frmMain
GridBuilder.WithFontSizeDelta(CONFIG.Config.GridFontSizeDelta) GridBuilder.WithFontSizeDelta(CONFIG.Config.GridFontSizeDelta)
Dim oFontSettings = New List(Of FontSetting) From { Dim oFontSettings = New List(Of FontSetting) From {
New FontSetting With {.Title = "Kleiner", .Value = -2}, New FontSetting With {.Title = S.Kleiner, .Value = -2},
New FontSetting With {.Title = "Normal", .Value = 0}, New FontSetting With {.Title = S.Normal, .Value = 0},
New FontSetting With {.Title = "Größer", .Value = 2} New FontSetting With {.Title = S.Größer, .Value = 2}
} }
cmbGridFontSize.Items.Clear() cmbGridFontSize.Items.Clear()
@ -166,16 +169,10 @@ Public Class frmMain
' Create helper to save/load expanded GroupColumns at runtime ' Create helper to save/load expanded GroupColumns at runtime
RefreshHelper = New RefreshHelper(LOGCONFIG, GridView_Docs, "GUID") RefreshHelper = New RefreshHelper(LOGCONFIG, GridView_Docs, "GUID")
If User.Language <> "de-DE" Then
omsgOpenWorkflow = "Please close the active workflow!"
omsgTitleWarning = "Warning:"
End If
Dim oVErsion = String.Format("{0}.{1}.{2}", My.Application.Info.Version.Major, My.Application.Info.Version.Minor, My.Application.Info.Version.Build) Dim oVErsion = String.Format("{0}.{1}.{2}", My.Application.Info.Version.Major, My.Application.Info.Version.Minor, My.Application.Info.Version.Build)
bsiVersion.Caption = oVErsion bsiVersion.Caption = oVErsion
If ERROR_STATE = "NO DB-CONNECTION" Or ERROR_STATE = "FAILED DBCONNECTION" Then If ERROR_STATE = "NO DB-CONNECTION" Or ERROR_STATE = "FAILED DBCONNECTION" Then
MsgBox("Please add a database-Connection in AppConfig!", MsgBoxStyle.Critical, "Fehlende Konfiguration:") FormHelper.ShowErrorMessage(S.Bitte_konfigurieren_Sie_eine_Datenbankverbindung_, S.Fehlende_Datenbank_Konfiguration)
frmKonfig.ShowDialog() frmKonfig.ShowDialog()
End If End If
Try Try
@ -199,13 +196,14 @@ Public Class frmMain
End Try End Try
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) LOGGER.Error(ex)
MessageBox.Show("Error loading CurrentUICulture-Info!", "Attention:", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
FormHelper.ShowErrorMessage(ex, "frmMain_Load")
End Try End Try
Try Try
'DataASorDB = New ClassDataASorDB 'DataASorDB = New ClassDataASorDB
If User.IsAdmin = True Then If User.IsAdmin = True Then
bsiLicenses.Caption = "Anzahl Lizenzen: " & LICENSE_COUNT bsiLicenses.Caption = String.Format(S.Anzahl_Lizenzen___0_, LICENSE_COUNT)
bsiLicenses.Visibility = DevExpress.XtraBars.BarItemVisibility.Always bsiLicenses.Visibility = DevExpress.XtraBars.BarItemVisibility.Always
Else Else
bsiLicenses.Visibility = DevExpress.XtraBars.BarItemVisibility.Never bsiLicenses.Visibility = DevExpress.XtraBars.BarItemVisibility.Never
@ -215,12 +213,14 @@ Public Class frmMain
If ERROR_STATE = "NO USER" Then If ERROR_STATE = "NO USER" Then
Dim oDT As DataTable = ClassAllgemeineFunktionen.GUI_LANGUAGE_INFO("No Userconfig") Dim oDT As DataTable = ClassAllgemeineFunktionen.GUI_LANGUAGE_INFO("No Userconfig")
MsgBox(oDT.Rows(0).Item("STRING1") & vbNewLine & oDT.Rows(0).Item("STRING2"), MsgBoxStyle.Critical, "Exception")
FormHelper.ShowErrorMessage(oDT.Rows(0).Item("STRING1") & vbNewLine & oDT.Rows(0).Item("STRING2"), S.Achtung_)
Me.Close() Me.Close()
ElseIf USER_IN_MODULE = False Then ElseIf USER_IN_MODULE = False Then
If USER_IS_ADMIN = False Then If USER_IS_ADMIN = False Then
Dim oDT As DataTable = ClassAllgemeineFunktionen.GUI_LANGUAGE_INFO("No Module Configuration") Dim oDT As DataTable = ClassAllgemeineFunktionen.GUI_LANGUAGE_INFO("No Module Configuration")
MsgBox(oDT.Rows(0).Item("STRING1") & vbNewLine & oDT.Rows(0).Item("STRING2"), MsgBoxStyle.Critical, "Exception")
FormHelper.ShowErrorMessage(oDT.Rows(0).Item("STRING1") & vbNewLine & oDT.Rows(0).Item("STRING2"), S.Achtung_)
Me.Close() Me.Close()
End If End If
Else Else
@ -228,7 +228,7 @@ Public Class frmMain
'Wenn license abgelaufen und der User nicht admin ist! 'Wenn license abgelaufen und der User nicht admin ist!
If LICENSE_EXPIRED = True Then If LICENSE_EXPIRED = True Then
If USER_IS_ADMIN = False Then If USER_IS_ADMIN = False Then
MsgBox("License expired or invalid!" & vbNewLine & "Please contact the AdminTeam!", MsgBoxStyle.Critical, "Attention:") FormHelper.ShowErrorMessage(S.Aktuelle_Lizenz_ist_abgelaufen_oder_ungültig_ & vbNewLine & S.Bitte_kontaktieren_Sie_Ihren_Administrator_, S.Achtung_)
Me.Close() Me.Close()
End If End If
End If End If
@ -236,11 +236,8 @@ Public Class frmMain
RibbonPageGroup3.Visible = True RibbonPageGroup3.Visible = True
'Anzahl der eingeloggten User 'Anzahl der eingeloggten User
bsiUserLoggedIn.Visibility = DevExpress.XtraBars.BarItemVisibility.Always bsiUserLoggedIn.Visibility = DevExpress.XtraBars.BarItemVisibility.Always
If USER_LANGUAGE <> "de-DE" Then bsiUserLoggedIn.Caption = String.Format(S.Lizenz_Zähler___0_, USERCOUNT_LOGGED_IN)
bsiUserLoggedIn.Caption = "License Count: " & USERCOUNT_LOGGED_IN
Else
bsiUserLoggedIn.Caption = "Lizenz-Zähler: " & USERCOUNT_LOGGED_IN
End If
If GHOSTMODE_ACTIVE = True Then If GHOSTMODE_ACTIVE = True Then
bbtnitmGhostMode.Visibility = DevExpress.XtraBars.BarItemVisibility.Always bbtnitmGhostMode.Visibility = DevExpress.XtraBars.BarItemVisibility.Always
Else Else
@ -312,21 +309,18 @@ Public Class frmMain
End If End If
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) FormHelper.ShowErrorMessage(ex, "frmMain_Load/UserCheck")
MsgBox(ex.Message, MsgBoxStyle.Exclamation, "Error in User Check:")
End Try End Try
bsiUser.Caption = USER_USERNAME bsiUser.Caption = USER_USERNAME
GetBaseData("Load") GetBaseData("Load")
Try Try
If TimerRefresh.Enabled = False Then If TimerRefresh.Enabled = False Then
TimerRefresh.Start() TimerRefresh.Start()
End If End If
Timer5Mins.Start() Timer5Mins.Start()
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) FormHelper.ShowErrorMessage(ex, "frmMain_Load/RefreshTimer")
MsgBox("Unexpected Error in LoadForm - Step 4: " & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Attention:")
End Try End Try
LoadNavBar() LoadNavBar()
AddHandler NavBarControl1.LinkClicked, AddressOf navBar_LinkClicked AddHandler NavBarControl1.LinkClicked, AddressOf navBar_LinkClicked
@ -346,7 +340,7 @@ Public Class frmMain
End If End If
Catch ex As Exception Catch ex As Exception
LOGGER.Warn($"Could not load Charts: {ex.Message}") FormHelper.ShowErrorMessage(ex, "frmMain_Load/ChartLoading")
End Try End Try
If MONITORING_ACTIVE = False Then If MONITORING_ACTIVE = False Then
bbtniMonitor.Visibility = DevExpress.XtraBars.BarItemVisibility.Never bbtniMonitor.Visibility = DevExpress.XtraBars.BarItemVisibility.Never
@ -366,17 +360,16 @@ Public Class frmMain
BarButtonItemFileLink.Visibility = DevExpress.XtraBars.BarItemVisibility.Always BarButtonItemFileLink.Visibility = DevExpress.XtraBars.BarItemVisibility.Always
If Not IsNothing(WINDREAM.oSession) Then If Not IsNothing(WINDREAM.oSession) Then
If WINDREAM.oSession.aLoggedin = False Then If WINDREAM.oSession.aLoggedin = False Then
MsgBox("You could not be logged in to windream. Please check the log.", MsgBoxStyle.Critical) FormHelper.ShowErrorMessage("You could not be logged in to windream. Please check the log.", "frmMain_Load/WindreamLogin")
End If End If
Else Else
MsgBox("Login on windream was not possible. Please check the log.", MsgBoxStyle.Critical) FormHelper.ShowErrorMessage("Login on windream was not possible. Please check the log.", "frmMain_Load/WindreamLogin")
End If End If
End If End If
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) FormHelper.ShowErrorMessage(ex, "frmMain_Load/WindreamLogin")
MsgBox("Unexpected Error in windream-login - Step 5: " & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Attention:")
End Try End Try
Else Else
BarButtonItemFileLink.Visibility = DevExpress.XtraBars.BarItemVisibility.Never BarButtonItemFileLink.Visibility = DevExpress.XtraBars.BarItemVisibility.Never
@ -461,7 +454,7 @@ Public Class frmMain
pTrigger = $"({pTrigger})" pTrigger = $"({pTrigger})"
End If End If
bsiInactivityCheck.Caption = $"Next Inactivity-Check: {oStarttime.ToShortTimeString} {pTrigger}" bsiInactivityCheck.Caption = String.Format(S.Nächste_Aktivitätsüberprüfung___0___1_, oStarttime.ToShortTimeString, pTrigger)
Else Else
TimerInactivity.Enabled = False TimerInactivity.Enabled = False
TimerInactivity.Stop() TimerInactivity.Stop()
@ -607,7 +600,7 @@ Public Class frmMain
GridView_Docs.Columns.Item("PROFILE_ID").Visible = False GridView_Docs.Columns.Item("PROFILE_ID").Visible = False
GridView_Docs.Columns.Item("GUID").Visible = False GridView_Docs.Columns.Item("GUID").Visible = False
Try Try
GridView_Docs.Columns.Item(FullFilepatColName).Visible = False GridView_Docs.Columns.Item(FullFilepathColumnName).Visible = False
Catch ex As Exception Catch ex As Exception
End Try End Try
@ -758,16 +751,14 @@ Public Class frmMain
End If End If
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) FormHelper.ShowErrorMessage(ex, "LoadNavBar")
LOGGER.Info("Load_Profile_items - Error: " & ex.Message)
'MsgBox("Unexpected Error in Load_Profile_items - Error: " & vbNewLine & ex.Message, MsgBoxStyle.Critical)
End Try End Try
End Sub End Sub
Private Async Sub navBar_LinkClicked(ByVal sender As Object, ByVal e As NavBarLinkEventArgs) Private Async Sub navBar_LinkClicked(ByVal sender As Object, ByVal e As NavBarLinkEventArgs)
If Not Application.OpenForms().OfType(Of frmValidator).Any Then If Not Application.OpenForms().OfType(Of frmValidator).Any Then
Else Else
FormHelper.ShowInfoMessage(omsgOpenWorkflow, omsgTitleWarning) FormHelper.ShowInfoMessage(S.Bitte_schließen_Sie_den_offenen_Workflow_, S.Achtung_)
Exit Sub Exit Sub
End If End If
@ -899,7 +890,7 @@ Public Class frmMain
OVERVIEW_CHANGED_WHEN = oChanged OVERVIEW_CHANGED_WHEN = oChanged
OVERVIEW_COUNT = oCOUNT OVERVIEW_COUNT = oCOUNT
End If End If
GridView_Docs.ViewCaption = "Detailansicht Profil: " & CURRENT_CLICKED_PROFILE_TITLE GridView_Docs.ViewCaption = String.Format(S.Detailansicht_Profil___0_, CURRENT_CLICKED_PROFILE_TITLE)
If CURR_DT_OVERVIEW.Rows.Count = 0 Then If CURR_DT_OVERVIEW.Rows.Count = 0 Then
NO_WORKFLOWITEMS = True NO_WORKFLOWITEMS = True
Else Else
@ -908,7 +899,7 @@ Public Class frmMain
Create_Basic_View() Create_Basic_View()
RestoreLayout() RestoreLayout()
GridView_Docs.ViewCaption = "Detailansicht Profil: " & CURRENT_CLICKED_PROFILE_TITLE GridView_Docs.ViewCaption = String.Format(S.Detailansicht_Profil___0_, CURRENT_CLICKED_PROFILE_TITLE)
End If End If
End If End If
@ -988,12 +979,8 @@ Public Class frmMain
Next Next
bindsourcegrid.DataSource = CURR_DT_OVERVIEW bindsourcegrid.DataSource = CURR_DT_OVERVIEW
GridControl_Docs.DataSource = bindsourcegrid GridControl_Docs.DataSource = bindsourcegrid
Dim objectCount_Descr = GridView_Docs.RowCount.ToString
If USER_LANGUAGE = "de-DE" Then Dim objectCount_Descr = String.Format(S._0__Vorgänge, GridView_Docs.RowCount.ToString)
objectCount_Descr &= " Vorgänge"
Else
objectCount_Descr &= " objects"
End If
'tslblObjectCount.Text = objectCount_Descr 'tslblObjectCount.Text = objectCount_Descr
@ -1005,7 +992,7 @@ Public Class frmMain
GridView_Docs.Columns.Item("PROFILE_ID").Visible = False GridView_Docs.Columns.Item("PROFILE_ID").Visible = False
GridView_Docs.Columns.Item("GUID").Visible = False GridView_Docs.Columns.Item("GUID").Visible = False
Try Try
GridView_Docs.Columns.Item(FullFilepatColName).Visible = False GridView_Docs.Columns.Item(FullFilepathColumnName).Visible = False
Catch ex As Exception Catch ex As Exception
End Try End Try
Try Try
@ -1104,7 +1091,7 @@ Public Class frmMain
End If End If
Next Next
If oViewColumn_exists = False Then If oViewColumn_exists = False Then
If oViewColumn.Caption = FullFilepatColName And IDB_ACTIVE = False Then If oViewColumn.Caption = FullFilepathColumnName And IDB_ACTIVE = False Then
LOGGER.Info($"Following ViewColumn no longer exists in the view: [{oViewColumn.Caption}]") LOGGER.Info($"Following ViewColumn no longer exists in the view: [{oViewColumn.Caption}]")
Return True Return True
End If End If
@ -1188,11 +1175,7 @@ Public Class frmMain
Exit Sub Exit Sub
End If End If
If USER_LANGUAGE <> "de-DE" Then bsilastsync.Caption = String.Format(S.Letzte_Synchronisation___0_, Now.ToLongTimeString)
bsilastsync.Caption = "Last Client-Sync: " & Now.ToLongTimeString
Else
bsilastsync.Caption = "Letzte Synchronisation: " & Now.ToLongTimeString
End If
If GridControl_Docs.Visible = True And FormOpenClose = False Then If GridControl_Docs.Visible = True And FormOpenClose = False Then
RefreshHelper.SaveViewInfo() RefreshHelper.SaveViewInfo()
@ -1355,13 +1338,6 @@ Public Class frmMain
Try Try
CURRENT_ProfilGUID = pProfilID CURRENT_ProfilGUID = pProfilID
Dim omsg = "Es ist bereits ein Workflow geöffnet!"
Dim omsgTitle = "Achtung:"
If USER_LANGUAGE <> "de-DE" Then
omsg = "There is already a workflow active!"
omsgTitle = "Attention:"
End If
' Dim th As System.Threading.Thread ' Dim th As System.Threading.Thread
If Not Application.OpenForms().OfType(Of frmValidator).Any Then If Not Application.OpenForms().OfType(Of frmValidator).Any Then
If TimerRefresh.Enabled Then If TimerRefresh.Enabled Then
@ -1381,7 +1357,7 @@ Public Class frmMain
If CURRENT_DT_PROFILE.Rows.Count = 1 Then If CURRENT_DT_PROFILE.Rows.Count = 1 Then
CURRENT_ProfilName = CURRENT_DT_PROFILE.Rows(0).Item("NAME") CURRENT_ProfilName = CURRENT_DT_PROFILE.Rows(0).Item("NAME")
Else Else
MsgBox("Could not get a Profile - Check Your log!", MsgBoxStyle.Exclamation, ADDITIONAL_TITLE) FormHelper.ShowWarningMessage("Could not get a Profile - Check Your log!", ADDITIONAL_TITLE)
Exit Sub Exit Sub
End If End If
@ -1406,7 +1382,8 @@ Public Class frmMain
LOGGER.Warn($"ex.InnerException.Message [{ex.InnerException.Message}]") LOGGER.Warn($"ex.InnerException.Message [{ex.InnerException.Message}]")
LOGGER.Warn($"ex.InnerException.Source [{ex.InnerException.Source}]") LOGGER.Warn($"ex.InnerException.Source [{ex.InnerException.Source}]")
LOGGER.Error(ex.InnerException) LOGGER.Error(ex.InnerException)
MsgBox(ex.Message, MsgBoxStyle.Critical, ADDITIONAL_TITLE)
FormHelper.ShowErrorMessage(ex, "Load_Profil_from_Grid")
End Try End Try
Try Try
@ -1429,21 +1406,14 @@ Public Class frmMain
' th.Start() ' th.Start()
Else Else
LOGGER.Debug("Validator is already open...") LOGGER.Debug("Validator is already open...")
FormHelper.ShowInfoMessage(omsg, omsgTitleWarning) FormHelper.ShowWarningMessage(S.Es_existiert_bereits_ein_aktiver_Workflow_, S.Achtung_)
End If End If
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) FormHelper.ShowErrorMessage(ex, "Load_Profil_from_Grid")
MsgBox("Unexpected error in Load_Profil_from_Grid: " & ex.Message & vbNewLine & ADDITIONAL_TITLE & " will try to reload the overview - Please try again!", MsgBoxStyle.Information, ADDITIONAL_TITLE)
Dim task = Decide_Load(False, True) Dim task = Decide_Load(False, True)
End Try End Try
'Me.Visible = True
'Decide_Load()
End Sub End Sub
'Public Sub Task_A() 'Public Sub Task_A()
@ -1454,7 +1424,7 @@ Public Class frmMain
Try Try
If Application.OpenForms().OfType(Of frmValidator).Any Then If Application.OpenForms().OfType(Of frmValidator).Any Then
bsiMessage.Caption = "There is already an active workflow!" bsiMessage.Caption = S.Es_existiert_bereits_ein_aktiver_Workflow_
LOGGER.Info("Item Scope - Workflow open! - Exit") LOGGER.Info("Item Scope - Workflow open! - Exit")
bsiMessage.ItemAppearance.Normal.BackColor = Color.Red bsiMessage.ItemAppearance.Normal.BackColor = Color.Red
Exit Sub Exit Sub
@ -1524,7 +1494,8 @@ Public Class frmMain
' ----------------------------- ' -----------------------------
If oIds.Count = 0 Then If oIds.Count = 0 Then
MsgBox("System konnte die Profilworkflows nicht auswerten!" & vbNewLine & "Bitte wählen Sie ein Profil durch Klicken auf einen Beleg oder eine Überschrift!", MsgBoxStyle.Information, ADDITIONAL_TITLE) FormHelper.ShowWarningMessage(String.Format(S.System_konnte_die_Profilworkflows_nicht_auswerten_, vbNewLine), ADDITIONAL_TITLE)
Exit Sub Exit Sub
End If End If
Dim oDelete = $"DELETE FROM TBPM_VALIDATION_PROFILE_GROUP_USER WHERE UserID = {USER_ID}" Dim oDelete = $"DELETE FROM TBPM_VALIDATION_PROFILE_GROUP_USER WHERE UserID = {USER_ID}"
@ -1627,14 +1598,14 @@ Public Class frmMain
Try Try
oFocusedDocGUID = GridView_Docs.GetFocusedRowCellValue(GridView_Docs.Columns("GUID")) oFocusedDocGUID = GridView_Docs.GetFocusedRowCellValue(GridView_Docs.Columns("GUID"))
Catch ex As Exception Catch ex As Exception
FormHelper.ShowInfoMessage("Could not get DocGUID. Inform Your admin-team: Check Your View-Config", omsgTitleWarning) FormHelper.ShowWarningMessage("Could not get DocGUID. Inform Your admin-team: Check Your View-Config", S.Achtung_)
End Try End Try
Dim oFocusedDocID Dim oFocusedDocID
Try Try
oFocusedDocID = GridView_Docs.GetFocusedRowCellValue(GridView_Docs.Columns("DocID")) oFocusedDocID = GridView_Docs.GetFocusedRowCellValue(GridView_Docs.Columns("DocID"))
Catch ex As Exception Catch ex As Exception
FormHelper.ShowInfoMessage("Could not get DocID. Inform Your admin-team: Check Your View-Config", omsgTitleWarning) FormHelper.ShowWarningMessage("Could not get DocID. Inform Your admin-team: Check Your View-Config", S.Achtung_)
End Try End Try
If IsNothing(oFocusedDocID) Then If IsNothing(oFocusedDocID) Then
@ -1650,8 +1621,8 @@ Public Class frmMain
Exit Sub Exit Sub
End If End If
LOGGER.Debug($"Item_Scope: GotDocID {oFocusedDocID} and DocGUID {oFocusedDocGUID}") LOGGER.Debug($"Item_Scope: GotDocID {oFocusedDocID} and DocGUID {oFocusedDocGUID}")
If Not IsNothing(GridView_Docs.Columns(FullFilepatColName)) Then If Not IsNothing(GridView_Docs.Columns(FullFilepathColumnName)) Then
Dim DOC_PATH = GridView_Docs.GetFocusedRowCellValue(GridView_Docs.Columns(FullFilepatColName)) Dim DOC_PATH = GridView_Docs.GetFocusedRowCellValue(GridView_Docs.Columns(FullFilepathColumnName))
If IsNothing(DOC_PATH) Then If IsNothing(DOC_PATH) Then
LOGGER.Warn("In hitInfo.InDataRow: FULL_FILE_PATH is nothing!!!") LOGGER.Warn("In hitInfo.InDataRow: FULL_FILE_PATH is nothing!!!")
Exit Sub Exit Sub
@ -1681,13 +1652,7 @@ Public Class frmMain
If CBool(oResult) = True Then If CBool(oResult) = True Then
Load_Profil_from_Grid(CURRENT_CLICKED_PROFILE_ID) Load_Profil_from_Grid(CURRENT_CLICKED_PROFILE_ID)
Else Else
Dim omsg As String = "Achtung: der gewählte Beleg ist durch einen anderen Benutzer bereits in Bearbeitung oder anderweitig gesperrt" FormHelper.ShowWarningMessage(S.Der_gewählte_Beleg_ist_durch_einen_anderen_Benutzer_bereits_in_Bearbeitung_oder_anderweitig_gesperrt_, S.Achtung_)
Dim otitle = "Achtung:"
If USER_LANGUAGE <> "de-DE" Then
omsg = "Attention: the item You chose is rather in work or locked from another user!"
otitle = "Attention:"
End If
FormHelper.ShowInfoMessage(omsg, omsgTitleWarning)
End If End If
Catch ex As Exception Catch ex As Exception
@ -1701,7 +1666,7 @@ Public Class frmMain
End If End If
Else Else
FormHelper.ShowInfoMessage("Could not get the ProfileID of file! - Check Your configuration of MainView!", omsgTitleWarning) FormHelper.ShowWarningMessage("Could not get the ProfileID of file! - Check Your configuration of MainView!", omsgTitleWarning)
End If End If
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) LOGGER.Error(ex)
@ -1725,9 +1690,7 @@ Public Class frmMain
Return True Return True
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) FormHelper.ShowErrorMessage(ex, "Init_IDB")
MsgBox("Error Init_IDB:" & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Attention:")
LOGGER.Info("Unexpected error in Init_IDB: " & ex.Message, True)
Return False Return False
End Try End Try
End Function End Function
@ -1739,12 +1702,10 @@ Public Class frmMain
'_windreamPM.Create_Session() '_windreamPM.Create_Session()
WINDREAM = New ClassPMWindream() WINDREAM = New ClassPMWindream()
WINDREAM.Create_Session() WINDREAM.Create_Session()
WINDREAM_ALLG = New ClassWindream_allgemein WINDREAM_ALLG = New ClassWindream_allgemein()
Return WINDREAM.IsLoggedIn Return WINDREAM.IsLoggedIn
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) FormHelper.ShowErrorMessage(ex, "Init_windream")
MsgBox("Error Init_windream:" & vbNewLine & ex.Message, MsgBoxStyle.Critical, "Attention:")
LOGGER.Info("Unexpected error in Init_windream: " & ex.Message, True)
Return False Return False
End Try End Try
End Function End Function
@ -1768,10 +1729,10 @@ Public Class frmMain
oGroupColumn.OptionsColumn.AllowGroup = DefaultBoolean.False oGroupColumn.OptionsColumn.AllowGroup = DefaultBoolean.False
oGroupColumn.OptionsColumn.AllowMove = False oGroupColumn.OptionsColumn.AllowMove = False
oGroupColumn.OptionsColumn.AllowShowHide = False oGroupColumn.OptionsColumn.AllowShowHide = False
oGroupColumn.Caption = "Profile (Fixed)" oGroupColumn.Caption = S.Profil__Fixiert_
End If End If
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex)
End Try End Try
oindex += 1 oindex += 1
@ -1782,6 +1743,7 @@ Public Class frmMain
GridView_Docs.Columns.Item("GROUP_TEXT").Visible = False GridView_Docs.Columns.Item("GROUP_TEXT").Visible = False
GridView_Docs.Columns.Item("GROUP_COLOR").Visible = False GridView_Docs.Columns.Item("GROUP_COLOR").Visible = False
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex)
End Try End Try
For index = 0 To GridView_Docs.GroupCount - 1 For index = 0 To GridView_Docs.GroupCount - 1
'Dim v = GridView_Docs.GroupedColumns(index).ToString 'Dim v = GridView_Docs.GroupedColumns(index).ToString
@ -1883,11 +1845,7 @@ Public Class frmMain
NO_WORKFLOWITEMS = False NO_WORKFLOWITEMS = False
If CURR_DT_OVERVIEW.Rows.Count = 0 Then If CURR_DT_OVERVIEW.Rows.Count = 0 Then
If USER_LANGUAGE = "de-DE" Then GridView_Docs.ViewCaption = S.Aktuell_keine_Workflowdaten_vorhanden_
GridView_Docs.ViewCaption = "Aktuell keine Workflowdaten vorhanden!"
Else
GridView_Docs.ViewCaption = "No workflowdata!"
End If
NO_WORKFLOWITEMS = True NO_WORKFLOWITEMS = True
GridControl_Docs.Visible = False GridControl_Docs.Visible = False
bindsourcegrid.DataSource = Nothing bindsourcegrid.DataSource = Nothing
@ -1993,7 +1951,7 @@ Public Class frmMain
GridView_Docs.Columns.Item("PROFILE_ID").Visible = False GridView_Docs.Columns.Item("PROFILE_ID").Visible = False
GridView_Docs.Columns.Item("GUID").Visible = False GridView_Docs.Columns.Item("GUID").Visible = False
Try Try
GridView_Docs.Columns.Item(FullFilepatColName).Visible = False GridView_Docs.Columns.Item(FullFilepathColumnName).Visible = False
'GridView_Docs.Columns.Item("DocID").Visible = False 'GridView_Docs.Columns.Item("DocID").Visible = False
GridView_Docs.Columns.Item("TL_STATE").Visible = False GridView_Docs.Columns.Item("TL_STATE").Visible = False
Catch ex As Exception Catch ex As Exception
@ -2083,7 +2041,7 @@ Public Class frmMain
If CURRENT_CLICKED_PROFILE_ID <> 0 Then If CURRENT_CLICKED_PROFILE_ID <> 0 Then
Load_Profil_from_Grid(CURRENT_CLICKED_PROFILE_ID) Load_Profil_from_Grid(CURRENT_CLICKED_PROFILE_ID)
Else Else
FormHelper.ShowInfoMessage("Please choose a profile!", omsgTitleWarning) FormHelper.ShowInfoMessage(S.Bitte_wählen_Sie_ein_Profil_aus_, S.Achtung_)
End If End If
End Sub End Sub
@ -2365,11 +2323,7 @@ Public Class frmMain
End Sub End Sub
Sub Handling_DEBUG_USER() Sub Handling_DEBUG_USER()
If DEBUG = True Then If DEBUG = True Then
If USER_LANGUAGE = "de-DE" Then bsiDebug.Caption = S.HINWEIS__Debug_Modus_ist_eingeschaltet_
bsiDebug.Caption = "HINWEIS: UserDebugMode ist eingeschaltet!"
Else
bsiDebug.Caption = "INFORMATION: UserDebugMode activated!"
End If
bsiDebug.Visibility = DevExpress.XtraBars.BarItemVisibility.Always bsiDebug.Visibility = DevExpress.XtraBars.BarItemVisibility.Always
Else Else
bsiDebug.Visibility = DevExpress.XtraBars.BarItemVisibility.Never bsiDebug.Visibility = DevExpress.XtraBars.BarItemVisibility.Never
@ -2392,10 +2346,6 @@ Public Class frmMain
LOGGER.Warn($"oSQL so far [{oSQL}]") LOGGER.Warn($"oSQL so far [{oSQL}]")
End Try End Try
End Sub End Sub
Private Sub tsslblDEBUG_LOG_MouseHover(sender As Object, e As EventArgs)
MsgBox("UserDebugMode is activated remotely. Debugdata will be transferred to database and will be deleted after 10 days!!", MsgBoxStyle.Information, ADDITIONAL_TITLE)
End Sub
Private Sub frmMain_Closing(sender As Object, e As CancelEventArgs) Handles Me.Closing Private Sub frmMain_Closing(sender As Object, e As CancelEventArgs) Handles Me.Closing
If Application.OpenForms().OfType(Of frmValidator).Any Then If Application.OpenForms().OfType(Of frmValidator).Any Then
@ -2418,9 +2368,9 @@ Public Class frmMain
Private Sub ContextMenuNotifyIcon_Opening(sender As Object, e As CancelEventArgs) Handles ContextMenuNotifyIcon.Opening Private Sub ContextMenuNotifyIcon_Opening(sender As Object, e As CancelEventArgs) Handles ContextMenuNotifyIcon.Opening
If CONFIG.Config.ReminderTimer <> 0 Then If CONFIG.Config.ReminderTimer <> 0 Then
PopupErinnerungInaktivierenToolStripMenuItem.Text = "Popup Erinnerung inaktivieren" PopupErinnerungInaktivierenToolStripMenuItem.Text = S.Popup_Erinnerung_deaktivieren
Else Else
PopupErinnerungInaktivierenToolStripMenuItem.Text = $"Popup Erinnerung aktivieren ({CONFIG.Config.ReminderTimer} min)" PopupErinnerungInaktivierenToolStripMenuItem.Text = String.Format(S.Popup_Erinnerung_aktivieren___0__min_, CONFIG.Config.ReminderTimer)
End If End If
End Sub End Sub
@ -2463,15 +2413,14 @@ Public Class frmMain
' Load_Profil() ' Load_Profil()
Check_Timer_Notification() Check_Timer_Notification()
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) FormHelper.ShowErrorMessage(ex, "frmConfig/Load")
MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler beim Laden Grundeinstellungen:")
End Try End Try
End Sub End Sub
Private Async Sub bbtniRefresh_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles bbtniRefresh.ItemClick Private Async Sub bbtniRefresh_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles bbtniRefresh.ItemClick
If Application.OpenForms().OfType(Of frmValidator).Any Then If Application.OpenForms().OfType(Of frmValidator).Any Then
FormHelper.ShowInfoMessage(omsgOpenWorkflow, omsgTitleWarning) FormHelper.ShowInfoMessage(S.Bitte_schließen_Sie_den_offenen_Workflow_, S.Achtung_)
Exit Sub Exit Sub
End If End If
Timer_Inactivity_Reset_Disable("OverviewRefreshClick") Timer_Inactivity_Reset_Disable("OverviewRefreshClick")
@ -2552,12 +2501,7 @@ Public Class frmMain
Private Sub bwBasicData_RunWorkerCompleted(sender As Object, e As RunWorkerCompletedEventArgs) Handles bwBasicData.RunWorkerCompleted Private Sub bwBasicData_RunWorkerCompleted(sender As Object, e As RunWorkerCompletedEventArgs) Handles bwBasicData.RunWorkerCompleted
If USER_IS_ADMIN Then If USER_IS_ADMIN Then
If USER_LANGUAGE = "de-DE" Then bsiUserLoggedIn.Caption = String.Format(S.Lizenz_Zähler___0_, USERCOUNT_LOGGED_IN)
bsiUserLoggedIn.Caption = "License Count: " & USERCOUNT_LOGGED_IN
Else
bsiUserLoggedIn.Caption = "Lizenz-Zähler: " & USERCOUNT_LOGGED_IN
End If
End If End If
BarEditItem1.Visibility = DevExpress.XtraBars.BarItemVisibility.Never BarEditItem1.Visibility = DevExpress.XtraBars.BarItemVisibility.Never
End Sub End Sub
@ -2640,12 +2584,7 @@ Public Class frmMain
frmGhostMode.ShowDialog() frmGhostMode.ShowDialog()
If USER_GHOST_MODE_ACTIVE = True And USER_GHOST_MODE_USRNAME <> String.Empty Then If USER_GHOST_MODE_ACTIVE = True And USER_GHOST_MODE_USRNAME <> String.Empty Then
LOGGER.Info($"GHOST MODE for User {USER_GHOST_MODE_USRNAME} will now be initialized!") LOGGER.Info($"GHOST MODE for User {USER_GHOST_MODE_USRNAME} will now be initialized!")
If USER_LANGUAGE = "de-DE" Then BarButtonItemGhostMode.Caption = String.Format(S.Ghost_Modus___0___deaktivieren, USER_GHOST_MODE_USRNAME)
BarButtonItemGhostMode.Caption = $"Ghost Modus ({USER_GHOST_MODE_USRNAME}) inaktivieren"
Else
BarButtonItemGhostMode.Caption = $"Inactivate ghost mode ({USER_GHOST_MODE_USRNAME})"
End If
BarButtonItemGhostMode.Visibility = DevExpress.XtraBars.BarItemVisibility.Always BarButtonItemGhostMode.Visibility = DevExpress.XtraBars.BarItemVisibility.Always
_Init.InitBasics() _Init.InitBasics()
@ -2678,11 +2617,7 @@ Public Class frmMain
Create_View_Caption() Create_View_Caption()
If Ev_Filter_Panel_Closed = False Then If Ev_Filter_Panel_Closed = False Then
Dim objectCount_Descr As String ' = GridViewWFItems.RowCount.ToString Dim objectCount_Descr As String ' = GridViewWFItems.RowCount.ToString
If USER_LANGUAGE <> "de-DE" Then objectCount_Descr = S.Filter_aktiv
objectCount_Descr = " filtered"
Else
objectCount_Descr = " Filter aktiv"
End If
GridView_Docs.ViewCaption += $"| {objectCount_Descr}" GridView_Docs.ViewCaption += $"| {objectCount_Descr}"
Else Else
Ev_Filter_Panel_Closed = False Ev_Filter_Panel_Closed = False
@ -2698,40 +2633,15 @@ Public Class frmMain
End Sub End Sub
Sub RowCount() Sub RowCount()
Try Try
'Dim oGroupCount As Integer = 0
'For index = 0 To GridViewWFItems.RowCount
' Dim oRow = GridViewWFItems.GetRow(index)
' If oRow Is Nothing Then
' Continue For
' End If
' If GridViewWFItems.GetRowExpanded(index) = True Then
' oGroupCount += 1
' End If
'Next
Dim oRowCount = GridView_Docs.RowCount Dim oRowCount = GridView_Docs.RowCount
bsiRowCount.Caption = String.Format(S.__0___Workflows, oRowCount)
oRowCount = oRowCount '- oGroupCount
Dim objectCount_Descr = $"[{oRowCount.ToString}]"
If USER_LANGUAGE = "de-DE" Then
objectCount_Descr &= " Workflows"
Else
objectCount_Descr &= " workflows"
End If
bsiRowCount.Caption = objectCount_Descr
Catch ex As Exception Catch ex As Exception
bsiRowCount.Caption = "Error getting RowCount" bsiRowCount.Caption = "Error getting RowCount"
End Try End Try
End Sub End Sub
Sub Create_View_Caption() Sub Create_View_Caption()
Try Try
GridView_Docs.ViewCaption = S.Gesamtübersicht
If USER_LANGUAGE = "de-DE" Then
GridView_Docs.ViewCaption = "Gesamtübersicht"
Else
GridView_Docs.ViewCaption = "Overview"
End If
Catch ex As Exception Catch ex As Exception
@ -2784,11 +2694,7 @@ Public Class frmMain
Exit Sub Exit Sub
End If End If
INACTIVITYRecognized = True INACTIVITYRecognized = True
Dim omsg As String = "Sie wurden aufgrund von Inaktivität automatisch abgemeldet!"
If USER_LANGUAGE <> "de-DE" Then
omsg = "Due to inactivity we closed all actions and You have been logged out automatically."
End If
Timer5Mins.Stop() Timer5Mins.Stop()
TimerRefresh.Stop() TimerRefresh.Stop()
TimerReminder.Stop() TimerReminder.Stop()
@ -2796,7 +2702,8 @@ Public Class frmMain
Hide() Hide()
ClassAllgemeineFunktionen.LoginOut("LOGOUT") ClassAllgemeineFunktionen.LoginOut("LOGOUT")
TimerInactivity.Stop() TimerInactivity.Stop()
MsgBox(omsg, MsgBoxStyle.Information, ADDITIONAL_TITLE)
FormHelper.ShowWarningMessage(S.Sie_wurden_aufgrund_von_Inaktivität_automatisch_abgemeldet_, ADDITIONAL_TITLE)
Application.Exit() Application.Exit()
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex.Message) LOGGER.Error(ex.Message)
@ -2828,7 +2735,7 @@ Public Class frmMain
MyProcess.Start() MyProcess.Start()
Else Else
LOGGER.Warn($"Clipboardwatcher-Exe not found [{bbtniCW.Tag}]") LOGGER.Warn($"Clipboardwatcher-Exe not found [{bbtniCW.Tag}]")
FormHelper.ShowInfoMessage("Clipboard Watcher could not be started!", omsgTitleWarning) FormHelper.ShowInfoMessage("Clipboard Watcher could not be started!", S.Achtung_)
End If End If
Catch ex As Exception Catch ex As Exception
@ -2943,14 +2850,14 @@ Public Class frmMain
omsg = "Please select some documents!" omsg = "Please select some documents!"
End If End If
FormHelper.ShowInfoMessage(omsg, omsgTitleWarning) FormHelper.ShowInfoMessage(omsg, S.Achtung_)
Exit Sub Exit Sub
End If End If
oProfileId = GridView_Docs.GetRowCellValue(oSelectedRows.Last(), GridView_Docs.Columns("PROFILE_ID")) oProfileId = GridView_Docs.GetRowCellValue(oSelectedRows.Last(), GridView_Docs.Columns("PROFILE_ID"))
If oProfileId = 0 Then If oProfileId = 0 Then
FormHelper.ShowInfoMessage("Could not select a profile!", omsgTitleWarning) FormHelper.ShowInfoMessage("Could not select a profile!", S.Achtung_)
Exit Sub Exit Sub
End If End If
@ -2994,7 +2901,7 @@ Public Class frmMain
End If End If
Dim R As DataRow = NewDatatable.NewRow Dim R As DataRow = NewDatatable.NewRow
CURRENT_DOC_ID = oDocID CURRENT_DOC_ID = oDocID
Dim DOC_PATH = GridView_Docs.GetRowCellValue(oRowHandle, FullFilepatColName) Dim DOC_PATH = GridView_Docs.GetRowCellValue(oRowHandle, FullFilepathColumnName)
' CURRENT_DOC_PATH = DOC_PATH ' CURRENT_DOC_PATH = DOC_PATH
CURRENT_DOC_GUID = GridView_Docs.GetRowCellValue(oRowHandle, "GUID") CURRENT_DOC_GUID = GridView_Docs.GetRowCellValue(oRowHandle, "GUID")
R("DocID") = CURRENT_DOC_ID R("DocID") = CURRENT_DOC_ID
@ -3010,15 +2917,10 @@ Public Class frmMain
LoadNavBar() LoadNavBar()
Await Decide_Load(False) Await Decide_Load(False)
Else Else
If USER_LANGUAGE = "de-DE" Then FormHelper.ShowErrorMessage(S.Massenabschluss_konnte_nicht_ausgeführt_werden__weil_windream_nicht_initialisiert_werden_konnte_, ADDITIONAL_TITLE)
MsgBox("Massenabschluss konnte nicht ausgeführt werden, weil windream nicht initialisiert werden konnte!", MsgBoxStyle.Critical, "Massenabschluss")
Else
MsgBox("Massvalidation could not be completed because of an error in windream", MsgBoxStyle.Critical, "Massvalidation")
End If
End If End If
Catch ex As Exception Catch ex As Exception
LOGGER.Error(ex) FormHelper.ShowErrorMessage(ex, "BarButtonItemMassValidation_ItemClick")
MsgBox("Unhandled Error in tsmiMarkedFilesFinish_Click: " & ex.Message)
End Try End Try
End Sub End Sub