2025-05-06 06:45:49 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using Volo.Abp.Domain.Entities.Auditing;
|
|
|
|
|
|
|
2025-11-11 19:49:52 +00:00
|
|
|
|
namespace Erp.Settings.Entities;
|
2025-05-06 06:45:49 +00:00
|
|
|
|
|
|
|
|
|
|
public class SettingDefinition : FullAuditedEntity<Guid>
|
|
|
|
|
|
{
|
|
|
|
|
|
public string Code { get; set; }
|
|
|
|
|
|
public string NameKey { get; set; }
|
|
|
|
|
|
public string DescriptionKey { get; set; }
|
|
|
|
|
|
public string DefaultValue { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Can clients see this setting and it's value.
|
|
|
|
|
|
/// It maybe dangerous for some settings to be visible to clients (such as an email server password).
|
|
|
|
|
|
/// Default: false.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool IsVisibleToClients { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// A list of allowed providers to get/set value of this setting.
|
|
|
|
|
|
/// An empty list indicates that all providers are allowed.
|
|
|
|
|
|
/// </summary>
|
2025-11-04 10:32:55 +00:00
|
|
|
|
public string Providers { get; set; }
|
2025-05-06 06:45:49 +00:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Is this setting inherited from parent scopes.
|
|
|
|
|
|
/// Value is inherited from other providers or not
|
|
|
|
|
|
/// Default: True.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool IsInherited { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool IsEncrypted { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string MainGroupKey { get; set; }
|
|
|
|
|
|
public string SubGroupKey { get; set; }
|
|
|
|
|
|
public string RequiredPermissionName { get; set; } // Permission: Tema, Setting: Tema,
|
|
|
|
|
|
public string DataType { get; set; } //text (default), number, checkbox, select (select options)
|
|
|
|
|
|
|
|
|
|
|
|
//key: vt'ye kaydedilecek değer,
|
|
|
|
|
|
//value: ILocalizableString, kullanıcıya gösterilecek değer
|
|
|
|
|
|
public Dictionary<string, string> SelectOptions { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public int Order { get; set; }
|
|
|
|
|
|
}
|
2025-11-11 19:49:52 +00:00
|
|
|
|
|