2022-03-18 12:47:34 +04:00
|
|
|
|
using CoreModels.ModelsSecurity;
|
2022-03-18 22:38:52 +04:00
|
|
|
|
using ToolsModule.Attributes;
|
|
|
|
|
using ToolsModule.Enums;
|
|
|
|
|
using ToolsModule.ViewModels;
|
2021-04-01 21:30:29 +04:00
|
|
|
|
using System;
|
|
|
|
|
|
2022-03-19 19:58:10 +04:00
|
|
|
|
namespace SecurityContract.ViewModels
|
2021-04-01 21:30:29 +04:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Список пользователей
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class UserRoleListViewModel : ListViewModel<UserRoleViewModel> { }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Элемент пользователей
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewModelControlElementClass()]
|
2022-03-18 12:47:34 +04:00
|
|
|
|
public class UserRoleViewModel : ElementViewModel, IUserRoleModel
|
2021-04-01 21:30:29 +04:00
|
|
|
|
{
|
2021-04-02 16:06:12 +04:00
|
|
|
|
[ViewModelControlElementProperty("Пользователь", ControlType.ControlGuid, MustHaveValue = true, ReadOnly = false, ControlTypeObject = "SecurityWindowsDesktop.EntityControls.ControlUserList, SecurityWindowsDesktop")]
|
2021-04-01 21:30:29 +04:00
|
|
|
|
public Guid UserId { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlListProperty("Пользователь")]
|
2021-04-13 12:52:45 +04:00
|
|
|
|
[MapConfiguration("User.ToString", IsDifficle = true, AllowCopyWithoutRigth = false)]
|
2021-04-01 21:30:29 +04:00
|
|
|
|
public string UserName { get; set; }
|
|
|
|
|
|
2021-04-02 16:06:12 +04:00
|
|
|
|
[ViewModelControlElementProperty("Роль", ControlType.ControlGuid, MustHaveValue = true, ReadOnly = false, ControlTypeObject = "SecurityWindowsDesktop.EntityControls.ControlRoleList, SecurityWindowsDesktop")]
|
2021-04-01 21:30:29 +04:00
|
|
|
|
public Guid RoleId { get; set; }
|
|
|
|
|
|
|
|
|
|
[ViewModelControlListProperty("Роль")]
|
2021-04-13 12:52:45 +04:00
|
|
|
|
[MapConfiguration("Role.ToString", IsDifficle = true, AllowCopyWithoutRigth = false)]
|
2021-04-01 21:30:29 +04:00
|
|
|
|
public string RoleName { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|