diff --git a/HardwareShop/HardwareShopDataModels/Enums/OrderStatus.cs b/HardwareShop/HardwareShopDataModels/Enums/OrderStatus.cs new file mode 100644 index 0000000..583169f --- /dev/null +++ b/HardwareShop/HardwareShopDataModels/Enums/OrderStatus.cs @@ -0,0 +1,11 @@ +namespace HardwareShopDataModels.Enums +{ + public enum OrderStatus + { + Неизвестен = -1, + Принят = 0, + Выполняется = 1, + Готов = 2, + Выдан = 3, + } +} diff --git a/HardwareShop/HardwareShopDataModels/Enums/UserRole.cs b/HardwareShop/HardwareShopDataModels/Enums/UserRole.cs index 13807b1..12e73d2 100644 --- a/HardwareShop/HardwareShopDataModels/Enums/UserRole.cs +++ b/HardwareShop/HardwareShopDataModels/Enums/UserRole.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace HardwareShopDataModels.Enums +namespace HardwareShopDataModels.Enums { public enum UserRole { diff --git a/HardwareShop/HardwareShopDataModels/Models/IComponentModel.cs b/HardwareShop/HardwareShopDataModels/Models/IComponentModel.cs index c5a820a..0aa9f98 100644 --- a/HardwareShop/HardwareShopDataModels/Models/IComponentModel.cs +++ b/HardwareShop/HardwareShopDataModels/Models/IComponentModel.cs @@ -2,5 +2,8 @@ { public interface IComponentModel : IId { + string ComponentName { get; } + double Cost { get; } + int UserId { get; } } } diff --git a/HardwareShop/HardwareShopDataModels/Models/IGoodModel.cs b/HardwareShop/HardwareShopDataModels/Models/IGoodModel.cs index fd830b4..322b317 100644 --- a/HardwareShop/HardwareShopDataModels/Models/IGoodModel.cs +++ b/HardwareShop/HardwareShopDataModels/Models/IGoodModel.cs @@ -1,12 +1,10 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace HardwareShopDataModels.Models +namespace HardwareShopDataModels.Models { public interface IGoodModel : IId { + string GoodName { get; } + double Price { get; } + int UserId { get; } + Dictionary GoodComponents { get; } } } diff --git a/HardwareShop/HardwareShopDataModels/Models/IOrderModel.cs b/HardwareShop/HardwareShopDataModels/Models/IOrderModel.cs index e97d889..b7b3c20 100644 --- a/HardwareShop/HardwareShopDataModels/Models/IOrderModel.cs +++ b/HardwareShop/HardwareShopDataModels/Models/IOrderModel.cs @@ -1,6 +1,15 @@ -namespace HardwareShopDataModels.Models +using HardwareShopDataModels.Enums; + +namespace HardwareShopDataModels.Models { public interface IOrderModel : IId { + int GoodId { get; } + int UserId { get; } + int Count { get; } + double Sum { get; } + OrderStatus Status { get; } + DateTime DateCreate { get; } + DateTime? DateImplement { get; } } }