| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- using System.Collections.Generic;
- using System.Web.Mvc;
- using Abp.Localization;
- using IwbZero;
- using IwbZero.Authorization.Base.Roles;
- using IwbZero.Authorization.Base.Users;
- namespace ContractService.Configuration
- {
- public class IwbCacheNames
- {
- public const string FunctionCache = "FunctionCache";
- public const string NavFunctionCache = "NavFunctionCache";
- public const string QueryLawFirmNo = "QueryLawFirmNo";
- public const string QueryCompanyNo = "QueryCompanyNo";
- public const string QueryCaseNo = "QueryCaseNo";
- public const string QueryLawyerInfo = "QueryLawyerInfo";
- public const string QueryStaffInfo = "QueryStaffInfo";
- public const string QueryKeyPointStaffInfo = "QueryKeyPointStaffInfo";
- public const string QuerySysName = "QuerySysName";
- public const string EntityCacheName = "EntityCacheName";
- public static readonly List<string> RefreshList = new List<string>()
- {
- NavFunctionCache,
- FunctionCache,
- UserPermissionCacheItem.CacheStoreName,
- RolePermissionCacheItem.CacheStoreName,
- };
- public static List<SelectListItem> GetCacheList()
- {
- var sList = new List<SelectListItem> { new SelectListItem() { Value = "", Text = L("CacheAll") } };
- foreach (var l in RefreshList)
- {
- sList.Add(new SelectListItem() { Value = l, Text = L(l) });
- }
- return sList;
- }
- private static string L(string name)
- {
- var str = LocalizationHelper.GetSource(IwbZeroConsts.LocalizationSourceName).GetString(name);
- return str;
- }
- //public static List<CacheItem> Caches => new List<CacheItem>()
- //{
- // new CacheItem(FunctionCache),
- //};
- }
- //public class CacheItem
- //{
- // public CacheItem()
- // {
- // }
- // public CacheItem(string name, string displayName)
- // {
- // Name = name;
- // DisplayName = displayName;
- // }
- // public CacheItem(string name)
- // {
- // Name = name;
- // DisplayName = name;
- // }
- // public string Name { get; set; }
- // public string DisplayName { get; set; }
- //}
- }
|