diff --git a/PlumbingRepair/PlumbingRepair.sln b/PlumbingRepair/PlumbingRepair.sln index 049c5af..15ecd93 100644 --- a/PlumbingRepair/PlumbingRepair.sln +++ b/PlumbingRepair/PlumbingRepair.sln @@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.3.32825.248 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlumbingRepair", "PlumbingRepair\PlumbingRepair.csproj", "{F0AEA1F3-7D99-4EC1-B79F-97E6927ECBCA}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PlumbingRepair", "PlumbingRepair\PlumbingRepair.csproj", "{F0AEA1F3-7D99-4EC1-B79F-97E6927ECBCA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlumbingRepairDataModels", "PlumbingRepairDataModels\PlumbingRepairDataModels.csproj", "{90DD7D7A-91FD-403D-8D3A-FE8842AA5848}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -15,6 +17,10 @@ Global {F0AEA1F3-7D99-4EC1-B79F-97E6927ECBCA}.Debug|Any CPU.Build.0 = Debug|Any CPU {F0AEA1F3-7D99-4EC1-B79F-97E6927ECBCA}.Release|Any CPU.ActiveCfg = Release|Any CPU {F0AEA1F3-7D99-4EC1-B79F-97E6927ECBCA}.Release|Any CPU.Build.0 = Release|Any CPU + {90DD7D7A-91FD-403D-8D3A-FE8842AA5848}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {90DD7D7A-91FD-403D-8D3A-FE8842AA5848}.Debug|Any CPU.Build.0 = Debug|Any CPU + {90DD7D7A-91FD-403D-8D3A-FE8842AA5848}.Release|Any CPU.ActiveCfg = Release|Any CPU + {90DD7D7A-91FD-403D-8D3A-FE8842AA5848}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/PlumbingRepair/PlumbingRepairDataModels/Enums/OrderStatus.cs b/PlumbingRepair/PlumbingRepairDataModels/Enums/OrderStatus.cs new file mode 100644 index 0000000..945f357 --- /dev/null +++ b/PlumbingRepair/PlumbingRepairDataModels/Enums/OrderStatus.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PlumbingRepairDataModels.Enums +{ + public enum OrderStatus + { + Неизвестен = -1, + Принят = 0, + Выполняется = 1, + Готов = 2, + Выдан = 3 + } +} diff --git a/PlumbingRepair/PlumbingRepairDataModels/IId.cs b/PlumbingRepair/PlumbingRepairDataModels/IId.cs new file mode 100644 index 0000000..a3fe7a2 --- /dev/null +++ b/PlumbingRepair/PlumbingRepairDataModels/IId.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PlumbingRepairDataModels +{ + public interface IId + { + int Id { get; } + } +} diff --git a/PlumbingRepair/PlumbingRepairDataModels/Models/IComponentModel.cs b/PlumbingRepair/PlumbingRepairDataModels/Models/IComponentModel.cs new file mode 100644 index 0000000..183a6fc --- /dev/null +++ b/PlumbingRepair/PlumbingRepairDataModels/Models/IComponentModel.cs @@ -0,0 +1,8 @@ +namespace PlumbingRepairDataModels.Models +{ + public interface IComponentModel : IId + { + string ComponentName { get; } + double Cost { get; } + } +} diff --git a/PlumbingRepair/PlumbingRepairDataModels/Models/IOrderModel.cs b/PlumbingRepair/PlumbingRepairDataModels/Models/IOrderModel.cs new file mode 100644 index 0000000..96c83f4 --- /dev/null +++ b/PlumbingRepair/PlumbingRepairDataModels/Models/IOrderModel.cs @@ -0,0 +1,15 @@ +using PlumbingRepairDataModels.Enums; + +namespace PlumbingRepairDataModels.Models +{ + public interface IOrderModel : IId + { + int WorkId { get; } + string WorkName { get; } + int Count { get; } + double Sum { get; } + OrderStatus Status { get; } + DateTime DateCreate { get; } + DateTime? DateImplement { get; } + } +} diff --git a/PlumbingRepair/PlumbingRepairDataModels/Models/IWorkModel.cs b/PlumbingRepair/PlumbingRepairDataModels/Models/IWorkModel.cs new file mode 100644 index 0000000..420db6a --- /dev/null +++ b/PlumbingRepair/PlumbingRepairDataModels/Models/IWorkModel.cs @@ -0,0 +1,9 @@ +namespace PlumbingRepairDataModels.Models +{ + public interface IWorkModel : IId + { + string WorkName { get; } + double Price { get; } + Dictionary WorkComponents { get; } + } +} diff --git a/PlumbingRepair/PlumbingRepairDataModels/PlumbingRepairDataModels.csproj b/PlumbingRepair/PlumbingRepairDataModels/PlumbingRepairDataModels.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/PlumbingRepair/PlumbingRepairDataModels/PlumbingRepairDataModels.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + +