2021-03-27 23:50:29 +04:00
|
|
|
|
using DesktopTools.Controls;
|
|
|
|
|
using DesktopTools.Models;
|
2021-03-28 19:15:55 +04:00
|
|
|
|
using ModuleTools.BusinessLogics;
|
|
|
|
|
using ModuleTools.Enums;
|
2021-03-27 23:50:29 +04:00
|
|
|
|
using SecurityBusinessLogic.BindingModels;
|
|
|
|
|
using SecurityBusinessLogic.BusinessLogics;
|
|
|
|
|
using SecurityBusinessLogic.ViewModels;
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace SecurityWindowsDesktop.Controls
|
|
|
|
|
{
|
2021-03-29 12:13:47 +04:00
|
|
|
|
public partial class RolesControl : GenericControlEntityList<RoleGetBindingModel, RoleSetBindingModel, RoleListViewModel, RoleViewModel, RoleBusinessLogic>
|
2021-03-27 23:50:29 +04:00
|
|
|
|
{
|
|
|
|
|
public RolesControl() : base()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
Title = "Роли";
|
2021-03-29 23:16:11 +04:00
|
|
|
|
ControlId = new Guid("6a33ce5c-e950-4294-9f75-2a0b35941bf7");
|
2021-03-27 23:50:29 +04:00
|
|
|
|
Order = 1;
|
|
|
|
|
AccessOperation = AccessOperation.Роли;
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-29 23:16:11 +04:00
|
|
|
|
public override BaseControlViewEntityList Clone() => new RolesControl() { ControlId = Guid.NewGuid() };
|
2021-03-27 23:50:29 +04:00
|
|
|
|
|
|
|
|
|
protected override ControlViewEntityListConfiguration GetConfig() => new()
|
|
|
|
|
{
|
|
|
|
|
PaginationOn = false
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
protected override RoleListViewModel GetData()
|
|
|
|
|
{
|
|
|
|
|
var list = _businessLogic.GetList(new RoleGetBindingModel());
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|