отчеты доктора

This commit is contained in:
ValAnn 2024-05-01 09:34:13 +04:00
parent c9e51c422a
commit b6904e72fb
5 changed files with 129 additions and 0 deletions

View File

@ -0,0 +1,60 @@
using HospitalContracts.BindingModels;
using HospitalContracts.BusinessLogicContracts;
using HospitalContracts.SearchModels;
using HospitalContracts.StoragesContracts;
using HospitalContracts.ViewModels;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace HospitalBusinessLogic.BusinessLogics
{
public class DoctorReportLogic : IDoctorReportLogic
{
private readonly IPatientStorage _patientStorage;
private readonly IMedicineStorage _medicineStorage;
private readonly IProcedureStorage _procedureStorage;
private readonly IRecipeStorage _recipeStorage;
private readonly IDiseaseStorage _diseaseStorage;
public DoctorReportLogic(IPatientStorage patientStorage, IMedicineStorage medicineStorage, IProcedureStorage procedureStorage, IRecipeStorage recipeStorage, IDiseaseStorage diseaseStorage)
{
_patientStorage = patientStorage;
_medicineStorage = medicineStorage;
_procedureStorage = procedureStorage;
_recipeStorage = recipeStorage;
_diseaseStorage = diseaseStorage;
}
public List<ReportPatientViewModel> GetPatients(ReportBindingModel model)
{
throw new NotImplementedException();
}
public List<ReportProcedureRecipeViewModel> GetProcedureRecipes()
{
throw new NotImplementedException();
}
public void SavePatientsToPdfFile(ReportBindingModel model)
{
throw new NotImplementedException();
}
public void SaveProcedureRecipesToExcelFile(ReportBindingModel model)
{
throw new NotImplementedException();
}
public void SaveProcedureRecipesToWordFile(ReportBindingModel model)
{
throw new NotImplementedException();
}
}
}

View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalContracts.BindingModels
{
public class ReportBindingModel
{
public string FileName { get; set; } = string.Empty;
public DateTime? DateFrom { get; set; }
public DateTime? DateTo { get; set; }
public int? PatientId { get; set; }
}
}

View File

@ -0,0 +1,19 @@
using HospitalContracts.BindingModels;
using HospitalContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalContracts.BusinessLogicContracts
{
public interface IDoctorReportLogic
{
List<ReportProcedureRecipeViewModel> GetProcedureRecipes();
List<ReportPatientViewModel> GetPatients(ReportBindingModel model);
void SaveProcedureRecipesToWordFile(ReportBindingModel model);
void SaveProcedureRecipesToExcelFile(ReportBindingModel model);
void SavePatientsToPdfFile(ReportBindingModel model);
}
}

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalContracts.ViewModels
{
public class ReportPatientViewModel
{
public int Id { get; set; }
public string MedicineName { get; set; } = string.Empty;
public List<string> Patients { get; set; } = new();
}
}

View File

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalContracts.ViewModels
{
public class ReportProcedureRecipeViewModel
{
public DateTime DateCreate { get; set; }
public string MedicineName { get; set; } = string.Empty;
public int Number { get; set; }
public string ProcedureName { get; set; } = string.Empty;
}
}