MS_11.12.2015
This commit is contained in:
@@ -210,6 +210,14 @@ Public Class frmWD_Index_Dokart
|
||||
'End Function
|
||||
|
||||
Private Sub btnindex_Click(sender As Object, e As EventArgs) Handles btnindex.Click
|
||||
If CURRENT_RECORD_ID = 0 Then
|
||||
MsgBox("Kein Datensatz ausgewählt oder die Dokumentart wurde noch nicht gewählt!", MsgBoxStyle.Information)
|
||||
Exit Sub
|
||||
End If
|
||||
If lvwIndices.Items.Count = 0 Then
|
||||
MsgBox("Bitte eine Dokumentart wählen!", MsgBoxStyle.Information)
|
||||
Exit Sub
|
||||
End If
|
||||
Indexing_File()
|
||||
End Sub
|
||||
Sub Indexing_File()
|
||||
@@ -310,8 +318,16 @@ Public Class frmWD_Index_Dokart
|
||||
lvwIndices.Items.Add(dt.Rows(0).Item("IDXNAME_ENTITYID").ToString)
|
||||
lvwIndices.Items(Count).SubItems.Add(CURRENT_FORM_ID)
|
||||
lvwIndices.Items.Add(dt.Rows(0).Item("IDXNAME_PARENTID").ToString)
|
||||
lvwIndices.Items(Count + 1).SubItems.Add(CURRENT_PARENTID)
|
||||
Dim ParentID = ClassDatabase.Execute_Scalar("SELECT TOP 1 PARENT_ID FROM TBPMO_FORM WHERE GUID = " & CURRENT_FORM_ID, True)
|
||||
Try
|
||||
If IsNumeric(ParentID) And ParentID > 0 Then
|
||||
lvwIndices.Items(Count + 1).SubItems.Add(ParentID)
|
||||
End If
|
||||
Catch ex As Exception
|
||||
MsgBox("Unexpected Error in Setting Parent-ID" & vbNewLine & ex.Message, MsgBoxStyle.Critical)
|
||||
End Try
|
||||
End If
|
||||
|
||||
End If
|
||||
End If
|
||||
Catch ex As Exception
|
||||
|
||||
Reference in New Issue
Block a user