DepartmentProject/DepartmentPortal/Security/SecurityContract/ViewModels/EnviromentSettingViewModels.cs

29 lines
1.1 KiB
C#
Raw Permalink Normal View History

using CoreModels.ModelsSecurity;
2022-03-20 10:10:44 +04:00
using ToolsModule.ManagmentEntity;
namespace SecurityContract.ViewModels
{
/// <summary>
/// Список общих настроек системы
/// </summary>
public class EnviromentSettingListViewModel : ListViewModel<EnviromentSettingViewModel> { }
/// <summary>
/// Элемент общих настроек системы
/// </summary>
[ViewModelControlElementClass()]
public class EnviromentSettingViewModel : ElementViewModel, IEnviromentSettingModel
{
[ViewModelControlListProperty("Ключ")]
[ViewModelControlElementProperty("Ключ", ControlType.ControlString, MustHaveValue = true, ReadOnly = true)]
public string Key { get; set; }
[ViewModelControlListProperty("Значение")]
[ViewModelControlElementProperty("Значение", ControlType.ControlString, MustHaveValue = true)]
public string Value { get; set; }
[ViewModelControlListProperty("Описание")]
2021-04-03 11:38:27 +04:00
[ViewModelControlElementProperty("Описание", ControlType.ControlText, Height = 200)]
public string Description { get; set; }
}
}