From dadcc5b61a5cf2e9ac1aa83b8ef7ccaac5af79f9 Mon Sep 17 00:00:00 2001 From: MaxKarme <91691525+MaxKarme@users.noreply.github.com> Date: Sat, 8 Apr 2023 22:27:21 +0400 Subject: [PATCH] add report --- .../BindingModels/ReportBindingModel.cs | 12 ++++++++++++ .../BuisnessLogicContracts/IReportLogic.cs | 10 ++++++++++ .../ViewModels/ReportStudentDisciplineViewModel.cs | 8 ++++++++ 3 files changed, 30 insertions(+) create mode 100644 University/UniversityContracts/BindingModels/ReportBindingModel.cs create mode 100644 University/UniversityContracts/BuisnessLogicContracts/IReportLogic.cs create mode 100644 University/UniversityContracts/ViewModels/ReportStudentDisciplineViewModel.cs diff --git a/University/UniversityContracts/BindingModels/ReportBindingModel.cs b/University/UniversityContracts/BindingModels/ReportBindingModel.cs new file mode 100644 index 0000000..f0ef3a5 --- /dev/null +++ b/University/UniversityContracts/BindingModels/ReportBindingModel.cs @@ -0,0 +1,12 @@ +using UniversityContracts.ViewModels; + +namespace UniversityContracts.BindingModels +{ + public class ReportBindingModel + { + public string? FileName { get; set; } = string.Empty; + public DateTime? From { get; set; } + public DateTime? To { get; set; } + List Students { get; set; } = new(); + } +} diff --git a/University/UniversityContracts/BuisnessLogicContracts/IReportLogic.cs b/University/UniversityContracts/BuisnessLogicContracts/IReportLogic.cs new file mode 100644 index 0000000..c5e3818 --- /dev/null +++ b/University/UniversityContracts/BuisnessLogicContracts/IReportLogic.cs @@ -0,0 +1,10 @@ +using UniversityContracts.BindingModels; +using UniversityContracts.ViewModels; + +namespace UniversityContracts.BuisnessLogicContracts +{ + public interface IReportLogic + { + List GetStudentDiscipline(ReportBindingModel model); + } +} diff --git a/University/UniversityContracts/ViewModels/ReportStudentDisciplineViewModel.cs b/University/UniversityContracts/ViewModels/ReportStudentDisciplineViewModel.cs new file mode 100644 index 0000000..9ce5ab1 --- /dev/null +++ b/University/UniversityContracts/ViewModels/ReportStudentDisciplineViewModel.cs @@ -0,0 +1,8 @@ +namespace UniversityContracts.ViewModels +{ + public class ReportStudentDisciplineViewModel + { + public string StudentName { get; set; } = string.Empty; + public List Disciplines { get; set; } = new(); + } +}