FLARJ 2023-04-05 22:59:45 +04:00
commit 25cf3d827e
12 changed files with 172 additions and 2 deletions

View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FurnitureFactoryDataModels.Models;
namespace FurnitureContracts.BindingModels
{
internal class UserBindingModel : IUserModel
{
public int Login { get; set; }
public int Password { get; set; }
public string UserName { get; set; } = string.Empty;
public int RoleID { get; set; }
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FurnitureContracts.SearchModels
{
public class FurnitureSearchModel
{
public string? Name { get; set; }
public int? Id { get; set; }
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FurnitureContracts.SearchModels
{
internal class HeadsetModuleSearchModel
{
public string? Name { get; set; }
public int? Id { get; set; }
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FurnitureContracts.SearchModels
{
public class MaterialSearchModel
{
public string? Name { get; set; }
public int? Id { get; set; }
}
}

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FurnitureContracts.SearchModels
{
internal class UserSearchModel
{
public string? Name { get; set; }
public int? Id { get; set; }
}
}

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 : IHeadsetModel public class HeadsetViewModel : IHeadsetModel
{ {
[DisplayName("Цена")]
public int Cost { get; set; } public int Cost { get; set; }
[DisplayName("Размер")] [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("Название")] [DisplayName("Название")]
public string Name { get; set; } = string.Empty; public string Name { get; set; } = string.Empty;
[DisplayName("Адресс")] [DisplayName("Адрес")]
public string Address { get; set; } = string.Empty; public string Address { get; set; } = string.Empty;
public Dictionary<int, IOrdersModel> OrdersId { get; set; } public Dictionary<int, IOrdersModel> OrdersId { get; set; }
public int Id { 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; }
}
}

View File

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace FurnitureFactoryDataModels.Models namespace FurnitureFactoryDataModels.Models
{ {
internal interface User public interface IUserModel
{ {
int Login { get;} int Login { get;}
int Password { get; } int Password { get; }