From d8e396a649b01476753680b7315087eb8edc2d85 Mon Sep 17 00:00:00 2001 From: Pipiaka Date: Sat, 14 Dec 2024 19:57:12 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=B8=D1=87=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Accounting-Time-It-Company/Forms/FormTypeJob.cs | 2 +- .../Repositories/Implementations/TypeJobRepositories.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Accounting-Time-It-Company/Accounting-Time-It-Company/Forms/FormTypeJob.cs b/Accounting-Time-It-Company/Accounting-Time-It-Company/Forms/FormTypeJob.cs index f7e33db..1796474 100644 --- a/Accounting-Time-It-Company/Accounting-Time-It-Company/Forms/FormTypeJob.cs +++ b/Accounting-Time-It-Company/Accounting-Time-It-Company/Forms/FormTypeJob.cs @@ -19,7 +19,7 @@ namespace Accounting_Time_It_Company.Forms comboBoxProduct.DisplayMember = "Name"; comboBoxProduct.ValueMember = "Id"; - comboBoxDirector.DataSource = employeeRepositories.ReadEmployees(); + comboBoxDirector.DataSource = employeeRepositories.ReadEmployees().Where(x => x.PostId == (int)TypePost.Director).ToList(); comboBoxDirector.DisplayMember = "Name"; comboBoxDirector.ValueMember = "Id"; diff --git a/Accounting-Time-It-Company/Accounting-Time-It-Company/Repositories/Implementations/TypeJobRepositories.cs b/Accounting-Time-It-Company/Accounting-Time-It-Company/Repositories/Implementations/TypeJobRepositories.cs index 9d64613..13d4598 100644 --- a/Accounting-Time-It-Company/Accounting-Time-It-Company/Repositories/Implementations/TypeJobRepositories.cs +++ b/Accounting-Time-It-Company/Accounting-Time-It-Company/Repositories/Implementations/TypeJobRepositories.cs @@ -12,7 +12,7 @@ public class TypeJobRepositories : ITypeJobRepositories { } - public IEnumerable ReadTypeJobs(int? productId = null, int? developId = null, int? managerId = null) + public IEnumerable ReadTypeJobs(DateTime? dateFrom = null, DateTime? dateTo = null, int? productId = null, int? directorId = null) { return []; }