2021-03-28 19:15:55 +04:00
|
|
|
|
using ModuleTools.Attributes;
|
2021-03-30 22:34:31 +04:00
|
|
|
|
using ModuleTools.Enums;
|
2021-03-28 19:15:55 +04:00
|
|
|
|
using ModuleTools.ViewModels;
|
2021-03-26 20:09:52 +04:00
|
|
|
|
|
|
|
|
|
namespace SecurityBusinessLogic.ViewModels
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Список общих настроек системы
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class EnviromentSettingListViewModel : ListViewModel<EnviromentSettingViewModel> { }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Элемент общих настроек системы
|
|
|
|
|
/// </summary>
|
2021-04-01 21:30:29 +04:00
|
|
|
|
[ViewModelControlElementClass()]
|
2021-03-26 20:09:52 +04:00
|
|
|
|
public class EnviromentSettingViewModel : ElementViewModel
|
|
|
|
|
{
|
2021-04-01 21:30:29 +04:00
|
|
|
|
[ViewModelControlListProperty("Ключ")]
|
|
|
|
|
[ViewModelControlElementProperty("Ключ", ControlType.ControlString, MustHaveValue = true, ReadOnly = true)]
|
2021-03-28 20:56:32 +04:00
|
|
|
|
[MapConfiguration("Key", AllowCopyWithoutRigth = false)]
|
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 20:56:32 +04:00
|
|
|
|
[MapConfiguration("Value", AllowCopyWithoutRigth = false)]
|
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
|
|
|
|
[MapConfiguration("Description", AllowCopyWithoutRigth = false)]
|
|
|
|
|
public string Description { get; set; }
|
2021-03-26 20:09:52 +04:00
|
|
|
|
}
|
|
|
|
|
}
|