+DataModels
This commit is contained in:
parent
f76b431756
commit
73dce91123
@ -5,6 +5,8 @@ VisualStudioVersion = 17.9.34728.123
|
|||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StorageCompanyView", "StorageCompanyView\StorageCompanyView.csproj", "{8A570BF1-316C-4AF3-B2DE-BEED3132E98E}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StorageCompanyView", "StorageCompanyView\StorageCompanyView.csproj", "{8A570BF1-316C-4AF3-B2DE-BEED3132E98E}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StorageCompanyDataModels", "StorageCompanyDataModels\StorageCompanyDataModels.csproj", "{8A256C21-D0A8-4A6B-A670-BA359B8E8A88}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
@ -15,6 +17,10 @@ Global
|
|||||||
{8A570BF1-316C-4AF3-B2DE-BEED3132E98E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{8A570BF1-316C-4AF3-B2DE-BEED3132E98E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{8A570BF1-316C-4AF3-B2DE-BEED3132E98E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{8A570BF1-316C-4AF3-B2DE-BEED3132E98E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{8A570BF1-316C-4AF3-B2DE-BEED3132E98E}.Release|Any CPU.Build.0 = Release|Any CPU
|
{8A570BF1-316C-4AF3-B2DE-BEED3132E98E}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{8A256C21-D0A8-4A6B-A670-BA359B8E8A88}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{8A256C21-D0A8-4A6B-A670-BA359B8E8A88}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{8A256C21-D0A8-4A6B-A670-BA359B8E8A88}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{8A256C21-D0A8-4A6B-A670-BA359B8E8A88}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
15
StorageCompany/StorageCompanyDataModels/Enums/ProductType.cs
Normal file
15
StorageCompany/StorageCompanyDataModels/Enums/ProductType.cs
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
namespace StorageCompanyDataModels.Enums
|
||||||
|
{
|
||||||
|
public enum ProductType
|
||||||
|
{
|
||||||
|
Неизвестен = -1,
|
||||||
|
|
||||||
|
Одежда = 0,
|
||||||
|
|
||||||
|
Обувь = 1,
|
||||||
|
|
||||||
|
Техника = 2,
|
||||||
|
|
||||||
|
Гигиена = 3
|
||||||
|
}
|
||||||
|
}
|
7
StorageCompany/StorageCompanyDataModels/IId.cs
Normal file
7
StorageCompany/StorageCompanyDataModels/IId.cs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
namespace StorageCompanyDataModels
|
||||||
|
{
|
||||||
|
public interface IId
|
||||||
|
{
|
||||||
|
int Id { get; }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace StorageCompanyDataModels.Models
|
||||||
|
{
|
||||||
|
public interface IClientModel : IId
|
||||||
|
{
|
||||||
|
string ClientFIO { get; }
|
||||||
|
string Email { get; }
|
||||||
|
string Password { get; }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
using StorageCompanyDataModels.Enums;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace StorageCompanyDataModels.Models
|
||||||
|
{
|
||||||
|
public interface IProductModel : IId
|
||||||
|
{
|
||||||
|
string ProductName { get; }
|
||||||
|
int ProductNum { get; }
|
||||||
|
ProductType ProductType { get; }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace StorageCompanyDataModels.Models
|
||||||
|
{
|
||||||
|
public interface IProviderModel : IId
|
||||||
|
{
|
||||||
|
string ProviderFIO { get; }
|
||||||
|
string Email { get; }
|
||||||
|
string Password { get; }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace StorageCompanyDataModels.Models
|
||||||
|
{
|
||||||
|
public interface ISaleModel : IId
|
||||||
|
{
|
||||||
|
int ClientId { get; set; }
|
||||||
|
int ProductId { get; set; }
|
||||||
|
int SaleNum { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace StorageCompanyDataModels.Models
|
||||||
|
{
|
||||||
|
public interface ISupplyModel : IId
|
||||||
|
{
|
||||||
|
int ProviderId { get; set; }
|
||||||
|
int ProductId { get; set; }
|
||||||
|
int SupplyNum { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
Loading…
x
Reference in New Issue
Block a user