From e317e0d21a0fd86767201bead098e8677712a8b8 Mon Sep 17 00:00:00 2001 From: prodigygirl Date: Sun, 29 Jan 2023 18:05:49 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=BE=D0=B5=D0=BA=D1=82=20=D1=81?= =?UTF-8?q?=20=D0=BC=D0=BE=D0=B4=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 --- .../Enums/OrderStatus.cs | 17 +++++++++++++++++ .../FurnitureAssemblyDataModels.csproj | 15 +++++++++++++++ .../FurnitureAssemblyDataModels/IId.cs | 13 +++++++++++++ .../Models/IComponentModel.cs | 14 ++++++++++++++ .../Models/IFurnitureModel.cs | 15 +++++++++++++++ .../Models/IOrderModel.cs | 19 +++++++++++++++++++ 6 files changed, 93 insertions(+) create mode 100644 FurnitureAssembly/FurnitureAssemblyDataModels/Enums/OrderStatus.cs create mode 100644 FurnitureAssembly/FurnitureAssemblyDataModels/FurnitureAssemblyDataModels.csproj create mode 100644 FurnitureAssembly/FurnitureAssemblyDataModels/IId.cs create mode 100644 FurnitureAssembly/FurnitureAssemblyDataModels/Models/IComponentModel.cs create mode 100644 FurnitureAssembly/FurnitureAssemblyDataModels/Models/IFurnitureModel.cs create mode 100644 FurnitureAssembly/FurnitureAssemblyDataModels/Models/IOrderModel.cs diff --git a/FurnitureAssembly/FurnitureAssemblyDataModels/Enums/OrderStatus.cs b/FurnitureAssembly/FurnitureAssemblyDataModels/Enums/OrderStatus.cs new file mode 100644 index 0000000..0f80752 --- /dev/null +++ b/FurnitureAssembly/FurnitureAssemblyDataModels/Enums/OrderStatus.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureAssemblyDataModels.Enums +{ + public enum OrderStatus + { + Неизвестен = -1, + Принят = 0, + Выполняется = 1, + Готов = 2, + Выдан = 3 + } +} diff --git a/FurnitureAssembly/FurnitureAssemblyDataModels/FurnitureAssemblyDataModels.csproj b/FurnitureAssembly/FurnitureAssemblyDataModels/FurnitureAssemblyDataModels.csproj new file mode 100644 index 0000000..17fe669 --- /dev/null +++ b/FurnitureAssembly/FurnitureAssemblyDataModels/FurnitureAssemblyDataModels.csproj @@ -0,0 +1,15 @@ + + + + net6.0 + enable + enable + + + + + + + + + diff --git a/FurnitureAssembly/FurnitureAssemblyDataModels/IId.cs b/FurnitureAssembly/FurnitureAssemblyDataModels/IId.cs new file mode 100644 index 0000000..07be087 --- /dev/null +++ b/FurnitureAssembly/FurnitureAssemblyDataModels/IId.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureAssemblyDataModels +{ + public interface IId + { + int Id { get; } + } +} diff --git a/FurnitureAssembly/FurnitureAssemblyDataModels/Models/IComponentModel.cs b/FurnitureAssembly/FurnitureAssemblyDataModels/Models/IComponentModel.cs new file mode 100644 index 0000000..6ade160 --- /dev/null +++ b/FurnitureAssembly/FurnitureAssemblyDataModels/Models/IComponentModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureAssemblyDataModels.Models +{ + public interface IComponentModel : IId + { + string ComponentName { get; } + double Cost { get; } + } +} diff --git a/FurnitureAssembly/FurnitureAssemblyDataModels/Models/IFurnitureModel.cs b/FurnitureAssembly/FurnitureAssemblyDataModels/Models/IFurnitureModel.cs new file mode 100644 index 0000000..217f579 --- /dev/null +++ b/FurnitureAssembly/FurnitureAssemblyDataModels/Models/IFurnitureModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureAssemblyDataModels.Models +{ + public interface IFurnitureModel : IId + { + string FurnitureName { get; } + double Price { get; } + Dictionary FurnitureComponents { get; } + } +} diff --git a/FurnitureAssembly/FurnitureAssemblyDataModels/Models/IOrderModel.cs b/FurnitureAssembly/FurnitureAssemblyDataModels/Models/IOrderModel.cs new file mode 100644 index 0000000..6334ef8 --- /dev/null +++ b/FurnitureAssembly/FurnitureAssemblyDataModels/Models/IOrderModel.cs @@ -0,0 +1,19 @@ +using FurnitureAssemblyDataModels.Enums; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureAssemblyDataModels.Models +{ + public interface IOrderModel : IId + { + int FurnitureId { get; } + int Count { get; } + double Sum { get; } + OrderStatus Status { get; } + DateTime DateCreate { get; } + DateTime? DateImplement { get; } + } +}