Слой моделей

This commit is contained in:
Вячеслав Иванов 2024-02-24 11:50:48 +04:00
parent fc54365a61
commit ab011997b0
13 changed files with 164 additions and 0 deletions

View File

@ -0,0 +1,49 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.7.34024.191
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TransportCompanyView", "TransportCompanyView\TransportCompanyView.csproj", "{6DBE2D7A-A9FD-4FBC-BD54-28FDBB359F7A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TransportCompanyDataModels", "TransportCompanyDataModels\TransportCompanyDataModels.csproj", "{49B3AF87-E6E5-4B8C-B2B6-EC3BD9509DA2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TransportCompanyContracts", "TransportCompanyContracts\TransportCompanyContracts.csproj", "{842017C2-FA27-4317-8C12-5CF64C85F2E0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TransportCompanyBusinessLogic", "TransportCompanyBusinessLogic\TransportCompanyBusinessLogic.csproj", "{49A4EC0D-8412-42E4-B4C1-3B5FDDEF0D70}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TransportCompanyListImplement", "TransportCompanyListImplement\TransportCompanyListImplement.csproj", "{0772D7CB-D2B3-4DCD-8135-734AB2F00A04}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6DBE2D7A-A9FD-4FBC-BD54-28FDBB359F7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6DBE2D7A-A9FD-4FBC-BD54-28FDBB359F7A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6DBE2D7A-A9FD-4FBC-BD54-28FDBB359F7A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6DBE2D7A-A9FD-4FBC-BD54-28FDBB359F7A}.Release|Any CPU.Build.0 = Release|Any CPU
{49B3AF87-E6E5-4B8C-B2B6-EC3BD9509DA2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{49B3AF87-E6E5-4B8C-B2B6-EC3BD9509DA2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{49B3AF87-E6E5-4B8C-B2B6-EC3BD9509DA2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{49B3AF87-E6E5-4B8C-B2B6-EC3BD9509DA2}.Release|Any CPU.Build.0 = Release|Any CPU
{842017C2-FA27-4317-8C12-5CF64C85F2E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{842017C2-FA27-4317-8C12-5CF64C85F2E0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{842017C2-FA27-4317-8C12-5CF64C85F2E0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{842017C2-FA27-4317-8C12-5CF64C85F2E0}.Release|Any CPU.Build.0 = Release|Any CPU
{49A4EC0D-8412-42E4-B4C1-3B5FDDEF0D70}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{49A4EC0D-8412-42E4-B4C1-3B5FDDEF0D70}.Debug|Any CPU.Build.0 = Debug|Any CPU
{49A4EC0D-8412-42E4-B4C1-3B5FDDEF0D70}.Release|Any CPU.ActiveCfg = Release|Any CPU
{49A4EC0D-8412-42E4-B4C1-3B5FDDEF0D70}.Release|Any CPU.Build.0 = Release|Any CPU
{0772D7CB-D2B3-4DCD-8135-734AB2F00A04}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0772D7CB-D2B3-4DCD-8135-734AB2F00A04}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0772D7CB-D2B3-4DCD-8135-734AB2F00A04}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0772D7CB-D2B3-4DCD-8135-734AB2F00A04}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C2B7A378-AF37-4814-81FF-DC69B6BBFD90}
EndGlobalSection
EndGlobal

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,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,7 @@
namespace TransportCompanyDataModels
{
public interface IId
{
int Id { get; }
}
}

View File

@ -0,0 +1,8 @@
namespace TransportCompanyDataModels.Models
{
public interface ICargoModel : IId
{
string Name { get; }
int Weight { get; }
}
}

View File

@ -0,0 +1,7 @@
namespace TransportCompanyDataModels.Models
{
public interface IDriverModel : IId
{
string Fio { get; }
}
}

View File

@ -0,0 +1,8 @@
namespace TransportCompanyDataModels.Models
{
public interface IPointModel : IId
{
string Name { get; }
string Address { get; }
}
}

View File

@ -0,0 +1,9 @@
namespace TransportCompanyDataModels.Models
{
public interface ITransportModel : IId
{
string Model { get; }
int LoadCapacity { get; }
string StateNumber { get; }
}
}

View File

@ -0,0 +1,12 @@
namespace TransportCompanyDataModels.Models
{
public interface ITransportationModel : IId
{
int DriverId { get; }
int TransportId { get; }
int PointToId { get; }
int PointFromId { get; }
DateTime DepartureDate { get; }
DateTime ArrivalDate { get; }
}
}

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,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,17 @@
namespace TransportCompanyView
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize();
Application.Run(new Form1());
}
}
}

View File

@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
</Project>