This commit is contained in:
SchreiberM 2022-05-09 12:15:29 +02:00
parent 3ea616dec9
commit f0770d1d51
7 changed files with 20 additions and 20 deletions

View File

@ -169,10 +169,8 @@ Public Class ClassFolderwatcher
'Die Datei übergeben 'Die Datei übergeben
Logger.Info(">> OnCreated-File:" & e.FullPath) Logger.Info(">> OnCreated-File:" & e.FullPath)
If FileHandle.CheckDuplicateFiles(e.FullPath, "FolderWatch/Scan") Then If FileHandle.Decide_FileHandle(e.FullPath, handleType) = True Then
FileHandle.Decide_FileHandle(e.FullPath, handleType) My.Application.Globix.NEW_FILES = True
Else
Logger.Info(">> Folderwatcher: File already exists:" & e.FullPath)
End If End If
Catch ex As Exception Catch ex As Exception

View File

@ -51,7 +51,7 @@ Public Class ClassUserFiles
oHash = "" oHash = ""
End Try End Try
oSQL = "SELECT * FROM TBGI_FILES_USER WHERE FILE_HASH = '" & oHash & "' AND WORKED = 0 ORDER BY ADDED_WHEN" oSQL = "SELECT * FROM TBGI_FILES_USER WHERE FILE_HASH = '" & oHash & "' AND WORKED = 0 ORDER BY ADDED_WHEN"
Dim oResult As DataTable = My.DatabaseECM.GetDatatable(oSQL) Dim oResult As DataTable = My.DatabaseECM.GetDatatable(oSQL)
If oResult Is Nothing Then If oResult Is Nothing Then

View File

@ -10,6 +10,7 @@ Namespace Globix
Public Property CURRENT_SCAN_FOLDERWATCH As String Public Property CURRENT_SCAN_FOLDERWATCH As String
Public Property CurrentWorkfile As Models.WorkFile Public Property CurrentWorkfile As Models.WorkFile
Public Property INDEXING_ACTIVE As Boolean = False Public Property INDEXING_ACTIVE As Boolean = False
Public Property NEW_FILES As Boolean = False
Public Property ABORT_INDEXING As Boolean = False Public Property ABORT_INDEXING As Boolean = False
Public Property CURRENT_ISATTACHMENT As Boolean = False Public Property CURRENT_ISATTACHMENT As Boolean = False
Public Property DeleteOriginalFile As Boolean = False Public Property DeleteOriginalFile As Boolean = False

View File

@ -32,5 +32,5 @@ Imports System.Runtime.InteropServices
' You can specify all the values or you can default the Build and Revision Numbers ' You can specify all the values or you can default the Build and Revision Numbers
' by using the '*' as shown below: ' by using the '*' as shown below:
' [assembly: AssemblyVersion("1.0.*")] ' [assembly: AssemblyVersion("1.0.*")]
<Assembly: AssemblyVersion("1.0.0.0")> <Assembly: AssemblyVersion("1.1.0.0")>
<Assembly: AssemblyFileVersion("1.0.0.0")> <Assembly: AssemblyFileVersion("1.1.0.0")>

View File

@ -41,7 +41,7 @@ Partial Class frmFlowForm
Me.ToolTip1 = New System.Windows.Forms.ToolTip(Me.components) Me.ToolTip1 = New System.Windows.Forms.ToolTip(Me.components)
Me.PictureBoxPM = New DevExpress.XtraEditors.SvgImageBox() Me.PictureBoxPM = New DevExpress.XtraEditors.SvgImageBox()
Me.PictureBoxSearch = New DevExpress.XtraEditors.SvgImageBox() Me.PictureBoxSearch = New DevExpress.XtraEditors.SvgImageBox()
Me.TimerFolderwatch = New System.Windows.Forms.Timer(Me.components) Me.TimerCheckFolderWatchTable = New System.Windows.Forms.Timer(Me.components)
Me.pnlQuicksearch1 = New System.Windows.Forms.Panel() Me.pnlQuicksearch1 = New System.Windows.Forms.Panel()
Me.txtQuicksearch1 = New DevExpress.XtraEditors.TextEdit() Me.txtQuicksearch1 = New DevExpress.XtraEditors.TextEdit()
Me.PictureEditQuicksearch1 = New DevExpress.XtraEditors.PictureEdit() Me.PictureEditQuicksearch1 = New DevExpress.XtraEditors.PictureEdit()
@ -184,9 +184,9 @@ Partial Class frmFlowForm
Me.PictureBoxSearch.Text = "X" Me.PictureBoxSearch.Text = "X"
Me.ToolTip1.SetToolTip(Me.PictureBoxSearch, "FlowSearch öffnen") Me.ToolTip1.SetToolTip(Me.PictureBoxSearch, "FlowSearch öffnen")
' '
'TimerFolderwatch 'TimerCheckFolderWatchTable
' '
Me.TimerFolderwatch.Interval = 2000 Me.TimerCheckFolderWatchTable.Interval = 2000
' '
'pnlQuicksearch1 'pnlQuicksearch1
' '
@ -554,7 +554,7 @@ Partial Class frmFlowForm
Friend WithEvents ZooFlowBeendenToolStripMenuItem As ToolStripMenuItem Friend WithEvents ZooFlowBeendenToolStripMenuItem As ToolStripMenuItem
Friend WithEvents ToolTip1 As ToolTip Friend WithEvents ToolTip1 As ToolTip
Friend WithEvents ToolStripSeparator1 As ToolStripSeparator Friend WithEvents ToolStripSeparator1 As ToolStripSeparator
Friend WithEvents TimerFolderwatch As Timer Friend WithEvents TimerCheckFolderWatchTable As Timer
Friend WithEvents TestToolStripMenuItem As ToolStripMenuItem Friend WithEvents TestToolStripMenuItem As ToolStripMenuItem
Friend WithEvents PictureBoxSearch As DevExpress.XtraEditors.SvgImageBox Friend WithEvents PictureBoxSearch As DevExpress.XtraEditors.SvgImageBox
Friend WithEvents PictureBoxPM As DevExpress.XtraEditors.SvgImageBox Friend WithEvents PictureBoxPM As DevExpress.XtraEditors.SvgImageBox

View File

@ -1959,11 +1959,11 @@
<metadata name="ToolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="ToolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>468, 17</value> <value>468, 17</value>
</metadata> </metadata>
<metadata name="TimerFolderwatch.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="TimerCheckFolderWatchTable.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>567, 17</value> <value>567, 17</value>
</metadata> </metadata>
<metadata name="BarManager1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="BarManager1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>716, 17</value> <value>781, 17</value>
</metadata> </metadata>
<assembly alias="DevExpress.Data.v21.2" name="DevExpress.Data.v21.2, Version=21.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" /> <assembly alias="DevExpress.Data.v21.2" name="DevExpress.Data.v21.2, Version=21.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
<data name="BarSubItem1.ImageOptions.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v21.2" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="BarSubItem1.ImageOptions.SvgImage" type="DevExpress.Utils.Svg.SvgImage, DevExpress.Data.v21.2" mimetype="application/x-microsoft.net.object.bytearray.base64">
@ -2039,6 +2039,6 @@
</value> </value>
</data> </data>
<metadata name="AdornerUIManager1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="AdornerUIManager1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>841, 17</value> <value>17, 56</value>
</metadata> </metadata>
</root> </root>

View File

@ -834,8 +834,8 @@ Public Class frmFlowForm
ShowErrorMessage(ex) ShowErrorMessage(ex)
End Try End Try
If TimerFolderwatch.Enabled = False Then If TimerCheckFolderWatchTable.Enabled = False Then
TimerFolderwatch.Start() TimerCheckFolderWatchTable.Start()
End If End If
End If End If
@ -846,7 +846,7 @@ Public Class frmFlowForm
My.UIConfigManager.Save() My.UIConfigManager.Save()
End Sub End Sub
Private Sub TimerFolderwatch_Tick(sender As Object, e As EventArgs) Handles TimerFolderwatch.Tick Private Sub TimerFolderwatch_Tick(sender As Object, e As EventArgs) Handles TimerCheckFolderWatchTable.Tick
Try Try
' JenneJ, 11.02.2019: ' JenneJ, 11.02.2019:
@ -864,8 +864,7 @@ Public Class frmFlowForm
If My.Application.Globix.DTACTUAL_FILES.Rows.Count > 0 Then If My.Application.Globix.DTACTUAL_FILES.Rows.Count > 0 Then
My.Application.Globix.ABORT_INDEXING = False My.Application.Globix.ABORT_INDEXING = False
' Dim fil As String TimerCheckFolderWatchTable.Enabled = False
Me.TimerFolderwatch.Stop()
For Each row As DataRow In My.Application.Globix.DTACTUAL_FILES.Rows For Each row As DataRow In My.Application.Globix.DTACTUAL_FILES.Rows
Dim FILEGUID = row.Item("GUID") Dim FILEGUID = row.Item("GUID")
Dim oDel = String.Format("DELETE FROM TBGI_FILES_USER WHERE GUID = {0}", FILEGUID) Dim oDel = String.Format("DELETE FROM TBGI_FILES_USER WHERE GUID = {0}", FILEGUID)
@ -911,7 +910,9 @@ Public Class frmFlowForm
End If End If
Next Next
Me.TimerFolderwatch.Start() If TimerCheckFolderWatchTable.Enabled = False Then
TimerCheckFolderWatchTable.Start()
End If
End If End If
'tslblFW.Visible = True 'tslblFW.Visible = True
Else Else