protected override void AttachChildControls() { PageTitle.AddSiteNameTitle("会员订单"); if (HiContext.Current.User == null) { return; } int num = 0; int.TryParse(System.Web.HttpContext.Current.Request.QueryString.Get("status"), out num); OrderQuery orderQuery = new OrderQuery(); if (num == 1) { orderQuery.Status = OrderStatus.WaitBuyerPay; } else { if (num == 3) { orderQuery.Status = OrderStatus.SellerAlreadySent; } } orderQuery.ShowGiftOrder = false; this.rptOrders = (AppshopTemplatedRepeater)this.FindControl("rptOrders"); this.rptOrders.DataSource = MemberProcessor.GetUserOrder(HiContext.Current.User.UserId, orderQuery); this.rptOrders.DataBind(); }
protected override void AttachChildControls() { this.divConsultationEmpty = (HtmlGenericControl)this.FindControl("divConsultationEmpty"); this.ulConsultations = (HtmlGenericControl)this.FindControl("ulConsultations"); this.rptProductConsultations = (AppshopTemplatedRepeater)this.FindControl("rptProductConsultations"); ProductBrowseInfo productBrowseInfo = ProductBrowser.GetProductBrowseInfo(this.Page.Request.QueryString["productId"].ToInt(0), null, SettingsManager.GetMasterSettings().OpenMultStore, 0); if (productBrowseInfo.Product == null || productBrowseInfo.Product.SaleStatus == ProductSaleStatus.Delete) { base.GotoResourceNotFound("该件商品已经被管理员删除"); } else { DataTable dBConsultations = productBrowseInfo.DBConsultations; for (int i = 0; i < dBConsultations.Rows.Count; i++) { dBConsultations.Rows[i]["UserName"] = DataHelper.GetHiddenUsername(dBConsultations.Rows[i]["UserName"].ToNullString()); } this.rptProductConsultations.DataSource = dBConsultations; this.rptProductConsultations.DataBind(); this.divConsultationEmpty.Visible = dBConsultations.IsNullOrEmpty(); this.ulConsultations.Visible = !dBConsultations.IsNullOrEmpty(); PageTitle.AddSiteNameTitle("商品咨询"); } }
protected override void AttachChildControls() { this.rptCartProducts = (AppshopTemplatedRepeater)this.FindControl("rptCartProducts"); this.litTotal = (Literal)this.FindControl("litTotal"); this.hidUserPoints = (HtmlInputHidden)this.FindControl("hidUserPoints"); this.rptCartGifts = (AppshopTemplatedRepeater)this.FindControl("rptCartGifts"); ShoppingCartInfo shoppingCart = ShoppingCartProcessor.GetShoppingCart(null, false, false, -1); if (shoppingCart != null) { this.rptCartProducts.DataSource = shoppingCart.LineItems; this.rptCartProducts.DataBind(); this.litTotal.Text = shoppingCart.GetAmount(false).F2ToString("f2"); if (shoppingCart.LineGifts.Count > 0) { IEnumerable <ShoppingCartGiftInfo> dataSource = from s in shoppingCart.LineGifts where s.PromoType == 0 select s; this.rptCartGifts.DataSource = dataSource; this.rptCartGifts.DataBind(); } this.hidUserPoints.Value = HiContext.Current.User.Points.ToString(); } PageTitle.AddSiteNameTitle("购物车"); }
protected override void AttachChildControls() { MemberInfo user = HiContext.Current.User; if (user.UserId != 0) { this.rptProducts = (AppshopTemplatedRepeater)this.FindControl("rptProducts"); this.txtTotal = (HtmlInputHidden)this.FindControl("txtTotal"); int pageIndex = default(int); if (!int.TryParse(this.Page.Request.QueryString["page"], out pageIndex)) { pageIndex = 1; } int pageSize = default(int); if (!int.TryParse(this.Page.Request.QueryString["size"], out pageSize)) { pageSize = 20; } ProductConsultationAndReplyQuery productConsultationAndReplyQuery = new ProductConsultationAndReplyQuery(); productConsultationAndReplyQuery.UserId = user.UserId; productConsultationAndReplyQuery.IsCount = true; productConsultationAndReplyQuery.PageIndex = pageIndex; productConsultationAndReplyQuery.PageSize = pageSize; productConsultationAndReplyQuery.SortBy = "ConsultationId"; productConsultationAndReplyQuery.SortOrder = SortAction.Desc; DbQueryResult productConsultations = ProductBrowser.GetProductConsultations(productConsultationAndReplyQuery); this.rptProducts.DataSource = productConsultations.Data; this.rptProducts.DataBind(); this.txtTotal.SetWhenIsNotNull(productConsultations.TotalRecords.ToString()); } PageTitle.AddSiteNameTitle("商品咨询"); }
protected override void AttachChildControls() { this.txtTotalPages = (HtmlInputHidden)this.FindControl("txtTotal"); this.rptSubReferrals = (AppshopTemplatedRepeater)this.FindControl("rptSubReferrals"); PageTitle.AddSiteNameTitle("下级分销员"); this.BindSubReferrals(); }
protected override void AttachChildControls() { Member member = HiContext.Current.User as Member; if (member != null) { this.rptProducts = (AppshopTemplatedRepeater)this.FindControl("rptProducts"); this.txtTotal = (System.Web.UI.HtmlControls.HtmlInputHidden) this.FindControl("txtTotal"); int pageIndex; if (!int.TryParse(this.Page.Request.QueryString["page"], out pageIndex)) { pageIndex = 1; } int pageSize; if (!int.TryParse(this.Page.Request.QueryString["size"], out pageSize)) { pageSize = 20; } DbQueryResult productConsultations = ProductBrowser.GetProductConsultations(new ProductConsultationAndReplyQuery { UserId = member.UserId, IsCount = true, PageIndex = pageIndex, PageSize = pageSize, SortBy = "ConsultationId", SortOrder = SortAction.Desc }); this.rptProducts.DataSource = productConsultations.Data; this.rptProducts.DataBind(); this.txtTotal.SetWhenIsNotNull(productConsultations.TotalRecords.ToString()); } PageTitle.AddSiteNameTitle("商品咨询"); }
protected override void AttachChildControls() { PageTitle.AddSiteNameTitle("团购列表"); int.TryParse(this.Page.Request.QueryString["categoryId"], out this.categoryId); this.keyWord = this.Page.Request.QueryString["keyWord"]; this.imgUrl = (HiImage)this.FindControl("imgUrl"); this.litContent = (Literal)this.FindControl("litContent"); this.rptProducts = (AppshopTemplatedRepeater)this.FindControl("rptGroupBuyProducts"); this.txtTotal = (HtmlInputHidden)this.FindControl("txtTotal"); this.rptCategories = (AppshopTemplatedRepeater)this.FindControl("rptCategories"); if (this.rptCategories != null) { IEnumerable <CategoryInfo> subCategories = CatalogHelper.GetSubCategories(this.categoryId); this.rptCategories.DataSource = subCategories; this.rptCategories.DataBind(); } int page = default(int); if (!int.TryParse(this.Page.Request.QueryString["page"], out page)) { page = 1; } int size = default(int); if (!int.TryParse(this.Page.Request.QueryString["size"], out size)) { size = 10; } int num = default(int); this.rptProducts.DataSource = ProductBrowser.GetGroupBuyProducts(this.categoryId, this.keyWord, page, size, out num, true); this.rptProducts.DataBind(); this.txtTotal.SetWhenIsNotNull(num.ToString()); PageTitle.AddSiteNameTitle("团购搜索页"); }
protected override void AttachChildControls() { PageTitle.AddSiteNameTitle("商品评价"); if (string.IsNullOrEmpty(this.Page.Request.QueryString["orderId"])) { this.ShowWapMessage("订单还未完成,不能进行评价", "goHomeUrl"); } this.orderId = this.Page.Request.QueryString["orderId"]; this.orderItems = (AppshopTemplatedRepeater)this.FindControl("rptRegisterCoupons"); if (!this.Page.IsPostBack) { OrderInfo orderInfo = TradeHelper.GetOrderInfo(this.orderId); if (orderInfo != null && HiContext.Current.UserId != 0 && HiContext.Current.UserId == orderInfo.UserId) { this.CanToProductReviews(orderInfo); if (orderInfo.OrderStatus != OrderStatus.Finished && (orderInfo.OrderStatus != OrderStatus.Closed || orderInfo.OnlyReturnedCount != orderInfo.LineItems.Count)) { this.ShowWapMessage("订单还未完成,不能进行评价", "MemberOrderDetails.aspx?OrderId=" + orderInfo.OrderId); } this.BindOrderItems(orderInfo); } else { this.ShowWapMessage("该订单不存在或者不属于当前用户的订单", "goHomeUrl"); } } }
protected override void AttachChildControls() { this.rptBrands = (AppshopTemplatedRepeater)this.FindControl("rptBrands"); this.rptBrands.DataSource = CatalogHelper.GetBrandCategories(0); this.rptBrands.DataBind(); PageTitle.AddSiteNameTitle("品牌列表"); }
protected override void AttachChildControls() { this.txtTotalPages = (HtmlInputHidden)this.FindControl("txtTotal"); this.rptDrawRecodes = (AppshopTemplatedRepeater)this.FindControl("rptDrawRecodes"); PageTitle.AddSiteNameTitle("提现记录"); this.BindDrawRecords(); }
protected override void AttachChildControls() { this.inputPaymentModeId = (HtmlInputHidden)this.FindControl("inputPaymentModeId"); this.inputShippingModeId = (HtmlInputHidden)this.FindControl("inputShippingModeId"); this.hidPaymentId_Podrequest = (HtmlInputHidden)this.FindControl("hidPaymentId_Podrequest"); this.hidGetgoodsOnStores = (HtmlInputHidden)this.FindControl("hidGetgoodsOnStores"); this.hidDeliveryTime = (HtmlInputHidden)this.FindControl("hidDeliveryTime"); this.hidStoreId = (HtmlInputHidden)this.FindControl("hidStoreId"); this.hidShipAddressId = (HtmlInputHidden)this.FindControl("hidShipAddressId"); this.rptStores = (AppshopTemplatedRepeater)this.FindControl("rptStores"); if (!this.Page.IsPostBack) { this.hidGetgoodsOnStores.Value = "false"; this.hidPaymentId_Podrequest.Value = "0"; int num = 0; if (this.from != "countdown" && this.from != "groupbuy" && SalesHelper.IsSupportPodrequest()) { num = 1; this.hidPaymentId_Podrequest.Value = "1"; } if (this.paymentModeId != 0 && this.paymentModeId != num && this.paymentModeId != -3) { this.paymentModeId = 0; } this.hidDeliveryTime.Value = this.deliveryTime; this.inputPaymentModeId.Value = this.paymentModeId.ToString(); this.inputShippingModeId.Value = this.shippingModeId.ToString(); this.hidStoreId.Value = this.storeId.ToString(); int shipAddressId = 0; int.TryParse(this.Page.Request.QueryString["ShipAddressId"].ToNullString(), out shipAddressId); IList <ShippingAddressInfo> shippingAddresses = MemberProcessor.GetShippingAddresses(false); int num2 = 0; IList <ShippingAddressInfo> list = new List <ShippingAddressInfo>(); ShippingAddressInfo shippingAddressInfo = null; string address = ""; if (shipAddressId > 0) { shippingAddressInfo = shippingAddresses.FirstOrDefault((ShippingAddressInfo a) => a.ShippingId == shipAddressId); if (shippingAddressInfo != null) { num2 = shippingAddressInfo.RegionId; address = shippingAddressInfo.FullAddress; } } else if (shippingAddresses != null && shippingAddresses.Count > 0) { num2 = shippingAddresses.FirstOrDefault().RegionId; } this.hidShipAddressId.Value = shipAddressId.ToString(); StoresQuery storesQuery = new StoresQuery(); storesQuery.RegionID = num2; storesQuery.RegionName = RegionHelper.GetFullRegion(num2, " ", true, 0); storesQuery.State = 1; storesQuery.CloseStatus = 1; DataTable storeList = StoresHelper.GetStoreList(this.newProductSku, num2, address, this.buyAmount); this.rptStores.DataSource = storeList; this.rptStores.DataBind(); PageTitle.AddSiteNameTitle("门店选择"); } }
protected override void AttachChildControls() { if (!int.TryParse(this.Page.Request.QueryString["BrandId"], out this.BrandId)) { base.GotoResourceNotFound(""); } this.imgUrl = (HiImage)this.FindControl("imgUrl"); this.rptProducts = (AppshopTemplatedRepeater)this.FindControl("rptProducts"); this.litBrandDetail = (Literal)this.FindControl("litBrandDetail"); this.txtTotal = (HtmlInputHidden)this.FindControl("txtTotal"); BrandCategoryInfo brandCategory = CatalogHelper.GetBrandCategory(this.BrandId); this.litBrandDetail.SetWhenIsNotNull(brandCategory.Description); this.imgUrl.ImageUrl = brandCategory.Logo; int pageNumber = default(int); if (!int.TryParse(this.Page.Request.QueryString["page"], out pageNumber)) { pageNumber = 1; } int maxNum = default(int); if (!int.TryParse(this.Page.Request.QueryString["size"], out maxNum)) { maxNum = 20; } DbQueryResult brandProducts = ProductBrowser.GetBrandProducts(this.BrandId, pageNumber, maxNum); this.rptProducts.DataSource = brandProducts.Data; this.rptProducts.DataBind(); this.txtTotal.SetWhenIsNotNull(brandProducts.TotalRecords.ToString()); PageTitle.AddSiteNameTitle("品牌详情"); }
private void FindControls() { this.rptProductImages = (AppshopTemplatedRepeater)this.FindControl("rptProductImages"); this.litProdcutName = (Literal)this.FindControl("litProdcutName"); this.litShortDescription = (Literal)this.FindControl("litShortDescription"); this.litDescription = (Literal)this.FindControl("litDescription"); this.litSoldCount = (Literal)this.FindControl("soldCount"); this.litprice = (Literal)this.FindControl("price"); this.litcontent = (Literal)this.FindControl("content"); this.litminCount = (Literal)this.FindControl("minCount"); this.litGroupBuyId = (HtmlInputControl)this.FindControl("litGroupbuyId"); this.hidden_IsOver = (HtmlInputHidden)this.FindControl("hidden_IsOver"); this.litLeftSeconds = (Literal)this.FindControl("leftSeconds"); this.skuSubmitOrder = (Common_SKUSubmitOrder)this.FindControl("skuSubmitOrder"); this.salePrice = (Literal)this.FindControl("salePrice"); this.leftCount = (Literal)this.FindControl("leftCount"); this.minSuccessCount = (Literal)this.FindControl("minSuccessCount"); this.txtProductId = (HtmlInputControl)this.FindControl("txtProductId"); this.litConsultationsCount = (Literal)this.FindControl("litConsultationsCount"); this.litReviewsCount = (Literal)this.FindControl("litReviewsCount"); this.litMaxCount = (Literal)this.FindControl("litMaxCount"); this.startTime = (HtmlInputHidden)this.FindControl("startTime"); this.endTime = (HtmlInputHidden)this.FindControl("endTime"); this.groupBuySoldCount = (HtmlInputHidden)this.FindControl("groupBuySoldCount"); this.groupBuyMinCount = (HtmlInputHidden)this.FindControl("groupBuyMinCount"); this.litGroupbuyDescription = (Literal)this.FindControl("litGroupbuyDescription"); this.groupBuyMaxCount = (HtmlInputHidden)this.FindControl("groupBuyMaxCount"); this.skuStock = (HtmlInputHidden)this.FindControl("skuStock"); this.hiddenIsLogin = (HtmlInputHidden)this.FindControl("hiddenIsLogin"); this.hdCountDownId = (HtmlInputHidden)this.FindControl("hdCountDownId"); this.litUnit = (Literal)this.FindControl("litUnit"); }
protected override void AttachChildControls() { int.TryParse(this.Page.Request.QueryString["categoryId"], out this.categoryId); this.keyWord = this.Page.Request.QueryString["keyWord"]; this.imgUrl = (HiImage)this.FindControl("imgUrl"); this.litContent = (Literal)this.FindControl("litContent"); this.rptProducts = (AppshopTemplatedRepeater)this.FindControl("rptCountDownProducts"); this.txtTotal = (HtmlInputHidden)this.FindControl("txtTotal"); string text = this.Page.Request["lat"].ToNullString(); string text2 = this.Page.Request["lng"].ToNullString(); string cityName = this.Page.Request["city"].ToNullString(); string address = this.Page.Request["address"].ToNullString(); if (!string.IsNullOrEmpty(text) && !string.IsNullOrEmpty(text2)) { RegionInfo regionByCityAddress = RegionHelper.GetRegionByCityAddress(cityName, address); if (regionByCityAddress != null) { int num = regionByCityAddress.RegionId; if (regionByCityAddress.FullRegionPath.Split(',').Length >= 2) { num = regionByCityAddress.FullRegionPath.Split(',')[1].ToInt(0); } WebHelper.SetCookie("UserCoordinateCookie", "CityRegionId", num.ToNullString(), null); WebHelper.SetCookie("UserCoordinateCookie", "RegionId", regionByCityAddress.RegionId.ToNullString(), null); WebHelper.SetCookie("UserCoordinateCookie", "FullRegionPath", regionByCityAddress.FullRegionPath, null); } WebHelper.SetCookie("UserCoordinateCookie", "NewCoordinate", $"{text},{text2}", null); } this.rptCategories = (AppshopTemplatedRepeater)this.FindControl("rptCategories"); if (this.rptCategories != null) { IEnumerable <CategoryInfo> subCategories = CatalogHelper.GetSubCategories(this.categoryId); this.rptCategories.DataSource = subCategories; this.rptCategories.DataBind(); } int page = default(int); if (!int.TryParse(this.Page.Request.QueryString["page"], out page)) { page = 1; } int size = default(int); if (!int.TryParse(this.Page.Request.QueryString["size"], out size)) { size = 10; } int storeId = this.Page.Request.QueryString["StoreId"].ToInt(0); int num2 = default(int); DataTable countDownProductList = PromoteHelper.GetCountDownProductList(this.categoryId, this.keyWord, page, size, storeId, out num2, false); this.rptProducts.ItemDataBound += this.rptProduct_ItemDataBound; this.rptProducts.DataSource = countDownProductList; this.rptProducts.DataBind(); this.txtTotal.SetWhenIsNotNull(num2.ToString()); PageTitle.AddSiteNameTitle("限时抢购"); }
protected override void AttachChildControls() { this.litExpandMemberInMonth = (Literal)this.FindControl("litExpandMemberInMonth"); this.litExpandMemberAll = (Literal)this.FindControl("litExpandMemberAll"); this.txtTotalPages = (HtmlInputHidden)this.FindControl("pageTotal"); this.fmlNextMemberTotal = (FormatedMoneyLabel)this.FindControl("fmlNextMemberTotal"); this.rptSubMembers = (AppshopTemplatedRepeater)this.FindControl("rptSubMembers"); PageTitle.AddSiteNameTitle("下级分销员"); this.BindSubReferrals(); }
protected override void AttachChildControls() { if (HiContext.Current.User != null) { AppshopTemplatedRepeater appshopTemplatedRepeater = (AppshopTemplatedRepeater)this.FindControl("rptDrawList"); IList <AppLotteryDraw> list = (IList <AppLotteryDraw>)(appshopTemplatedRepeater.DataSource = APPHelper.GetAppLotteryDraw(HiContext.Current.UserId)); appshopTemplatedRepeater.DataBind(); PageTitle.AddSiteNameTitle("中奖记录"); } }
protected override void AttachChildControls() { if (!int.TryParse(this.Page.Request.QueryString["productId"], out this.productId)) { base.GotoResourceNotFound(""); } ProductConsultationAndReplyQuery productConsultationAndReplyQuery = new ProductConsultationAndReplyQuery(); int pageIndex = default(int); if (!int.TryParse(this.Page.Request.QueryString["page"], out pageIndex)) { pageIndex = 1; } int pageSize = default(int); if (!int.TryParse(this.Page.Request.QueryString["size"], out pageSize)) { pageSize = 20; } productConsultationAndReplyQuery.ProductId = this.productId; productConsultationAndReplyQuery.IsCount = true; productConsultationAndReplyQuery.PageIndex = pageIndex; productConsultationAndReplyQuery.PageSize = pageSize; productConsultationAndReplyQuery.SortBy = "ConsultationId"; productConsultationAndReplyQuery.SortOrder = SortAction.Desc; productConsultationAndReplyQuery.HasReplied = true; this.rptProducts = (AppshopTemplatedRepeater)this.FindControl("rptProducts"); this.txtTotal = (HtmlInputHidden)this.FindControl("txtTotal"); DbQueryResult productConsultations = ProductBrowser.GetProductConsultations(productConsultationAndReplyQuery); this.rptProducts.DataSource = productConsultations.Data; this.rptProducts.DataBind(); HtmlInputHidden control = this.txtTotal; int num = productConsultations.TotalRecords; control.SetWhenIsNotNull(num.ToString()); this.litProductTitle = (Literal)this.FindControl("litProductTitle"); this.litShortDescription = (Literal)this.FindControl("litShortDescription"); this.litSoldCount = (Literal)this.FindControl("litSoldCount"); this.litSalePrice = (Literal)this.FindControl("litSalePrice"); this.imgProductImage = (HtmlImage)this.FindControl("imgProductImage"); ProductInfo productSimpleInfo = ProductBrowser.GetProductSimpleInfo(this.productId); this.litProductTitle.SetWhenIsNotNull(productSimpleInfo.ProductName); this.litShortDescription.SetWhenIsNotNull(productSimpleInfo.ShortDescription); Literal control2 = this.litSoldCount; num = productSimpleInfo.ShowSaleCounts; control2.SetWhenIsNotNull(num.ToString()); this.litSalePrice.SetWhenIsNotNull(productSimpleInfo.MinSalePrice.F2ToString("f2")); this.imgProductImage.Src = (string.IsNullOrEmpty(productSimpleInfo.ThumbnailUrl60) ? Globals.FullPath(this.siteSettings.DefaultProductThumbnail4) : productSimpleInfo.ThumbnailUrl60); PageTitle.AddSiteNameTitle("商品咨询"); }
protected override void AttachChildControls() { this.txtTotalPages = (HtmlInputHidden)this.FindControl("txtTotal"); this.litSplittinDraws = (FormatedMoneyLabel)this.FindControl("litSplittinDraws"); this.litAllSplittin = (FormatedMoneyLabel)this.FindControl("litAllSplittin"); this.rptSplittin = (AppshopTemplatedRepeater)this.FindControl("rptSplittin"); PageTitle.AddSiteNameTitle("奖励明细"); int userId = HiContext.Current.UserId; this.litAllSplittin.Money = MemberProcessor.GetUserAllSplittin(userId); this.litSplittinDraws.Money = MemberProcessor.GetUserUseSplittin(userId); this.BindSplittins(); }
protected override void AttachChildControls() { this.rptCartProducts = (AppshopTemplatedRepeater)this.FindControl("rptCartProducts"); this.litTotal = (System.Web.UI.WebControls.Literal) this.FindControl("litTotal"); ShoppingCartInfo shoppingCart = ShoppingCartProcessor.GetShoppingCart(); if (shoppingCart != null) { this.rptCartProducts.DataSource = shoppingCart.LineItems; this.rptCartProducts.DataBind(); this.litTotal.Text = shoppingCart.GetAmount().ToString("F2"); } PageTitle.AddSiteNameTitle("购物车"); }
protected override void AttachChildControls() { MemberInfo user = HiContext.Current.User; if (!this.Page.IsPostBack) { this.rptRegisterCoupons = (AppshopTemplatedRepeater)this.FindControl("rptRegisterCoupons"); this.hidIsOpenGiftCoupons = (HiddenField)this.FindControl("hidIsOpenGiftCoupons"); this.lblTotalPrice = (Literal)this.FindControl("lblTotalPrice"); this.btnToGo = (HyperLink)this.FindControl("btnToGo"); this.BindRegisterCoupons(); } PageTitle.AddSiteNameTitle("注册送券"); }
protected override void AttachChildControls() { SiteSettings masterSettings = SettingsManager.GetMasterSettings(); this.rptHotProduct = (AppshopTemplatedRepeater)this.FindControl("rptHotProducts"); DataTable hotProductList = ProductBrowser.GetHotProductList(); for (int i = 0; i < hotProductList.Rows.Count; i++) { hotProductList.Rows[i]["ThumbnailUrl220"] = (string.IsNullOrEmpty(hotProductList.Rows[i]["ThumbnailUrl220"].ToString()) ? Globals.GetImageServerUrl("http://", masterSettings.DefaultProductThumbnail4) : Globals.GetImageServerUrl("http://", hotProductList.Rows[i]["ThumbnailUrl220"].ToString())); } this.rptHotProduct.DataSource = hotProductList; this.rptHotProduct.DataBind(); PageTitle.AddSiteNameTitle("商品不存在"); }
protected override void AttachChildControls() { if (HiContext.Current.User != null) { string url = this.Page.Request.QueryString["returnUrl"]; if (!string.IsNullOrWhiteSpace(this.Page.Request.QueryString["returnUrl"])) { this.Page.Response.Redirect(url); } this.rptProducts = (AppshopTemplatedRepeater)this.FindControl("rptProducts"); this.rptProducts.DataSource = ProductBrowser.GetFavorites(); this.rptProducts.DataBind(); } PageTitle.AddSiteNameTitle("我的收藏"); }
protected override void AttachChildControls() { this.rptvShipping = (AppshopTemplatedRepeater)this.FindControl("rptvShipping"); this.hidIsMultiStore = (HtmlInputHidden)this.FindControl("hidIsMultiStore"); IList <ShippingAddressInfo> shippingAddresses = MemberProcessor.GetShippingAddresses(false); if (shippingAddresses != null) { this.rptvShipping.DataSource = shippingAddresses; this.rptvShipping.DataBind(); } SiteSettings masterSettings = SettingsManager.GetMasterSettings(); this.hidIsMultiStore.Value = (masterSettings.OpenMultStore ? "1" : "0"); PageTitle.AddSiteNameTitle("选择收货地址"); }
protected override void AttachChildControls() { PageTitle.AddSiteNameTitle("分销员"); MemberInfo user = Users.GetUser(HiContext.Current.UserId); if (user != null) { if (!user.IsReferral()) { this.Page.Response.Redirect("ReferralRegisterAgreement.aspx"); } this.litAllSplittin = (Literal)this.FindControl("litAllSplittin"); this.litUserSplittin = (Literal)this.FindControl("litUserSplittin"); this.litNoUserSplittin = (Literal)this.FindControl("litNoUserSplittin"); this.litMonthLowerNum = (Literal)this.FindControl("litMonthLowerNum"); this.litLowerNum = (Literal)this.FindControl("litLowerNum"); this.rptAccountSummary = (AppshopTemplatedRepeater)this.FindControl("rptAccountSummary"); this.pageTotal = (this.FindControl("pageTotal") as HtmlInputHidden); this.litDrawSplittin = (Literal)this.FindControl("litDrawSplittin"); int userId = HiContext.Current.User.UserId; this.litAllSplittin.Text = MemberProcessor.GetUserAllSplittin(userId).F2ToString("f2"); this.litUserSplittin.Text = MemberProcessor.GetUserUseSplittin(userId).F2ToString("f2"); this.litNoUserSplittin.Text = MemberProcessor.GetUserNoUseSplittin(userId).F2ToString("f2"); this.litDrawSplittin.Text = MemberProcessor.GetUserDrawSplittin().F2ToString("f2"); BalanceDetailQuery balanceDetailQuery = new BalanceDetailQuery(); balanceDetailQuery.UserId = userId; int pageIndex = default(int); if (!int.TryParse(this.Page.Request.QueryString["page"], out pageIndex)) { pageIndex = 1; } int pageSize = default(int); if (!int.TryParse(this.Page.Request.QueryString["size"], out pageSize)) { pageSize = 20; } balanceDetailQuery.PageIndex = pageIndex; balanceDetailQuery.PageSize = pageSize; DbQueryResult splittinDetails = MemberHelper.GetSplittinDetails(balanceDetailQuery); this.rptAccountSummary.DataSource = splittinDetails.Data; this.rptAccountSummary.DataBind(); if (this.pageTotal != null) { this.pageTotal.Value = splittinDetails.TotalRecords.ToString(); } } }
protected override void AttachChildControls() { PageTitle.AddSiteNameTitle("预付款详细信息"); this.rptAccountSummary = (this.FindControl("rptAccountSummary") as AppshopTemplatedRepeater); this.pageTotal = (this.FindControl("pageTotal") as HtmlInputHidden); if (!this.Page.IsPostBack) { MemberInfo user = HiContext.Current.User; if (!user.IsOpenBalance) { this.Page.Response.Redirect($"/appshop/OpenBalance.aspx?ReturnUrl={HttpContext.Current.Request.Url}"); } if (this.rptAccountSummary != null) { this.BindBalanceDetails(); } } }
protected override void AttachChildControls() { this.rptvShipping = (AppshopTemplatedRepeater)this.FindControl("rptvShipping"); this.aLinkToAdd = (System.Web.UI.HtmlControls.HtmlAnchor) this.FindControl("aLinkToAdd"); this.aLinkToAdd.HRef = Globals.ApplicationPath + "/AppShop/AddShippingAddress.aspx"; if (!string.IsNullOrEmpty(this.Page.Request.QueryString["returnUrl"])) { System.Web.UI.HtmlControls.HtmlAnchor expr_6D = this.aLinkToAdd; expr_6D.HRef = expr_6D.HRef + "?returnUrl=" + Globals.UrlEncode(this.Page.Request.QueryString["returnUrl"]); } System.Collections.Generic.IList <ShippingAddressInfo> shippingAddresses = MemberProcessor.GetShippingAddresses(); if (shippingAddresses != null) { this.rptvShipping.DataSource = shippingAddresses; this.rptvShipping.DataBind(); } PageTitle.AddSiteNameTitle("收货地址"); }
private void FindControls() { SiteSettings masterSettings = SettingsManager.GetMasterSettings(); this.rptProductImages = (AppshopTemplatedRepeater)this.FindControl("rptProductImages"); this.litProdcutName = (Literal)this.FindControl("litProdcutName"); this.litShortDescription = (Literal)this.FindControl("litShortDescription"); this.litDescription = (Literal)this.FindControl("litDescription"); this.litSoldCount = (Literal)this.FindControl("soldCount"); this.litprice = (Literal)this.FindControl("price"); this.litcontent = (Literal)this.FindControl("content"); this.litminCount = (Literal)this.FindControl("minCount"); this.litGroupBuyId = (HtmlInputControl)this.FindControl("litGroupbuyId"); this.litLeftSeconds = (Literal)this.FindControl("leftSeconds"); this.skuSubmitOrder = (Common_SKUSubmitOrder)this.FindControl("skuSubmitOrder"); this.salePrice = (Literal)this.FindControl("salePrice"); this.leftCount = (Literal)this.FindControl("leftCount"); this.minSuccessCount = (Literal)this.FindControl("minSuccessCount"); this.txtProductId = (HtmlInputControl)this.FindControl("txtProductId"); this.litConsultationsCount = (Literal)this.FindControl("litConsultationsCount"); this.litReviewsCount = (Literal)this.FindControl("litReviewsCount"); this.litMaxCount = (Literal)this.FindControl("litMaxCount"); this.startTime = (HtmlInputHidden)this.FindControl("startTime"); this.endTime = (HtmlInputHidden)this.FindControl("endTime"); this.groupBuySoldCount = (HtmlInputHidden)this.FindControl("groupBuySoldCount"); this.groupBuyMinCount = (HtmlInputHidden)this.FindControl("groupBuyMinCount"); this.litGroupbuyDescription = (Literal)this.FindControl("litGroupbuyDescription"); this.groupBuyMaxCount = (HtmlInputHidden)this.FindControl("groupBuyMaxCount"); this.skuStock = (HtmlInputHidden)this.FindControl("skuStock"); this.hdAppId = (HtmlInputHidden)this.FindControl("hdAppId"); this.hdTimestamp = (HtmlInputHidden)this.FindControl("hdTimestamp"); this.hdNonceStr = (HtmlInputHidden)this.FindControl("hdNonceStr"); this.hdSignature = (HtmlInputHidden)this.FindControl("hdSignature"); this.hdTitle = (HtmlInputHidden)this.FindControl("hdTitle"); this.hdDesc = (HtmlInputHidden)this.FindControl("hdDesc"); this.hdImgUrl = (HtmlInputHidden)this.FindControl("hdImgUrl"); this.hdLink = (HtmlInputHidden)this.FindControl("hdLink"); this.hdSource = (HtmlInputHidden)this.FindControl("hdSource"); this.hdAppId.Value = masterSettings.WeixinAppId; this.litUnit1 = (Literal)this.FindControl("litUnit1"); this.litUnit2 = (Literal)this.FindControl("litUnit2"); this.litUnit3 = (Literal)this.FindControl("litUnit3"); }
protected override void AttachChildControls() { PageTitle.AddSiteNameTitle("退款记录"); int.TryParse(this.Page.Request.QueryString["Status"], out this.Status); this.rptUserRefunds = (AppshopTemplatedRepeater)this.FindControl("rptUserRefunds"); this.rptUserRefunds.ItemDataBound += this.rptUserRefunds_ItemDataBound; this.txtTotalPages = (HtmlInputHidden)this.FindControl("txtTotal"); int pageIndex = default(int); if (!int.TryParse(this.Page.Request.QueryString["page"], out pageIndex)) { pageIndex = 1; } int pageSize = default(int); if (!int.TryParse(this.Page.Request.QueryString["size"], out pageSize)) { pageSize = 20; } RefundApplyQuery refundApplyQuery = new RefundApplyQuery(); if (!string.IsNullOrEmpty(this.Page.Request.QueryString["OrderId"])) { refundApplyQuery.OrderId = Globals.UrlDecode(this.Page.Request.QueryString["OrderId"]); } if (int.TryParse(this.Page.Request.QueryString["Status"], out this.Status) && this.Status > -1) { refundApplyQuery.HandleStatus = this.Status; } refundApplyQuery.PageIndex = pageIndex; refundApplyQuery.PageSize = pageSize; refundApplyQuery.SortBy = "ApplyForTime"; refundApplyQuery.SortOrder = SortAction.Desc; refundApplyQuery.UserId = HiContext.Current.UserId; int num = 0; PageModel <RefundModel> refundApplys = TradeHelper.GetRefundApplys(refundApplyQuery); this.rptUserRefunds.DataSource = refundApplys.Models; this.rptUserRefunds.DataBind(); num = refundApplys.Total; this.txtTotalPages.SetWhenIsNotNull(num.ToString()); }
protected override void AttachChildControls() { this.rptvShipping = (AppshopTemplatedRepeater)this.FindControl("rptvShipping"); this.aLinkToAdd = (HtmlAnchor)this.FindControl("aLinkToAdd"); this.aLinkToAdd.HRef = "/AppShop/AddShippingAddress.aspx"; if (!string.IsNullOrEmpty(this.Page.Request.QueryString["returnUrl"])) { HtmlAnchor htmlAnchor = this.aLinkToAdd; htmlAnchor.HRef = htmlAnchor.HRef + "?returnUrl=" + Globals.UrlEncode(this.Page.Request.QueryString["returnUrl"]); } IList <ShippingAddressInfo> shippingAddresses = MemberProcessor.GetShippingAddresses(false); if (shippingAddresses != null) { this.rptvShipping.ItemDataBound += this.rptvShipping_ItemDataBound; this.rptvShipping.DataSource = shippingAddresses; this.rptvShipping.DataBind(); } PageTitle.AddSiteNameTitle("收货地址"); }
protected override void AttachChildControls() { this.rptPointList = (AppshopTemplatedRepeater)this.FindControl("rptPointList"); this.litCurrentPoints = (Literal)this.FindControl("litCurrentPoints"); this.litHistoryPoints = (Literal)this.FindControl("litHistoryPoints"); this.txtTotalPages = (HtmlInputHidden)this.FindControl("txtTotal"); int pageIndex = default(int); if (!int.TryParse(this.Page.Request.QueryString["page"], out pageIndex)) { pageIndex = 1; } int num = default(int); if (!int.TryParse(this.Page.Request.QueryString["size"], out num)) { num = 20; } MemberInfo user = HiContext.Current.User; if (user != null) { Literal literal = this.litCurrentPoints; int num2 = user.Points; literal.Text = num2.ToString(); int historyPoints = MemberHelper.GetHistoryPoints(user.UserId); this.litHistoryPoints.Text = historyPoints.ToString(); PointQuery pointQuery = new PointQuery(); pointQuery.PageIndex = pageIndex; pointQuery.PageSize = 10; pointQuery.UserId = user.UserId; PageModel <PointDetailInfo> userPoints = MemberHelper.GetUserPoints(pointQuery); this.rptPointList.DataSource = userPoints.Models; this.rptPointList.DataBind(); HtmlInputHidden control = this.txtTotalPages; num2 = userPoints.Total; control.SetWhenIsNotNull(num2.ToString()); } PageTitle.AddSiteNameTitle("我的积分"); }