2.1.8 MS In-Wor auch bei FormClose Main
This commit is contained in:
parent
18668bcc6e
commit
1c9821b0b0
@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
|
|||||||
' übernehmen, indem Sie "*" eingeben:
|
' übernehmen, indem Sie "*" eingeben:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("2.1.7.0")>
|
<Assembly: AssemblyVersion("2.1.8.0")>
|
||||||
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
<Assembly: AssemblyFileVersion("1.0.0.0")>
|
||||||
|
|||||||
@ -85,7 +85,19 @@ Public Class frmMain
|
|||||||
End Try
|
End Try
|
||||||
Return oCHANGED
|
Return oCHANGED
|
||||||
End Function
|
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
|
Private Sub frmMain_FormClosing(sender As Object, e As FormClosingEventArgs) Handles Me.FormClosing
|
||||||
|
Free_File()
|
||||||
|
|
||||||
Try
|
Try
|
||||||
FormOpenClose = True
|
FormOpenClose = True
|
||||||
' Position und Größe speichern
|
' Position und Größe speichern
|
||||||
|
|||||||
@ -427,7 +427,6 @@ Public Class frmValidator
|
|||||||
Try
|
Try
|
||||||
DocumentViewerValidator.CloseDocument()
|
DocumentViewerValidator.CloseDocument()
|
||||||
DocumentViewerValidator.Done()
|
DocumentViewerValidator.Done()
|
||||||
|
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
LOGGER.Warn($"Unexpected error in DocumentViewerValidator.Done: {ex.Message}")
|
LOGGER.Warn($"Unexpected error in DocumentViewerValidator.Done: {ex.Message}")
|
||||||
End Try
|
End Try
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user