From 6cb34fba44b080ca44157df0f0ccf14df6be42b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D1=8C=D1=84=D0=B8=D1=8F=20=D0=A2=D1=83=D0=BA?= =?UTF-8?q?=D0=B0=D0=B5=D0=B2=D0=B0?= Date: Mon, 3 Apr 2023 17:26:05 +0300 Subject: [PATCH] =?UTF-8?q?=D1=80=D0=B5=D0=B0=D0=BB=D0=B8=D0=B7=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D1=8F=20View=20Model?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ViewModels/CircleViewModel.cs | 20 ++++++++++++++++++ .../ViewModels/ClientViewModel.cs | 18 ++++++++++++++++ .../ViewModels/EmployeeViewModel.cs | 18 ++++++++++++++++ .../ViewModels/LessonViewModel.cs | 21 +++++++++++++++++++ .../ViewModels/PaymentViewModel.cs | 18 ++++++++++++++++ .../ViewModels/ReportCircleLessonViewModel.cs | 16 ++++++++++++++ .../ViewModels/ReportCircleViewModel.cs | 16 ++++++++++++++ .../ViewModels/ReportLessonCircleViewModel.cs | 16 ++++++++++++++ .../ViewModels/ReportViewerLessonModel.cs | 15 +++++++++++++ 9 files changed, 158 insertions(+) create mode 100644 School/SchoolContracts/ViewModels/CircleViewModel.cs create mode 100644 School/SchoolContracts/ViewModels/ClientViewModel.cs create mode 100644 School/SchoolContracts/ViewModels/EmployeeViewModel.cs create mode 100644 School/SchoolContracts/ViewModels/LessonViewModel.cs create mode 100644 School/SchoolContracts/ViewModels/PaymentViewModel.cs create mode 100644 School/SchoolContracts/ViewModels/ReportCircleLessonViewModel.cs create mode 100644 School/SchoolContracts/ViewModels/ReportCircleViewModel.cs create mode 100644 School/SchoolContracts/ViewModels/ReportLessonCircleViewModel.cs create mode 100644 School/SchoolContracts/ViewModels/ReportViewerLessonModel.cs diff --git a/School/SchoolContracts/ViewModels/CircleViewModel.cs b/School/SchoolContracts/ViewModels/CircleViewModel.cs new file mode 100644 index 0000000..ffee3eb --- /dev/null +++ b/School/SchoolContracts/ViewModels/CircleViewModel.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchoolContracts.ViewModels +{ + public class CircleViewModel + { + public int Id { get; set; } + [DisplayName("Дата начала кружка")] + public DateTime StartDate { get; set; } + public int ClientId { get; set; } + public int LessonId { get; set; } + public Dictionary CircleLessons { get; set; } + + } +} diff --git a/School/SchoolContracts/ViewModels/ClientViewModel.cs b/School/SchoolContracts/ViewModels/ClientViewModel.cs new file mode 100644 index 0000000..0218dd9 --- /dev/null +++ b/School/SchoolContracts/ViewModels/ClientViewModel.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchoolContracts.ViewModels +{ + public class ClientViewModel + { + public int Id { get; set; } + public string ClientName { get; set; } + public string ClientEmail { get; set; } + public string ClientPassword { get; set; } + public string ClientPhone { get; set; } + } + +} diff --git a/School/SchoolContracts/ViewModels/EmployeeViewModel.cs b/School/SchoolContracts/ViewModels/EmployeeViewModel.cs new file mode 100644 index 0000000..e361761 --- /dev/null +++ b/School/SchoolContracts/ViewModels/EmployeeViewModel.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchoolContracts.ViewModels +{ + public class EmployeeViewModel + { + public int Id { get; set; } + public string EmployeeName { get; set; } + public string EmployeeEmail { get; set; } + public string EmployeePhone { get; set; } + public string EmployeePassword { get; set;} + } + +} diff --git a/School/SchoolContracts/ViewModels/LessonViewModel.cs b/School/SchoolContracts/ViewModels/LessonViewModel.cs new file mode 100644 index 0000000..f25bac7 --- /dev/null +++ b/School/SchoolContracts/ViewModels/LessonViewModel.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchoolContracts.ViewModels +{ + public class LessonViewModel + { + public int Id { get; set; } + [DisplayName("Название занятия")] + public string LessonName { get; set; } + [DisplayName("стоимость занятия")] + public decimal LessonCost { get; set; } + public int? EmployeeId { get; set; } + public string EmployeeName { get; set; } + public Dictionary CircleLessons { get; set; } + } +} diff --git a/School/SchoolContracts/ViewModels/PaymentViewModel.cs b/School/SchoolContracts/ViewModels/PaymentViewModel.cs new file mode 100644 index 0000000..4471296 --- /dev/null +++ b/School/SchoolContracts/ViewModels/PaymentViewModel.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchoolContracts.ViewModels +{ + public class PaymentViewModel + { + public int Id { get; set; } + public decimal Sum { get; set; } + public decimal Remains { get; set; } + public DateTime? DateOfPayment { get; set; } + public int LessonId { get; set; } + } + +} diff --git a/School/SchoolContracts/ViewModels/ReportCircleLessonViewModel.cs b/School/SchoolContracts/ViewModels/ReportCircleLessonViewModel.cs new file mode 100644 index 0000000..9720f6d --- /dev/null +++ b/School/SchoolContracts/ViewModels/ReportCircleLessonViewModel.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchoolContracts.ViewModels +{ + public class ReportCircleLessonViewModel + { + public DateTime? CircleDate { get; set; } + public List Lessons { get; set; } + public int TotalCount { get; set; } + } + +} diff --git a/School/SchoolContracts/ViewModels/ReportCircleViewModel.cs b/School/SchoolContracts/ViewModels/ReportCircleViewModel.cs new file mode 100644 index 0000000..cf89e3e --- /dev/null +++ b/School/SchoolContracts/ViewModels/ReportCircleViewModel.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchoolContracts.ViewModels +{ + public class ReportCircleViewModel + { + public DateTime DateCreate { get; set; } + public string ClientName { get; set; } + public decimal Sum { get; set; } + + } +} diff --git a/School/SchoolContracts/ViewModels/ReportLessonCircleViewModel.cs b/School/SchoolContracts/ViewModels/ReportLessonCircleViewModel.cs new file mode 100644 index 0000000..dff0189 --- /dev/null +++ b/School/SchoolContracts/ViewModels/ReportLessonCircleViewModel.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchoolContracts.ViewModels +{ + public class ReportLessonCircleViewModel + { + public string Name { get; set; } + public List Circles { get; set; } + public int TotalCount { get; set; } + + } +} diff --git a/School/SchoolContracts/ViewModels/ReportViewerLessonModel.cs b/School/SchoolContracts/ViewModels/ReportViewerLessonModel.cs new file mode 100644 index 0000000..d2e13a8 --- /dev/null +++ b/School/SchoolContracts/ViewModels/ReportViewerLessonModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchoolContracts.ViewModels +{ + public class ReportViewerLessonModel + { + public string Name { get; set; } + public int Count { get; set; } + + } +}