ViewModel для работника реализованны

This commit is contained in:
Николай 2023-04-01 12:37:25 +04:00
parent 4d4b783b27
commit cae87564d4
7 changed files with 26 additions and 16 deletions

View File

@ -13,8 +13,8 @@ namespace FoodOrdersContracts.ViewModels
[DisplayName("Название компонента")]
public string BuildName { get; set; } = string.Empty;
[DisplayName("Email клиента")]
public string Email { get; set; } = string.Empty;
[DisplayName("Клиент")]
public string UserEmail { get; set; } = string.Empty;
public int UserID { get; set; }
}

View File

@ -6,10 +6,14 @@ namespace FoodOrdersContracts.ViewModels
{
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; }
}
}

View File

@ -9,6 +9,6 @@ namespace FoodOrdersContracts.ViewModels
{
public class ComponentViewModel : IComponentModel
{
public int Id => throw new NotImplementedException();
public int Id { get; set; }
}
}

View File

@ -10,6 +10,6 @@ namespace FoodOrdersContracts.ViewModels
{
public class GoodViewModel : IGoodModel
{
public int Id => throw new NotImplementedException();
public int Id { get; set; }
}
}

View File

@ -6,6 +6,6 @@ namespace FoodOrdersContracts.ViewModels
{
public class OrderViewModel : IOrderModel
{
public int Id => throw new NotImplementedException();
public int Id { get; set; }
}
}

View File

@ -6,18 +6,24 @@ namespace FoodOrdersContracts.ViewModels
{
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; }
}
}

View File

@ -6,7 +6,7 @@ namespace HardwareShopDataModels.Models
{
decimal Sum { get; }
PurchaseStatus Status { get; }
PurchaseStatus PurchaseStatus { get; }
//через "?" обозначается что поле может быть null
DateTime? DatePurchase { get; }