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>
|
|
|
|
|
public class EnviromentSettingViewModel : ElementViewModel
|
|
|
|
|
{
|
2021-03-27 23:50:29 +04:00
|
|
|
|
[ViewModelOnListProperty("Ключ")]
|
2021-03-30 22:34:31 +04:00
|
|
|
|
[ViewModelOnElementProperty("Ключ", 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-03-28 00:15:01 +04:00
|
|
|
|
[ViewModelOnListProperty("Значение")]
|
2021-03-30 22:34:31 +04:00
|
|
|
|
[ViewModelOnElementProperty("Значение", 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-03-28 20:56:32 +04:00
|
|
|
|
[ViewModelOnListProperty("Описание")]
|
2021-03-30 22:34:31 +04:00
|
|
|
|
[ViewModelOnElementProperty("Описание", ControlType.ControlText, 0, 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
|
|
|
|
public override string ToString() => Key;
|
|
|
|
|
}
|
|
|
|
|
}
|