From c349a091178456e4fe6174450b97af9a1352fe70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=91=D0=B0=D0=BA=D0=B0?= =?UTF-8?q?=D0=BB=D1=8C=D1=81=D0=BA=D0=B0=D1=8F?= Date: Thu, 2 May 2024 01:00:43 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D0=B8=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=B0=D0=BB=D0=B0=20=D0=BA=D0=BB=D0=B0=D1=81?= =?UTF-8?q?=D1=81=20=D0=B2=D1=8C=D1=8E=20=D0=BC=D0=BE=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D0=B8=20=D0=B8=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB=D0=B0=20?= =?UTF-8?q?=D0=B8=D0=BD=D1=82=D0=B5=D1=80=D1=84=D0=B5=D0=B9=D1=81=20=D0=BB?= =?UTF-8?q?=D0=BE=D0=B3=D0=B8=D0=BA=D0=B8=20=D0=BE=D1=82=D1=87=D0=B5=D1=82?= =?UTF-8?q?=D0=BE=D0=B2=20=D0=B4=D0=BB=D1=8F=20=D0=BF=D0=BE=D1=80=D1=83?= =?UTF-8?q?=D1=87=D0=B8=D1=82=D0=B5=D0=BB=D1=8F=20>:/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ISuretorReportLogic.cs | 40 +++++++++++++++++++ ...s => ReportCoursesByProcedureViewModel.cs} | 2 +- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 Polyclinic/PolyclinicContracts/BusinessLogicsContracts/ISuretorReportLogic.cs rename Polyclinic/PolyclinicContracts/ViewModels/{ReportCoursesByProcedures.cs => ReportCoursesByProcedureViewModel.cs} (86%) diff --git a/Polyclinic/PolyclinicContracts/BusinessLogicsContracts/ISuretorReportLogic.cs b/Polyclinic/PolyclinicContracts/BusinessLogicsContracts/ISuretorReportLogic.cs new file mode 100644 index 0000000..affce17 --- /dev/null +++ b/Polyclinic/PolyclinicContracts/BusinessLogicsContracts/ISuretorReportLogic.cs @@ -0,0 +1,40 @@ +using PolyclinicContracts.BindingModels; +using PolyclinicContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PolyclinicContracts.BusinessLogicsContracts +{ + public interface ISuretorReportLogic + { + /// + /// Получение списка компонент с указанием, в каких изделиях используются + /// + /// + List GetProcedureCourses(); + /// + /// Получение списка заказов за определенный период + /// + /// + /// + List GetProcedures(ReportBindingModel model); + /// + /// Сохранение компонент в файл-Word + /// + /// + void SaveCoursesByProcedureToWordFile(ReportBindingModel model); + /// + /// Сохранение компонент с указаеним продуктов в файл-Excel + /// + /// + void SaveCoursesByProcedureToExcelFile(ReportBindingModel model); + /// + /// Сохранение заказов в файл-Pdf + /// + /// + void SaveOrdersToPdfFile(ReportBindingModel model); + } +} diff --git a/Polyclinic/PolyclinicContracts/ViewModels/ReportCoursesByProcedures.cs b/Polyclinic/PolyclinicContracts/ViewModels/ReportCoursesByProcedureViewModel.cs similarity index 86% rename from Polyclinic/PolyclinicContracts/ViewModels/ReportCoursesByProcedures.cs rename to Polyclinic/PolyclinicContracts/ViewModels/ReportCoursesByProcedureViewModel.cs index ed74567..7362ded 100644 --- a/Polyclinic/PolyclinicContracts/ViewModels/ReportCoursesByProcedures.cs +++ b/Polyclinic/PolyclinicContracts/ViewModels/ReportCoursesByProcedureViewModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace PolyclinicContracts.ViewModels { - public class ReportCoursesByProcedures + public class ReportCoursesByProcedureViewModel { public string Name { get; set; } = string.Empty; public List<(int countDays, int pillsPerDay, string comment)> Courses = new();