本文整理汇总了C#中AspxCommerce.Core.AspxCommonInfo类的典型用法代码示例。如果您正苦于以下问题:C# AspxCommonInfo类的具体用法?C# AspxCommonInfo怎么用?C# AspxCommonInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AspxCommonInfo类属于AspxCommerce.Core命名空间,在下文中一共展示了AspxCommonInfo类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: CartPriceRuleAdd
public static int CartPriceRuleAdd(CartPriceRule cartPriceRule, SqlTransaction tran, AspxCommonInfo aspxCommonObj)
{
List<KeyValuePair<string, object>> parameter =CommonParmBuilder.GetParamPUC(aspxCommonObj);
parameter.Add(new KeyValuePair<string, object>("@CartPriceRuleName", cartPriceRule.CartPriceRuleName));
parameter.Add(new KeyValuePair<string, object>("@CartPriceRuleDescription", cartPriceRule.CartPriceRuleDescription));
parameter.Add(new KeyValuePair<string, object>("@Apply", cartPriceRule.Apply));
parameter.Add(new KeyValuePair<string, object>("@Value", cartPriceRule.Value));
parameter.Add(new KeyValuePair<string, object>("@ApplytoShippingAmount", cartPriceRule.ApplytoShippingAmount));
parameter.Add(new KeyValuePair<string, object>("@DiscountQuantity", cartPriceRule.DiscountQuantity));
parameter.Add(new KeyValuePair<string, object>("@DiscountStep", cartPriceRule.DiscountStep));
parameter.Add(new KeyValuePair<string, object>("@FreeShipping", cartPriceRule.FreeShipping));
parameter.Add(new KeyValuePair<string, object>("@IsFurtherProcessing", cartPriceRule.IsFurtherProcessing));
parameter.Add(new KeyValuePair<string, object>("@FromDate", cartPriceRule.FromDate));
parameter.Add(new KeyValuePair<string, object>("@ToDate", cartPriceRule.ToDate));
parameter.Add(new KeyValuePair<string, object>("@Priority", cartPriceRule.Priority));
parameter.Add(new KeyValuePair<string, object>("@IsActive", cartPriceRule.IsActive));
try
{
SQLHandler sqlH = new SQLHandler();
if (cartPriceRule.CartPriceRuleID > 0)
DeleteCartPricingRuleForEdit(tran, cartPriceRule.CartPriceRuleID, aspxCommonObj.PortalID);
int cartPRID= sqlH.ExecuteNonQuery(tran, CommandType.StoredProcedure, "usp_Aspx_CartPriceRuleAdd", parameter, "@CartPriceRuleID");
return cartPRID;
}
catch (Exception e)
{
throw e;
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:32,代码来源:AspxCartPriceRuleProvider.cs
示例2: DeleteSearchTerm
public static void DeleteSearchTerm(string Ids, AspxCommonInfo aspxCommonObj)
{
List<KeyValuePair<string, object>> parameter = CommonParmBuilder.GetParamSPUC(aspxCommonObj);
parameter.Add(new KeyValuePair<string, object>("@SearchTermID", Ids));
SQLHandler sqlH = new SQLHandler();
sqlH.ExecuteNonQuery("usp_Aspx_DeleteSearchTerm", parameter);
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:7,代码来源:AspxSearchTermMgntProvider.cs
示例3: GetAdvanceSearchDataSet
public DataSet GetAdvanceSearchDataSet(string prefix, bool isActive, AspxCommonInfo aspxCommonObj, int CategoryID, bool IsGiftCard)
{
try
{
DataSet objHDSetting = new DataSet();
if (!CacheHelper.Get("AdvanceSearchDataSet" + aspxCommonObj.StoreID.ToString() + aspxCommonObj.PortalID.ToString() + "_" + aspxCommonObj.CultureName, out objHDSetting))
{
int itemID = 0;
List<KeyValuePair<string, object>> parameterCollection = CommonParmBuilder.GetParamSPC(aspxCommonObj);
parameterCollection.Add(new KeyValuePair<string, object>("@CategoryID", CategoryID));
parameterCollection.Add(new KeyValuePair<string, object>("@IsGiftCard", IsGiftCard));
parameterCollection.Add(new KeyValuePair<string, object>("@Prefix", prefix));
parameterCollection.Add(new KeyValuePair<string, object>("@IsActive", isActive));
parameterCollection.Add(new KeyValuePair<string, object>("@ItemID", itemID));
parameterCollection.Add(new KeyValuePair<string, object>("@UserName", aspxCommonObj.UserName));
SQLHandler sqlH = new SQLHandler();
objHDSetting = sqlH.ExecuteAsDataSet("[dbo].[usp_Aspx_AdvanceSearch]", parameterCollection);
}
return objHDSetting;
}
catch (Exception e)
{
throw e;
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:25,代码来源:AdvanceSearchProvider.cs
示例4: GetAllCategoryForSearch
public List<CategoryInfo> GetAllCategoryForSearch(string prefix, bool isActive, AspxCommonInfo aspxCommonObj)
{
try
{
int itemID = 0;
List<CategoryInfo> catList = new List<CategoryInfo>();
if (!CacheHelper.Get("CategoryForSearch" + aspxCommonObj.StoreID.ToString() + aspxCommonObj.PortalID.ToString() +"_" + aspxCommonObj.CultureName, out catList))
{
List<KeyValuePair<string, object>> parameterCollection = CommonParmBuilder.GetParamSPUC(aspxCommonObj);
parameterCollection.Add(new KeyValuePair<string, object>("@Prefix", prefix));
parameterCollection.Add(new KeyValuePair<string, object>("@IsActive", isActive));
parameterCollection.Add(new KeyValuePair<string, object>("@ItemID", itemID));
SQLHandler sqlH = new SQLHandler();
catList = sqlH.ExecuteAsList<CategoryInfo>("dbo.usp_Aspx_GetCategoryList",
parameterCollection);
CacheHelper.Add(catList, "CategoryForSearch" + aspxCommonObj.StoreID.ToString() + aspxCommonObj.PortalID.ToString() + "_" + aspxCommonObj.CultureName);
}
return catList;
}
catch (Exception e)
{
throw e;
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:25,代码来源:AdvanceSearchProvider.cs
示例5: 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
示例6: AddUpdateCoupons
public void AddUpdateCoupons(CouponSaveObj couponSaveObj, AspxCommonInfo aspxCommonObj)
{
try
{
List<KeyValuePair<string, object>> parameter = new List<KeyValuePair<string, object>>();
parameter.Add(new KeyValuePair<string, object>("@CouponID", couponSaveObj.CouponID));
parameter.Add(new KeyValuePair<string, object>("@CouponTypeID", couponSaveObj.CouponTypeID));
parameter.Add(new KeyValuePair<string, object>("@CouponCode", couponSaveObj.CouponCode));
parameter.Add(new KeyValuePair<string, object>("@CouponAmount", couponSaveObj.CouponAmount));
parameter.Add(new KeyValuePair<string, object>("@IsPercentage", couponSaveObj.IsPercentage));
parameter.Add(new KeyValuePair<string, object>("@ValidateFrom", couponSaveObj.ValidateFrom));
parameter.Add(new KeyValuePair<string, object>("@ValidateTo", couponSaveObj.ValidateTo));
parameter.Add(new KeyValuePair<string, object>("@IsActive", couponSaveObj.IsActive));
parameter.Add(new KeyValuePair<string, object>("@SettingIDs", couponSaveObj.SettingIDs));
parameter.Add(new KeyValuePair<string, object>("@SettingValues", couponSaveObj.SettingValues));
parameter.Add(new KeyValuePair<string, object>("@PortalUser_UserName", couponSaveObj.PortalUser_UserName));
parameter.Add(new KeyValuePair<string, object>("@StoreID", aspxCommonObj.StoreID));
parameter.Add(new KeyValuePair<string, object>("@PortalID", aspxCommonObj.PortalID));
parameter.Add(new KeyValuePair<string, object>("@CultureName", aspxCommonObj.CultureName));
parameter.Add(new KeyValuePair<string, object>("@UserName", aspxCommonObj.UserName));
SQLHandler sqlH = new SQLHandler();
sqlH.ExecuteNonQuery("usp_Aspx_AddUpdateCoupons", parameter);
}
catch (Exception ex)
{
throw ex;
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:29,代码来源:CouponManageSQLProvider.cs
示例7: RewardPointsSaveUpdateNewRule
public static void RewardPointsSaveUpdateNewRule(RewardPointsCommonInfo rewardPointsCommonObj,
AspxCommonInfo aspxCommonObj)
{
try
{
SQLHandler sqlH = new SQLHandler();
List<KeyValuePair<string, object>> parameter = new List<KeyValuePair<string, object>>();
parameter.Add(new KeyValuePair<string, object>("@RewardPointSettingsID",
rewardPointsCommonObj.RewardPointSettingsID));
parameter.Add(new KeyValuePair<string, object>("@RewardRuleName", rewardPointsCommonObj.RewardRuleName));
parameter.Add(new KeyValuePair<string, object>("@RewardRuleID", rewardPointsCommonObj.RewardRuleID));
parameter.Add(new KeyValuePair<string, object>("@RewardRuleType", rewardPointsCommonObj.RewardRuleType));
parameter.Add(new KeyValuePair<string, object>("@RewardPoints", rewardPointsCommonObj.RewardPoints));
parameter.Add(new KeyValuePair<string, object>("@PurchaseAmount", rewardPointsCommonObj.PurchaseAmount));
parameter.Add(new KeyValuePair<string, object>("@IsActive", rewardPointsCommonObj.IsActive));
parameter.Add(new KeyValuePair<string, object>("@StoreID", aspxCommonObj.StoreID));
parameter.Add(new KeyValuePair<string, object>("@PortalID", aspxCommonObj.PortalID));
parameter.Add(new KeyValuePair<string, object>("@CulturName", aspxCommonObj.CultureName));
parameter.Add(new KeyValuePair<string, object>("@UserName", aspxCommonObj.UserName));
sqlH.ExecuteNonQuery("usp_Aspx_RewardPointsSaveUpdateNewRule", parameter);
}
catch (Exception e)
{
throw e;
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:26,代码来源:RewardPointsProvider.cs
示例8: ChangePassword
public bool ChangePassword(AspxCommonInfo aspxCommonObj, string newPassword, string retypePassword)
{
MembershipController m = new MembershipController();
try
{
if (newPassword != "" && retypePassword != "" && newPassword == retypePassword && aspxCommonObj.UserName != "")
{
UserInfo sageUser = m.GetUserDetails(aspxCommonObj.PortalID, aspxCommonObj.UserName);
// Guid userID = (Guid)member.ProviderUserKey;
string password, passwordSalt;
PasswordHelper.EnforcePasswordSecurity(m.PasswordFormat, newPassword, out password, out passwordSalt);
UserInfo user = new UserInfo(sageUser.UserID, password, passwordSalt, m.PasswordFormat);
m.ChangePassword(user);
return true;
}
else
{
return false;
}
}
catch (Exception ex)
{
throw ex;
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:25,代码来源:AspxUserDashController.cs
示例9: RewardPointsSaveGeneralSettings
public static void RewardPointsSaveGeneralSettings(GeneralSettingsCommonInfo generalSettingobj,
AspxCommonInfo aspxCommonObj)
{
try
{
SQLHandler sqlH = new SQLHandler();
List<KeyValuePair<string, object>> parameter = new List<KeyValuePair<string, object>>();
parameter.Add(new KeyValuePair<string, object>("@RewardPoints", generalSettingobj.RewardPoints));
parameter.Add(new KeyValuePair<string, object>("@RewardAmount", generalSettingobj.RewardExchangeRate));
parameter.Add(new KeyValuePair<string, object>("@AddOrderStatusID", generalSettingobj.AddOrderStatusID));
parameter.Add(new KeyValuePair<string, object>("@SubOrderStatusID", generalSettingobj.SubOrderStatusID));
parameter.Add(new KeyValuePair<string, object>("@RewardPointsExpiresInDays",
generalSettingobj.RewardPointsExpiresInDays));
parameter.Add(new KeyValuePair<string, object>("@MinRedeemBalance", generalSettingobj.MinRedeemBalance));
parameter.Add(new KeyValuePair<string, object>("@BalanceCapped", generalSettingobj.BalanceCapped));
parameter.Add(new KeyValuePair<string, object>("@IsActive", generalSettingobj.IsActive));
parameter.Add(new KeyValuePair<string, object>("@StoreID", aspxCommonObj.StoreID));
parameter.Add(new KeyValuePair<string, object>("@PortalID", aspxCommonObj.PortalID));
parameter.Add(new KeyValuePair<string, object>("@CulturName", aspxCommonObj.CultureName));
parameter.Add(new KeyValuePair<string, object>("@UserName", aspxCommonObj.UserName));
sqlH.ExecuteNonQuery("usp_Aspx_RewardPointsSaveGeneralSettings", parameter);
}
catch (Exception e)
{
throw e;
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:28,代码来源:RewardPointsProvider.cs
示例10: 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
示例11: GetSpecialItemSetting
public void GetSpecialItemSetting()
{
AspxCommonInfo aspxCommonObj = new AspxCommonInfo();
aspxCommonObj.StoreID = StoreID;
aspxCommonObj.PortalID = PortalID;
aspxCommonObj.CultureName = CultureName;
JavaScriptSerializer json_serializer = new JavaScriptSerializer();
SpecialItemsController sic = new SpecialItemsController();
SpecialItemsSettingInfo lstSpecialSetting = sic.GetSpecialItemsSetting(aspxCommonObj);
if (lstSpecialSetting != null)
{
object obj = new
{
IsEnableSpecialItems = lstSpecialSetting.IsEnableSpecialItems,
NoOfItemShown = lstSpecialSetting.NoOfItemShown,
NoOfItemInRow = lstSpecialSetting.NoOfItemInRow,
IsEnableSpecialItemsRss = lstSpecialSetting.IsEnableSpecialItemsRss,
SpecialItemsRssCount = lstSpecialSetting.SpecialItemsRssCount,
SpecialItemsRssPageName = lstSpecialSetting.SpecialItemsRssPageName,
SpecialItemsDetailPageName = lstSpecialSetting.SpecialItemsDetailPageName,
SpecialItemModulePath = SpecialItemModulePath
};
Settings = json_serializer.Serialize(obj);
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:27,代码来源:SpecialItemSetting.ascx.cs
示例12: 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
示例13: NotificationSaveUpdateSettings
public static void NotificationSaveUpdateSettings(NotificationSettingsInfo saveUpdateInfo, AspxCommonInfo aspxCommonObj)
{
try
{
List<KeyValuePair<string, object>> parameterCollection = CommonParmBuilder.GetParamSPUC(aspxCommonObj);
parameterCollection.Add(new KeyValuePair<string, object>("@AllActive", saveUpdateInfo.AllActive));
parameterCollection.Add(new KeyValuePair<string, object>("@UserNotificationActive", saveUpdateInfo.UserNotificationActive));
parameterCollection.Add(new KeyValuePair<string, object>("@UserNotificationCount", saveUpdateInfo.UserNotificationCount));
parameterCollection.Add(new KeyValuePair<string, object>("@SubscriptionNotificationActive ", saveUpdateInfo.SubscriptionNotificationActive));
parameterCollection.Add(new KeyValuePair<string, object>("@SubscriptionNotificationCount", saveUpdateInfo.SubscriptionNotificationCount));
parameterCollection.Add(new KeyValuePair<string, object>("@OutofStockNotificationActive", saveUpdateInfo.OutofStockNotificationActive));
parameterCollection.Add(new KeyValuePair<string, object>("@OutofStockNotificationCount", saveUpdateInfo.OutofStockNotificationCount));
parameterCollection.Add(new KeyValuePair<string, object>("@ItemsLowStockNotificationActive", saveUpdateInfo.ItemsLowStockNotificationActive));
parameterCollection.Add(new KeyValuePair<string, object>("@ItemsLowStockCount", saveUpdateInfo.ItemsLowStockCount));
parameterCollection.Add(new KeyValuePair<string, object>("@OrdersNotificationAtive", saveUpdateInfo.OrdersNotificationAtive));
parameterCollection.Add(new KeyValuePair<string, object>("@OrdersNotificationCount", saveUpdateInfo.OrdersNotificationCount));
SQLHandler sqlH = new SQLHandler();
sqlH.ExecuteNonQuery("[dbo].[usp_Aspx_NotificationSaveUpdateSettings]", parameterCollection);
}
catch (Exception e)
{
throw e;
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:25,代码来源:AdminNotificationProvider.cs
示例14: GetRssFeedContens
private void GetRssFeedContens(AspxCommonInfo aspxCommonObj, string pageURL, int count)
{
try
{
string[] path = pageURL.Split('?');
string pagepath = path[0];
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.ContentType = "text/xml";
XmlTextWriter rssXml = new XmlTextWriter(HttpContext.Current.Response.OutputStream, Encoding.UTF8);
rssXml.WriteStartDocument();
rssXml.WriteStartElement("rss");
rssXml.WriteAttributeString("version", "2.0");
rssXml.WriteStartElement("channel");
rssXml.WriteElementString("link", pagepath);
rssXml.WriteElementString("title", getLocale("AspxCommerce Services"));
GetItemRssFeedContents(aspxCommonObj, rssXml, pageURL,count);
rssXml.WriteEndElement();
rssXml.WriteEndElement();
rssXml.WriteEndDocument();
rssXml.Flush();
rssXml.Close();
HttpContext.Current.Response.End();
}
catch (Exception ex)
{
throw ex;
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:31,代码来源:ServiceItemRss.ascx.cs
示例15: Page_Load
protected void Page_Load(object sender, EventArgs e)
{
try
{
int StoreID, PortalID;
string UserName, CultureName;
GetPortalCommonInfo(out StoreID, out PortalID, out UserName, out CultureName);
AspxCommonInfo aspxCommonObj = new AspxCommonInfo(StoreID, PortalID, UserName, CultureName);
if (!IsPostBack)
{
string templateName = TemplateName;
IncludeJs("MegaCategoryView", "/js/jquery.cookie.js", "/Modules/AspxCommerce/AspxMegaCategory/js/hoverIntent.js",
"/Modules/AspxCommerce/AspxMegaCategory/js/jquery.dcverticalmegamenu.1.3.js",
"/Modules/AspxCommerce/AspxMegaCategory/js/jquery.dcmegamenu.1.3.3.js",
"/Modules/AspxCommerce/AspxMegaCategory/js/jquery.dcjqaccordion.2.7.js");
IncludeCss("MegaCategoryView", "/Templates/" + templateName + "/css/MegaMenu/dcverticalmegamenu.css",
"/Templates/" + templateName + "/css/MegaMenu/dcmegamenu.css", "/Modules/AspxCommerce/AspxMegaCategory/css/module.css");
StoreSettingConfig ssc = new StoreSettingConfig();
ssc.GetStoreSettingParamTwo(StoreSetting.DefaultProductImageURL, StoreSetting.NewCategoryRss, out NoImageCategoryDetailPath,
out CategoryRss, StoreID, PortalID, CultureName);
if (CategoryRss.ToLower() == "true")
{
RssFeedUrl = ssc.GetStoreSettingsByKey(StoreSetting.RssFeedURL, StoreID, PortalID, CultureName);
}
}
GetMegaCategorySetting(aspxCommonObj);
GetCategoryMenuList(aspxCommonObj);
IncludeLanguageJS();
}
catch (Exception ex)
{
ProcessException(ex);
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:34,代码来源:MegaCategoryView.ascx.cs
示例16: 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
示例17: GetPricingRuleAttributes
public static List<PricingRuleAttributeInfo> GetPricingRuleAttributes(AspxCommonInfo aspxCommonObj)
{
SQLHandler sqlHandler = new SQLHandler();
List<KeyValuePair<string, object>> paramList = CommonParmBuilder.GetParamSPUC(aspxCommonObj);
List<PricingRuleAttributeInfo> lstPriceRuleAttr = sqlHandler.ExecuteAsList<PricingRuleAttributeInfo>("usp_Aspx_GetPricingRuleAttr", paramList);
return lstPriceRuleAttr;
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:7,代码来源:AspxCatalogPriceRuleProvider.cs
示例18: GetMegaCategorySetting
private void GetMegaCategorySetting()
{
AspxCommonInfo aspxCommonObj = new AspxCommonInfo();
aspxCommonObj.StoreID = GetStoreID;
aspxCommonObj.PortalID = GetPortalID;
aspxCommonObj.CultureName = GetCurrentCultureName;
JavaScriptSerializer json_serializer = new JavaScriptSerializer();
MegaCategoryController objCat = new MegaCategoryController();
MegaCategorySettingInfo megaCatSetting = objCat.GetMegaCategorySetting(aspxCommonObj);
if (megaCatSetting != null)
{
object obj = new {
ModeOfView = megaCatSetting.ModeOfView,
NoOfColumn = megaCatSetting.NoOfColumn,
ShowCatImage = megaCatSetting.ShowCategoryImage,
ShowSubCatImage = megaCatSetting.ShowSubCategoryImage,
Speed = megaCatSetting.Speed,
Effect = megaCatSetting.Effect,
EventMega = megaCatSetting.EventMega,
Direction = megaCatSetting.Direction,
MegaModulePath = MegaModulePath
};
Settings = json_serializer.Serialize(obj);
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:25,代码来源:MegaCategorySetting.ascx.cs
示例19: GetAllCategoryForSearch
private void GetAllCategoryForSearch(AspxCommonInfo aspxCommonObj, string modulePath, string pageExtension)
{
bool isActive = true;
string prefix = "---";
List<CategoryInfo> lstCategory = AspxSearchController.GetAllCategoryForSearch(prefix, isActive, aspxCommonObj);
if (lstCategory != null && lstCategory.Count > 0)
{
Elements = new StringBuilder();
Elements.Append("<select id=\"sfSimpleSearchCategory\">");
Elements.Append("<option value=\"0\" ><a href=\"#\"><span class=\"value\" category=\"--All Category--\">");
Elements.Append(getLocale("--All Category--"));
Elements.Append("</span></a></option>");
foreach (CategoryInfo item in lstCategory)
{
Elements.Append("<option value=\"");
Elements.Append(item.CategoryID);
Elements.Append("\" isGiftCard=\"");
Elements.Append(item.IsChecked);
Elements.Append("\"><a href=\"#\"><span class=\"value\" category=\"");
Elements.Append(item.LevelCategoryName);
Elements.Append("\">");
Elements.Append(item.LevelCategoryName);
Elements.Append("</span></a></option>");
}
Elements.Append("</select>");
litSSCat.Text = Elements.ToString();
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:28,代码来源:SimpleSearch.ascx.cs
示例20: GetServiceItemSetting
public void GetServiceItemSetting()
{
AspxCommonInfo aspxCommonObj = new AspxCommonInfo();
aspxCommonObj.StoreID = StoreID;
aspxCommonObj.PortalID = PortalID;
aspxCommonObj.CultureName = CultureName;
ServiceItemController objService = new ServiceItemController();
JavaScriptSerializer json_serializer = new JavaScriptSerializer();
List<ServiceItemSettingInfo> lstServiceSetting = objService.GetServiceItemSetting(aspxCommonObj);
if (lstServiceSetting != null && lstServiceSetting.Count > 0)
{
foreach (var serviceSetting in lstServiceSetting)
{
object obj = new
{
IsEnableService = serviceSetting.IsEnableService,
ServiceCategoryInARow = serviceSetting.ServiceCategoryInARow,
ServiceCategoryCount = serviceSetting.ServiceCategoryCount,
IsEnableServiceRss = serviceSetting.IsEnableServiceRss,
ServiceRssCount = serviceSetting.ServiceRssCount,
ServiceRssPage = serviceSetting.ServiceRssPage,
ServiceDetailsPage = serviceSetting.ServiceDetailsPage,
ServiceItemDetailPage = serviceSetting.ServiceItemDetailsPage,
BookAnAppointmentPage = serviceSetting.BookAnAppointmentPage,
AppointmentSuccessPage = serviceSetting.AppointmentSuccessPage
};
Settings = json_serializer.Serialize(obj);
}
}
}
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:30,代码来源:ServiceItemSetting.ascx.cs
注:本文中的AspxCommerce.Core.AspxCommonInfo类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论