jj: group grids drag drop
This commit is contained in:
parent
aaa67e977d
commit
1df1db7ca1
@ -49,7 +49,7 @@ Partial Class frmProfileDesigner
|
||||
Dim VEKTOR_DELIMITERLabel As System.Windows.Forms.Label
|
||||
Dim WORK_HISTORY_ENTRYLabel As System.Windows.Forms.Label
|
||||
Dim SQL_VIEWLabel As System.Windows.Forms.Label
|
||||
Dim DataGridViewCellStyle1 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
|
||||
Dim DataGridViewCellStyle2 As System.Windows.Forms.DataGridViewCellStyle = New System.Windows.Forms.DataGridViewCellStyle()
|
||||
Me.SplitContainer_Profilzuordnung2 = New System.Windows.Forms.SplitContainer()
|
||||
Me.gridAssignedUsers = New DevExpress.XtraGrid.GridControl()
|
||||
Me.TBPROFILE_USERBindingSource = New System.Windows.Forms.BindingSource(Me.components)
|
||||
@ -2187,8 +2187,8 @@ Partial Class frmProfileDesigner
|
||||
'TBPM_ERROR_LOGDataGridView
|
||||
'
|
||||
Me.TBPM_ERROR_LOGDataGridView.AllowUserToAddRows = False
|
||||
DataGridViewCellStyle1.BackColor = System.Drawing.Color.Cyan
|
||||
Me.TBPM_ERROR_LOGDataGridView.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle1
|
||||
DataGridViewCellStyle2.BackColor = System.Drawing.Color.Cyan
|
||||
Me.TBPM_ERROR_LOGDataGridView.AlternatingRowsDefaultCellStyle = DataGridViewCellStyle2
|
||||
Me.TBPM_ERROR_LOGDataGridView.AutoGenerateColumns = False
|
||||
Me.TBPM_ERROR_LOGDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize
|
||||
Me.TBPM_ERROR_LOGDataGridView.Columns.AddRange(New System.Windows.Forms.DataGridViewColumn() {Me.DataGridViewTextBoxColumn17, Me.DataGridViewTextBoxColumn22, Me.DataGridViewTextBoxColumn23, Me.DataGridViewTextBoxColumn24, Me.DataGridViewTextBoxColumn25})
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -260,6 +260,7 @@ Public Class frmProfileDesigner
|
||||
If Not IsNothing(profileId) Then
|
||||
TBPROFILE_USERTableAdapter.Fill(Me.DD_DMSLiteDataSet.TBPROFILE_USER, ID)
|
||||
TBPM_USERTableAdapter.FillByProfileId_NotAssigned(DD_DMSLiteDataSet.TBDD_USER, profileId)
|
||||
|
||||
End If
|
||||
Catch ex As System.Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler beim Laden der User zu Profil:")
|
||||
@ -308,7 +309,7 @@ Public Class frmProfileDesigner
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
Private Sub gridAvailableUsers_DragDrop(sender As Object, e As DragEventArgs)
|
||||
Private Sub gridAvailableUsers_DragDrop(sender As Object, e As DragEventArgs) Handles gridAvailableUsers.DragDrop
|
||||
Try
|
||||
Dim data As String = e.Data.GetData(DataFormats.Text)
|
||||
Dim userId As Integer = data.Split("|")(0)
|
||||
@ -321,6 +322,32 @@ Public Class frmProfileDesigner
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
Private Sub gridAssignedGroups_DragDrop(sender As Object, e As DragEventArgs) Handles gridAssignedGroups.DragDrop
|
||||
Try
|
||||
Dim data As String = e.Data.GetData(DataFormats.Text)
|
||||
Dim userId As Integer = data.Split("|")(0)
|
||||
|
||||
Dim profileId = GetCurrentProfileId()
|
||||
' TBPROFILE_USERTableAdapter.CMDInsert(profileId, userId, Environment.UserName)
|
||||
FillProfile_User(profileId)
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler beim Hinzufügen einer Gruppe:")
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
Private Sub gridAvailableGroups_DragDrop(sender As Object, e As DragEventArgs) Handles gridAvailableGroups.DragDrop
|
||||
Try
|
||||
Dim data As String = e.Data.GetData(DataFormats.Text)
|
||||
Dim userId As Integer = data.Split("|")(0)
|
||||
|
||||
Dim profileId = GetCurrentProfileId()
|
||||
'TBPROFILE_USERTableAdapter.cmdDelete(userId)
|
||||
FillProfile_User(profileId)
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler beim Entfernen einer Gruppe:")
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
Private Sub BindingNavigatorDeleteItem_Click(sender As System.Object, e As System.EventArgs)
|
||||
If viewAssignedUsers.GetSelectedRows().Length > 0 Then
|
||||
For Each rowHandle In viewAssignedUsers.GetSelectedRows()
|
||||
@ -874,4 +901,6 @@ Public Class frmProfileDesigner
|
||||
Private Sub btnUserManager_Click(sender As Object, e As EventArgs) Handles btnUserManager.Click
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
End Class
|
||||
Loading…
x
Reference in New Issue
Block a user