From 9284ac6bea22963b0e9946b96d3edaf5d7810d82 Mon Sep 17 00:00:00 2001 From: Programmist73 Date: Wed, 29 Mar 2023 22:21:19 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D1=81=D0=BB=D0=BE=D1=8F=20=D1=81=20=D0=BC=D0=BE=D0=B4?= =?UTF-8?q?=D0=B5=D0=BB=D1=8F=D0=BC=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TransportCompanyDataModels/IId.cs | 13 ++++++++++ .../Models/ICargo.cs | 14 +++++++++++ .../Models/IClient.cs | 22 ++++++++++++++++ .../Models/ITransportModel.cs | 14 +++++++++++ .../Models/ITransportationType.cs | 14 +++++++++++ .../Models/ITrucking.cs | 25 +++++++++++++++++++ 6 files changed, 102 insertions(+) create mode 100644 TransportCompany/TransportCompanyDataModels/IId.cs create mode 100644 TransportCompany/TransportCompanyDataModels/Models/ICargo.cs create mode 100644 TransportCompany/TransportCompanyDataModels/Models/IClient.cs create mode 100644 TransportCompany/TransportCompanyDataModels/Models/ITransportModel.cs create mode 100644 TransportCompany/TransportCompanyDataModels/Models/ITransportationType.cs create mode 100644 TransportCompany/TransportCompanyDataModels/Models/ITrucking.cs diff --git a/TransportCompany/TransportCompanyDataModels/IId.cs b/TransportCompany/TransportCompanyDataModels/IId.cs new file mode 100644 index 0000000..99882e8 --- /dev/null +++ b/TransportCompany/TransportCompanyDataModels/IId.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TransportCompanyDataModels +{ + public interface IId + { + int Id { get; } + } +} diff --git a/TransportCompany/TransportCompanyDataModels/Models/ICargo.cs b/TransportCompany/TransportCompanyDataModels/Models/ICargo.cs new file mode 100644 index 0000000..1e5cbbb --- /dev/null +++ b/TransportCompany/TransportCompanyDataModels/Models/ICargo.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TransportCompanyDataModels.Models +{ + public interface ICargo : IId + { + //тип груза + string TypeCargo { get; } + } +} diff --git a/TransportCompany/TransportCompanyDataModels/Models/IClient.cs b/TransportCompany/TransportCompanyDataModels/Models/IClient.cs new file mode 100644 index 0000000..e6949c8 --- /dev/null +++ b/TransportCompany/TransportCompanyDataModels/Models/IClient.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TransportCompanyDataModels.Models +{ + public interface IClient : IId + { + string Name { get; } + + string Surname { get; } + + //отчество + string Patronymic { get; } + + string TelephoneNumber { get; } + + string Email { get; } + } +} diff --git a/TransportCompany/TransportCompanyDataModels/Models/ITransportModel.cs b/TransportCompany/TransportCompanyDataModels/Models/ITransportModel.cs new file mode 100644 index 0000000..b186a1a --- /dev/null +++ b/TransportCompany/TransportCompanyDataModels/Models/ITransportModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TransportCompanyDataModels.Models +{ + public interface ITransportModel : IId + { + //тип транспорта для перевозки + string Tranport { get; } + } +} diff --git a/TransportCompany/TransportCompanyDataModels/Models/ITransportationType.cs b/TransportCompany/TransportCompanyDataModels/Models/ITransportationType.cs new file mode 100644 index 0000000..aae77e6 --- /dev/null +++ b/TransportCompany/TransportCompanyDataModels/Models/ITransportationType.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TransportCompanyDataModels.Models +{ + public interface ITransportationType : IId + { + //тип транспортировки + string TransportationType { get; } + } +} diff --git a/TransportCompany/TransportCompanyDataModels/Models/ITrucking.cs b/TransportCompany/TransportCompanyDataModels/Models/ITrucking.cs new file mode 100644 index 0000000..2c0996e --- /dev/null +++ b/TransportCompany/TransportCompanyDataModels/Models/ITrucking.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace TransportCompanyDataModels.Models +{ + public interface ITrucking : IId + { + int ClientId { get; } + + int CargoId { get; } + + double Price { get; } + + DateTime DateStart { get; } + + DateTime DateEnd { get; } + + int TypeTransportationId { get; } + + int TransportId { get; } + } +}