исправление моделей viue
This commit is contained in:
@@ -5,7 +5,7 @@ namespace ComputerHardwareStoreContracts.BindingModels
|
|||||||
public class ComponentBindingModel : IComponentModel
|
public class ComponentBindingModel : IComponentModel
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public string ComponentName { get; set; } = string.Empty;
|
public string Name { get; set; } = string.Empty;
|
||||||
public double Cost { get; set; }
|
public double Cost { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,4 +14,8 @@
|
|||||||
<None Include="BusinessLogicsContracts\IStoreKeeperLogic.cs" />
|
<None Include="BusinessLogicsContracts\IStoreKeeperLogic.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\ComputerHardwareStoreDataModels\ComputerHardwareStoreDataModels.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -3,14 +3,14 @@ using System.ComponentModel;
|
|||||||
|
|
||||||
namespace ComputerHardwareStoreContracts.ViewModels
|
namespace ComputerHardwareStoreContracts.ViewModels
|
||||||
{
|
{
|
||||||
public class BuildModelContracts : IBuildModel
|
public class BuildViewModel : IBuildModel
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
[DisplayName("Название сборки")]
|
[DisplayName("Название сборки")]
|
||||||
public string BuildName { get; }
|
public string Name { get; } = string.Empty;
|
||||||
[DisplayName("Стоимость")]
|
[DisplayName("Стоимость")]
|
||||||
public double Price { get; }
|
public double Price { get; }
|
||||||
public int VendorId { get; }
|
public int VendorId { get; }
|
||||||
public Dictionary<int, (IComponentModel, int)> BuildComponent { get; }
|
public Dictionary<int, (IComponentModel, int)> BuildComponent { get; } = new();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
namespace ComputerHardwareStoreContracts.ViewModels
|
namespace ComputerHardwareStoreContracts.ViewModels
|
||||||
{
|
{
|
||||||
public class CommentModelContracts : ICommentModel
|
public class CommentViewModel : ICommentModel
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
public DateTime Date { get; set; }
|
public DateTime Date { get; set; }
|
||||||
public string Text { get; set; }
|
public string Text { get; set; } = string.Empty;
|
||||||
public int BuildId { get; set; }
|
public int BuildId { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3,12 +3,13 @@ using System.ComponentModel;
|
|||||||
|
|
||||||
namespace ComputerHardwareStoreContracts.ViewModels
|
namespace ComputerHardwareStoreContracts.ViewModels
|
||||||
{
|
{
|
||||||
public class ComponentModelContracts : IComponentModel
|
public class ComponentViewModel : IComponentModel
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
[DisplayName("Название компонента")]
|
[DisplayName("Название компонента")]
|
||||||
public string ComponentName { get; set; } = string.Empty;
|
public string Name { get; set; } = string.Empty;
|
||||||
[DisplayName("Цена")]
|
[DisplayName("Цена")]
|
||||||
public double Cost { get; set; }
|
public double Cost { get; set; }
|
||||||
|
public int StoreKeeperId { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3,13 +3,13 @@ using System.ComponentModel;
|
|||||||
|
|
||||||
namespace ComputerHardwareStoreContracts.ViewModels
|
namespace ComputerHardwareStoreContracts.ViewModels
|
||||||
{
|
{
|
||||||
public class OrderModelContracts : IOrderModel
|
public class OrderViewModel : IOrderModel
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
[DisplayName("Стоимость")]
|
[DisplayName("Стоимость")]
|
||||||
public double Cost { get; set; }
|
public double Cost { get; set; }
|
||||||
[DisplayName("Дата создания")]
|
[DisplayName("Дата создания")]
|
||||||
DateTime DateCreate { get; set; }
|
public DateTime DateCreate { get; set; }
|
||||||
public Dictionary<int, (IProductModel, int)> OrderProduct { get; set; }
|
public Dictionary<int, (IProductModel, int)> OrderProduct { get; set; } = new();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3,14 +3,15 @@ using System.ComponentModel;
|
|||||||
|
|
||||||
namespace ComputerHardwareStoreContracts.ViewModels
|
namespace ComputerHardwareStoreContracts.ViewModels
|
||||||
{
|
{
|
||||||
public class ProductModelContracts : IProductModel
|
public class ProductViewModel : IProductModel
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
[DisplayName("Название изделия")]
|
[DisplayName("Название изделия")]
|
||||||
public string CannedName { get; set; }
|
public string Name { get; set; } = string.Empty;
|
||||||
[DisplayName("Цена")]
|
[DisplayName("Цена")]
|
||||||
public double Price { get; set; }
|
public double Price { get; set; }
|
||||||
public Dictionary<int, (IComponentModel, int)> CannedComponents { get; set; } = new();
|
public Dictionary<int, (IComponentModel, int)> CannedComponents { get; set; } = new();
|
||||||
|
|
||||||
|
public Dictionary<int, (IComponentModel, int)> ProductComponent => throw new NotImplementedException();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3,7 +3,7 @@ using System.ComponentModel;
|
|||||||
|
|
||||||
namespace ComputerHardwareStoreContracts.ViewModels
|
namespace ComputerHardwareStoreContracts.ViewModels
|
||||||
{
|
{
|
||||||
public class PurchaseModelContracts : IPurchaseModel
|
public class PurchaseViewModel : IPurchaseModel
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
[DisplayName("Стоимость")]
|
[DisplayName("Стоимость")]
|
||||||
@@ -13,8 +13,8 @@ namespace ComputerHardwareStoreContracts.ViewModels
|
|||||||
public int VendorId { get; set; }
|
public int VendorId { get; set; }
|
||||||
[DisplayName("Сумма")]
|
[DisplayName("Сумма")]
|
||||||
public double Sum { get; set; }
|
public double Sum { get; set; }
|
||||||
public Dictionary<int, (IBuildModel, int)> PurchaseBuild { get; set; }
|
public Dictionary<int, (IBuildModel, int)> PurchaseBuild { get; set; } = new();
|
||||||
|
|
||||||
public Dictionary<int, (IProductModel, int)> PurchaseProduct { get; set; }
|
public Dictionary<int, (IProductModel, int)> PurchaseProduct { get; set; } = new();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3,14 +3,14 @@ using System.ComponentModel;
|
|||||||
|
|
||||||
namespace ComputerHardwareStoreContracts.ViewModels
|
namespace ComputerHardwareStoreContracts.ViewModels
|
||||||
{
|
{
|
||||||
public class StoreKeeperModelContracts : IStoreKeeperModel
|
public class StoreKeeperViewModel : IStoreKeeperModel
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
[DisplayName("Имя кладовщика")]
|
[DisplayName("Имя кладовщика")]
|
||||||
public string Name { get; set; }
|
public string Name { get; set; } = string.Empty;
|
||||||
[DisplayName("Логин")]
|
[DisplayName("Логин")]
|
||||||
public string Login { get; set; }
|
public string Login { get; set; } = string.Empty;
|
||||||
[DisplayName("Пароль")]
|
[DisplayName("Пароль")]
|
||||||
public string Password { get; set; }
|
public string Password { get; set; } = string.Empty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3,14 +3,14 @@ using System.ComponentModel;
|
|||||||
|
|
||||||
namespace ComputerHardwareStoreContracts.ViewModels
|
namespace ComputerHardwareStoreContracts.ViewModels
|
||||||
{
|
{
|
||||||
public class VendorModelContracts : IVendorModel
|
public class VendorViewModel : IVendorModel
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
[DisplayName("Имя продавца")]
|
[DisplayName("Имя продавца")]
|
||||||
public string Name { get; set; }
|
public string Name { get; set; } = string.Empty;
|
||||||
[DisplayName("Логин")]
|
[DisplayName("Логин")]
|
||||||
public string Login { get; set; }
|
public string Login { get; set; } = string.Empty;
|
||||||
[DisplayName("Пароль")]
|
[DisplayName("Пароль")]
|
||||||
public string Password { get; set; }
|
public string Password { get; set; } = string.Empty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
public interface IBuildModel : IId
|
public interface IBuildModel : IId
|
||||||
{
|
{
|
||||||
string BuildName { get; }
|
string Name { get; }
|
||||||
double Price { get; }
|
double Price { get; }
|
||||||
int VendorId { get; }
|
int VendorId { get; }
|
||||||
public Dictionary<int, (IComponentModel, int)> BuildComponent { get; }
|
public Dictionary<int, (IComponentModel, int)> BuildComponent { get; }
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
public interface IComponentModel : IId
|
public interface IComponentModel : IId
|
||||||
{
|
{
|
||||||
string ComponentName { get; }
|
string Name { get; }
|
||||||
double Cost { get; }
|
double Cost { get; }
|
||||||
int StoreKeeperId { get; }
|
int StoreKeeperId { get; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
{
|
{
|
||||||
double Cost { get; }
|
double Cost { get; }
|
||||||
DateTime DateCreate { get; }
|
DateTime DateCreate { get; }
|
||||||
int StoreKeeperId { get; }
|
|
||||||
public Dictionary<int, (IProductModel, int)> OrderProduct { get; }
|
public Dictionary<int, (IProductModel, int)> OrderProduct { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user