init
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
namespace Kreta.KretaServer.SystemSettings.SettingsTypes
|
||||
{
|
||||
public class SettingsCheckBox : SettingsControlBase
|
||||
{
|
||||
public bool IsSelected { get; set; }
|
||||
|
||||
public int StringResourcesID { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace Kreta.KretaServer.SystemSettings.SettingsTypes
|
||||
{
|
||||
public class SettingsCheckBoxGroup : SettingsControlBase
|
||||
{
|
||||
public SettingsCheckBoxGroup()
|
||||
{
|
||||
Options = new List<SelectListItem>();
|
||||
}
|
||||
|
||||
public List<SelectListItem> Options { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Kreta.KretaServer.SystemSettings.SettingsTypes
|
||||
{
|
||||
public abstract class SettingsControlBase
|
||||
{
|
||||
public string Id { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
|
||||
namespace Kreta.KretaServer.SystemSettings.SettingsTypes
|
||||
{
|
||||
public class SettingsDatePicker : SettingsControlBase
|
||||
{
|
||||
public DateTime? Date { get; set; }
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
public DateTime? Min { get; set; }
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
public DateTime? Max { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace Kreta.KretaServer.SystemSettings.SettingsTypes
|
||||
{
|
||||
public class SettingsDropDownList : SettingsControlBase
|
||||
{
|
||||
public SettingsDropDownList()
|
||||
{
|
||||
Options = new List<SelectListItem>();
|
||||
}
|
||||
|
||||
public List<SelectListItem> Options { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace Kreta.KretaServer.SystemSettings.SettingsTypes
|
||||
{
|
||||
public class SettingsMultiSelect : SettingsControlBase
|
||||
{
|
||||
public SettingsMultiSelect()
|
||||
{
|
||||
Options = new List<SelectListItem>();
|
||||
}
|
||||
|
||||
public List<SelectListItem> Options { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Kreta.KretaServer.SystemSettings.SettingsTypes
|
||||
{
|
||||
public class SettingsNumericTextBox : SettingsControlBase
|
||||
{
|
||||
public double Value { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace Kreta.KretaServer.SystemSettings.SettingsTypes
|
||||
{
|
||||
public class SettingsRadioButtonGroup : SettingsControlBase
|
||||
{
|
||||
public SettingsRadioButtonGroup()
|
||||
{
|
||||
Options = new List<SelectListItem>();
|
||||
}
|
||||
|
||||
public List<SelectListItem> Options { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Kreta.KretaServer.SystemSettings.SettingsTypes
|
||||
{
|
||||
public class SettingsSwitchButton : SettingsControlBase
|
||||
{
|
||||
public bool Value { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using System;
|
||||
|
||||
namespace Kreta.KretaServer.SystemSettings.SettingsTypes
|
||||
{
|
||||
public class SettingsTimePicker : SettingsControlBase
|
||||
{
|
||||
public TimeSpan Time { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user