Zooflow: Massive Clean up
This commit is contained in:
@@ -7,7 +7,7 @@ Public Class frmAdmin_Globix
|
||||
Public Property HasChanges As Boolean = False Implements IAdminForm.HasChanges
|
||||
Public Property IsInsert As Boolean = False Implements IAdminForm.IsInsert
|
||||
Public Property PrimaryKey As Integer Implements IAdminForm.PrimaryKey
|
||||
|
||||
Public Property GlobixHelper As ClassGIDatatables
|
||||
|
||||
Private Pages As ClassDetailPages
|
||||
Public Sub New(PrimaryKey As Integer, Optional IsInsert As Boolean = False)
|
||||
@@ -17,6 +17,7 @@ Public Class frmAdmin_Globix
|
||||
' Fügen Sie Initialisierungen nach dem InitializeComponent()-Aufruf hinzu.
|
||||
Me.PrimaryKey = PrimaryKey
|
||||
Me.IsInsert = IsInsert
|
||||
Me.GlobixHelper = New ClassGIDatatables(My.LogConfig)
|
||||
End Sub
|
||||
|
||||
Private Sub frmAdmin_Globix_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||
@@ -409,10 +410,10 @@ Public Class frmAdmin_Globix
|
||||
Private Sub XtraTabControl1_SelectedPageChanged(sender As Object, e As DevExpress.XtraTab.TabPageChangedEventArgs) Handles XtraTabControl1.SelectedPageChanged
|
||||
Select Case XtraTabControl1.SelectedTabPageIndex
|
||||
Case 1
|
||||
gridAssignedGroups.DataSource = ClassGIDatatables.GetAssignedGroups(TextEditDoctypeID.Text)
|
||||
gridAvailableGroups.DataSource = ClassGIDatatables.GetAvailableGroups(TextEditDoctypeID.Text)
|
||||
gridAssignedUsers.DataSource = ClassGIDatatables.GetAssignedUsers(TextEditDoctypeID.Text)
|
||||
gridAvailableUsers.DataSource = ClassGIDatatables.GetAvailableUsers(TextEditDoctypeID.Text)
|
||||
gridAssignedGroups.DataSource = GlobixHelper.GetAssignedGroups(TextEditDoctypeID.Text)
|
||||
gridAvailableGroups.DataSource = GlobixHelper.GetAvailableGroups(TextEditDoctypeID.Text)
|
||||
gridAssignedUsers.DataSource = GlobixHelper.GetAssignedUsers(TextEditDoctypeID.Text)
|
||||
gridAvailableUsers.DataSource = GlobixHelper.GetAvailableUsers(TextEditDoctypeID.Text)
|
||||
End Select
|
||||
End Sub
|
||||
|
||||
@@ -422,9 +423,9 @@ Public Class frmAdmin_Globix
|
||||
Dim userId As Integer = data.Split("|")(0)
|
||||
Dim profileId As Integer = TextEditDoctypeID.Text
|
||||
|
||||
ClassGIDatatables.AddUserToProfile(userId, profileId)
|
||||
gridAssignedUsers.DataSource = ClassGIDatatables.GetAssignedUsers(profileId)
|
||||
gridAvailableUsers.DataSource = ClassGIDatatables.GetAvailableUsers(profileId)
|
||||
GlobixHelper.AddUserToProfile(userId, profileId)
|
||||
gridAssignedUsers.DataSource = GlobixHelper.GetAssignedUsers(profileId)
|
||||
gridAvailableUsers.DataSource = GlobixHelper.GetAvailableUsers(profileId)
|
||||
Catch ex As Exception
|
||||
Logger.Error(ex)
|
||||
MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler beim Hinzufügen eines Users:")
|
||||
@@ -437,9 +438,9 @@ Public Class frmAdmin_Globix
|
||||
Dim userId As Integer = data.Split("|")(0)
|
||||
Dim profileId As Integer = TextEditDoctypeID.Text
|
||||
|
||||
ClassGIDatatables.RemoveUserFromProfile(userId, profileId)
|
||||
gridAssignedUsers.DataSource = ClassGIDatatables.GetAssignedUsers(profileId)
|
||||
gridAvailableUsers.DataSource = ClassGIDatatables.GetAvailableUsers(profileId)
|
||||
GlobixHelper.RemoveUserFromProfile(userId, profileId)
|
||||
gridAssignedUsers.DataSource = GlobixHelper.GetAssignedUsers(profileId)
|
||||
gridAvailableUsers.DataSource = GlobixHelper.GetAvailableUsers(profileId)
|
||||
Catch ex As Exception
|
||||
Logger.Error(ex)
|
||||
MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler beim Hinzufügen eines Users:")
|
||||
@@ -452,9 +453,9 @@ Public Class frmAdmin_Globix
|
||||
Dim groupId As Integer = data.Split("|")(0)
|
||||
Dim profileId As Integer = TextEditDoctypeID.Text
|
||||
|
||||
ClassGIDatatables.AddGroupToProfile(groupId, profileId)
|
||||
gridAssignedGroups.DataSource = ClassGIDatatables.GetAssignedGroups(profileId)
|
||||
gridAvailableGroups.DataSource = ClassGIDatatables.GetAvailableGroups(profileId)
|
||||
GlobixHelper.AddGroupToProfile(groupId, profileId)
|
||||
gridAssignedGroups.DataSource = GlobixHelper.GetAssignedGroups(profileId)
|
||||
gridAvailableGroups.DataSource = GlobixHelper.GetAvailableGroups(profileId)
|
||||
Catch ex As Exception
|
||||
Logger.Error(ex)
|
||||
MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler beim Hinzufügen einer Gruppe:")
|
||||
@@ -467,9 +468,9 @@ Public Class frmAdmin_Globix
|
||||
Dim groupId As Integer = data.Split("|")(0)
|
||||
Dim profileId As Integer = TextEditDoctypeID.Text
|
||||
|
||||
ClassGIDatatables.RemoveGroupFromProfile(groupId, profileId)
|
||||
gridAssignedGroups.DataSource = ClassGIDatatables.GetAssignedGroups(profileId)
|
||||
gridAvailableGroups.DataSource = ClassGIDatatables.GetAvailableGroups(profileId)
|
||||
GlobixHelper.RemoveGroupFromProfile(groupId, profileId)
|
||||
gridAssignedGroups.DataSource = GlobixHelper.GetAssignedGroups(profileId)
|
||||
gridAvailableGroups.DataSource = GlobixHelper.GetAvailableGroups(profileId)
|
||||
Catch ex As Exception
|
||||
Logger.Error(ex)
|
||||
MsgBox(ex.Message, MsgBoxStyle.Critical, "Fehler beim Hinzufügen einer Gruppe:")
|
||||
|
||||
Reference in New Issue
Block a user