Browse Source

去掉及时性

master
qian 11 months ago
parent
commit
d79608dc47
  1. 8
      北京北汽/Models/ScpCache.cs
  2. 8
      北京北汽/SCP/Business/PageBase.cs

8
北京北汽/Models/ScpCache.cs

@ -253,11 +253,11 @@ namespace CK.SCP.Models
{
get
{
//if (_LangauageList == null || _LangauageList.Count == 0)
//{
// 为了及时性 每次都直接读取
if (_LangauageList == null || _LangauageList.Count == 0)
{
//// 为了及时性 每次都直接读取
_LangauageList = ScpDb.TA_LANGUAGE.ToList();
//}
}
return _LangauageList;
}

8
北京北汽/SCP/Business/PageBase.cs

@ -1242,11 +1242,11 @@ namespace SCP
if (!string.IsNullOrEmpty(p_key))
{
List<TA_LANGUAGE> _ls = null;
//if (Application["LanguageList"] == null)
//{
// 为了及时性 每次都直接读取
if (Application["LanguageList"] == null)
{
//// 为了及时性 每次都直接读取
Application["LanguageList"] = ScpCache.LangauageList;
//}
}
_ls = Application["LanguageList"] as List<TA_LANGUAGE>;
if (_ls != null)

Loading…
Cancel
Save