Compare commits
9 Commits
main
...
BACKDEV-40
Author | SHA1 | Date | |
---|---|---|---|
930e4ed316 | |||
65599c80a2 | |||
eee043483a | |||
8b9ee21fb9 | |||
|
d7c2bc8e24 | ||
|
a328d413fa | ||
|
f6c69273df | ||
5bde6633c4 | |||
|
8049b51388 |
@ -5,6 +5,10 @@ VisualStudioVersion = 17.7.34031.279
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComputerHardwareStore", "ComputerHardwareStore\ComputerHardwareStore.csproj", "{D5DDEE2B-A0C4-430B-B00E-452BA1AB3DDA}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComputerHardwareStoreDataModels", "ComputerHardwareStoreDataModels\ComputerHardwareStoreDataModels.csproj", "{48126915-C6D4-451C-BC88-39E3C50332B8}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComputerHardwareStoreContracts", "ComputerHardwareStoreContracts\ComputerHardwareStoreContracts.csproj", "{5F394E21-2597-432B-AE73-BBAFD8D9F50E}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@ -15,6 +19,14 @@ Global
|
||||
{D5DDEE2B-A0C4-430B-B00E-452BA1AB3DDA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{D5DDEE2B-A0C4-430B-B00E-452BA1AB3DDA}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{D5DDEE2B-A0C4-430B-B00E-452BA1AB3DDA}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{48126915-C6D4-451C-BC88-39E3C50332B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{48126915-C6D4-451C-BC88-39E3C50332B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{48126915-C6D4-451C-BC88-39E3C50332B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{48126915-C6D4-451C-BC88-39E3C50332B8}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{5F394E21-2597-432B-AE73-BBAFD8D9F50E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{5F394E21-2597-432B-AE73-BBAFD8D9F50E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{5F394E21-2597-432B-AE73-BBAFD8D9F50E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{5F394E21-2597-432B-AE73-BBAFD8D9F50E}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
@ -0,0 +1,16 @@
|
||||
using ComputerHardwareStoreContracts.BindingModels;
|
||||
using ComputerHardwareStoreContracts.SearchModels;
|
||||
using ComputerHardwareStoreContracts.ViewModels;
|
||||
|
||||
namespace ComputerHardwareStoreContracts.StorageContracts
|
||||
{
|
||||
public interface IBuidStorage
|
||||
{
|
||||
List<BuildViewModel> GetFullList();
|
||||
List<BuildViewModel> GetFilteredList(BuildSearchModel model);
|
||||
BuildViewModel? GetElement(BuildSearchModel model);
|
||||
BuildViewModel? Insert(BuildBindingModel model);
|
||||
BuildViewModel? Update(BuildBindingModel model);
|
||||
BuildViewModel? Delete(BuildBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using ComputerHardwareStoreContracts.BindingModels;
|
||||
using ComputerHardwareStoreContracts.SearchModels;
|
||||
using ComputerHardwareStoreContracts.ViewModels;
|
||||
|
||||
namespace ComputerHardwareStoreContracts.StorageContracts
|
||||
{
|
||||
public interface ICommentStorage
|
||||
{
|
||||
List<CommentViewModel> GetFullList();
|
||||
List<CommentViewModel> GetFilteredList(CommentSearchModel model);
|
||||
CommentViewModel? GetElement(CommentSearchModel model);
|
||||
CommentViewModel? Insert(CommentBindingModel model);
|
||||
CommentViewModel? Update(CommentBindingModel model);
|
||||
CommentViewModel? Delete(CommentBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using ComputerHardwareStoreContracts.BindingModels;
|
||||
using ComputerHardwareStoreContracts.SearchModels;
|
||||
using ComputerHardwareStoreContracts.ViewModels;
|
||||
|
||||
namespace ComputerHardwareStoreContracts.StorageContracts
|
||||
{
|
||||
public interface IComponentStorage
|
||||
{
|
||||
List<ComponentViewModel> GetFullList();
|
||||
List<ComponentViewModel> GetFilteredList(ComponentSearchModel model);
|
||||
ComponentViewModel? GetElement(ComponentSearchModel model);
|
||||
ComponentViewModel? Insert(ComponentBindingModel model);
|
||||
ComponentViewModel? Update(ComponentBindingModel model);
|
||||
ComponentViewModel? Delete(ComponentBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using ComputerHardwareStoreContracts.BindingModels;
|
||||
using ComputerHardwareStoreContracts.SearchModels;
|
||||
using ComputerHardwareStoreContracts.ViewModels;
|
||||
|
||||
namespace ComputerHardwareStoreContracts.StorageContracts
|
||||
{
|
||||
public interface IOrderStorage
|
||||
{
|
||||
List<OrderViewModel> GetFullList();
|
||||
List<OrderViewModel> GetFilteredList(OrderSearchModel model);
|
||||
OrderViewModel? GetElement(OrderSearchModel model);
|
||||
OrderViewModel? Insert(OrderBindingModel model);
|
||||
OrderViewModel? Update(OrderBindingModel model);
|
||||
OrderViewModel? Delete(OrderBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using ComputerHardwareStoreContracts.BindingModels;
|
||||
using ComputerHardwareStoreContracts.SearchModels;
|
||||
using ComputerHardwareStoreContracts.ViewModels;
|
||||
|
||||
namespace ComputerHardwareStoreContracts.StorageContracts
|
||||
{
|
||||
public interface IProductStorage
|
||||
{
|
||||
List<ProductViewModel> GetFullList();
|
||||
List<ProductViewModel> GetFilteredList(ProductSearchModel model);
|
||||
ProductViewModel? GetElement(ProductSearchModel model);
|
||||
ProductViewModel? Insert(ProductBindingModel model);
|
||||
ProductViewModel? Update(ProductBindingModel model);
|
||||
ProductViewModel? Delete(ProductBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using ComputerHardwareStoreContracts.BindingModels;
|
||||
using ComputerHardwareStoreContracts.SearchModels;
|
||||
using ComputerHardwareStoreContracts.ViewModels;
|
||||
|
||||
namespace ComputerHardwareStoreContracts.StorageContracts
|
||||
{
|
||||
public interface IPurchaseStorage
|
||||
{
|
||||
List<PurchaseViewModel> GetFullList();
|
||||
List<PurchaseViewModel> GetFilteredList(PurchaseSearchModel model);
|
||||
PurchaseViewModel? GetElement(PurchaseSearchModel model);
|
||||
PurchaseViewModel? Insert(PurchaseBindingModel model);
|
||||
PurchaseViewModel? Update(PurchaseBindingModel model);
|
||||
PurchaseViewModel? Delete(PurchaseBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using ComputerHardwareStoreContracts.BindingModels;
|
||||
using ComputerHardwareStoreContracts.SearchModels;
|
||||
using ComputerHardwareStoreContracts.ViewModels;
|
||||
|
||||
namespace ComputerHardwareStoreContracts.StorageContracts
|
||||
{
|
||||
public interface IStoreKeeperStorage
|
||||
{
|
||||
List<StoreKeeperViewModel> GetFullList();
|
||||
List<StoreKeeperViewModel> GetFilteredList(StoreKeeperSearchModel model);
|
||||
StoreKeeperViewModel? GetElement(StoreKeeperSearchModel model);
|
||||
StoreKeeperViewModel? Insert(StoreKeeperBindingModel model);
|
||||
StoreKeeperViewModel? Update(StoreKeeperBindingModel model);
|
||||
StoreKeeperViewModel? Delete(StoreKeeperBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using ComputerHardwareStoreContracts.BindingModels;
|
||||
using ComputerHardwareStoreContracts.SearchModels;
|
||||
using ComputerHardwareStoreContracts.ViewModels;
|
||||
|
||||
namespace ComputerHardwareStoreContracts.StorageContracts
|
||||
{
|
||||
public interface IVendorStorage
|
||||
{
|
||||
List<VendorViewModel> GetFullList();
|
||||
List<VendorViewModel> GetFilteredList(VendorSearchModel model);
|
||||
VendorViewModel? GetElement(VendorSearchModel model);
|
||||
VendorViewModel? Insert(VendorBindingModel model);
|
||||
VendorViewModel? Update(VendorBindingModel model);
|
||||
VendorViewModel? Delete(VendorBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
@ -0,0 +1,11 @@
|
||||
namespace ComputerHardwareStoreDataModels.Enums
|
||||
{
|
||||
public enum OrderStatus
|
||||
{
|
||||
Неизвестен = -1,
|
||||
Принят = 0,
|
||||
Выполняется = 1,
|
||||
Готов = 2,
|
||||
Выдан = 3,
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
namespace ComputerHardwareStoreDataModels
|
||||
{
|
||||
public interface IId
|
||||
{
|
||||
int Id { get; init; }
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
namespace ComputerHardwareStoreDataModels.Models
|
||||
{
|
||||
public interface IBuildModel : IId
|
||||
{
|
||||
string BuildName { get; }
|
||||
double Price { get; }
|
||||
int VendorId { get; }
|
||||
public Dictionary<int, (IComponentModel, int)> BuildComponent { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace ComputerHardwareStoreDataModels.Models
|
||||
{
|
||||
public interface ICommentModel : IId
|
||||
{
|
||||
DateTime Date { get; }
|
||||
string Text { get; }
|
||||
int BuildId { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace ComputerHardwareStoreDataModels.Models
|
||||
{
|
||||
public interface IComponentModel : IId
|
||||
{
|
||||
string ComponentName { get; }
|
||||
double Cost { get; }
|
||||
int StoreKeeperId { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace ComputerHardwareStoreDataModels.Models
|
||||
{
|
||||
public interface IOrderModel : IId
|
||||
{
|
||||
double Cost { get; }
|
||||
DateTime DateCreate { get; }
|
||||
public Dictionary<int, (IProductModel, int)> OrderProduct { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace ComputerHardwareStoreDataModels.Models
|
||||
{
|
||||
public interface IProductModel : IId
|
||||
{
|
||||
string Name { get; }
|
||||
double Price { get; }
|
||||
public Dictionary<int, (IComponentModel, int)> ProductComponent { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
namespace ComputerHardwareStoreDataModels.Models
|
||||
{
|
||||
public interface IPurchaseModel : IId
|
||||
{
|
||||
double Cost { get; }
|
||||
DateTime DateCreate { get; }
|
||||
int VendorId { get; }
|
||||
double Sum { get; }
|
||||
public Dictionary<int, (IBuildModel, int)> PurchaseBuild { get; }
|
||||
public Dictionary<int, (IProductModel, int)> PurchaseProduct { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace ComputerHardwareStoreDataModels.Models
|
||||
{
|
||||
public interface IStoreKeeperModel : IId
|
||||
{
|
||||
string Name { get; }
|
||||
string Login { get; }
|
||||
string Password { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace ComputerHardwareStoreDataModels.Models
|
||||
{
|
||||
public interface IVendorModel : IId
|
||||
{
|
||||
string Name { get; }
|
||||
string Login { get; }
|
||||
string Password { get; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user