DepartmentProject/DepartmentPortal/Department/DepartmentWindowsDesktop/EntityControls/Employee/ControlEmployeeList.cs

42 lines
1.3 KiB
C#
Raw Normal View History

2021-04-03 11:41:02 +04:00
using DepartmentBusinessLogic.BindingModels;
using DepartmentBusinessLogic.BusinessLogics;
using DepartmentBusinessLogic.ViewModels;
using DesktopTools.Controls;
using DesktopTools.Enums;
using DesktopTools.Interfaces;
using DesktopTools.Models;
using ModuleTools.Enums;
using System;
using System.Collections.Generic;
namespace DepartmentWindowsDesktop.EntityControls
{
2021-04-03 19:03:56 +04:00
/// <summary>
/// Реализация контрола для списка сотрудников
/// </summary>
2021-04-03 11:41:02 +04:00
public partial class ControlEmployeeList :
GenericControlEntityList<EmployeeGetBindingModel, EmployeeSetBindingModel, EmployeeListViewModel, EmployeeViewModel, EmployeeBusinessLogic>,
IGenericControlEntityList
2021-04-03 11:41:02 +04:00
{
public ControlEmployeeList()
{
InitializeComponent();
Title = "Сотрудники";
ControlId = new Guid("22806450-62ad-479f-8ee7-dc1d9a90b6cf");
AccessOperation = AccessOperation.Сотрудники;
ControlViewEntityElement = new ControlEmployeeElement();
_genericControlViewEntityList = this;
}
public IControl GetInstanceGenericControl() => new ControlEmployeeList() { ControlId = Guid.NewGuid() };
public ControlViewEntityListConfiguration GetConfigControl() => new()
{
PaginationOn = false,
HideToolStripButton = new List<ToolStripButtonListNames>
{
ToolStripButtonListNames.toolStripButtonSearch
}
};
}
}