реализация Binding model
This commit is contained in:
parent
932aa913fc
commit
4849c5aca6
25
School/School.sln
Normal file
25
School/School.sln
Normal 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
7
School/School/Class1.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace School
|
||||
{
|
||||
public class Class1
|
||||
{
|
||||
|
||||
}
|
||||
}
|
9
School/School/School.csproj
Normal file
9
School/School/School.csproj
Normal file
@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
20
School/SchoolContracts/BindingModels/CircleBindingModel.cs
Normal file
20
School/SchoolContracts/BindingModels/CircleBindingModel.cs
Normal 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; }
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
19
School/SchoolContracts/BindingModels/ClientBindingModel.cs
Normal file
19
School/SchoolContracts/BindingModels/ClientBindingModel.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
18
School/SchoolContracts/BindingModels/EmployeeBindingModel.cs
Normal file
18
School/SchoolContracts/BindingModels/EmployeeBindingModel.cs
Normal 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;
|
||||
}
|
||||
|
||||
}
|
16
School/SchoolContracts/BindingModels/LessonBindingModel.cs
Normal file
16
School/SchoolContracts/BindingModels/LessonBindingModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
18
School/SchoolContracts/BindingModels/PaymentBindingModel.cs
Normal file
18
School/SchoolContracts/BindingModels/PaymentBindingModel.cs
Normal 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; }
|
||||
}
|
||||
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
17
School/SchoolContracts/BindingModels/ReportBindingModel.cs
Normal file
17
School/SchoolContracts/BindingModels/ReportBindingModel.cs
Normal 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; }
|
||||
}
|
||||
|
||||
}
|
9
School/SchoolContracts/SchoolContracts.csproj
Normal file
9
School/SchoolContracts/SchoolContracts.csproj
Normal file
@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
Loading…
Reference in New Issue
Block a user