MSKW41
This commit is contained in:
@@ -326,24 +326,30 @@ Public Class frmWD_IndexFile
|
||||
'End Function
|
||||
|
||||
Private Sub btnindex_Click(sender As Object, e As EventArgs) Handles btnindex.Click
|
||||
If CURRENT_RECORD_ID = 0 Then
|
||||
MsgBox("No Record chosen or the documenttype was not chosen!", MsgBoxStyle.Information)
|
||||
Exit Sub
|
||||
End If
|
||||
If lvwIndices.Items.Count = 0 Then
|
||||
MsgBox("Please choose a documenttxpe!", MsgBoxStyle.Information)
|
||||
Exit Sub
|
||||
End If
|
||||
If CURRENT_TBPMO_INDEX_MAN.Rows.Count > 0 Then
|
||||
If CheckWrite_IndexeMan() = False Then
|
||||
Try
|
||||
If CURRENT_RECORD_ID = 0 Then
|
||||
MsgBox("No Record chosen or the documenttype was not chosen!", MsgBoxStyle.Information)
|
||||
Exit Sub
|
||||
End If
|
||||
End If
|
||||
If cmbDokumentart.SelectedIndex <> -1 Then
|
||||
My.Settings.WD_INDEXDOKART_SAVE = cmbDokumentart.Text
|
||||
My.Settings.Save()
|
||||
Indexing_File(cmbDokumentart.SelectedValue)
|
||||
End If
|
||||
If lvwIndices.Items.Count = 0 Then
|
||||
MsgBox("Please choose a documenttxpe!", MsgBoxStyle.Information)
|
||||
Exit Sub
|
||||
End If
|
||||
If Not IsNothing(CURRENT_TBPMO_INDEX_MAN) Then
|
||||
If CURRENT_TBPMO_INDEX_MAN.Rows.Count > 0 Then
|
||||
If CheckWrite_IndexeMan() = False Then
|
||||
Exit Sub
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
If cmbDokumentart.SelectedIndex <> -1 Then
|
||||
My.Settings.WD_INDEXDOKART_SAVE = cmbDokumentart.Text
|
||||
My.Settings.Save()
|
||||
Indexing_File(cmbDokumentart.SelectedValue)
|
||||
End If
|
||||
Catch ex As Exception
|
||||
MsgBox("Unexpected Error in Prepare indexing: " & ex.Message, MsgBoxStyle.Critical)
|
||||
End Try
|
||||
|
||||
End Sub
|
||||
Function Return_CURRENT_TBPMO_INDEX_MAN_VALUE(CONTROL_GUID As Integer, COL_NAME As String)
|
||||
@@ -1123,7 +1129,8 @@ Public Class frmWD_IndexFile
|
||||
Private Sub frmWD_Index_Dokart_Shown(sender As Object, e As EventArgs) Handles Me.Shown
|
||||
Try
|
||||
If My.Settings.WD_INDEXDOKART_SAVE <> String.Empty Then
|
||||
cmbDokumentart.SelectedIndex = cmbDokumentart.FindStringExact(My.Settings.WD_INDEXDOKART_SAVE)
|
||||
Me.cmbDokumentart.SelectedItem = Me.cmbDokumentart.Items.IndexOf(My.Settings.WD_INDEXDOKART_SAVE)
|
||||
' cmbDokumentart.SelectedIndex = cmbDokumentart.FindStringExact(My.Settings.WD_INDEXDOKART_SAVE)
|
||||
Else
|
||||
If DD_DMSDataSet.VWPMO_DOKUMENTTYPES.Rows.Count = 1 Then
|
||||
cmbDokumentart.SelectedIndex = 0
|
||||
|
||||
Reference in New Issue
Block a user