From 4849c5aca6e8693a0dfcb177a7a8f5eca0e065d2 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:14:39 +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=20Binding=20model?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- School/School.sln | 25 +++++++++++++++++++ School/School/Class1.cs | 7 ++++++ School/School/School.csproj | 9 +++++++ .../BindingModels/CircleBindingModel.cs | 20 +++++++++++++++ .../BindingModels/ClientBindingModel.cs | 19 ++++++++++++++ .../BindingModels/EmployeeBindingModel.cs | 18 +++++++++++++ .../BindingModels/LessonBindingModel.cs | 16 ++++++++++++ .../BindingModels/PaymentBindingModel.cs | 18 +++++++++++++ .../BindingModels/PaymentDateBindingModel.cs | 14 +++++++++++ .../BindingModels/ReportBindingModel.cs | 17 +++++++++++++ School/SchoolContracts/SchoolContracts.csproj | 9 +++++++ 11 files changed, 172 insertions(+) create mode 100644 School/School.sln create mode 100644 School/School/Class1.cs create mode 100644 School/School/School.csproj create mode 100644 School/SchoolContracts/BindingModels/CircleBindingModel.cs create mode 100644 School/SchoolContracts/BindingModels/ClientBindingModel.cs create mode 100644 School/SchoolContracts/BindingModels/EmployeeBindingModel.cs create mode 100644 School/SchoolContracts/BindingModels/LessonBindingModel.cs create mode 100644 School/SchoolContracts/BindingModels/PaymentBindingModel.cs create mode 100644 School/SchoolContracts/BindingModels/PaymentDateBindingModel.cs create mode 100644 School/SchoolContracts/BindingModels/ReportBindingModel.cs create mode 100644 School/SchoolContracts/SchoolContracts.csproj diff --git a/School/School.sln b/School/School.sln new file mode 100644 index 0000000..b6cb592 --- /dev/null +++ b/School/School.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.4.33205.214 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SchoolContracts", "SchoolContracts\SchoolContracts.csproj", "{CE6AA228-4B99-4071-9791-D6117703F66A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {CE6AA228-4B99-4071-9791-D6117703F66A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CE6AA228-4B99-4071-9791-D6117703F66A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CE6AA228-4B99-4071-9791-D6117703F66A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CE6AA228-4B99-4071-9791-D6117703F66A}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {9198C564-81B4-4B5A-B8A0-D02AD48A49D7} + EndGlobalSection +EndGlobal diff --git a/School/School/Class1.cs b/School/School/Class1.cs new file mode 100644 index 0000000..3e3fffd --- /dev/null +++ b/School/School/Class1.cs @@ -0,0 +1,7 @@ +namespace School +{ + public class Class1 + { + + } +} \ No newline at end of file diff --git a/School/School/School.csproj b/School/School/School.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/School/School/School.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/School/SchoolContracts/BindingModels/CircleBindingModel.cs b/School/SchoolContracts/BindingModels/CircleBindingModel.cs new file mode 100644 index 0000000..b647522 --- /dev/null +++ b/School/SchoolContracts/BindingModels/CircleBindingModel.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchoolContracts.BindingModel +{ + public class CircleBindingModel + { + public int Id { get; set; } + public DateTime StartDate { get; set; } = DateTime.Now; + public int ClientId { get; set; } + public int LessonId { get; set; } + public Dictionary CircleLessons { get; set; } + + } + +} + diff --git a/School/SchoolContracts/BindingModels/ClientBindingModel.cs b/School/SchoolContracts/BindingModels/ClientBindingModel.cs new file mode 100644 index 0000000..4f138c6 --- /dev/null +++ b/School/SchoolContracts/BindingModels/ClientBindingModel.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchoolContracts.BindingModel +{ + public class ClientBindingModel + { + public int Id { get; set; } + public string ClientName { get; set; } = string.Empty; + public string ClientEmail { get; set; } = string.Empty; + public string ClientPhone { get; set; } = string.Empty; + public string ClientPassword { get; set; } = string.Empty; + } +} + + diff --git a/School/SchoolContracts/BindingModels/EmployeeBindingModel.cs b/School/SchoolContracts/BindingModels/EmployeeBindingModel.cs new file mode 100644 index 0000000..3bd9d79 --- /dev/null +++ b/School/SchoolContracts/BindingModels/EmployeeBindingModel.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchoolContracts.BindingModel +{ + public class EmployeeBindingModel + { + public int Id { get; set; } + public string EmployeeName { get; set; } = string.Empty; + public string EmployeePassword { get; set; } = string.Empty; + public string EmployeeEmail { get; set; } = string.Empty; + public string EmployeePhone { get; set; } = string.Empty; + } + +} diff --git a/School/SchoolContracts/BindingModels/LessonBindingModel.cs b/School/SchoolContracts/BindingModels/LessonBindingModel.cs new file mode 100644 index 0000000..b913fc1 --- /dev/null +++ b/School/SchoolContracts/BindingModels/LessonBindingModel.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchoolContracts.BindingModel +{ + public class LessonBindingModel + { + public int Id { get; set; } + public string LessonName { get; set; } = string.Empty; + public decimal LessonCost { get; set; } + public int? EmployeeId { get; set; } + } +} diff --git a/School/SchoolContracts/BindingModels/PaymentBindingModel.cs b/School/SchoolContracts/BindingModels/PaymentBindingModel.cs new file mode 100644 index 0000000..d94e296 --- /dev/null +++ b/School/SchoolContracts/BindingModels/PaymentBindingModel.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchoolContracts.BindingModel +{ + public class PaymentBindingModel + { + 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/BindingModels/PaymentDateBindingModel.cs b/School/SchoolContracts/BindingModels/PaymentDateBindingModel.cs new file mode 100644 index 0000000..fbe9e26 --- /dev/null +++ b/School/SchoolContracts/BindingModels/PaymentDateBindingModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchoolContracts.BindingModels +{ + public class PaymentDateBindingModel + { + public DateTime DateTo { get; set; } + public DateTime DateFrom { get; set; } + } +} diff --git a/School/SchoolContracts/BindingModels/ReportBindingModel.cs b/School/SchoolContracts/BindingModels/ReportBindingModel.cs new file mode 100644 index 0000000..9d8a5de --- /dev/null +++ b/School/SchoolContracts/BindingModels/ReportBindingModel.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchoolContracts.BindingModel +{ + public class ReportBindingModel + { + public string FileName { get; set; } = string.Empty; + public DateTime? DateFrom { get; set; } + public DateTime? DateTo { get; set; } + public int UserId { get; set; } + } + +} diff --git a/School/SchoolContracts/SchoolContracts.csproj b/School/SchoolContracts/SchoolContracts.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/School/SchoolContracts/SchoolContracts.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + +