PIBD-22. Denisov V.D. LabWork_3 #4

Closed
kisame wants to merge 3 commits from LabWork_3 into LabWork_2
5 changed files with 2 additions and 23 deletions
Showing only changes of commit c538d61a1d - Show all commits

View File

@ -34,8 +34,4 @@ public class Doctor
SpecializationLevel = specializationLevel
};
}
}

View File

@ -1,4 +1,4 @@
 using ProjectPolyclinic.Entities.Enums;
using ProjectPolyclinic.Entities.Enums;
using System;
using System.Collections.Generic;
using System.Linq;

View File

@ -5,18 +5,6 @@ using System.Text;
using System.Threading.Tasks;
namespace ProjectPolyclinic.Entities;
//public class TempMedicalHistory
//{
// public int Id { get; set; }
// public int PatientId { get; set; }
// public int DoctorId { get; set; }
// public DateTime VisitDate { get; set; }
// public int Status { get; set; }
// public int DrugId { get; set; }
// public int Count { get; set; }
//}
public class TempMedicalHistory
{
public int Id { get; set; }
@ -24,8 +12,6 @@ public class TempMedicalHistory
public int DoctorId { get; set; }
public DateTime VisitDate { get; set; }
public int Status { get; set; }
// Поля для лекарств
public int DrugId { get; set; }
public int Count { get; set; }
}

View File

@ -95,8 +95,6 @@ public class WordBuilder
return this;
}
public void Build()
{
using var wordDocument = WordprocessingDocument.Create(_filePath,

View File

@ -53,8 +53,7 @@ public class DoctorRepository : IDoctorRepository
try
{
using var connection = new NpgsqlConnection(_connectionString.ConnectionString);
// Проверяем, существует ли запись
var existingDoctor = connection.QueryFirstOrDefault<Doctor>("SELECT * FROM Doctors WHERE id = @Id", new { doctor.Id });
if (existingDoctor == null)
{