From 53703e0fd6d74dcebee7a8f315bd29480562e7e4 Mon Sep 17 00:00:00 2001 From: MaxKarme <91691525+MaxKarme@users.noreply.github.com> Date: Sun, 9 Apr 2023 00:26:13 +0400 Subject: [PATCH] finalized report --- .../BuisnessLogicContracts/IReportLogic.cs | 7 ++++++- .../ViewModels/ReportStudentsViewModel.cs | 14 ++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 University/UniversityContracts/ViewModels/ReportStudentsViewModel.cs diff --git a/University/UniversityContracts/BuisnessLogicContracts/IReportLogic.cs b/University/UniversityContracts/BuisnessLogicContracts/IReportLogic.cs index c5e3818..1a418ed 100644 --- a/University/UniversityContracts/BuisnessLogicContracts/IReportLogic.cs +++ b/University/UniversityContracts/BuisnessLogicContracts/IReportLogic.cs @@ -1,4 +1,5 @@ -using UniversityContracts.BindingModels; + +using UniversityContracts.BindingModels; using UniversityContracts.ViewModels; namespace UniversityContracts.BuisnessLogicContracts @@ -6,5 +7,9 @@ namespace UniversityContracts.BuisnessLogicContracts public interface IReportLogic { List GetStudentDiscipline(ReportBindingModel model); + List GetStudens(ReportBindingModel model); + void SaveStudentsToWord(); + void SaveStudentsToExcel(); + void SaveStudentsToPdf(); } } diff --git a/University/UniversityContracts/ViewModels/ReportStudentsViewModel.cs b/University/UniversityContracts/ViewModels/ReportStudentsViewModel.cs new file mode 100644 index 0000000..385cf79 --- /dev/null +++ b/University/UniversityContracts/ViewModels/ReportStudentsViewModel.cs @@ -0,0 +1,14 @@ +using UniversityDataModels.Enums; + +namespace UniversityContracts.ViewModels +{ + public class ReportStudentsViewModel + { + string StudentName { get; set; } = string.Empty; + string ExaminationForm { get; set; } = string.Empty; + MarkType mark { get; set; } = MarkType.Неизвестен; + DateTime ExaminationResultDate { get; set; } + int HoursCount { get; set; } + DateTime StatementDate { get; set; } + } +}