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-03-26 20:09:52 +04:00
|
|
|
|
|
|
|
|
|
namespace SecurityBusinessLogic.ViewModels
|
|
|
|
|
{
|
2022-03-18 13:27:14 +04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Список общих настроек системы
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class EnviromentSettingListViewModel : ListViewModel<EnviromentSettingViewModel> { }
|
2021-03-26 20:09:52 +04:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Элемент общих настроек системы
|
|
|
|
|
/// </summary>
|
2021-04-01 21:30:29 +04:00
|
|
|
|
[ViewModelControlElementClass()]
|
2022-03-18 12:47:34 +04:00
|
|
|
|
public class EnviromentSettingViewModel : ElementViewModel, IEnviromentSettingModel
|
2021-03-26 20:09:52 +04:00
|
|
|
|
{
|
2021-04-01 21:30:29 +04:00
|
|
|
|
[ViewModelControlListProperty("Ключ")]
|
|
|
|
|
[ViewModelControlElementProperty("Ключ", ControlType.ControlString, MustHaveValue = true, ReadOnly = true)]
|
2021-03-26 20:09:52 +04:00
|
|
|
|
public string Key { get; set; }
|
|
|
|
|
|
2021-04-01 21:30:29 +04:00
|
|
|
|
[ViewModelControlListProperty("Значение")]
|
|
|
|
|
[ViewModelControlElementProperty("Значение", ControlType.ControlString, MustHaveValue = true)]
|
2021-03-28 00:15:01 +04:00
|
|
|
|
public string Value { get; set; }
|
2021-03-26 20:09:52 +04:00
|
|
|
|
|
2021-04-01 21:30:29 +04:00
|
|
|
|
[ViewModelControlListProperty("Описание")]
|
2021-04-03 11:38:27 +04:00
|
|
|
|
[ViewModelControlElementProperty("Описание", ControlType.ControlText, Height = 200)]
|
2021-03-28 20:56:32 +04:00
|
|
|
|
public string Description { get; set; }
|
2021-03-26 20:09:52 +04:00
|
|
|
|
}
|
|
|
|
|
}
|