2.1.8 MS In-Wor auch bei FormClose Main

This commit is contained in:
SchreiberM 2021-03-05 12:57:01 +01:00
parent 18668bcc6e
commit 1c9821b0b0
3 changed files with 13 additions and 2 deletions

View File

@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
' übernehmen, indem Sie "*" eingeben:
' <Assembly: AssemblyVersion("1.0.*")>
<Assembly: AssemblyVersion("2.1.7.0")>
<Assembly: AssemblyVersion("2.1.8.0")>
<Assembly: AssemblyFileVersion("1.0.0.0")>

View File

@ -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

View File

@ -427,7 +427,6 @@ Public Class frmValidator
Try
DocumentViewerValidator.CloseDocument()
DocumentViewerValidator.Done()
Catch ex As Exception
LOGGER.Warn($"Unexpected error in DocumentViewerValidator.Done: {ex.Message}")
End Try