2021-04-01 21:30:29 +04:00
|
|
|
|
using DesktopTools.Controls;
|
|
|
|
|
using DesktopTools.Enums;
|
|
|
|
|
using DesktopTools.Interfaces;
|
|
|
|
|
using DesktopTools.Models;
|
2022-03-18 22:38:52 +04:00
|
|
|
|
using ToolsModule.Enums;
|
2021-04-01 21:30:29 +04:00
|
|
|
|
using SecurityBusinessLogic.BindingModels;
|
|
|
|
|
using SecurityBusinessLogic.BusinessLogics;
|
|
|
|
|
using SecurityBusinessLogic.ViewModels;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2021-04-02 15:53:15 +04:00
|
|
|
|
namespace SecurityWindowsDesktop.EntityControls
|
2021-04-01 21:30:29 +04:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Реализация контрола для списка ролей пользователя
|
|
|
|
|
/// </summary>
|
|
|
|
|
public partial class ControlUserRoleList :
|
|
|
|
|
GenericControlEntityList<UserRoleGetBindingModel, UserRoleSetBindingModel, UserRoleListViewModel, UserRoleViewModel, UserRoleBusinessLogic>,
|
2021-04-04 21:09:39 +04:00
|
|
|
|
IGenericControlEntityList
|
2021-04-01 21:30:29 +04:00
|
|
|
|
{
|
|
|
|
|
public ControlUserRoleList()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
Title = "Связи пользователей с ролями";
|
|
|
|
|
ControlId = new Guid("c5748925-c8ec-4d06-a256-c72b0983d332");
|
|
|
|
|
AccessOperation = AccessOperation.ПользователиРоли;
|
|
|
|
|
ControlViewEntityElement = new ControlUserRoleElement();
|
|
|
|
|
_genericControlViewEntityList = this;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public IControl GetInstanceGenericControl() => new ControlUserRoleList() { ControlId = Guid.NewGuid() };
|
|
|
|
|
|
|
|
|
|
public ControlViewEntityListConfiguration GetConfigControl() => new()
|
|
|
|
|
{
|
|
|
|
|
PaginationOn = false,
|
|
|
|
|
HideToolStripButton = new List<ToolStripButtonListNames>
|
|
|
|
|
{
|
|
|
|
|
ToolStripButtonListNames.toolStripButtonUpd,
|
|
|
|
|
ToolStripButtonListNames.toolStripButtonSearch
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|