Customize Msgbox title, handle minDate when file not found, show filename in msgbox
This commit is contained in:
@@ -168,25 +168,10 @@ Public Class frmStart
|
||||
Dim oLastPipe = oFiledropString.LastIndexOf("|")
|
||||
Dim oHandleType As String = oFiledropString.Substring(0, oLastPipe + 1)
|
||||
Dim oFilename As String = oFiledropString.Substring(oLastPipe + 1)
|
||||
Dim oFileExists As Date = ClassIndexFunctions.FileExistsinDropTable(oFilename)
|
||||
|
||||
If IsNothing(oFileExists) Then
|
||||
If ClassIndexFunctions.CheckDuplicateFiles(oFilename, "Manuelle Ablage") Then
|
||||
ClassFilehandle.Decide_FileHandle(oFilename, oHandleType)
|
||||
oIndex += 1
|
||||
Else
|
||||
Dim oResult As DialogResult
|
||||
Dim oDate As String = oFileExists.ToString("d")
|
||||
|
||||
If USER_LANGUAGE = "de-DE" Then
|
||||
oResult = MsgBox($"Die Datei wurde bereits am [{oDate}] verarbeitet. Wollen Sie die gleiche Datei noch einmal verarbeiten?", MsgBoxStyle.Question Or MsgBoxStyle.YesNo, "GLOBIX - FolderWatch")
|
||||
Else
|
||||
oResult = MsgBox($"This file has already been processed at [{oDate}]. Do you want to process the same file again?", MsgBoxStyle.Question Or MsgBoxStyle.YesNo, "GLOBIX - FolderWatch")
|
||||
End If
|
||||
|
||||
If oResult = DialogResult.Yes Then
|
||||
ClassFilehandle.Decide_FileHandle(oFilename, oHandleType)
|
||||
oIndex += 1
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
@@ -373,30 +358,9 @@ Public Class frmStart
|
||||
'Die Datei übergeben
|
||||
LOGGER.Info(">> Adding file from Scanfolder after startup:" & oFileName)
|
||||
|
||||
Dim oFileExists As Date = ClassIndexFunctions.FileExistsinDropTable(oFileName)
|
||||
|
||||
If IsNothing(oFileExists) Then
|
||||
If ClassIndexFunctions.CheckDuplicateFiles(oFileName, "FolderWatch/Scan") Then
|
||||
ClassFilehandle.Decide_FileHandle(oFileName, oHandleType)
|
||||
Else
|
||||
Dim oResult As DialogResult
|
||||
Dim oDate As String = oFileExists.ToString("d")
|
||||
|
||||
If USER_LANGUAGE = "de-DE" Then
|
||||
oResult = MsgBox($"Die Datei wurde bereits am [{oDate}] verarbeitet. Wollen Sie die gleiche Datei noch einmal verarbeiten?", MsgBoxStyle.Question Or MsgBoxStyle.YesNo, "GLOBIX - FolderWatch")
|
||||
Else
|
||||
oResult = MsgBox($"This file has already been processed at [{oDate}]. Do you want to process the same file again?", MsgBoxStyle.Question Or MsgBoxStyle.YesNo, "GLOBIX - FolderWatch")
|
||||
End If
|
||||
|
||||
If oResult = DialogResult.Yes Then
|
||||
ClassFilehandle.Decide_FileHandle(oFileName, oHandleType)
|
||||
End If
|
||||
End If
|
||||
|
||||
'If ClassIndexFunctions.FileExistsinDropTable(fileName) = False Then
|
||||
' ClassFilehandle.Decide_FileHandle(fileName, handleType)
|
||||
'Else
|
||||
' LOGGER.Info(">> Scanfolder Startup: File already exists:" & fileName)
|
||||
'End If
|
||||
Next oFileName
|
||||
|
||||
Else
|
||||
@@ -430,33 +394,10 @@ Public Class frmStart
|
||||
'Die Datei übergeben
|
||||
LOGGER.Info(">> Adding file from Folderwatch after startup:" & oFileName)
|
||||
|
||||
'If ClassIndexFunctions.FileExistsinDropTable(fileName) = False Then
|
||||
' ClassFilehandle.Decide_FileHandle(fileName, handleType)
|
||||
'Else
|
||||
' LOGGER.Info(">> Folderwatch Startup: File already exists:" & fileName)
|
||||
'End If
|
||||
|
||||
Dim oFileExists As Date = ClassIndexFunctions.FileExistsinDropTable(oFileName)
|
||||
|
||||
If IsNothing(oFileExists) Then
|
||||
If ClassIndexFunctions.CheckDuplicateFiles(oFileName, "FolderWatch/Scan") Then
|
||||
ClassFilehandle.Decide_FileHandle(oFileName, handleType)
|
||||
Else
|
||||
Dim oResult As DialogResult
|
||||
Dim oDate As String = oFileName.ToString("d")
|
||||
|
||||
If USER_LANGUAGE = "de-DE" Then
|
||||
oResult = MsgBox($"Die Datei wurde bereits am [{oDate}] verarbeitet. Wollen Sie die gleiche Datei noch einmal verarbeiten?", MsgBoxStyle.Question Or MsgBoxStyle.YesNo, "GLOBIX - FolderWatch")
|
||||
Else
|
||||
oResult = MsgBox($"This file has already been processed at [{oDate}]. Do you want to process the same file again?", MsgBoxStyle.Question Or MsgBoxStyle.YesNo, "GLOBIX - FolderWatch")
|
||||
End If
|
||||
|
||||
If oResult = DialogResult.Yes Then
|
||||
ClassFilehandle.Decide_FileHandle(oFileName, handleType)
|
||||
End If
|
||||
End If
|
||||
|
||||
Next oFileName
|
||||
|
||||
Else
|
||||
LOGGER.Info(">> FW_started not started")
|
||||
End If
|
||||
|
||||
Reference in New Issue
Block a user