private void BindItemImageGallery(AspxCommonInfo aspxCommonObj) { SageFrameRoute parentPage = (SageFrameRoute)this.Page; string itemSKU = parentPage.Key; string costCombination = string.Empty; AspxCoreController obj = new AspxCoreController(); ItemCommonInfo objItemInfo = obj.GetItemInfoFromSKU(itemSKU, aspxCommonObj); if (objItemInfo != null) { ItemID = objItemInfo.ItemID; ItemTypeID = objItemInfo.ItemTypeID; } if (ItemTypeID == 3) { List <GiftCardInfo> lstItemGallery = obj.GetGiftCardThemeImagesByItem(ItemID, aspxCommonObj); BindGiftGallery(lstItemGallery, aspxCommonObj); } else { List <VariantCombination> lstItemCombination = obj.GetCostVariantCombinationbyItemSku(itemSKU, aspxCommonObj); if (lstItemCombination != null && lstItemCombination.Count > 0) { costCombination = lstItemCombination[0].CombinationID.ToString(); } else { costCombination = "0"; } List <ItemsInfoSettings> lstItemGallery = obj.GetItemsImageGalleryInfoBySKU(itemSKU, aspxCommonObj, costCombination); BindGallery(lstItemGallery, aspxCommonObj); } }
private void BindItemImageGallery() { SageFrameRoute parentPage = (SageFrameRoute)this.Page; string itemSKU = parentPage.Key; if (HttpContext.Current.Session.SessionID != null) { SessionCode = HttpContext.Current.Session.SessionID.ToString(); } string costCombination = ""; aspxCommonObj.UserName = GetUsername; aspxCommonObj.PortalID = GetPortalID; aspxCommonObj.StoreID = GetStoreID; aspxCommonObj.CustomerID = GetCustomerID; aspxCommonObj.CultureName = GetCurrentCultureName; aspxCommonObj.SessionCode = SessionCode; AspxCoreController obj = new AspxCoreController(); ItemCommonInfo objItemInfo = obj.GetItemInfoFromSKU(itemSKU, aspxCommonObj); if (objItemInfo != null) { ItemID = objItemInfo.ItemID; ItemTypeID = objItemInfo.ItemTypeID; } if (ItemTypeID == 3) { List <GiftCardInfo> lstItemGallery = obj.GetGiftCardThemeImagesByItem(ItemID, aspxCommonObj); BindGiftGallery(lstItemGallery); } else { List <VariantCombination> lstItemCombination = obj.GetCostVariantCombinationbyItemSku(itemSKU, aspxCommonObj); if (lstItemCombination != null && lstItemCombination.Count > 0) { costCombination = lstItemCombination[0].CombinationID.ToString(); } else { costCombination = "0"; } List <ItemsInfoSettings> lstItemGallery = obj.GetItemsImageGalleryInfoBySKU(itemSKU, aspxCommonObj, costCombination); BindGallery(lstItemGallery); } }