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; } + + } +}