2022-03-18 12:47:34 +04:00
|
|
|
|
using CoreModels.ModelsSecurity;
|
2021-04-01 21:30:29 +04:00
|
|
|
|
using System;
|
2022-03-20 10:10:44 +04:00
|
|
|
|
using ToolsModule.ManagmentEntity;
|
|
|
|
|
using ToolsModule.ManagmentMapping;
|
2021-04-01 21:30:29 +04:00
|
|
|
|
|
2022-03-19 19:58:10 +04:00
|
|
|
|
namespace SecurityContract.ViewModels
|
2021-04-01 21:30:29 +04:00
|
|
|
|
{
|
2022-03-20 10:10:44 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Список пользователей
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class UserRoleListViewModel : ListViewModel<UserRoleViewModel> { }
|
2021-04-01 21:30:29 +04:00
|
|
|
|
|
|
|
|
|
/// <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; }
|
|
|
|
|
}
|
|
|
|
|
}
|