реализация Binding model

This commit is contained in:
Альфия Тукаева 2023-04-03 17:14:39 +03:00
parent 932aa913fc
commit 4849c5aca6
11 changed files with 172 additions and 0 deletions

25
School/School.sln Normal file
View File

@ -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

7
School/School/Class1.cs Normal file
View File

@ -0,0 +1,7 @@
namespace School
{
public class Class1
{
}
}

View File

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@ -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<int, string> CircleLessons { get; set; }
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>