Compare commits
No commits in common. "BACKDEV-404" and "main" have entirely different histories.
BACKDEV-40
...
main
@ -5,10 +5,6 @@ VisualStudioVersion = 17.7.34031.279
|
|||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComputerHardwareStore", "ComputerHardwareStore\ComputerHardwareStore.csproj", "{D5DDEE2B-A0C4-430B-B00E-452BA1AB3DDA}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComputerHardwareStore", "ComputerHardwareStore\ComputerHardwareStore.csproj", "{D5DDEE2B-A0C4-430B-B00E-452BA1AB3DDA}"
|
||||||
EndProject
|
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
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
@ -19,14 +15,6 @@ Global
|
|||||||
{D5DDEE2B-A0C4-430B-B00E-452BA1AB3DDA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{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.ActiveCfg = Release|Any CPU
|
||||||
{D5DDEE2B-A0C4-430B-B00E-452BA1AB3DDA}.Release|Any CPU.Build.0 = 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
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
using ComputerHardwareStoreDataModels.Models;
|
|
||||||
|
|
||||||
namespace ComputerHardwareStoreContracts.BindingModels
|
|
||||||
{
|
|
||||||
public class BuildBindingModel : IBindingModel
|
|
||||||
{
|
|
||||||
public int Id { get; set; }
|
|
||||||
public string BuildName { get; set; } = string.Empty;
|
|
||||||
public double Price { get; set; }
|
|
||||||
public int VendorId { get; set; }
|
|
||||||
public Dictionary<int, (IComponentModel, int)> BuildComponent { get; set; } = new();
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
using ComputerHardwareStoreDataModels.Models;
|
|
||||||
|
|
||||||
namespace ComputerHardwareStoreContracts.BindingModels
|
|
||||||
{
|
|
||||||
public class CommentBindingModel : ICommentModel
|
|
||||||
{
|
|
||||||
public int Id { get; set; }
|
|
||||||
public DateTime Date { get; set; } = DateTime.Now;
|
|
||||||
public string Text { get; set; } = string.Empty;
|
|
||||||
public int BuildId { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
using ComputerHardwareStoreDataModels.Models;
|
|
||||||
|
|
||||||
namespace ComputerHardwareStoreContracts.BindingModels
|
|
||||||
{
|
|
||||||
public class ComponentBindingModel : IComponentModel
|
|
||||||
{
|
|
||||||
public int Id { get; set; }
|
|
||||||
public string ComponentName { get; set; } = string.Empty;
|
|
||||||
public double Cost { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,15 +0,0 @@
|
|||||||
using ComputerHardwareStoreDataModels.Models;
|
|
||||||
|
|
||||||
namespace ComputerHardwareStoreContracts.BindingModels
|
|
||||||
{
|
|
||||||
public class OrderBindingModel : IOrderModel
|
|
||||||
{
|
|
||||||
public int Id { get; set; }
|
|
||||||
public int CannedId { get; set; }
|
|
||||||
public int Count { get; set; }
|
|
||||||
public double Sum { get; set; }
|
|
||||||
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
|
||||||
public DateTime DateCreate { get; set; } = DateTime.Now;
|
|
||||||
public DateTime? DateImplement { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
using ComputerHardwareStoreDataModels.Models;
|
|
||||||
|
|
||||||
namespace ComputerHardwareStoreContracts.BindingModels
|
|
||||||
{
|
|
||||||
public class ProductBindingModel : IProductModel
|
|
||||||
{
|
|
||||||
public int Id { get; set; }
|
|
||||||
public string ProductName { get; set; } = string.Empty;
|
|
||||||
public double Price { get; set; }
|
|
||||||
public Dictionary<int, (IComponentModel, int)> ProductComponents { get; set; } = new();
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,15 +0,0 @@
|
|||||||
using ComputerHardwareStoreDataModels.Models;
|
|
||||||
|
|
||||||
namespace ComputerHardwareStoreContracts.BindingModels
|
|
||||||
{
|
|
||||||
public class PurchaseBindingModel : IPurchaseModel
|
|
||||||
{
|
|
||||||
public int Id { get; set; }
|
|
||||||
public double Cost { get; set; }
|
|
||||||
public DateTime DateCreate { get; set; }
|
|
||||||
public int VendorId { get; set; }
|
|
||||||
public double Sum { get; set; }
|
|
||||||
public Dictionary<int, (IBuildModel, int)> PurchaseBuild { get; set; } = new();
|
|
||||||
public Dictionary<int, (IProductModel, int)> PurchaseProduct { get; set; } = new();
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
using ComputerHardwareStoreDataModels.Models;
|
|
||||||
|
|
||||||
namespace ComputerHardwareStoreContracts.BindingModels
|
|
||||||
{
|
|
||||||
public class StoreKeeperBindingModel : IStoreKeeperModel
|
|
||||||
{
|
|
||||||
public int Id { get; set; }
|
|
||||||
public string Name { get; set; } = string.Empty;
|
|
||||||
public string Email { get; set; } = string.Empty;
|
|
||||||
public string Password { get; set; } = string.Empty;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
using ComputerHardwareStoreDataModels.Models;
|
|
||||||
|
|
||||||
namespace ComputerHardwareStoreContracts.BindingModels
|
|
||||||
{
|
|
||||||
public class VendorBindingModel : IVendorModel
|
|
||||||
{
|
|
||||||
public int Id { get; set; }
|
|
||||||
public string Name { get; set; } = string.Empty;
|
|
||||||
public string Email { get; set; } = string.Empty;
|
|
||||||
public string Password { get; set; } = string.Empty;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
|
||||||
<Nullable>enable</Nullable>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\ComputerHardwareStoreDataModels\ComputerHardwareStoreDataModels.csproj" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
</Project>
|
|
@ -1,9 +0,0 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
|
||||||
<Nullable>enable</Nullable>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
</Project>
|
|
@ -1,11 +0,0 @@
|
|||||||
namespace ComputerHardwareStoreDataModels.Enums
|
|
||||||
{
|
|
||||||
public enum OrderStatus
|
|
||||||
{
|
|
||||||
Неизвестен = -1,
|
|
||||||
Принят = 0,
|
|
||||||
Выполняется = 1,
|
|
||||||
Готов = 2,
|
|
||||||
Выдан = 3,
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
namespace ComputerHardwareStoreDataModels
|
|
||||||
{
|
|
||||||
public interface IId
|
|
||||||
{
|
|
||||||
int Id { get; init; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,10 +0,0 @@
|
|||||||
namespace ComputerHardwareStoreDataModels.Models
|
|
||||||
{
|
|
||||||
public interface IBuildModel : IId
|
|
||||||
{
|
|
||||||
string BuildName { get; }
|
|
||||||
double Price { get; }
|
|
||||||
int VendorId { get; }
|
|
||||||
public Dictionary<int, (IComponentModel, int)> BuildComponent { get; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
namespace ComputerHardwareStoreDataModels.Models
|
|
||||||
{
|
|
||||||
public interface ICommentModel : IId
|
|
||||||
{
|
|
||||||
DateTime Date { get; }
|
|
||||||
string Text { get; }
|
|
||||||
int BuildId { get; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
namespace ComputerHardwareStoreDataModels.Models
|
|
||||||
{
|
|
||||||
public interface IComponentModel : IId
|
|
||||||
{
|
|
||||||
string ComponentName { get; }
|
|
||||||
double Cost { get; }
|
|
||||||
int StoreKeeperId { get; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
namespace ComputerHardwareStoreDataModels.Models
|
|
||||||
{
|
|
||||||
public interface IOrderModel : IId
|
|
||||||
{
|
|
||||||
double Cost { get; }
|
|
||||||
DateTime DateCreate { get; }
|
|
||||||
public Dictionary<int, (IProductModel, int)> OrderProduct { get; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
namespace ComputerHardwareStoreDataModels.Models
|
|
||||||
{
|
|
||||||
public interface IProductModel : IId
|
|
||||||
{
|
|
||||||
string Name { get; }
|
|
||||||
double Price { get; }
|
|
||||||
public Dictionary<int, (IComponentModel, int)> ProductComponent { get; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
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; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
namespace ComputerHardwareStoreDataModels.Models
|
|
||||||
{
|
|
||||||
public interface IStoreKeeperModel : IId
|
|
||||||
{
|
|
||||||
string Name { get; }
|
|
||||||
string Login { get; }
|
|
||||||
string Password { get; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
namespace ComputerHardwareStoreDataModels.Models
|
|
||||||
{
|
|
||||||
public interface IVendorModel : IId
|
|
||||||
{
|
|
||||||
string Name { get; }
|
|
||||||
string Login { get; }
|
|
||||||
string Password { get; }
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user