ViewModel для работника реализованны
This commit is contained in:
parent
4d4b783b27
commit
cae87564d4
@ -13,8 +13,8 @@ namespace FoodOrdersContracts.ViewModels
|
|||||||
[DisplayName("Название компонента")]
|
[DisplayName("Название компонента")]
|
||||||
public string BuildName { get; set; } = string.Empty;
|
public string BuildName { get; set; } = string.Empty;
|
||||||
|
|
||||||
[DisplayName("Email клиента")]
|
[DisplayName("Клиент")]
|
||||||
public string Email { get; set; } = string.Empty;
|
public string UserEmail { get; set; } = string.Empty;
|
||||||
|
|
||||||
public int UserID { get; set; }
|
public int UserID { get; set; }
|
||||||
}
|
}
|
||||||
|
@ -6,10 +6,14 @@ namespace FoodOrdersContracts.ViewModels
|
|||||||
{
|
{
|
||||||
public class CommentViewModel : ICommentModel
|
public class CommentViewModel : ICommentModel
|
||||||
{
|
{
|
||||||
public string Text => throw new NotImplementedException();
|
public int Id { get; set; }
|
||||||
|
|
||||||
public int BuildID => throw new NotImplementedException();
|
[DisplayName("Комментарий")]
|
||||||
|
public string Text { get; set; } = string.Empty;
|
||||||
|
|
||||||
public int Id => throw new NotImplementedException();
|
[DisplayName("Название сборки")]
|
||||||
|
public string BuildName { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
public int BuildID { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,6 @@ namespace FoodOrdersContracts.ViewModels
|
|||||||
{
|
{
|
||||||
public class ComponentViewModel : IComponentModel
|
public class ComponentViewModel : IComponentModel
|
||||||
{
|
{
|
||||||
public int Id => throw new NotImplementedException();
|
public int Id { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,6 @@ namespace FoodOrdersContracts.ViewModels
|
|||||||
{
|
{
|
||||||
public class GoodViewModel : IGoodModel
|
public class GoodViewModel : IGoodModel
|
||||||
{
|
{
|
||||||
public int Id => throw new NotImplementedException();
|
public int Id { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,6 @@ namespace FoodOrdersContracts.ViewModels
|
|||||||
{
|
{
|
||||||
public class OrderViewModel : IOrderModel
|
public class OrderViewModel : IOrderModel
|
||||||
{
|
{
|
||||||
public int Id => throw new NotImplementedException();
|
public int Id { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,18 +6,24 @@ namespace FoodOrdersContracts.ViewModels
|
|||||||
{
|
{
|
||||||
public class PurachaseViewModel : IPurchaseModel
|
public class PurachaseViewModel : IPurchaseModel
|
||||||
{
|
{
|
||||||
public int Id => throw new NotImplementedException();
|
public int Id { get; set; }
|
||||||
|
|
||||||
public decimal Sum => throw new NotImplementedException();
|
[DisplayName("Цена")]
|
||||||
|
public decimal Sum { get; set; }
|
||||||
|
|
||||||
public PurchaseStatus Status => throw new NotImplementedException();
|
[DisplayName("Статус покупки")]
|
||||||
|
public PurchaseStatus PurchaseStatus { get; set; } = PurchaseStatus.Неизвестен;
|
||||||
|
|
||||||
public DateTime? DatePurchase => throw new NotImplementedException();
|
[DisplayName("Дата оплаты")]
|
||||||
|
public DateTime? DatePurchase { get; set; }
|
||||||
|
|
||||||
public int UserID => throw new NotImplementedException();
|
public int UserID { get; set; }
|
||||||
|
|
||||||
public Dictionary<int, (IBuildModel, int)>? PurchaseBuilds => throw new NotImplementedException();
|
[DisplayName("Email клиента")]
|
||||||
|
public string UserEmail { get; set; } = string.Empty;
|
||||||
|
|
||||||
public Dictionary<int, (IGoodModel, int)> PurchaseGoods => throw new NotImplementedException();
|
public Dictionary<int, (IBuildModel, int)>? PurchaseBuilds { get; set; }
|
||||||
|
|
||||||
|
public Dictionary<int, (IGoodModel, int)> PurchaseGoods { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ namespace HardwareShopDataModels.Models
|
|||||||
{
|
{
|
||||||
decimal Sum { get; }
|
decimal Sum { get; }
|
||||||
|
|
||||||
PurchaseStatus Status { get; }
|
PurchaseStatus PurchaseStatus { get; }
|
||||||
|
|
||||||
//через "?" обозначается что поле может быть null
|
//через "?" обозначается что поле может быть null
|
||||||
DateTime? DatePurchase { get; }
|
DateTime? DatePurchase { get; }
|
||||||
|
Loading…
Reference in New Issue
Block a user