本文整理汇总了C#中AspxCommerce.Core.StoreSettingConfig类的典型用法代码示例。如果您正苦于以下问题:C# StoreSettingConfig类的具体用法?C# StoreSettingConfig怎么用?C# StoreSettingConfig使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StoreSettingConfig类属于AspxCommerce.Core命名空间,在下文中一共展示了StoreSettingConfig类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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
{
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}