diff --git a/app/DD_PM_WINDREAM/My Project/AssemblyInfo.vb b/app/DD_PM_WINDREAM/My Project/AssemblyInfo.vb index c068f88..813a014 100644 --- a/app/DD_PM_WINDREAM/My Project/AssemblyInfo.vb +++ b/app/DD_PM_WINDREAM/My Project/AssemblyInfo.vb @@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices ' übernehmen, indem Sie "*" eingeben: ' - + diff --git a/app/DD_PM_WINDREAM/frmMain.vb b/app/DD_PM_WINDREAM/frmMain.vb index 9012635..dd1a837 100644 --- a/app/DD_PM_WINDREAM/frmMain.vb +++ b/app/DD_PM_WINDREAM/frmMain.vb @@ -85,7 +85,19 @@ Public Class frmMain End Try Return oCHANGED End Function + Private Function Free_File() + Try + Dim sql = $"UPDATE TBPM_PROFILE_FILES SET EDIT = 0, IN_WORK = 0, IN_WORK_WHEN = NULL, WORK_USER = NULL WHERE GUID = {CURRENT_DOC_GUID}" + Return ClassDatabase.Execute_non_Query(sql) + Catch ex As Exception + allgFunk.Insert_LogEntry($"ERROR Free_File >> {ex.Message}") + LOGGER.Error(ex) + Return False + End Try + End Function Private Sub frmMain_FormClosing(sender As Object, e As FormClosingEventArgs) Handles Me.FormClosing + Free_File() + Try FormOpenClose = True ' Position und Größe speichern diff --git a/app/DD_PM_WINDREAM/frmValidator.vb b/app/DD_PM_WINDREAM/frmValidator.vb index 4e427f3..91df43f 100644 --- a/app/DD_PM_WINDREAM/frmValidator.vb +++ b/app/DD_PM_WINDREAM/frmValidator.vb @@ -428,7 +428,6 @@ Public Class frmValidator Try DocumentViewerValidator.CloseDocument() DocumentViewerValidator.Done() - Catch ex As Exception LOGGER.Warn($"Unexpected error in DocumentViewerValidator.Done: {ex.Message}") End Try @@ -2378,6 +2377,7 @@ Public Class frmValidator Private Function GetDocPathWindows(_CheckStandard As Integer) Try Dim oResult As String + Dim oSQL = $"SELECT dbo.FNPM_GET_FILEPATH ({CURRENT_DOC_GUID},{_CheckStandard})" oResult = ClassDatabase.Execute_Scalar(oSQL, CONNECTION_STRING, "GetDocPathWindows1") LOGGER.Debug($"Checking file 0 [{oResult}] exists?...")