From f8a0a206d976e60b96d398cfa625f9b22a5d2cec Mon Sep 17 00:00:00 2001 From: kisame Date: Tue, 17 Dec 2024 20:43:41 +0400 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D1=81=D0=BB=D0=B8?= =?UTF-8?q?=D1=8F=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProjectPolyclinic/Forms/DrugsCountReport.resx | 4 +++- .../Forms/FormDirectoryReport.Designer.cs | 7 ++++++- .../ProjectPolyclinic/Forms/FormDirectoryReport.resx | 6 +++++- .../ProjectPolyclinic/Forms/FormDoctor.Designer.cs | 3 ++- .../Repositories/Implementations/DoctorRepository.cs | 1 - .../Implementations/MedicalHistoryRepository.cs | 7 ------- 6 files changed, 16 insertions(+), 12 deletions(-) diff --git a/ProjectPolyclinic/ProjectPolyclinic/Forms/DrugsCountReport.resx b/ProjectPolyclinic/ProjectPolyclinic/Forms/DrugsCountReport.resx index af32865..894cd7e 100644 --- a/ProjectPolyclinic/ProjectPolyclinic/Forms/DrugsCountReport.resx +++ b/ProjectPolyclinic/ProjectPolyclinic/Forms/DrugsCountReport.resx @@ -59,7 +59,9 @@ : using a System.ComponentModel.TypeConverter : and then encoded with base64 encoding. --> - + diff --git a/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDirectoryReport.Designer.cs b/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDirectoryReport.Designer.cs index e20dffc..688120d 100644 --- a/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDirectoryReport.Designer.cs +++ b/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDirectoryReport.Designer.cs @@ -2,7 +2,12 @@ { partial class FormDirectoryReport { - /// + + + + + + / /// Required designer variable. /// private System.ComponentModel.IContainer components = null; diff --git a/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDirectoryReport.resx b/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDirectoryReport.resx index af32865..8ccf9d4 100644 --- a/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDirectoryReport.resx +++ b/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDirectoryReport.resx @@ -59,7 +59,11 @@ : using a System.ComponentModel.TypeConverter : and then encoded with base64 encoding. --> - + diff --git a/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDoctor.Designer.cs b/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDoctor.Designer.cs index 5939ef3..beefea2 100644 --- a/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDoctor.Designer.cs +++ b/ProjectPolyclinic/ProjectPolyclinic/Forms/FormDoctor.Designer.cs @@ -2,7 +2,8 @@ { partial class FormDoctor { - /// + + / /// Required designer variable. /// private System.ComponentModel.IContainer components = null; diff --git a/ProjectPolyclinic/ProjectPolyclinic/Repositories/Implementations/DoctorRepository.cs b/ProjectPolyclinic/ProjectPolyclinic/Repositories/Implementations/DoctorRepository.cs index caf33a8..3b14191 100644 --- a/ProjectPolyclinic/ProjectPolyclinic/Repositories/Implementations/DoctorRepository.cs +++ b/ProjectPolyclinic/ProjectPolyclinic/Repositories/Implementations/DoctorRepository.cs @@ -54,7 +54,6 @@ public class DoctorRepository : IDoctorRepository { using var connection = new NpgsqlConnection(_connectionString.ConnectionString); - // Проверяем, существует ли запись var existingDoctor = connection.QueryFirstOrDefault("SELECT * FROM Doctors WHERE id = @Id", new { doctor.Id }); if (existingDoctor == null) { diff --git a/ProjectPolyclinic/ProjectPolyclinic/Repositories/Implementations/MedicalHistoryRepository.cs b/ProjectPolyclinic/ProjectPolyclinic/Repositories/Implementations/MedicalHistoryRepository.cs index 83a4dc9..af75ecc 100644 --- a/ProjectPolyclinic/ProjectPolyclinic/Repositories/Implementations/MedicalHistoryRepository.cs +++ b/ProjectPolyclinic/ProjectPolyclinic/Repositories/Implementations/MedicalHistoryRepository.cs @@ -169,11 +169,4 @@ public class MedicalHistoryRepository : IMedicalHistoryRepository throw; } } - - - - - - - }