2021-03-28 19:15:55 +04:00
|
|
|
|
using ModuleTools.Attributes;
|
|
|
|
|
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-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-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("Описание")]
|
|
|
|
|
[MapConfiguration("Description", AllowCopyWithoutRigth = false)]
|
|
|
|
|
public string Description { get; set; }
|
|
|
|
|
|
2021-03-26 20:09:52 +04:00
|
|
|
|
public override string ToString() => Key;
|
|
|
|
|
}
|
|
|
|
|
}
|