ViewModel

This commit is contained in:
Ismailov_Rovshan 2023-04-05 22:55:55 +04:00
parent d9e6204ee8
commit 26f6db4cbf
6 changed files with 96 additions and 1 deletions

View File

@ -0,0 +1,26 @@
using FurnitureFactoryDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FurnitureContracts.ViewModel
{
public class FurnitureViewModel : IFurnitureModel
{
[DisplayName("Название")]
public string Name { get; set; } = string.Empty;
[DisplayName("Цвет")]
public string Color { get; set; } = string.Empty;
[DisplayName("Тип")]
public string Type { get; set; } = string.Empty;
public Dictionary<int, IMaterialModel> FurnitureMaterial { get; set; }
public int Id { get; set; }
}
}

View File

@ -0,0 +1,22 @@
using FurnitureFactoryDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FurnitureContracts.ViewModel
{
public class HeadsetModuleViewModel : IHeadsetModuleModel
{
[DisplayName("Стиль")]
public string Style { get; set; } = string.Empty;
[DisplayName("Цена")]
public int Cost { get; set; }
public int UserID { get; set; }
public int Id { get; set; }
}
}

View File

@ -10,6 +10,7 @@ namespace FurnitureContracts.ViewModel
{
public class HeadsetViewModel
{
[DisplayName("Цена")]
public int Cost { get; set; }
[DisplayName("Размер")]

View File

@ -0,0 +1,23 @@
using FurnitureFactoryDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FurnitureContracts.ViewModel
{
public class MaterialViewModel : IMaterialModel
{
[DisplayName("Название")]
public string Name { get; set; } = string.Empty;
[DisplayName("Цена")]
public int Cost { get; set; }
public int userID { get; set; }
public int Id { get; set; }
}
}

View File

@ -7,7 +7,7 @@ namespace FurnitureContracts.ViewModel
{
[DisplayName("Название")]
public string Name { get; set; } = string.Empty;
[DisplayName("Адресс")]
[DisplayName("Адрес")]
public string Address { get; set; } = string.Empty;
public Dictionary<int, IOrdersModel> OrdersId { get; set; }
public int Id { get; set; }

View File

@ -0,0 +1,23 @@
using FurnitureFactoryDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FurnitureContracts.ViewModel
{
internal class UserViewModel : IUserModel
{
[DisplayName("Логин")]
public int Login { get; set; }
[DisplayName("Пароль")]
public int Password { get; set; }
[DisplayName("Имя пользователя")]
public string UserName { get; set; } = string.Empty;
public int RoleID { get; set; }
}
}