BACKDEV-404 #4
@ -0,0 +1,13 @@
|
||||
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();
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
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; }
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
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; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
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; }
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
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();
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
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();
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
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;
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
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;
|
||||
}
|
||||
}
|
@ -6,4 +6,8 @@
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\ComputerHardwareStoreDataModels\ComputerHardwareStoreDataModels.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
Loading…
Reference in New Issue
Block a user