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 { public partial class ControlEmployeePostLecturerList : GenericControlEntityList, IGenericControlEntityList { public ControlEmployeePostLecturerList() { InitializeComponent(); Title = "Связи преподавателей с должностями"; ControlId = new Guid("48764e13-2f14-4bd4-b07d-6cf55f4db4f2"); AccessOperation = AccessOperation.Преподаватели; ControlViewEntityElement = new ControlLecturerEmployeePostElement(); _genericControlViewEntityList = this; } public IControl GetInstanceGenericControl() => new ControlEmployeePostLecturerList() { ControlId = Guid.NewGuid() }; public ControlViewEntityListConfiguration GetConfigControl() => new() { PaginationOn = false, HideToolStripButton = new List { ToolStripButtonListNames.toolStripButtonUpd, ToolStripButtonListNames.toolStripButtonSearch } }; public LecturerEmployeePostListViewModel GetDataForControl() => throw new NotImplementedException(); public LecturerEmployeePostListViewModel GetDataFromParentForControl(Guid id) => _businessLogic.GetList(new LecturerEmployeePostGetBindingModel { EmployeePostId = id }); public LecturerEmployeePostListViewModel GetDataWithPageNameForControl(string key) => throw new NotImplementedException(); public LecturerEmployeePostListViewModel GetDataWithPageNumberForControl(int page, int count) => throw new NotImplementedException(); } }