Presnyakova V.V Lab_1 #1
@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
11
AbstractJewelryStoreModels/Enums/OrderStatus.cs
Normal file
11
AbstractJewelryStoreModels/Enums/OrderStatus.cs
Normal file
@ -0,0 +1,11 @@
|
||||
namespace AbstractJewelryStoreModels.Enums
|
||||
{
|
||||
public enum OrderStatus
|
||||
{
|
||||
Неизвестен = -1,
|
||||
Принят = 0,
|
||||
Выполняется = 1,
|
||||
Готов = 2,
|
||||
Выдан = 3
|
||||
}
|
||||
}
|
7
AbstractJewelryStoreModels/IId.cs
Normal file
7
AbstractJewelryStoreModels/IId.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace AbstractJewelryStoreModels
|
||||
{
|
||||
public interface IId
|
||||
{
|
||||
int Id { get; }
|
||||
}
|
||||
}
|
14
AbstractJewelryStoreModels/Models/IComponentModel.cs
Normal file
14
AbstractJewelryStoreModels/Models/IComponentModel.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AbstractJewelryStoreModels.Models
|
||||
{
|
||||
internal class IComponentModel : IId
|
||||
{
|
||||
string ComponentName { get; }
|
||||
double Cost { get; }
|
||||
}
|
||||
}
|
20
AbstractJewelryStoreModels/Models/IOrderModel.cs
Normal file
20
AbstractJewelryStoreModels/Models/IOrderModel.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using AbstractJewelryStoreModels.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AbstractJewelryStoreModels.Models
|
||||
{
|
||||
internal class IOrderModel : IId
|
||||
{
|
||||
int ProductId { get; }
|
||||
int Count { get; }
|
||||
double Sum { get; }
|
||||
OrderStatus Status { get; }
|
||||
DateTime DateCreate { get; }
|
||||
DateTime? DateImplement { get; }
|
||||
|
||||
}
|
||||
}
|
16
AbstractJewelryStoreModels/Models/IProductModel.cs
Normal file
16
AbstractJewelryStoreModels/Models/IProductModel.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace AbstractJewelryStoreModels.Models
|
||||
{
|
||||
internal class IProductModel : IId
|
||||
{
|
||||
string ProductName { get; }
|
||||
double Price { get; }
|
||||
Dictionary<int, (IComponentModel, int)> ProductComponents { get; }
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user