DepartmentProject/DepartmentPortal/Security/SecurityWindowsDesktop/Controls/RolesControl.cs

46 lines
1.3 KiB
C#
Raw Normal View History

using DesktopTools.Controls;
using DesktopTools.Models;
using ModuleTools.BusinessLogics;
using ModuleTools.Enums;
using SecurityBusinessLogic.BindingModels;
using SecurityBusinessLogic.BusinessLogics;
using SecurityBusinessLogic.ViewModels;
using System;
namespace SecurityWindowsDesktop.Controls
{
2021-03-30 22:34:31 +04:00
public partial class RolesControl : AbstractGenericControlEntityList<RoleGetBindingModel, RoleSetBindingModel, RoleListViewModel, RoleViewModel, RoleBusinessLogic>
{
public RolesControl() : base()
{
InitializeComponent();
Title = "Роли";
ControlId = new Guid("6a33ce5c-e950-4294-9f75-2a0b35941bf7");
Order = 1;
AccessOperation = AccessOperation.Роли;
}
2021-03-30 22:34:31 +04:00
public override AbstractControlViewEntityList Clone() => new RolesControl() { ControlId = Guid.NewGuid() };
protected override ControlViewEntityListConfiguration GetConfig() => new()
{
PaginationOn = false
};
protected override RoleListViewModel GetData()
{
var list = _businessLogic.GetList(new RoleGetBindingModel());
return list;
}
2021-03-30 22:34:31 +04:00
protected override RoleListViewModel GetDataWithPageName(string key)
{
throw new NotImplementedException();
}
protected override RoleListViewModel GetDataWithPageNumber(int page, int count)
{
throw new NotImplementedException();
}
}
}