36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
|
using DepartmentBusinessLogic.BindingModels;
|
|||
|
using DepartmentBusinessLogic.BusinessLogics;
|
|||
|
using DepartmentBusinessLogic.ViewModels;
|
|||
|
using DesktopTools.Controls;
|
|||
|
using DesktopTools.Interfaces;
|
|||
|
using DesktopTools.Models;
|
|||
|
using ModuleTools.Enums;
|
|||
|
using System;
|
|||
|
|
|||
|
namespace DepartmentWindowsDesktop.EntityControls
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// Реализация контрола для списка приказов
|
|||
|
/// </summary>
|
|||
|
public partial class ControlOrderList :
|
|||
|
GenericControlEntityList<OrderGetBindingModel, OrderSetBindingModel, OrderListViewModel, OrderViewModel, OrderBusinessLogic>,
|
|||
|
IGenericControlEntityList
|
|||
|
{
|
|||
|
public ControlOrderList()
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
Title = "Приказы";
|
|||
|
ControlId = new Guid("a3ba1b6e-934b-4d91-aa9a-3bcd80a929ba");
|
|||
|
AccessOperation = AccessOperation.Приказы;
|
|||
|
ControlViewEntityElement = new ControlOrderElement();
|
|||
|
_genericControlViewEntityList = this;
|
|||
|
}
|
|||
|
|
|||
|
public IControl GetInstanceGenericControl() => new ControlOrderList() { ControlId = Guid.NewGuid() };
|
|||
|
|
|||
|
public ControlViewEntityListConfiguration GetConfigControl() => new()
|
|||
|
{
|
|||
|
PaginationOn = false
|
|||
|
};
|
|||
|
}
|
|||
|
}
|