Добавили модели и интерфейсы логики для отчетов #13

Merged
ekallin merged 9 commits from stage7_user_web_interface_prototype into main 2024-05-02 02:45:34 +04:00
2 changed files with 41 additions and 1 deletions
Showing only changes of commit c349a09117 - Show all commits

View File

@ -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
{
/// <summary>
/// Получение списка компонент с указанием, в каких изделиях используются
/// </summary>
/// <returns></returns>
List<ReportCoursesByProcedureViewModel> GetProcedureCourses();
/// <summary>
/// Получение списка заказов за определенный период
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
List<ReportProceduresViewModel> GetProcedures(ReportBindingModel model);
/// <summary>
/// Сохранение компонент в файл-Word
/// </summary>
/// <param name="model"></param>
void SaveCoursesByProcedureToWordFile(ReportBindingModel model);
/// <summary>
/// Сохранение компонент с указаеним продуктов в файл-Excel
/// </summary>
/// <param name="model"></param>
void SaveCoursesByProcedureToExcelFile(ReportBindingModel model);
/// <summary>
/// Сохранение заказов в файл-Pdf
/// </summary>
/// <param name="model"></param>
void SaveOrdersToPdfFile(ReportBindingModel model);
}
}

View File

@ -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();