Merge branch 'main' of http://student.git.athene.tech/Ismailov_Rovshan/CourseWork_FurnitureFactory
This commit is contained in:
commit
25cf3d827e
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -10,6 +10,7 @@ namespace FurnitureContracts.ViewModel
|
||||
{
|
||||
public class HeadsetViewModel : IHeadsetModel
|
||||
{
|
||||
[DisplayName("Цена")]
|
||||
public int Cost { get; set; }
|
||||
|
||||
[DisplayName("Размер")]
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace FurnitureFactoryDataModels.Models
|
||||
{
|
||||
internal interface User
|
||||
public interface IUserModel
|
||||
{
|
||||
int Login { get;}
|
||||
int Password { get; }
|
Loading…
Reference in New Issue
Block a user