Zooflow: integrate SQLEditor
This commit is contained in:
@@ -20,7 +20,12 @@ Public Class frmSQLEditor
|
||||
Public Property LoadClipboardPlaceholders As Boolean = False
|
||||
|
||||
Public Property PlaceholdersManual As List(Of String)
|
||||
Public Property PlaceholdersManualPrefix As String
|
||||
|
||||
Public Property PlaceholdersAutomatic As List(Of String)
|
||||
Public Property PlaceholdersAutomaticPrefix As String
|
||||
|
||||
Public Property PlaceholdersWindream As List(Of String)
|
||||
|
||||
Public Sub New(pLogConfig As LogConfig, pDatabase As MSSQLServer)
|
||||
' Dieser Aufruf ist für den Designer erforderlich.
|
||||
@@ -44,6 +49,10 @@ Public Class frmSQLEditor
|
||||
PlaceholdersManual = New List(Of String)
|
||||
End If
|
||||
|
||||
If PlaceholdersWindream Is Nothing Then
|
||||
PlaceholdersWindream = New List(Of String)
|
||||
End If
|
||||
|
||||
If SQLCommand <> String.Empty Then
|
||||
txtSQLCommand.Document.Text = SQLCommand
|
||||
End If
|
||||
@@ -90,19 +99,24 @@ Public Class frmSQLEditor
|
||||
Private Function LoadPlaceholders() As List(Of GalleryItemGroup)
|
||||
Dim oPlaceholders = New List(Of GalleryItemGroup)() From {
|
||||
Placeholders.GetInternalPlaceholders(),
|
||||
Placeholders.GetUserGroup()
|
||||
Placeholders.GetUserPlaceholders()
|
||||
}
|
||||
|
||||
Dim oAutomaticAttributes = Placeholders.GetAutomaticPlaceholders(PlaceholdersAutomatic)
|
||||
Dim oAutomaticAttributes = Placeholders.GetAutomaticPlaceholders(PlaceholdersAutomatic, PlaceholdersAutomaticPrefix)
|
||||
If oAutomaticAttributes IsNot Nothing Then
|
||||
oPlaceholders.Add(oAutomaticAttributes)
|
||||
End If
|
||||
|
||||
Dim oManualPlaceholders = Placeholders.GetManualPlaceholders(PlaceholdersManual)
|
||||
Dim oManualPlaceholders = Placeholders.GetManualPlaceholders(PlaceholdersManual, PlaceholdersManualPrefix)
|
||||
If oManualPlaceholders IsNot Nothing Then
|
||||
oPlaceholders.Add(oManualPlaceholders)
|
||||
End If
|
||||
|
||||
Dim oWindreamPlaceholders = Placeholders.GetWindreamPlaceholders(PlaceholdersWindream)
|
||||
If oWindreamPlaceholders IsNot Nothing Then
|
||||
oPlaceholders.Add(oWindreamPlaceholders)
|
||||
End If
|
||||
|
||||
If LoadClipboardPlaceholders Then
|
||||
oPlaceholders.Add(Placeholders.GetClipboardPlaceholder)
|
||||
End If
|
||||
@@ -243,6 +257,9 @@ Public Class frmSQLEditor
|
||||
Private Sub chkShowPlaceholders_CheckedChanged(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles chkShowPlaceholders.CheckedChanged
|
||||
SplitContainerControl1.Collapsed = Not chkShowPlaceholders.Checked
|
||||
End Sub
|
||||
Private Sub SplitContainerControl1_SplitGroupPanelCollapsed(sender As Object, e As DevExpress.XtraEditors.SplitGroupPanelCollapsedEventArgs) Handles SplitContainerControl1.SplitGroupPanelCollapsed
|
||||
chkShowPlaceholders.Checked = Not e.Collapsed
|
||||
End Sub
|
||||
|
||||
Private Sub btnSave_ItemClick(sender As Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles btnSave.ItemClick
|
||||
SQLCommand = txtSQLCommand.Text
|
||||
|
||||
Reference in New Issue
Block a user