示例#1
0
        public static string GetWebBulletinListForHomeWrapper(int topNum)
        {
            CacheObjSetting cacheSetting            = StaticCacheObjSettings.SiteHomeWebBulletinListCacheSetting;
            string          key                     = cacheSetting.CacheKey;
            int             duration                = cacheSetting.CacheDuration;
            string          homeWebBulletinListHTML = CacheObj <string> .GetCachedObj(key, duration, GetWebBulletinListForHome(topNum));

            return(homeWebBulletinListHTML);
        }
示例#2
0
        public ProductDetailHelper(int productSysNo)
        {
            string key      = String.Format(DynomicCacheObjSettings.ProductBaiscInfoCacheSettings.CacheKey, productSysNo);
            int    duration = DynomicCacheObjSettings.ProductBaiscInfoCacheSettings.CacheDuration;

            productDetail = CacheObj <ProductDetailModel> .GetCachedObj(key, duration, ProductDetailBasicService.GetProductDetailBasicInfo(productSysNo));

            //productDetail = ProductDetailBasicService.GetProductDetailBasicInfo(productSysNo);
        }
示例#3
0
        public static string GetPanicProductsForHomeWrapper()
        {
            CacheObjSetting cacheSetting            = StaticCacheObjSettings.SiteHomePanicProductListCacheSetting;
            string          key                     = cacheSetting.CacheKey;
            int             duration                = cacheSetting.CacheDuration;
            string          HomeInComingProductHTML = CacheObj <string> .GetCachedObj(key, duration, GetPanicProductsForHome());

            return(HomeInComingProductHTML);
        }
示例#4
0
        public static string GetBrandsForCategoryOneProductsWrapper(string c1SysNo)
        {
            CacheObjSetting cacheSetting   = DynomicCacheObjSettings.HomeCategoryOneProductBrandsDisplayCacheSettings;
            string          key            = String.Format(cacheSetting.CacheKey, c1SysNo);
            int             duration       = cacheSetting.CacheDuration;
            string          homeBrandsHTML = CacheObj <string> .GetCachedObj(key, duration, GetBrandsForCategoryOneProducts(c1SysNo));

            return(homeBrandsHTML);
        }
示例#5
0
        public static string GetSiteStaticAdWrapper(int positionId, string cssClass, string width, string height)
        {
            CacheObjSetting cacheSetting = DynomicCacheObjSettings.SiteADCacheSetting;
            string          key          = String.Format(cacheSetting.CacheKey, positionId);
            int             duration     = cacheSetting.CacheDuration;
            string          siteAdHTML   = CacheObj <string> .GetCachedObj(key, duration, GetSiteStaticAd(positionId, cssClass, width, height));

            return(siteAdHTML);
        }
示例#6
0
        public static string GetSlideAdWrapper(int positionId)
        {
            CacheObjSetting cacheSetting = DynomicCacheObjSettings.SiteADCacheSetting;
            string          key          = String.Format(cacheSetting.CacheKey, positionId);
            int             duration     = cacheSetting.CacheDuration;
            string          slideAdHTML  = CacheObj <string> .GetCachedObj(key, duration, GetSlideAd(positionId));

            return(slideAdHTML);
        }
示例#7
0
        public string InitSubCategoryNavigationWrapper(int c1SysNo)
        {
            CacheObjSetting cacheSetting    = DynomicCacheObjSettings.SiteSubCategoryNavigationCacheSetting;
            string          key             = String.Concat(cacheSetting.CacheKey, c1SysNo);
            int             duration        = cacheSetting.CacheDuration;
            string          categoryNavHTML = String.Empty;

            categoryNavHTML = CacheObj <string> .GetCachedObj(key, duration, InitSubCategoryNavigation(c1SysNo));

            return(categoryNavHTML);
        }
示例#8
0
        /// <summary>
        /// 生成主页面的Top Category Navigation的包装方法
        /// 获得被缓存住的Top Category Navigation HTML字符串
        /// </summary>
        /// <returns></returns>
        public string InitCategoryNavigationWrapper()
        {
            CacheObjSetting cacheSetting    = StaticCacheObjSettings.SiteTopCategoryNavigationCacheSetting;
            string          key             = cacheSetting.CacheKey;
            int             duration        = cacheSetting.CacheDuration;
            string          categoryNavHTML = String.Empty;

            categoryNavHTML = CacheObj <string> .GetCachedObj(key, duration, InitCategoryNavigation());

            return(categoryNavHTML);
        }