Compare commits
6 Commits
d899a65ed4
...
56645fc3e8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
56645fc3e8 | ||
|
|
3b81ecf6c8 | ||
|
|
70694273f2 | ||
|
|
e5d3d37005 | ||
|
|
d8bb4e3caa | ||
|
|
491d76c842 |
@@ -96,7 +96,7 @@ Public Class ClassControls
|
|||||||
|
|
||||||
oConnectionString = ClassFormFunctions.GetConnectionString(conid)
|
oConnectionString = ClassFormFunctions.GetConnectionString(conid)
|
||||||
|
|
||||||
If oConnectionString IsNot Nothing Then
|
If oConnectionString IsNot Nothing And oSql.Length > 0 Then
|
||||||
LOGGER.Debug("Connection String (redacted): [{0}]", oConnectionString.Substring(0, 30))
|
LOGGER.Debug("Connection String (redacted): [{0}]", oConnectionString.Substring(0, 30))
|
||||||
|
|
||||||
If ClassPatterns.HasComplexPatterns(oSql) Then
|
If ClassPatterns.HasComplexPatterns(oSql) Then
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ Public Class ClassPatterns
|
|||||||
|
|
||||||
Public Const MAX_TRY_COUNT = 500
|
Public Const MAX_TRY_COUNT = 500
|
||||||
|
|
||||||
Private Shared regex As Regex = New Regex("{#(\w+)#([\w\d\s_-]+)}+")
|
Private Shared regex As Regex = New Regex("{#(\w+)#([\.\w\d\s_-]+)}+")
|
||||||
Private Shared allPatterns As New List(Of String) From {PATTERN_WMI, PATTERN_CTRL, PATTERN_IDBA, PATTERN_USER, PATTERN_INT}
|
Private Shared allPatterns As New List(Of String) From {PATTERN_WMI, PATTERN_CTRL, PATTERN_IDBA, PATTERN_USER, PATTERN_INT}
|
||||||
Private Shared complexPatterns As New List(Of String) From {PATTERN_WMI, PATTERN_CTRL, PATTERN_IDBA}
|
Private Shared complexPatterns As New List(Of String) From {PATTERN_WMI, PATTERN_CTRL, PATTERN_IDBA}
|
||||||
Private Shared simplePatterns As New List(Of String) From {PATTERN_USER, PATTERN_INT}
|
Private Shared simplePatterns As New List(Of String) From {PATTERN_USER, PATTERN_INT}
|
||||||
|
|||||||
@@ -160,11 +160,13 @@
|
|||||||
<Reference Include="DigitalData.Modules.Config">
|
<Reference Include="DigitalData.Modules.Config">
|
||||||
<HintPath>..\..\DDMonorepo\Modules.Config\bin\Debug\DigitalData.Modules.Config.dll</HintPath>
|
<HintPath>..\..\DDMonorepo\Modules.Config\bin\Debug\DigitalData.Modules.Config.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="DigitalData.Modules.Filesystem">
|
<Reference Include="DigitalData.Modules.Filesystem, Version=1.0.1.1, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\DDMonorepo\Modules.Config\bin\Debug\DigitalData.Modules.Filesystem.dll</HintPath>
|
<HintPath>..\..\DDMonorepo\Modules.Filesystem\bin\Debug\DigitalData.Modules.Filesystem.dll</HintPath>
|
||||||
|
<SpecificVersion>False</SpecificVersion>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="DigitalData.Modules.Logging">
|
<Reference Include="DigitalData.Modules.Logging, Version=2.0.0.1, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<HintPath>..\..\DDMonorepo\Modules.Config\bin\Debug\DigitalData.Modules.Logging.dll</HintPath>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
|
<HintPath>..\..\DDMonorepo\Modules.Logging\bin\Debug\DigitalData.Modules.Logging.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="DigitalData.Modules.Windream">
|
<Reference Include="DigitalData.Modules.Windream">
|
||||||
<HintPath>..\..\DDMonorepo\Modules.Windream\bin\Debug\DigitalData.Modules.Windream.dll</HintPath>
|
<HintPath>..\..\DDMonorepo\Modules.Windream\bin\Debug\DigitalData.Modules.Windream.dll</HintPath>
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ Imports System.Runtime.InteropServices
|
|||||||
' übernehmen, indem Sie "*" eingeben:
|
' übernehmen, indem Sie "*" eingeben:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("2.0.0.27")>
|
<Assembly: AssemblyVersion("2.0.0.28")>
|
||||||
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
||||||
|
|
||||||
<Assembly: NeutralResourcesLanguageAttribute("")>
|
<Assembly: NeutralResourcesLanguageAttribute("")>
|
||||||
2
Global_Indexer/frmIndex.designer.vb
generated
2
Global_Indexer/frmIndex.designer.vb
generated
@@ -164,7 +164,9 @@ Partial Class frmIndex
|
|||||||
'
|
'
|
||||||
'BarCheckItem1
|
'BarCheckItem1
|
||||||
'
|
'
|
||||||
|
Me.BarCheckItem1.BindableChecked = True
|
||||||
resources.ApplyResources(Me.BarCheckItem1, "BarCheckItem1")
|
resources.ApplyResources(Me.BarCheckItem1, "BarCheckItem1")
|
||||||
|
Me.BarCheckItem1.Checked = True
|
||||||
Me.BarCheckItem1.Id = 5
|
Me.BarCheckItem1.Id = 5
|
||||||
Me.BarCheckItem1.ImageOptions.SvgImage = CType(resources.GetObject("BarCheckItem1.ImageOptions.SvgImage"), DevExpress.Utils.Svg.SvgImage)
|
Me.BarCheckItem1.ImageOptions.SvgImage = CType(resources.GetObject("BarCheckItem1.ImageOptions.SvgImage"), DevExpress.Utils.Svg.SvgImage)
|
||||||
Me.BarCheckItem1.Name = "BarCheckItem1"
|
Me.BarCheckItem1.Name = "BarCheckItem1"
|
||||||
|
|||||||
@@ -639,7 +639,7 @@
|
|||||||
<value>DocumentViewer1</value>
|
<value>DocumentViewer1</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>DocumentViewer1.Type" xml:space="preserve">
|
<data name=">>DocumentViewer1.Type" xml:space="preserve">
|
||||||
<value>DigitalData.Controls.DocumentViewer.DocumentViewer, DigitalData.Controls.DocumentViewer, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null</value>
|
<value>DigitalData.Controls.DocumentViewer.DocumentViewer, DigitalData.Controls.DocumentViewer, Version=1.0.3.0, Culture=neutral, PublicKeyToken=null</value>
|
||||||
</data>
|
</data>
|
||||||
<data name=">>DocumentViewer1.Parent" xml:space="preserve">
|
<data name=">>DocumentViewer1.Parent" xml:space="preserve">
|
||||||
<value>SplitContainer1.Panel2</value>
|
<value>SplitContainer1.Panel2</value>
|
||||||
|
|||||||
@@ -435,6 +435,7 @@ Public Class frmIndex
|
|||||||
Try
|
Try
|
||||||
LOGGER.Debug("#### Name_Generieren ####")
|
LOGGER.Debug("#### Name_Generieren ####")
|
||||||
Dim sql As String = "select VERSION_DELIMITER, FILE_DELIMITER FROM TBDD_MODULES WHERE GUID = 1"
|
Dim sql As String = "select VERSION_DELIMITER, FILE_DELIMITER FROM TBDD_MODULES WHERE GUID = 1"
|
||||||
|
Dim oFilesystem As New DigitalData.Modules.Filesystem.File(LOGCONFIG)
|
||||||
Dim DT1 As DataTable = ClassDatabase.Return_Datatable(sql)
|
Dim DT1 As DataTable = ClassDatabase.Return_Datatable(sql)
|
||||||
For Each row As DataRow In DT1.Rows
|
For Each row As DataRow In DT1.Rows
|
||||||
FILE_DELIMITER = row.Item("FILE_DELIMITER")
|
FILE_DELIMITER = row.Item("FILE_DELIMITER")
|
||||||
@@ -606,8 +607,8 @@ Public Class frmIndex
|
|||||||
End Select
|
End Select
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
CURRENT_NEWFILENAME = oFilesystem.GetCleanFilename(NewFileString)
|
||||||
CURRENT_NEWFILENAME = ClassFilehandle.CleanFilename(NewFileString, "")
|
'CURRENT_NEWFILENAME = ClassFilehandle.CleanFilename(NewFileString, "")
|
||||||
CURRENT_NEWFILENAME = oRAWZielordner & "\" & CURRENT_NEWFILENAME
|
CURRENT_NEWFILENAME = oRAWZielordner & "\" & CURRENT_NEWFILENAME
|
||||||
|
|
||||||
If CURRENT_NEWFILENAME.EndsWith("_") Then
|
If CURRENT_NEWFILENAME.EndsWith("_") Then
|
||||||
@@ -1456,7 +1457,7 @@ Public Class frmIndex
|
|||||||
|
|
||||||
Load_String()
|
Load_String()
|
||||||
|
|
||||||
DTTBGI_REGEX_DOCTYPE = ClassDatabase.Return_Datatable("SELECT T1.DOCTYPE as DocType, T.* FROM TBGI_REGEX_DOCTYPE T, VWGI_DOCTYPE T1 WHERE T.DOCTYPE_ID = T1.DOCTYPE_ID")
|
DTTBGI_REGEX_DOCTYPE = ClassDatabase.Return_Datatable("SELECT DISTINCT T1.DOCTYPE as DocType, T.* FROM TBGI_REGEX_DOCTYPE T, VWGI_DOCTYPE T1 WHERE T.DOCTYPE_ID = T1.DOCTYPE_ID")
|
||||||
MULTIFILES = ClassDatabase.Execute_Scalar("SELECT COUNT(*) FROM TBGI_FILES_USER WHERE WORKED = 0 AND GUID <> " & CURRENT_WORKFILE_GUID & " AND UPPER(USER@WORK) = UPPER('" & Environment.UserName & "')", MyConnectionString, True)
|
MULTIFILES = ClassDatabase.Execute_Scalar("SELECT COUNT(*) FROM TBGI_FILES_USER WHERE WORKED = 0 AND GUID <> " & CURRENT_WORKFILE_GUID & " AND UPPER(USER@WORK) = UPPER('" & Environment.UserName & "')", MyConnectionString, True)
|
||||||
MULTIINDEXING_ACTIVE = False
|
MULTIINDEXING_ACTIVE = False
|
||||||
If MULTIFILES > 0 Then
|
If MULTIFILES > 0 Then
|
||||||
@@ -1508,15 +1509,17 @@ Public Class frmIndex
|
|||||||
|
|
||||||
FormLoaded = True
|
FormLoaded = True
|
||||||
|
|
||||||
|
Try
|
||||||
|
|
||||||
|
|
||||||
|
' Letzte Auswahl merken überschreibt die automatische selektion
|
||||||
If CONFIG.Config.ProfilePreselection Then
|
If CONFIG.Config.ProfilePreselection Then
|
||||||
checkItemPreselection.Checked = True
|
checkItemPreselection.Checked = True
|
||||||
|
|
||||||
If CURRENT_LASTDOKART <> "" Then
|
If CURRENT_LASTDOKART <> "" Then
|
||||||
cmbDokumentart.SelectedIndex = cmbDokumentart.FindStringExact(CURRENT_LASTDOKART)
|
cmbDokumentart.SelectedIndex = cmbDokumentart.FindStringExact(CURRENT_LASTDOKART)
|
||||||
End If
|
End If
|
||||||
End If
|
Else
|
||||||
|
|
||||||
Try
|
|
||||||
If DTTBGI_REGEX_DOCTYPE.Rows.Count > 0 Then
|
If DTTBGI_REGEX_DOCTYPE.Rows.Count > 0 Then
|
||||||
For Each oRoW As DataRow In DTTBGI_REGEX_DOCTYPE.Rows
|
For Each oRoW As DataRow In DTTBGI_REGEX_DOCTYPE.Rows
|
||||||
Dim oOnlyFilename = Path.GetFileName(CURRENT_WORKFILE)
|
Dim oOnlyFilename = Path.GetFileName(CURRENT_WORKFILE)
|
||||||
@@ -1527,6 +1530,7 @@ Public Class frmIndex
|
|||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
|
End If
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
LOGGER.Info(" - Unexpected error DTTBGI_REGEX_DOCTYPE - ErrorMessage: " & vbNewLine & ex.Message)
|
LOGGER.Info(" - Unexpected error DTTBGI_REGEX_DOCTYPE - ErrorMessage: " & vbNewLine & ex.Message)
|
||||||
LOGGER.Error(ex.Message)
|
LOGGER.Error(ex.Message)
|
||||||
@@ -1626,6 +1630,7 @@ Public Class frmIndex
|
|||||||
Dim AddNewItems As Boolean = oRow.Item("VKT_ADD_ITEM")
|
Dim AddNewItems As Boolean = oRow.Item("VKT_ADD_ITEM")
|
||||||
Dim PreventDuplicates As Boolean = oRow.Item("VKT_PREVENT_MULTIPLE_VALUES")
|
Dim PreventDuplicates As Boolean = oRow.Item("VKT_PREVENT_MULTIPLE_VALUES")
|
||||||
Dim oControlName As String = oRow.Item("NAME")
|
Dim oControlName As String = oRow.Item("NAME")
|
||||||
|
Dim oConnectionId = NotNull(oRow.Item("CONNECTION_ID"), 0)
|
||||||
|
|
||||||
If oDataType <> "BOOLEAN" Then
|
If oDataType <> "BOOLEAN" Then
|
||||||
addLabel(oControlName, oRow.Item("COMMENT").ToString, oLabelPosition, oControlCount)
|
addLabel(oControlName, oRow.Item("COMMENT").ToString, oLabelPosition, oControlCount)
|
||||||
@@ -1642,8 +1647,8 @@ Public Class frmIndex
|
|||||||
pnlIndex.Controls.Add(chk)
|
pnlIndex.Controls.Add(chk)
|
||||||
End If
|
End If
|
||||||
Case "INTEGER"
|
Case "INTEGER"
|
||||||
If oRow.Item("SUGGESTION") = True And oRow.Item("SQL_RESULT").ToString.Length > 0 Then
|
If (oRow.Item("SUGGESTION") = True And oRow.Item("SQL_RESULT").ToString.Length > 0) Or MultiSelect = True Then
|
||||||
Dim oControl = oControls.AddVorschlag_ComboBox(oControlName, oControlPosition, oRow.Item("CONNECTION_ID"), oRow.Item("SQL_RESULT"), MultiSelect, oDataType, DefaultValue, AddNewItems, PreventDuplicates)
|
Dim oControl = oControls.AddVorschlag_ComboBox(oControlName, oControlPosition, oConnectionId, oRow.Item("SQL_RESULT"), MultiSelect, oDataType, DefaultValue, AddNewItems, PreventDuplicates)
|
||||||
If Not IsNothing(oControl) Then
|
If Not IsNothing(oControl) Then
|
||||||
pnlIndex.Controls.Add(oControl)
|
pnlIndex.Controls.Add(oControl)
|
||||||
End If
|
End If
|
||||||
@@ -1655,8 +1660,8 @@ Public Class frmIndex
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Case "VARCHAR"
|
Case "VARCHAR"
|
||||||
If oRow.Item("SUGGESTION") = True And oRow.Item("SQL_RESULT").ToString.Length > 0 Then
|
If (oRow.Item("SUGGESTION") = True And oRow.Item("SQL_RESULT").ToString.Length > 0) Or MultiSelect = True Then
|
||||||
Dim oControl = oControls.AddVorschlag_ComboBox(oControlName, oControlPosition, oRow.Item("CONNECTION_ID"), oRow.Item("SQL_RESULT"), MultiSelect, oDataType, DefaultValue, AddNewItems, PreventDuplicates)
|
Dim oControl = oControls.AddVorschlag_ComboBox(oControlName, oControlPosition, oConnectionId, oRow.Item("SQL_RESULT"), MultiSelect, oDataType, DefaultValue, AddNewItems, PreventDuplicates)
|
||||||
If Not IsNothing(oControl) Then
|
If Not IsNothing(oControl) Then
|
||||||
pnlIndex.Controls.Add(oControl)
|
pnlIndex.Controls.Add(oControl)
|
||||||
End If
|
End If
|
||||||
@@ -2335,40 +2340,43 @@ Public Class frmIndex
|
|||||||
End Try
|
End Try
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Private Function CreateFolderForIndex(myDynamicFolder As String)
|
Private Function CreateFolderForIndex(DynamicFolderConfig As String)
|
||||||
Try
|
Try
|
||||||
Dim ORootFolder As String = Path.GetDirectoryName(CURRENT_NEWFILENAME)
|
Dim oRootFolder As String = Path.GetDirectoryName(CURRENT_NEWFILENAME)
|
||||||
|
Dim oFilesystem As New DigitalData.Modules.Filesystem.File(LOGCONFIG)
|
||||||
|
|
||||||
'######
|
'######
|
||||||
Dim p_reg As String = "\[%{1}[a-zA-Z0-9\!\$\&\/\(\)\=\?\,\.\-\;\:_öÖüÜäÄ\#\'\+\*\~\{\}\@\€\<\>\ ]+]{1}"
|
Dim oRegexString As String = "\[%{1}[a-zA-Z0-9\!\$\&\/\(\)\=\?\,\.\-\;\:_öÖüÜäÄ\#\'\+\*\~\{\}\@\€\<\>\ ]+]{1}"
|
||||||
' einen Regulären Ausdruck laden
|
' einen Regulären Ausdruck laden
|
||||||
Dim regularExpression As Regex = New Regex(p_reg)
|
Dim oRegex As Regex = New Regex(oRegexString)
|
||||||
' die Vorkommen im Folder-String auslesen
|
' die Vorkommen im Folder-String auslesen
|
||||||
Dim elemente As MatchCollection = regularExpression.Matches(myDynamicFolder)
|
Dim oMatches As MatchCollection = oRegex.Matches(DynamicFolderConfig)
|
||||||
'####
|
'####
|
||||||
' alle Vorkommen innerhalb des Ordnerstrings durchlaufen
|
' alle Vorkommen innerhalb des Ordnerstrings durchlaufen
|
||||||
For Each element As Match In elemente
|
For Each oMatch As Match In oMatches
|
||||||
LOGGER.Info("Elementname in FolderString: '" & element.ToString & "'")
|
LOGGER.Info("Elementname in FolderString: '" & oMatch.ToString & "'")
|
||||||
Select Case element.Value.Substring(2, 1).ToUpper
|
Select Case oMatch.Value.Substring(2, 1).ToUpper
|
||||||
|
|
||||||
'Manueller Indexwert
|
'Manueller Indexwert
|
||||||
Case "M"
|
Case "M"
|
||||||
Dim ManIndexname = element.Value.Substring(3, element.Value.Length - 4)
|
Dim oManIndexName = oMatch.Value.Substring(3, oMatch.Value.Length - 4)
|
||||||
Dim optional_index As Boolean = ClassDatabase.Execute_Scalar("SELECT OPTIONAL FROM TBDD_INDEX_MAN WHERE DOK_ID = " & CURRENT_DOKART_ID & " AND UPPER(NAME) = UPPER('" & ManIndexname & "')", MyConnectionString, True)
|
Dim oIsOptional As Boolean = ClassDatabase.Execute_Scalar("SELECT OPTIONAL FROM TBDD_INDEX_MAN WHERE DOK_ID = " & CURRENT_DOKART_ID & " AND UPPER(NAME) = UPPER('" & oManIndexName & "')", MyConnectionString, True)
|
||||||
LOGGER.Info("Versuch den Indexwert aus '" & ManIndexname & "' auszulesen.")
|
LOGGER.Info("Versuch den Indexwert aus '" & oManIndexName & "' auszulesen.")
|
||||||
Dim ManIndex_Value As String = GetManIndex_Value(ManIndexname, "FILE", optional_index)
|
Dim oManIndexValue As String = GetManIndex_Value(oManIndexName, "FILE", oIsOptional)
|
||||||
LOGGER.Info("Ergebnis/Wert für neuen Ordner: '" & ManIndexname & "'")
|
LOGGER.Info("Ergebnis/Wert für neuen Ordner: '" & oManIndexName & "'")
|
||||||
If Not ManIndex_Value = String.Empty Then
|
If Not oManIndexValue = String.Empty Then
|
||||||
If IsDate(ManIndex_Value) Then
|
If IsDate(oManIndexValue) Then
|
||||||
ManIndex_Value = CDate(ManIndex_Value).ToString("yyyyMMdd")
|
oManIndexValue = CDate(oManIndexValue).ToString("yyyyMMdd")
|
||||||
End If
|
End If
|
||||||
ManIndex_Value = ClassFilehandle.CleanFilename(ManIndex_Value, "")
|
|
||||||
myDynamicFolder = myDynamicFolder.Replace(element.ToString, ManIndex_Value)
|
|
||||||
|
|
||||||
LOGGER.Info("FolderPattern: '" & myDynamicFolder & "'")
|
oManIndexValue = oFilesystem.GetCleanPath(oManIndexValue)
|
||||||
|
'oManIndexValue = ClassFilehandle.CleanFilename(oManIndexValue, "")
|
||||||
|
DynamicFolderConfig = DynamicFolderConfig.Replace(oMatch.ToString, oManIndexValue)
|
||||||
|
|
||||||
|
LOGGER.Info("FolderPattern: '" & DynamicFolderConfig & "'")
|
||||||
Else
|
Else
|
||||||
|
|
||||||
If optional_index = True Then
|
If oIsOptional = True Then
|
||||||
LOGGER.Info("Optionaler Indexwert ist NICHT gefüllt")
|
LOGGER.Info("Optionaler Indexwert ist NICHT gefüllt")
|
||||||
Else
|
Else
|
||||||
LOGGER.Info(" - Achtung Ausnahme in 'CrFolderForIndex': der Index ist leer!")
|
LOGGER.Info(" - Achtung Ausnahme in 'CrFolderForIndex': der Index ist leer!")
|
||||||
@@ -2376,17 +2384,19 @@ Public Class frmIndex
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Case "A"
|
Case "A"
|
||||||
Dim AutoIndexname = element.Value.Substring(3, element.Value.Length - 4)
|
Dim oAutoIndexName = oMatch.Value.Substring(3, oMatch.Value.Length - 4)
|
||||||
LOGGER.Info("Versuch den Auto-Indexwert aus '" & AutoIndexname & "' auszulesen.")
|
LOGGER.Info("Versuch den Auto-Indexwert aus '" & oAutoIndexName & "' auszulesen.")
|
||||||
Dim AutoIndex_Value As String = GetAutoIndex_Value(AutoIndexname)
|
Dim oAutoIndexValue As String = GetAutoIndex_Value(oAutoIndexName)
|
||||||
LOGGER.Info("Ergebnis/Wert für neuen Ordner: '" & AutoIndexname & "'")
|
LOGGER.Info("Ergebnis/Wert für neuen Ordner: '" & oAutoIndexName & "'")
|
||||||
If Not AutoIndex_Value = String.Empty Then
|
If Not oAutoIndexValue = String.Empty Then
|
||||||
AutoIndex_Value = ClassFilehandle.CleanFilename(AutoIndex_Value, "")
|
|
||||||
If AutoIndex_Value = "EMPTY_OI" Then
|
oAutoIndexValue = oFilesystem.GetCleanPath(oAutoIndexValue)
|
||||||
myDynamicFolder = myDynamicFolder.Replace(element.ToString, "")
|
'oAutoIndexValue = ClassFilehandle.CleanFilename(oAutoIndexValue, "")
|
||||||
|
If oAutoIndexValue = "EMPTY_OI" Then
|
||||||
|
DynamicFolderConfig = DynamicFolderConfig.Replace(oMatch.ToString, "")
|
||||||
Else
|
Else
|
||||||
myDynamicFolder = myDynamicFolder.Replace(element.ToString, AutoIndex_Value)
|
DynamicFolderConfig = DynamicFolderConfig.Replace(oMatch.ToString, oAutoIndexValue)
|
||||||
LOGGER.Info("FolderPattern: '" & myDynamicFolder & "'")
|
LOGGER.Info("FolderPattern: '" & DynamicFolderConfig & "'")
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Else
|
Else
|
||||||
@@ -2402,7 +2412,7 @@ Public Class frmIndex
|
|||||||
If _day.Length = 1 Then
|
If _day.Length = 1 Then
|
||||||
_day = "0" & _day
|
_day = "0" & _day
|
||||||
End If
|
End If
|
||||||
Dim type = element.Value.Substring(3, element.Value.Length - 4)
|
Dim type = oMatch.Value.Substring(3, oMatch.Value.Length - 4)
|
||||||
If type.StartsWith("_") Then
|
If type.StartsWith("_") Then
|
||||||
type = type.Replace("_", "")
|
type = type.Replace("_", "")
|
||||||
End If
|
End If
|
||||||
@@ -2416,26 +2426,23 @@ Public Class frmIndex
|
|||||||
Case "YYYY-MM"
|
Case "YYYY-MM"
|
||||||
oElementTemp = My.Computer.Clock.LocalTime.Year & "-" & _Month
|
oElementTemp = My.Computer.Clock.LocalTime.Year & "-" & _Month
|
||||||
End Select
|
End Select
|
||||||
myDynamicFolder = myDynamicFolder.Replace(element.ToString, oElementTemp)
|
DynamicFolderConfig = DynamicFolderConfig.Replace(oMatch.ToString, oElementTemp)
|
||||||
LOGGER.Info("FolderPatter nach V-Element: '" & myDynamicFolder & "'")
|
LOGGER.Info("FolderPatter nach V-Element: '" & DynamicFolderConfig & "'")
|
||||||
Case Else
|
Case Else
|
||||||
LOGGER.Info(" - Achtung - in der Namenkonvention wurde ein Element gefunden welches nicht zugeordnet werden kann!" & vbNewLine & "Elementname: " & element.Value.ToUpper)
|
LOGGER.Info(" - Achtung - in der Namenkonvention wurde ein Element gefunden welches nicht zugeordnet werden kann!" & vbNewLine & "Elementname: " & oMatch.Value.ToUpper)
|
||||||
|
|
||||||
If USER_LANGUAGE = "de-DE" Then
|
If USER_LANGUAGE = "de-DE" Then
|
||||||
MsgBox("Achtung - in der Namenkonvention wurde ein Element gefunden welches nicht zugeordnet werden kann!" & vbNewLine & "Elementname: " & element.Value.ToUpper, MsgBoxStyle.Exclamation, "Unexpected error in Name generieren:")
|
MsgBox("Achtung - in der Namenkonvention wurde ein Element gefunden welches nicht zugeordnet werden kann!" & vbNewLine & "Elementname: " & oMatch.Value.ToUpper, MsgBoxStyle.Exclamation, "Unexpected error in Name generieren:")
|
||||||
Else
|
Else
|
||||||
MsgBox("Attention - One element in Namingconvention could not be matched!" & vbNewLine & "Elementname: " & element.Value.ToUpper, MsgBoxStyle.Exclamation, "Unexpected error in Name generieren:")
|
MsgBox("Attention - One element in Namingconvention could not be matched!" & vbNewLine & "Elementname: " & oMatch.Value.ToUpper, MsgBoxStyle.Exclamation, "Unexpected error in Name generieren:")
|
||||||
End If
|
End If
|
||||||
End Select
|
End Select
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
LOGGER.Info("Den Root-Folder zusammenfügen>> ")
|
LOGGER.Info("Den Root-Folder zusammenfügen>> ")
|
||||||
Dim oNewFullpath As String = ORootFolder & "\" & myDynamicFolder & "\"
|
|
||||||
oNewFullpath = oNewFullpath.Replace("\\", "\")
|
|
||||||
|
|
||||||
oNewFullpath = Path.Combine(ORootFolder, myDynamicFolder)
|
Dim oNewFullPath As String = System.IO.Path.Combine(oRootFolder, DynamicFolderConfig)
|
||||||
|
|
||||||
LOGGER.Info("Fullpath (mit evtl. Sonderzeichen (SZ)) '" & oNewFullpath & "'")
|
LOGGER.Info("Fullpath (mit evtl. Sonderzeichen (SZ)) '" & oNewFullpath & "'")
|
||||||
Dim invalidPathChars() As Char = Path.GetInvalidPathChars()
|
Dim invalidPathChars() As Char = Path.GetInvalidPathChars()
|
||||||
@@ -2559,8 +2566,7 @@ Public Class frmIndex
|
|||||||
ClearError()
|
ClearError()
|
||||||
ClearNotice()
|
ClearNotice()
|
||||||
|
|
||||||
DocumentViewer1.CloseDocument()
|
|
||||||
DocumentViewer1.Done()
|
|
||||||
|
|
||||||
Me.Cursor = Cursors.WaitCursor
|
Me.Cursor = Cursors.WaitCursor
|
||||||
ClassHelper.Refresh_RegexTable()
|
ClassHelper.Refresh_RegexTable()
|
||||||
@@ -2596,6 +2602,9 @@ Public Class frmIndex
|
|||||||
|
|
||||||
'DTACTUAL_FILES.Clear()
|
'DTACTUAL_FILES.Clear()
|
||||||
|
|
||||||
|
DocumentViewer1.CloseDocument()
|
||||||
|
DocumentViewer1.Done()
|
||||||
|
|
||||||
CancelAttempts = 2
|
CancelAttempts = 2
|
||||||
Me.Close()
|
Me.Close()
|
||||||
End If
|
End If
|
||||||
@@ -2612,6 +2621,9 @@ Public Class frmIndex
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
DocumentViewer1.CloseDocument()
|
||||||
|
DocumentViewer1.Done()
|
||||||
|
|
||||||
CancelAttempts = 2
|
CancelAttempts = 2
|
||||||
Me.Close()
|
Me.Close()
|
||||||
End If
|
End If
|
||||||
|
|||||||
Reference in New Issue
Block a user