本文整理汇总了C#中AspxCommerce.Core.StoreSettingConfig类的典型用法代码示例。如果您正苦于以下问题:C# StoreSettingConfig类的具体用法?C# StoreSettingConfig怎么用?C# StoreSettingConfig使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StoreSettingConfig类属于AspxCommerce.Core命名空间,在下文中一共展示了StoreSettingConfig类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
try
{
GetPortalCommonInfo(out StoreID, out PortalID, out CustomerID, out UserName, out CultureName, out SessionCode);
AspxCommonInfo aspxCommonObj = new AspxCommonInfo(StoreID, PortalID, UserName, CultureName, CustomerID, SessionCode);
if (!IsPostBack)
{
modulePath = this.AppRelativeTemplateSourceDirectory;
ServicePath = ResolveUrl(modulePath);
hst = AppLocalized.getLocale(modulePath);
IncludeJs("ItemsCompare", "/js/jquery.cookie.js",
"/Modules/AspxCommerce/AspxCompareItems/js/ItemsCompare.js");
IncludeCss("ItemsCompare", "/Modules/AspxCommerce/AspxCompareItems/css/module.css");
StoreSettingConfig ssc = new StoreSettingConfig();
DefaultImagePath = ssc.GetStoreSettingsByKey(StoreSetting.DefaultProductImageURL, StoreID, PortalID, CultureName);
}
IncludeLanguageJS();
CompareItems(aspxCommonObj);
}
catch (Exception ex)
{
ProcessException(ex);
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:25,代码来源:ItemsCompare.ascx.cs
示例2: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (!IsPostBack)
{
IncludeCss("ItemsCompare", "/Templates/" + TemplateName + "/css/MessageBox/style.css", "/Templates/" + TemplateName + "/css/PopUp/style.css");
IncludeJs("ItemsCompare", "/js/MessageBox/jquery.easing.1.3.js", "/js/MessageBox/alertbox.js", "/js/PopUp/custom.js", "/js/jquery.cookie.js",
"/Modules/AspxCommerce/AspxItemsCompare/js/ItemsCompare.js");
StoreID = GetStoreID;
PortalID = GetPortalID;
CustomerID = GetCustomerID;
UserName = GetUsername;
CultureName = GetCurrentCultureName;
if (HttpContext.Current.Session.SessionID != null)
{
SessionCode = HttpContext.Current.Session.SessionID.ToString();
}
UserIp = HttpContext.Current.Request.UserHostAddress;
IPAddressToCountryResolver ipToCountry = new IPAddressToCountryResolver();
ipToCountry.GetCountry(UserIp, out CountryName);
StoreSettingConfig ssc = new StoreSettingConfig();
EnableCompareItems = ssc.GetStoreSettingsByKey(StoreSetting.EnableCompareItems, StoreID, PortalID, CultureName);
}
}
catch (Exception ex)
{
ProcessException(ex);
}
}
开发者ID:Dashboard-X,项目名称:Aspxcommerce,代码行数:32,代码来源:ItemsCompare.ascx.cs
示例3: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (!IsPostBack)
{
IncludeCss("ItemRatingManagement", "/Templates/" + TemplateName + "/css/GridView/tablesort.css", "/Templates/" + TemplateName + "/css/MessageBox/style.css", "/Templates/" + TemplateName + "/css/StarRating/jquery.rating.css");
IncludeJs("ItemRatingManagement", "/js/jquery.searchabledropdown-1.0.8.src.js", "/js/FormValidation/jquery.validate.js", "/js/GridView/jquery.grid.js", "/js/GridView/SagePaging.js", "/js/GridView/jquery.global.js",
"/js/GridView/jquery.dateFormat.js", "/js/MessageBox/jquery.easing.1.3.js", "/js/MessageBox/alertbox.js", "/js/StarRating/jquery.rating.js",
"/js/StarRating/jquery.rating.js", "/js/StarRating/jquery.rating.pack.js",
"/Modules/AspxCommerce/AspxItemRatingManagement/js/ItemRatingManage.js");
StoreID = GetStoreID;
PortalID = GetPortalID;
UserName = GetUsername;
CultureName = GetCurrentCultureName;
UserModuleID = SageUserModuleID;
var ssc = new StoreSettingConfig();
NewItemReviewRss = ssc.GetStoreSettingsByKey(StoreSetting.NewItemReviewRss, StoreID, PortalID, CultureName);
if (NewItemReviewRss.ToLower() == "true")
{
RssFeedUrl = ssc.GetStoreSettingsByKey(StoreSetting.RssFeedURL, StoreID, PortalID, CultureName);
}
}
IncludeLanguageJS();
}
catch (Exception ex)
{
ProcessException(ex);
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:32,代码来源:ItemRatingManagement.ascx.cs
示例4: Button1_Click
protected void Button1_Click(object sender, EventArgs e)
{
try
{
DataTable resultsData = new DataTable();
AspxCommonInfo aspxCommonObj = new AspxCommonInfo();
aspxCommonObj.StoreID = GetStoreID;
aspxCommonObj.PortalID = GetPortalID;
aspxCommonObj.CultureName = GetCurrentCultureName;
StoreSettingConfig ssc = new StoreSettingConfig();
string CurrencyCode = ssc.GetStoreSettingsByKey(StoreSetting.MainCurrency, GetStoreID, GetPortalID, CultureName);
string CurrencySymbol = StoreSetting.GetSymbolFromCurrencyCode(CurrencyCode, GetStoreID, GetPortalID);
List<KeyValuePair<string, object>> parameter = CommonParmBuilder.GetParamSPC(aspxCommonObj);
parameter.Add(new KeyValuePair<string, object>("@CurrencySymbol", CurrencySymbol));
parameter.Add(new KeyValuePair<string, object>("@GiftCardType", _csvGiftCardHiddenCsv.Value));
string filename = "MyReport_GiftCardItems" + "_" + DateTime.Now.ToString("M_dd_yyyy_H_M_s") + ".xls";
string filePath = HttpContext.Current.Server.MapPath(ResolveUrl(this.AppRelativeTemplateSourceDirectory)) + filename;
ExportLargeData excelLdata = new ExportLargeData();
excelLdata.ExportTOExcel(filePath, "[dbo].[usp_Aspx_GetGiftCardReportsForExport]", parameter, resultsData);
}
catch (Exception ex)
{
ProcessException(ex);
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:26,代码来源:GiftCardsItems.ascx.cs
示例5: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
try
{
SageFrameConfig pagebase = new SageFrameConfig();
IsUseFriendlyUrls = pagebase.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls);
if (!IsPostBack)
{
IncludeCss("ShoppingBagHeader", "/Templates/" + TemplateName + "/css/PopUp/style.css", "/Templates/" + TemplateName + "/css/MessageBox/style.css");
IncludeJs("ShoppingBagHeader", "/js/PopUp/custom.js", "/js/MessageBox/jquery.easing.1.3.js", "/js/MessageBox/alertbox.js", "/js/Session.js",
"Modules/AspxCommerce/AspxShoppingBagHeader/js/ShoppingBag.js");
StoreID = GetStoreID;
PortalID = GetPortalID;
CustomerID = GetCustomerID;
UserName = GetUsername;
CultureName = GetCurrentCultureName;
if (HttpContext.Current.Session.SessionID != null)
{
SessionCode = HttpContext.Current.Session.SessionID.ToString();
}
StoreSettingConfig ssc = new StoreSettingConfig();
ShowMiniShopCart = ssc.GetStoreSettingsByKey(StoreSetting.ShowMiniShoppingCart, StoreID, PortalID, CultureName);
AllowMultipleAddChkOut = ssc.GetStoreSettingsByKey(StoreSetting.AllowMultipleShippingAddress, StoreID, PortalID, CultureName);
MinOrderAmount = ssc.GetStoreSettingsByKey(StoreSetting.MinimumOrderAmount, StoreID, PortalID, CultureName);
AllowAnonymousCheckOut = ssc.GetStoreSettingsByKey(StoreSetting.AllowAnonymousCheckOut, StoreID, PortalID, CultureName);
ShoppingCartURL = ssc.GetStoreSettingsByKey(StoreSetting.ShoppingCartURL, StoreID, PortalID, CultureName);
}
}
catch (Exception ex)
{
ProcessException(ex);
}
}
开发者ID:Dashboard-X,项目名称:Aspxcommerce,代码行数:35,代码来源:ShoppingBagHeader.ascx.cs
示例6: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (!IsPostBack)
{
IncludeCss("RecentlyComparedItems", "/Templates/" + TemplateName + "/css/MessageBox/style.css");
IncludeJs("RecentlyComparedItems", "/js/DateTime/date.js", "/js/MessageBox/jquery.easing.1.3.js", "/js/MessageBox/alertbox.js",
"/Modules/AspxCommerce/AspxRecentlyComparedItems/js/RecentlyComparedItems.js");
StoreID = GetStoreID;
PortalID = GetPortalID;
UserName = GetUsername;
CultureName = GetCurrentCultureName;
StoreSettingConfig ssc = new StoreSettingConfig();
CountCompare = int.Parse(ssc.GetStoreSettingsByKey(StoreSetting.NoOfRecentlyComparedItems, StoreID, PortalID, CultureName));
EnableRecentlyCompared = ssc.GetStoreSettingsByKey(StoreSetting.EnableRecentlyComparedItems, StoreID, PortalID, CultureName);
EnableCompareItemsRecently = ssc.GetStoreSettingsByKey(StoreSetting.EnableCompareItems, StoreID, PortalID, CultureName);
}
}
catch (Exception ex)
{
ProcessException(ex);
}
}
开发者ID:Dashboard-X,项目名称:Aspxcommerce,代码行数:26,代码来源:RecentlyComparedItems.ascx.cs
示例7: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (!IsPostBack)
{
IncludeCss("RecentlyViewedItems", "/Templates/" + TemplateName + "/css/MessageBox/style.css");
IncludeJs("RecentlyViewedItems", "/js/MessageBox/jquery.easing.1.3.js", "/js/MessageBox/alertbox.js",
"/Modules/AspxCommerce/AspxRecentlyViewedItems/js/RecentlyViewedItems.js");
StoreID = GetStoreID;
PortalID = GetPortalID;
UserName = GetUsername;
CultureName = GetCurrentCultureName;
if (HttpContext.Current.Session.SessionID != null)
{
SessionCode = HttpContext.Current.Session.SessionID.ToString();
}
StoreSettingConfig ssc = new StoreSettingConfig();
CountViewedItems = int.Parse(ssc.GetStoreSettingsByKey(StoreSetting.NoOfRecentlyViewedItemsDispay, StoreID, PortalID, CultureName));
EnableRecentlyViewed = ssc.GetStoreSettingsByKey(StoreSetting.EnableRecentlyViewedItems, StoreID, PortalID, CultureName);
}
}
catch (Exception ex)
{
ProcessException(ex);
}
}
开发者ID:Dashboard-X,项目名称:Aspxcommerce,代码行数:28,代码来源:RecentlyViewedItems.ascx.cs
示例8: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
try
{
string UserName = string.Empty;
GetPortalCommonInfo(out StoreID, out PortalID, out UserName, out CultureName);
AspxCommonInfo aspxCommonObj = new AspxCommonInfo(StoreID, PortalID, UserName, CultureName);
if (!IsPostBack)
{
StoreSettingConfig ssc = new StoreSettingConfig();
MainCurrency = ssc.GetStoreSettingsByKey(StoreSetting.MainCurrency, StoreID, PortalID, CultureName);
if (Session["CurrencyCode"] != null && Session["CurrencyCode"].ToString() != "")
{
SelectedCurrency = Session["CurrencyCode"].ToString();
}
else
{
SelectedCurrency = MainCurrency;
}
IncludeJs("Currencyconversion", "/js/FancyDropDown/fancyDropDown.js");//
IncludeCss("Currencyconversion", "/Templates/" + TemplateName + "/css/FancyDropDown/fancy.css", "/Modules/AspxCommerce/AspxCurrencyConverter/css/module.css");
}
IncludeLanguageJS();
BindCurrencyList(aspxCommonObj);
}
catch (Exception ex)
{
ProcessException(ex);
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:31,代码来源:Currencyconversion.ascx.cs
示例9: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (!IsPostBack)
{
var sfConfig = new SageFrameConfig();
_isUseFriendlyUrls = sfConfig.GetSettingBollByKey(SageFrameSettingKeys.UseFriendlyUrls);
if (_isUseFriendlyUrls)
{
if (!IsParent)
{
AddressPath = HttpContext.Current.Request.ServerVariables["SERVER_NAME"] + "/portal/" + GetPortalSEOName + "/";
}
else
{
AddressPath = HttpContext.Current.Request.ServerVariables["SERVER_NAME"] + "/";
}
}
StoreSettingConfig ssc = new StoreSettingConfig();
MainCurrency = ssc.GetStoreSettingsByKey(StoreSetting.MainCurrency, GetPortalID, GetPortalID, GetCurrentCultureName);
}
IncludeLanguageJS();
}
catch
{
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:31,代码来源:AIM_AuthorizeDotNET.ascx.cs
示例10: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
try
{
GetPortalCommonInfo(out StoreID, out PortalID, out UserName, out CultureName);
AspxCommonInfo aspxCommonObj = new AspxCommonInfo(StoreID, PortalID, UserName, CultureName);
if (!IsPostBack)
{
IncludeJs("WishItems", "/js/DateTime/date.js", "/js/jquery.tipsy.js", "/Modules/AspxCommerce/AspxWishList/js/WishItems.js");
IncludeCss("WishItemsCss", "/Modules/AspxCommerce/AspxWishList/css/WishItems.css");
userFriendlyURL = IsUseFriendlyUrls;
GetWishListItemsSettig(aspxCommonObj);
StoreSettingConfig ssc = new StoreSettingConfig();
ssc.GetStoreSettingParamThree(StoreSetting.DefaultProductImageURL, StoreSetting.ShowItemImagesInWishList,StoreSetting.ModuleCollapsible, out NoImageWishItemPath, out ShowWishedItemImage, out ModuleCollapsible, StoreID, PortalID, CultureName);
}
if (NoOfRecentAddedWishItems > 0)
{
BindMyWishList(aspxCommonObj);
}
IncludeLanguageJS();
}
catch (Exception ex)
{
ProcessException(ex);
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:28,代码来源:WishItems.ascx.cs
示例11: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (!IsPostBack)
{
IncludeJs("ItemCompareDetails", "/js/Templating/tmpl.js", "/js/jquery.cookie.js");
StoreID = GetStoreID;
PortalID = GetPortalID;
CustomerID = GetCustomerID;
UserName = GetUsername;
CultureName = GetCurrentCultureName;
if (HttpContext.Current.Session.SessionID != null)
{
SessionCode = HttpContext.Current.Session.SessionID.ToString();
}
UserIP = HttpContext.Current.Request.UserHostAddress;
IPAddressToCountryResolver ipToCountry = new IPAddressToCountryResolver();
ipToCountry.GetCountry(UserIP, out CountryName);
StoreSettingConfig ssc = new StoreSettingConfig();
NoImageItemComparePath = ssc.GetStoreSettingsByKey(StoreSetting.DefaultProductImageURL, StoreID, PortalID, CultureName);
AllowOutStockPurchase = ssc.GetStoreSettingsByKey(StoreSetting.AllowOutStockPurchase, StoreID, PortalID, CultureName);
AllowWishListItemCompareDetail = ssc.GetStoreSettingsByKey(StoreSetting.EnableWishList, StoreID, PortalID, CultureName);
}
}
catch (Exception ex)
{
ProcessException(ex);
}
}
开发者ID:Dashboard-X,项目名称:Aspxcommerce,代码行数:31,代码来源:ItemCompareDetails.ascx.cs
示例12: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (!IsPostBack)
{
StoreSettingConfig ssc = new StoreSettingConfig();
IncludeCss("Returns", "/Templates/" + TemplateName + "/css/GridView/tablesort.css", "/Templates/" + TemplateName + "/css/MessageBox/style.css", "/Templates/" + TemplateName + "/css/JQueryUI/jquery.ui.all.css");
IncludeJs("Returns", "/js/GridView/jquery.grid.js", "/js/GridView/SagePaging.js", "/js/GridView/jquery.global.js", "/js/GridView/jquery.dateFormat.js",
"/js/MessageBox/jquery.easing.1.3.js", "/js/MessageBox/alertbox.js", "/js/ExportToCSV/table2CSV.js", "/js/CurrencyFormat/jquery.formatCurrency-1.4.0.js",
"/js/CurrencyFormat/jquery.formatCurrency.all.js", "/Modules/AspxCommerce/AspxReturnAndPolicy/js/Return.js","/js/GridView/jquery.dateFormat.js", "/js/DateTime/date.js");
StoreID = GetStoreID;
PortalID = GetPortalID;
UserName = GetUsername;
CultureName = GetCurrentCultureName;
MembershipController member = new MembershipController();
UserInfo user = member.GetUserDetails(GetPortalID, GetUsername);
SenderEmail = user.Email;
templateName = TemplateName;
AllowRealTimeNotifications = ssc.GetStoreSettingsByKey(StoreSetting.AllowRealTimeNotifications, StoreID, PortalID, CultureName);
}
IncludeLanguageJS();
}
catch (Exception ex)
{
ProcessException(ex);
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:30,代码来源:Returns.ascx.cs
示例13: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (!IsPostBack)
{
IncludeCss("StoreOrdersReport", "/Templates/" + TemplateName + "/css/GridView/tablesort.css", "/Templates/" + TemplateName + "/css/MessageBox/style.css");
IncludeJs("StoreOrdersReport", "/js/GridView/jquery.grid.js", "/js/GridView/SagePaging.js", "/js/GridView/jquery.global.js", "/js/GridView/jquery.dateFormat.js",
"/js/MessageBox/jquery.easing.1.3.js", "/js/MessageBox/alertbox.js", "/js/ExportToCSV/table2CSV.js", "/js/CurrencyFormat/jquery.formatCurrency-1.4.0.js",
"/js/CurrencyFormat/jquery.formatCurrency.all.js", "/Modules/AspxCommerce/AspxOrderManagement/js/StoreOrdersReport.js");
UserModuleID = SageUserModuleID;
StoreID = GetStoreID;
PortalID = GetPortalID;
UserName = GetUsername;
CultureName = GetCurrentCultureName;
MembershipController member = new MembershipController();
UserInfo user = member.GetUserDetails(GetPortalID, GetUsername);
SenderEmail = user.Email;
StoreSettingConfig ssc = new StoreSettingConfig();
StoreName = ssc.GetStoreSettingsByKey(StoreSetting.StoreName, StoreID, PortalID, CultureName);
}
IncludeLanguageJS();
}
catch (Exception ex)
{
ProcessException(ex);
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:28,代码来源:StoreOrdersReport.ascx.cs
示例14: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
try
{
SageFrameRoute parentPage = (SageFrameRoute) this.Page;
Servicekey = parentPage.Key;
Servicekey = Servicekey.Replace("ampersand", "&").Replace("-", " ").Replace("_", "-").Replace("+", " ");
if (!IsPostBack)
{
IncludeJs("Service", "/js/encoder.js");
IncludeCss("ServiceCss", "/Modules/AspxCommerce/AspxServiceItems/css/ServiceItems.css");
CustomerID = GetCustomerID;
aspxCommonObj.StoreID = GetStoreID;
aspxCommonObj.PortalID = GetPortalID;
aspxCommonObj.UserName = GetUsername;
aspxCommonObj.CultureName = GetCurrentCultureName;
StoreSettingConfig ssc = new StoreSettingConfig();
NoImageCategoryDetailPath = ssc.GetStoreSettingsByKey(StoreSetting.DefaultProductImageURL,
aspxCommonObj.StoreID, aspxCommonObj.PortalID,
aspxCommonObj.CultureName);
}
IncludeLanguageJS();
BindServiceDetails();
}
catch (Exception ex)
{
ProcessException(ex);
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:30,代码来源:ServicesDetails.ascx.cs
示例15: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (!IsPostBack)
{
IncludeCss("PendingTags", "/Templates/" + TemplateName + "/css/GridView/tablesort.css", "/Templates/" + TemplateName + "/css/MessageBox/style.css", "/Templates/" + TemplateName + "/css/PopUp/style.css");
IncludeJs("PendingTags", "/js/MessageBox/jquery.easing.1.3.js", "/js/MessageBox/alertbox.js", "/js/PopUp/custom.js", "/js/GridView/jquery.grid.js", "/js/GridView/SagePaging.js",
"/js/GridView/jquery.global.js", "/js/GridView/jquery.dateFormat.js", "/js/FormValidation/jquery.validate.js", "/Modules/AspxCommerce/AspxTagsManagement/js/PendingTags.js", "/js/CurrencyFormat/jquery.formatCurrency-1.4.0.js",
"/js/CurrencyFormat/jquery.formatCurrency.all.js");
StoreID = GetStoreID;
PortalID = GetPortalID;
UserName = GetUsername;
CultureName = GetCurrentCultureName;
StoreSettingConfig ssc = new StoreSettingConfig();
NoImagePendingTagsPath = ssc.GetStoreSettingsByKey(StoreSetting.DefaultProductImageURL, StoreID, PortalID, CultureName);
}
}
catch (Exception ex)
{
ProcessException(ex);
}
}
开发者ID:Dashboard-X,项目名称:Aspxcommerce,代码行数:25,代码来源:PendingTags.ascx.cs
示例16: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (!IsPostBack)
{
StoreID = GetStoreID;
PortalID = GetPortalID;
UserName = GetUsername;
CustomerID = GetCustomerID;
CultureName = GetCurrentCultureName;
if (HttpContext.Current.Session.SessionID != null)
{
SessionCode = HttpContext.Current.Session.SessionID.ToString();
}
StoreSettingConfig ssc = new StoreSettingConfig();
decimal additionalCCVR = decimal.Parse(ssc.GetStoreSettingsByKey(StoreSetting.AdditionalCVR, StoreID, PortalID, CultureName));
string MainCurrency = ssc.GetStoreSettingsByKey(StoreSetting.MainCurrency, StoreID, PortalID, CultureName);
if (HttpContext.Current.Session["CurrencyRate"] != null)
{
if (Session["CurrencyCode"].ToString() != MainCurrency)
{
decimal rate1 = decimal.Parse(Session["CurrencyRate"].ToString());
Rate = Math.Round(rate1 + (rate1 * additionalCCVR / 100), 4);
}
else
{
Rate = decimal.Parse(Session["CurrencyRate"].ToString());
}
}
YouMayAlsoLikeModulePath = ResolveUrl(this.AppRelativeTemplateSourceDirectory);
NoImageYouMayAlsoLikePath = ssc.GetStoreSettingsByKey(StoreSetting.DefaultProductImageURL, StoreID, PortalID, CultureName);
AllowAddToCart = ssc.GetStoreSettingsByKey(StoreSetting.ShowAddToCartButton, StoreID, PortalID, CultureName);
AllowOutStockPurchase = ssc.GetStoreSettingsByKey(StoreSetting.AllowOutStockPurchase, StoreID, PortalID, CultureName);
IncludeCss("YouMayAlsoLike", "/Templates/" + TemplateName + "/css/ToolTip/tooltip.css");
IncludeJs("YouMayAlsoLike", "/js/jquery.tipsy.js");
}
IncludeLanguageJS();
GetYouMayAlsoLikeSetting();
if (EnableYouMayAlsoLike == true && NoOfYouMayAlsoLikeItems > 0)
{
string itemsku = null;
string url = HttpContext.Current.Request.Url.ToString();
if(url.Contains("item"))
{
itemsku = url.Substring(url.LastIndexOf('/'));
itemsku = itemsku.Substring(1, (itemsku.LastIndexOf('.') - 1));
}
GetItemRelatedUpSellAndCrossSellList(itemsku);
}
IncludeLanguageJS();
}
catch (Exception ex)
{
ProcessException(ex);
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:60,代码来源:YouMayAlsoLike.ascx.cs
示例17: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
try
{
SageFrameConfig pagebase = new SageFrameConfig();
GetPortalCommonInfo(out StoreID, out PortalID, out CustomerID, out UserName, out CultureName);
if (!IsPostBack)
{
IncludeCss("ShoppingBagHeader", "/Templates/" + TemplateName + "/css/PopUp/style.css",
"/Templates/" + TemplateName + "/css/MessageBox/style.css",
"/Modules/AspxCommerce/AspxShoppingBagHeader/css/module.css");
IncludeJs("ShoppingBagHeader", "/js/PopUp/custom.js", "/js/MessageBox/jquery.easing.1.3.js",
"/js/MessageBox/alertbox.js",
"/Modules/AspxCommerce/AspxShoppingBagHeader/js/ShoppingBag.js", "/js/Session.js");
UserModuleID = SageUserModuleID;
if (HttpContext.Current.Session.SessionID != null)
{
SessionCode = HttpContext.Current.Session.SessionID.ToString();
}
StoreSettingConfig ssc = new StoreSettingConfig();
ssc.GetStoreSettingParamEight(StoreSetting.ShowMiniShoppingCart, StoreSetting.ShowAddToCartButton,
StoreSetting.AllowMultipleShippingAddress, StoreSetting.MinimumCartSubTotalAmount, StoreSetting.AllowAnonymousCheckOut,
StoreSetting.ShoppingCartURL,StoreSetting.SingleCheckOutURL, StoreSetting.AllowRealTimeNotifications,
out ShowMiniShopCart, out AllowAddToCart, out AllowMultipleAddChkOut, out MinCartSubTotalAmount, out AllowAnonymousCheckOut,
out ShoppingCartURL, out SingleAddressChkOutURL, out AllowRealTimeNotifications, StoreID, PortalID, CultureName);
AspxCommonInfo aspxCommonObj = new AspxCommonInfo(StoreID, PortalID,CultureName);
BagType = AspxShoppingBagController.GetShoppingBagSetting(aspxCommonObj);
}
IncludeLanguageJS();
}
catch (Exception ex)
{
ProcessException(ex);
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:35,代码来源:ShoppingBagHeader.ascx.cs
示例18: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (!IsPostBack)
{
IncludeCss("CouponManage", "/Templates/" + TemplateName + "/css/GridView/tablesort.css", "/Templates/" + TemplateName + "/css/MessageBox/style.css", "/Templates/" + TemplateName + "/css/JQueryUI/jquery.ui.all.css");
IncludeJs("CouponManage","/js/FormValidation/jquery.validate.js", "/js/GridView/jquery.grid.js", "/js/GridView/SagePaging.js",
"/js/GridView/jquery.global.js", "/js/GridView/jquery.dateFormat.js", "/js/DateTime/date.js", "/js/MessageBox/jquery.easing.1.3.js", "/js/MessageBox/alertbox.js", "/Modules/AspxCommerce/AspxCouponManagement/js/CouponManage.js", "/js/CurrencyFormat/jquery.formatCurrency-1.4.0.js",
"/js/CurrencyFormat/jquery.formatCurrency.all.js");
StoreID = GetStoreID;
PortalID = GetPortalID;
userName = GetUsername;
CultureName = GetCurrentCultureName;
UserModuleId = SageUserModuleID;
StoreSettingConfig ssc = new StoreSettingConfig();
StoreLogoImg = ssc.GetStoreSettingsByKey(StoreSetting.StoreLogoURL, StoreID, PortalID, CultureName);
StoreName = ssc.GetStoreSettingsByKey(StoreSetting.StoreName, StoreID, PortalID, CultureName);
UserEmail = ssc.GetStoreSettingsByKey(StoreSetting.SendEcommerceEmailsFrom, StoreID, PortalID, CultureName);
}
IncludeLanguageJS();
}
catch (Exception ex)
{
ProcessException(ex);
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:29,代码来源:CouponManage.ascx.cs
示例19: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
try
{
if (!IsPostBack)
{
IncludeCss("ShippingManagement", "/Templates/" + TemplateName + "/css/GridView/tablesort.css", "/Templates/" + TemplateName + "/css/MessageBox/style.css", "/Templates/" + TemplateName + "/css/JQueryUI/jquery.ui.all.css");
IncludeJs("ShippingManagement","/js/AjaxFileUploader/ajaxupload.js", "/js/FormValidation/jquery.validate.js", "/js/GridView/jquery.grid.js", "/js/GridView/SagePaging.js", "/js/GridView/jquery.global.js", "/js/GridView/jquery.dateFormat.js",
"/js/PopUp/custom.js", "/js/MessageBox/jquery.easing.1.3.js", "/js/MessageBox/alertbox.js","/Modules/AspxCommerce/AspxShippingManagement/js/ShippingManage.js");
StoreID = GetStoreID;
PortalID = GetPortalID;
UserName = GetUsername;
CultureName = GetCurrentCultureName;
UserModuleID = SageUserModuleID;
StoreSettingConfig ssc = new StoreSettingConfig();
MaxFileSize = int.Parse(ssc.GetStoreSettingsByKey(StoreSetting.MaximumImageSize, StoreID, PortalID, CultureName));
}
AddLanguage();
IncludeLanguageJS();
}
catch (Exception ex)
{
ProcessException(ex);
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:27,代码来源:ShippingManagement.ascx.cs
示例20: Page_Init
protected void Page_Init(object sender, EventArgs e)
{
try
{
if (!IsPostBack)
{
serviceModulePath = ResolveUrl(this.AppRelativeTemplateSourceDirectory);
aspxCommonObj.StoreID = GetStoreID;
aspxCommonObj.PortalID = GetPortalID;
aspxCommonObj.UserName = GetUsername;
aspxCommonObj.CultureName = GetCurrentCultureName;
StoreSettingConfig ssc = new StoreSettingConfig();
NoImageService = ssc.GetStoreSettingsByKey(StoreSetting.DefaultProductImageURL, aspxCommonObj.StoreID,
aspxCommonObj.PortalID, aspxCommonObj.CultureName);
ServiceTypeItemRss = "true";
IncludeJs("Service", "/Modules/AspxCommerce/AspxServiceItems/js/Services.js");
IncludeCss("ServiceCss", "/Modules/AspxCommerce/AspxServiceItems/css/ServiceItems.css");
}
BindAllServices();
IncludeLanguageJS();
}
catch (Exception ex)
{
ProcessException(ex);
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:28,代码来源:ServicesAll.ascx.cs
注:本文中的AspxCommerce.Core.StoreSettingConfig类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论