ZooFlow/EDMIService: clean up, fix column names in sql
This commit is contained in:
@@ -328,19 +328,6 @@ Public Class frmFlowForm
|
||||
|
||||
Private Sub PictureBoxSearch1_Click(sender As Object, e As EventArgs) Handles PictureBoxSearch1.Click
|
||||
Open_FlowSearch()
|
||||
'Cursor = Cursors.WaitCursor
|
||||
'If TheFormIsAlreadyLoaded("frmSearchStart") Then
|
||||
' Cursor = Cursors.Default
|
||||
' Exit Sub
|
||||
'End If
|
||||
|
||||
|
||||
'Dim oForm As New frmSearchStart(DTIDB_SEARCHES) 'frmFlowSearch(osql)
|
||||
'oForm.Show()
|
||||
'Cursor = Cursors.Default
|
||||
'If TimerCheckActiveForms.Enabled = False Then
|
||||
' TimerCheckActiveForms.Enabled = True
|
||||
'End If
|
||||
End Sub
|
||||
|
||||
Private Sub ZooFlowBeendenToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles ZooFlowBeendenToolStripMenuItem.Click
|
||||
@@ -467,26 +454,24 @@ Public Class frmFlowForm
|
||||
TimerCheckDroppedFiles.Start()
|
||||
Me.Cursor = Cursors.WaitCursor
|
||||
End If
|
||||
|
||||
PictureBoxDragDrop.Image = My.Resources._1_LOGO_ZOO_FLOW1
|
||||
End Sub
|
||||
|
||||
Private Sub PictureBox1_DragDrop(sender As Object, e As DragEventArgs) Handles PictureBoxDragDrop.DragDrop
|
||||
DragDropForm(e)
|
||||
End Sub
|
||||
|
||||
Private Sub TimerCheckDroppedFiles_Tick(sender As Object, e As EventArgs) Handles TimerCheckDroppedFiles.Tick
|
||||
Private Async Sub TimerCheckDroppedFiles_Tick(sender As Object, e As EventArgs) Handles TimerCheckDroppedFiles.Tick
|
||||
If Not My.Application.ModulesActive.Contains(ClassConstants.MODULE_GLOBAL_INDEXER) Then
|
||||
Exit Sub
|
||||
End If
|
||||
|
||||
TimerCheckDroppedFiles.Stop()
|
||||
Globix_Check_Dropped_Files()
|
||||
Await Globix_Check_Dropped_Files()
|
||||
Me.Cursor = Cursors.Default
|
||||
End Sub
|
||||
Sub Globix_Check_Dropped_Files()
|
||||
Private Async Function Globix_Check_Dropped_Files() As Threading.Tasks.Task
|
||||
Try
|
||||
My.DatabaseECM.ExecuteNonQuery($"DELETE FROM TBGI_FILES_USER WHERE WORKED = 1 AND UPPER(USER@WORK) = UPPER('{Environment.UserName}')")
|
||||
Await My.DatabaseECM.ExecuteNonQueryAsync($"DELETE FROM TBGI_FILES_USER WHERE WORKED = 1 AND UPPER(USER@WORK) = UPPER('{Environment.UserName}')")
|
||||
Dim i As Integer
|
||||
|
||||
For Each pFile As String In FileDrop.files_dropped
|
||||
@@ -503,7 +488,7 @@ Public Class frmFlowForm
|
||||
|
||||
Dim sql As String = "SELECT * FROM TBGI_FILES_USER WHERE WORKED = 0 AND UPPER(USER@WORK) = UPPER('" & Environment.UserName & "')"
|
||||
My.Application.Globix.DTACTUAL_FILES = Nothing
|
||||
My.Application.Globix.DTACTUAL_FILES = My.DatabaseECM.GetDatatable(sql)
|
||||
My.Application.Globix.DTACTUAL_FILES = Await My.DatabaseECM.GetDatatableAsync(sql)
|
||||
My.Application.Globix.ABORT_INDEXING = False
|
||||
|
||||
Dim oOnlyFilesFromFilesystem = True
|
||||
@@ -532,6 +517,7 @@ Public Class frmFlowForm
|
||||
Logger.Info(" CURRENT_WORKFILE: {0}", My.Application.Globix.CurrentWorkfile)
|
||||
If IO.File.Exists(My.Application.Globix.CurrentWorkfile.FilePath) = True And My.Application.Globix.DTACTUAL_FILES.Rows.Count > 0 Then
|
||||
Globix_Open_IndexDialog()
|
||||
PictureBoxDragDrop.Image = My.Resources._1_LOGO_ZOO_FLOW1
|
||||
End If
|
||||
Next
|
||||
Show()
|
||||
@@ -540,7 +526,7 @@ Public Class frmFlowForm
|
||||
Show()
|
||||
End Try
|
||||
|
||||
End Sub
|
||||
End Function
|
||||
Sub Globix_Open_IndexDialog()
|
||||
Try
|
||||
IndexForm = New frmGlobix_Index(My.LogConfig)
|
||||
|
||||
Reference in New Issue
Block a user