Чтобы дойти до цели, человеку нужно только одно. Идти

This commit is contained in:
Alenka 2024-02-07 00:36:40 +04:00
parent 06b3bf23f2
commit ab943c7a06
5 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,10 @@
using JewelryShopDataModels;
namespace JewelryStoreDataModels.Models
{
public interface IComponentModel : IId
{
string ComponentName { get; }
double Cost { get; }
}
}

View File

@ -0,0 +1,7 @@
namespace JewelryShopDataModels
{
public interface IId
{
int Id { get; }
}
}

View File

@ -0,0 +1,11 @@
using JewelryShopDataModels;
namespace JewelryStoreDataModels.Models
{
public interface IJewelModel : IId
{
string JewelName { get; }
double Price { get; }
Dictionary<int, (IComponentModel, int)> JewelComponents { get; }
}
}

View File

@ -0,0 +1,15 @@
using JewelryShopDataModels;
using JewelryStoreDataModels.Enums;
namespace JewelryStoreDataModels.Models
{
public interface IOrderModel : IId
{
int JewelId { get; }
int Count { get; }
double Sum { get; }
OrderStatus Status { get; }
DateTime DateCreate { get; }
DateTime? DateImplement { get; }
}
}

View File

@ -0,0 +1,11 @@
namespace JewelryStoreDataModels.Enums
{
public enum OrderStatus
{
Неизвестен = -1,
Принят = 0,
Выполняется = 1,
Готов = 2,
Выдан = 3
}
}