예제 #1
0
        /// <summary>
        /// 获取当前页面里所有的Detail模式的Panel列表
        /// </summary>
        /// <returns></returns>
        public IList <UD_Panel> GetDetailPanels()
        {
            string           CacheKey = "UD_DetailView-DetailPanels-" + _m.ID.ToString();
            IList <UD_Panel> list     = (IList <UD_Panel>)DataCache.GetCache(CacheKey);

            if (list == null)
            {
                list = UD_PanelBLL.GetModelList("DetailViewID='" + _m.ID.ToString() + "' and DisplayType=1");

                AggregateCacheDependency cachedependency = new AggregateCacheDependency();
                cachedependency.Add(new SqlCacheDependency("MCS_SYS", "UD_Panel"));

                DataCache.SetCache(CacheKey, list, cachedependency);
            }
            return(list);
        }
예제 #2
0
 public IList <UD_Panel> GetPanels()
 {
     return(UD_PanelBLL.GetModelList("DetailViewID='" + _m.ID.ToString() + "'"));;
 }