Слой моделей
This commit is contained in:
parent
fc54365a61
commit
ab011997b0
49
TransportCompany/TransportCompany.sln
Normal file
49
TransportCompany/TransportCompany.sln
Normal 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
|
@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
7
TransportCompany/TransportCompanyDataModels/IId.cs
Normal file
7
TransportCompany/TransportCompanyDataModels/IId.cs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
namespace TransportCompanyDataModels
|
||||||
|
{
|
||||||
|
public interface IId
|
||||||
|
{
|
||||||
|
int Id { get; }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
namespace TransportCompanyDataModels.Models
|
||||||
|
{
|
||||||
|
public interface ICargoModel : IId
|
||||||
|
{
|
||||||
|
string Name { get; }
|
||||||
|
int Weight { get; }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
namespace TransportCompanyDataModels.Models
|
||||||
|
{
|
||||||
|
public interface IDriverModel : IId
|
||||||
|
{
|
||||||
|
string Fio { get; }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,8 @@
|
|||||||
|
namespace TransportCompanyDataModels.Models
|
||||||
|
{
|
||||||
|
public interface IPointModel : IId
|
||||||
|
{
|
||||||
|
string Name { get; }
|
||||||
|
string Address { get; }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace TransportCompanyDataModels.Models
|
||||||
|
{
|
||||||
|
public interface ITransportModel : IId
|
||||||
|
{
|
||||||
|
string Model { get; }
|
||||||
|
int LoadCapacity { get; }
|
||||||
|
string StateNumber { get; }
|
||||||
|
}
|
||||||
|
}
|
@ -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; }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
17
TransportCompany/TransportCompanyView/Program.cs
Normal file
17
TransportCompany/TransportCompanyView/Program.cs
Normal 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());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -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>
|
Loading…
Reference in New Issue
Block a user