MS20072015_1
This commit is contained in:
@@ -154,24 +154,28 @@ Public Class frmIndex
|
||||
cmb.Width = g.MeasureString(cmb.Text, cmb.Font).Width + 30
|
||||
g.Dispose()
|
||||
End If
|
||||
Try
|
||||
Dim indexname = cmb.Name.Replace("cmb", "")
|
||||
Dim sql = "SELECT GUID,NAME,SQL_RESULT FROM TBDD_INDEX_MAN where SUGGESTION = 1 AND SQL_RESULT like '%@" & indexname & "%' and DOK_ID = " & CURRENT_DOKART_ID & " ORDER BY SEQUENCE"
|
||||
Dim DT As DataTable = ClassDatabase.Return_Datatable(sql, True)
|
||||
If Not IsNothing(DT) Then
|
||||
If DT.Rows.Count > 0 Then
|
||||
Dim cmbname = "cmb" & DT.Rows(0).Item("NAME")
|
||||
Renew_ComboboxResults(DT.Rows(0).Item("GUID"), indexname, cmb.Text)
|
||||
End If
|
||||
|
||||
End If
|
||||
Catch ex As Exception
|
||||
MsgBox("Error in ComboBox - Get Patterns:" & vbNewLine & ex.Message, MsgBoxStyle.Critical)
|
||||
End Try
|
||||
Get_NextComboBoxResults(cmb)
|
||||
|
||||
|
||||
SendKeys.Send("{TAB}")
|
||||
End If
|
||||
End Sub
|
||||
Sub Get_NextComboBoxResults(cmb As ComboBox)
|
||||
Try
|
||||
Dim indexname = cmb.Name.Replace("cmb", "")
|
||||
Dim sql = "SELECT GUID,NAME,SQL_RESULT FROM TBDD_INDEX_MAN where SUGGESTION = 1 AND SQL_RESULT like '%@" & indexname & "%' and DOK_ID = " & CURRENT_DOKART_ID & " ORDER BY SEQUENCE"
|
||||
Dim DT As DataTable = ClassDatabase.Return_Datatable(sql, True)
|
||||
If Not IsNothing(DT) Then
|
||||
If DT.Rows.Count > 0 Then
|
||||
Dim cmbname = "cmb" & DT.Rows(0).Item("NAME")
|
||||
Renew_ComboboxResults(DT.Rows(0).Item("GUID"), indexname, cmb.Text)
|
||||
End If
|
||||
|
||||
End If
|
||||
Catch ex As Exception
|
||||
MsgBox("Error in Get_NextComboBoxResults:" & vbNewLine & ex.Message, MsgBoxStyle.Critical)
|
||||
End Try
|
||||
End Sub
|
||||
' 'Public Sub AutoCompleteCombo_KeyUp(ByVal cbo As ComboBox, ByVal e As KeyEventArgs)
|
||||
' ' System.Threading.Thread.Sleep(400)
|
||||
' ' Dim sTypedText As String
|
||||
@@ -404,6 +408,10 @@ Public Class frmIndex
|
||||
ergebnis = ClassDatabase.Execute_Scalar(vsqlstatement, connectionString)
|
||||
End If
|
||||
|
||||
If LogErrorsOnly = False Then
|
||||
ClassLogger.Add(" ...SQL-ConnectionString: " & connectionString.Substring(0, connectionString.LastIndexOf("=")), False)
|
||||
End If
|
||||
|
||||
If ergebnis Is Nothing Then
|
||||
showlblhinweis("Kein Ergebnis für automatisches SQL: " & vsqlstatement)
|
||||
Return ""
|
||||
@@ -497,6 +505,7 @@ Public Class frmIndex
|
||||
If Vorgabe <> "" Then
|
||||
newCMB.SelectedIndex = newCMB.FindStringExact(Vorgabe)
|
||||
newCMB.Text = Vorgabe
|
||||
Get_NextComboBoxResults(newCMB)
|
||||
End If
|
||||
Else
|
||||
|
||||
@@ -841,7 +850,7 @@ Public Class frmIndex
|
||||
End If
|
||||
|
||||
Else
|
||||
ClassLogger.Add(" >> Der Indexvalue ist String.Empty", False)
|
||||
ClassLogger.Add(" >> Der Indexvalue für Index '" & Indexname & "' ist String.Empty", False)
|
||||
err = True
|
||||
End If
|
||||
|
||||
@@ -1368,7 +1377,7 @@ Public Class frmIndex
|
||||
' <STAThread()> _
|
||||
Private Sub Refresh_IndexeMan(dokartid As Integer)
|
||||
Try
|
||||
DT_INDEXEMAN = ClassDatabase.Return_Datatable("select T1.BEZEICHNUNG AS DOKUMENTART,T.* from TBDD_INDEX_MAN T, TBDD_DOKUMENTART T1 where T.DOK_ID = T1.GUID AND T.DOK_ID = " & dokartid)
|
||||
DT_INDEXEMAN = ClassDatabase.Return_Datatable("select T1.BEZEICHNUNG AS DOKUMENTART,T.* from TBDD_INDEX_MAN T, TBDD_DOKUMENTART T1 where T.ACTIVE = 1 AND T.DOK_ID = T1.GUID AND T.DOK_ID = " & dokartid)
|
||||
pnlIndex.Visible = True
|
||||
LoadIndexe_Man()
|
||||
Catch ex As System.Exception
|
||||
|
||||
Reference in New Issue
Block a user