Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (!IsPostBack)
         {
             IncludeCss("FrontItemGallery", "/Templates/" + TemplateName + "/css/FrontItemGallery/module.css",
                        "/Templates/" + TemplateName + "/css/MessageBox/style.css");
             IncludeJs("FrontItemGallery", "/js/FrontImageGallery/jquery.nivo.slider.js",
                       "/js/MessageBox/jquery.easing.1.3.js", "/js/MessageBox/alertbox.js",
                       "/Modules/AspxCommerce/AspxFrontItemGallery/js/FrontItemGallery.js");
             StoreID     = GetStoreID;
             PortalID    = GetPortalID;
             UserName    = GetUsername;
             CultureName = GetCurrentCultureName;
             aspxCommonObj.SessionCode = Session.SessionID;
             aspxCommonObj.StoreID     = StoreID;
             aspxCommonObj.PortalID    = PortalID;
             aspxCommonObj.UserName    = UserName;
             aspxCommonObj.CultureName = CultureName;
             aspxCommonObj.CustomerID  = GetCustomerID;
             StoreSettingConfig ssc = new StoreSettingConfig();
             NoImageFeaturedItemPath = ssc.GetStoreSettingsByKey(StoreSetting.DefaultProductImageURL, StoreID,
                                                                 PortalID, CultureName);
             FeatureItemRss    = ssc.GetStoreSettingsByKey(StoreSetting.FeatureItemRss, StoreID, PortalID, CultureName);
             ModuleCollapsible = ssc.GetStoreSettingsByKey(StoreSetting.ModuleCollapsible, StoreID, PortalID, CultureName);
             if (FeatureItemRss.ToLower() == "true")
             {
                 RssFeedUrl = ssc.GetStoreSettingsByKey(StoreSetting.RssFeedURL, StoreID, PortalID, CultureName);
             }
             List <FrontItemGallerySettingInfo> galleryObj = AspxFeatureItemController.GetFrontGallerySetting(aspxCommonObj);
             foreach (FrontItemGallerySettingInfo item in galleryObj)
             {
                 GalleryDisplayAs = item.GalleryDisplayAs;
                 Count            = item.Count;
             }
             if (GalleryDisplayAs == "Featured")
             {
                 LoadFeaturedGallery();
             }
             else
             {
                 LoadSpecialGallery();
             }
         }
         IncludeLanguageJS();
     }
     catch (Exception ex)
     {
         ProcessException(ex);
     }
 }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         ModuleServicePath         = ResolveUrl("~") + "Modules/AspxCommerce/AspxCommerceServices/";
         aspxCommonObj.StoreID     = GetStoreID;
         aspxCommonObj.PortalID    = GetPortalID;
         aspxCommonObj.CultureName = GetCurrentCultureName;
         List <FrontItemGallerySettingInfo> galleryObj = AspxFeatureItemController.GetFrontGallerySetting(aspxCommonObj);
         foreach (FrontItemGallerySettingInfo item in galleryObj)
         {
             GalleryDisplayAs = item.GalleryDisplayAs;
             Count            = item.Count;
         }
     }
     IncludeLanguageJS();
 }