MS_1708
This commit is contained in:
@@ -59,14 +59,18 @@
|
||||
End Function
|
||||
Public Shared Function Delete_ResultFile(RESULT_DOC_ID)
|
||||
Try
|
||||
Dim del = "DELETE FROM TBPMO_DOCRESULT_LIST WHERE DocID = " & RESULT_DOC_ID
|
||||
Dim del = "DELETE FROM TBPMO_DOC_INDICES WHERE DocID = " & RESULT_DOC_ID
|
||||
If ClassDatabase.Execute_non_Query(del) = True Then
|
||||
del = "DELETE FROM TBPMO_DOC_INDICES WHERE DocID = " & RESULT_DOC_ID
|
||||
ClassDatabase.Execute_non_Query(del)
|
||||
Return True
|
||||
Else
|
||||
MsgBox("Could not delete file from Search-table - Check logfile", MsgBoxStyle.Exclamation)
|
||||
Return False
|
||||
del = "DELETE FROM TBPMO_DOC_RECORD_LINK WHERE DocID = " & RESULT_DOC_ID
|
||||
If ClassDatabase.Execute_non_Query(del) = True Then
|
||||
del = "DELETE FROM TBPMO_DOCRESULT_LIST WHERE DocID = " & RESULT_DOC_ID
|
||||
If ClassDatabase.Execute_non_Query(del) = True Then
|
||||
Return True
|
||||
Else
|
||||
MsgBox("Could not delete file from Search-table - Check logfile", MsgBoxStyle.Exclamation)
|
||||
Return False
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
Catch ex As Exception
|
||||
ClassLogger.Add("Unexpected Error in Delete ResultFile: " & ex.Message, True)
|
||||
|
||||
Reference in New Issue
Block a user