|
@@ -3,6 +3,7 @@ using SqlSugar;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel;
|
|
using XF.Domain.Exceptions;
|
|
using XF.Domain.Exceptions;
|
|
using XF.Domain.Repository;
|
|
using XF.Domain.Repository;
|
|
|
|
+using XF.Utility.EnumExtensions;
|
|
|
|
|
|
namespace Hotline.Settings;
|
|
namespace Hotline.Settings;
|
|
|
|
|
|
@@ -72,6 +73,9 @@ public class SystemOrganize : CreationSoftDeleteEntity
|
|
[SugarColumn(IsIgnore = true)]
|
|
[SugarColumn(IsIgnore = true)]
|
|
public List<SystemOrganize> Children { get; set; }
|
|
public List<SystemOrganize> Children { get; set; }
|
|
|
|
|
|
|
|
+ [SugarColumn(IsIgnore = true)]
|
|
|
|
+ public string OrgTypeText => OrgType.GetDescription();
|
|
|
|
+
|
|
public void InitOrgLevel() => Level = Id.CalcOrgLevel();
|
|
public void InitOrgLevel() => Level = Id.CalcOrgLevel();
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|