protected override void AttachChildControls() { if (!int.TryParse(this.Page.Request.QueryString["AfficheId"], out this.affichesId)) { base.GotoResourceNotFound(); } this.litAffichesAddedDate = (FormatedTimeLabel) this.FindControl("litAffichesAddedDate"); this.litContent = (Literal) this.FindControl("litContent"); this.litTilte = (Literal) this.FindControl("litTilte"); this.lblFront = (Label) this.FindControl("lblFront"); this.lblNext = (Label) this.FindControl("lblNext"); this.aFront = (HtmlAnchor) this.FindControl("front"); this.aNext = (HtmlAnchor) this.FindControl("next"); this.lblFrontTitle = (Label) this.FindControl("lblFrontTitle"); this.lblNextTitle = (Label) this.FindControl("lblNextTitle"); if (!this.Page.IsPostBack) { AfficheInfo affiche = CommentBrowser.GetAffiche(this.affichesId); if (affiche != null) { PageTitle.AddTitle(affiche.Title, HiContext.Current.Context); this.litTilte.Text = affiche.Title; string str = HiContext.Current.HostPath + Globals.GetSiteUrls().UrlData.FormatUrl("AffichesDetails", new object[] { this.affichesId }); this.litContent.Text = affiche.Content.Replace("href=\"#\"", "href=\"" + str + "\""); this.litAffichesAddedDate.Time = affiche.AddedDate; AfficheInfo frontOrNextAffiche = CommentBrowser.GetFrontOrNextAffiche(this.affichesId, "Front"); AfficheInfo info3 = CommentBrowser.GetFrontOrNextAffiche(this.affichesId, "Next"); if ((frontOrNextAffiche != null) && (frontOrNextAffiche.AfficheId > 0)) { if (this.lblFront != null) { this.lblFront.Visible = true; this.aFront.HRef = "AffichesDetails.aspx?afficheId=" + frontOrNextAffiche.AfficheId; this.lblFrontTitle.Text = frontOrNextAffiche.Title; } } else if (this.lblFront != null) { this.lblFront.Visible = false; } if ((info3 != null) && (info3.AfficheId > 0)) { if (this.lblNext != null) { this.lblNext.Visible = true; this.aNext.HRef = "AffichesDetails.aspx?afficheId=" + info3.AfficheId; this.lblNextTitle.Text = info3.Title; } } else if (this.lblNext != null) { this.lblNext.Visible = false; } } } }
protected override void AttachChildControls() { this.litAddresser = (Literal) this.FindControl("litAddresser"); this.litTitle = (Literal) this.FindControl("litTitle"); this.litDate = (FormatedTimeLabel) this.FindControl("litDate"); this.litContent = (Literal) this.FindControl("litContent"); if (!this.Page.IsPostBack) { this.BindSendMessage(); } }
protected override void AttachChildControls() { this.litAddresser = (Literal) this.FindControl("litAddresser"); this.litTitle = (Literal) this.FindControl("litTitle"); this.litDate = (FormatedTimeLabel) this.FindControl("litDate"); this.litContent = (Literal) this.FindControl("litContent"); this.txtReplyTitle = (TextBox) this.FindControl("txtReplyTitle"); this.txtReplyContent = (TextBox) this.FindControl("txtReplyContent"); this.btnReplyReceivedMessage = (Button) this.FindControl("btnReplyReceivedMessage"); this.btnReplyReceivedMessage.Click += new EventHandler(this.btnReplyReceivedMessage_Click); if (!string.IsNullOrEmpty(this.Page.Request.QueryString["ReceiveMessageId"])) { this.receiveMessageId = long.Parse(this.Page.Request.QueryString["ReceiveMessageId"]); } if (!this.Page.IsPostBack) { this.BindReceivedMessage(); } }
protected override void AttachChildControls() { if (!int.TryParse(this.Page.Request.QueryString["productId"], out this.productId)) { base.GotoResourceNotFound(); } this.common_Location = (Common_Location) this.FindControl("common_Location"); this.litProductName = (Literal) this.FindControl("litProductName"); this.lblSku = (SkuLabel) this.FindControl("lblSku"); this.lblStock = (StockLabel) this.FindControl("lblStock"); this.litUnit = (Literal) this.FindControl("litUnit"); this.litWeight = (WeightLabel) this.FindControl("litWeight"); this.litBrosedNum = (Literal) this.FindControl("litBrosedNum"); this.litBrand = (Literal) this.FindControl("litBrand"); this.lblSalePrice = (FormatedMoneyLabel) this.FindControl("lblSalePrice"); this.lblTotalPrice = (TotalLabel) this.FindControl("lblTotalPrice"); this.litDescription = (Literal) this.FindControl("litDescription"); this.litShortDescription = (Literal) this.FindControl("litShortDescription"); this.btnOrder = (BuyButton) this.FindControl("btnOrder"); this.hpkProductConsultations = (HyperLink) this.FindControl("hpkProductConsultations"); this.hpkProductReviews = (HyperLink) this.FindControl("hpkProductReviews"); this.lblCurrentSalePrice = (FormatedMoneyLabel) this.FindControl("lblCurrentSalePrice"); this.litCount = (Label) this.FindControl("litCount"); this.lblNeedPrice = (FormatedMoneyLabel) this.FindControl("lblNeedPrice"); this.litContent = (Literal) this.FindControl("litContent"); this.lblEndTime = (FormatedTimeLabel) this.FindControl("lblEndTime"); this.litRemainTime = (Literal) this.FindControl("litRemainTime"); this.litNeedCount = (Literal) this.FindControl("litNeedCount"); this.litMaxCount = (Label) this.FindControl("litMaxCount"); this.images = (Common_ProductImages) this.FindControl("common_ProductImages"); this.rptExpandAttributes = (ThemedTemplatedRepeater) this.FindControl("rptExpandAttributes"); this.skuSelector = (SKUSelector) this.FindControl("SKUSelector"); this.reviews = (Common_ProductReview) this.FindControl("list_Common_ProductReview"); this.consultations = (Common_ProductConsultations) this.FindControl("list_Common_ProductConsultations"); this.correlative = (Common_GoodsList_Correlative) this.FindControl("list_Common_GoodsList_Correlative"); if (!this.Page.IsPostBack) { ProductBrowseInfo info = ProductBrowser.GetProductBrowseInfo(this.productId, new int?(this.reviews.MaxNum), new int?(this.consultations.MaxNum)); GroupBuyInfo productGroupBuyInfo = ProductBrowser.GetProductGroupBuyInfo(this.productId); if ((info.Product == null) || (productGroupBuyInfo == null)) { this.Page.Response.Redirect(Globals.ApplicationPath + "/ResourceNotFound.aspx?errorMsg=" + Globals.UrlEncode("该件商品参与的团购活动已经结束;或已被管理员删除")); } else { this.LoadPageSearch(info.Product); this.hpkProductReviews.Text = "查看全部" + ProductBrowser.GetProductReviewNumber(this.productId).ToString() + "条评论"; this.hpkProductConsultations.Text = "查看全部" + ProductBrowser.GetProductConsultationNumber(this.productId).ToString() + "条咨询"; this.hpkProductConsultations.NavigateUrl = string.Format("ProductConsultationsAndReplay.aspx?productId={0}", this.productId); this.hpkProductReviews.NavigateUrl = string.Format("LookProductReviews.aspx?productId={0}", this.productId); this.LoadProductInfo(info.Product, info.BrandName); this.LoadProductGroupBuyInfo(productGroupBuyInfo); this.btnOrder.Stock = info.Product.Stock; BrowsedProductQueue.EnQueue(this.productId); this.images.ImageInfo = info.Product; if (info.DbAttribute != null) { this.rptExpandAttributes.DataSource = info.DbAttribute; this.rptExpandAttributes.DataBind(); } if (info.DbSKUs != null) { this.skuSelector.ProductId = this.productId; this.skuSelector.DataSource = info.DbSKUs; } if (info.DBReviews != null) { this.reviews.DataSource = info.DBReviews; this.reviews.DataBind(); } if (info.DBConsultations != null) { this.consultations.DataSource = info.DBConsultations; this.consultations.DataBind(); } if (info.DbCorrelatives != null) { this.correlative.DataSource = info.DbCorrelatives; this.correlative.DataBind(); } } } }
protected override void AttachChildControls() { if (!int.TryParse(this.Page.Request.QueryString["helpId"], out this.helpId)) { base.GotoResourceNotFound(); } this.litHelpAddedDate = (FormatedTimeLabel) this.FindControl("litHelpAddedDate"); this.litHelpDescription = (Literal) this.FindControl("litHelpDescription"); this.litHelpContent = (Literal) this.FindControl("litHelpContent"); this.litHelpTitle = (Literal) this.FindControl("litHelpTitle"); this.lblFront = (Label) this.FindControl("lblFront"); this.lblNext = (Label) this.FindControl("lblNext"); this.lblFrontTitle = (Label) this.FindControl("lblFrontTitle"); this.lblNextTitle = (Label) this.FindControl("lblNextTitle"); this.aFront = (HtmlAnchor) this.FindControl("front"); this.aNext = (HtmlAnchor) this.FindControl("next"); if (!this.Page.IsPostBack) { HelpInfo help = CommentBrowser.GetHelp(this.helpId); if (help != null) { PageTitle.AddTitle(help.Title, HiContext.Current.Context); if (!string.IsNullOrEmpty(help.MetaKeywords)) { MetaTags.AddMetaKeywords(help.MetaKeywords, HiContext.Current.Context); } if (!string.IsNullOrEmpty(help.MetaDescription)) { MetaTags.AddMetaDescription(help.MetaDescription, HiContext.Current.Context); } this.litHelpTitle.Text = help.Title; this.litHelpDescription.Text = help.Description; string str = HiContext.Current.HostPath + Globals.GetSiteUrls().UrlData.FormatUrl("HelpDetails", new object[] { this.helpId }); this.litHelpContent.Text = help.Content.Replace("href=\"#\"", "href=\"" + str + "\""); this.litHelpAddedDate.Time = help.AddedDate; HelpInfo info2 = CommentBrowser.GetFrontOrNextHelp(this.helpId, help.CategoryId, "Front"); if ((info2 != null) && (info2.HelpId > 0)) { if (this.lblFront != null) { this.lblFront.Visible = true; this.aFront.HRef = "HelpDetails.aspx?helpId=" + info2.HelpId; this.lblFrontTitle.Text = info2.Title; } } else if (this.lblFront != null) { this.lblFront.Visible = false; } HelpInfo info3 = CommentBrowser.GetFrontOrNextHelp(this.helpId, help.CategoryId, "Next"); if ((info3 != null) && (info3.HelpId > 0)) { if (this.lblNext != null) { this.lblNext.Visible = true; this.aNext.HRef = "HelpDetails.aspx?helpId=" + info3.HelpId; this.lblNextTitle.Text = info3.Title; } } else if (this.lblNext != null) { this.lblNext.Visible = false; } } } }
protected override void AttachChildControls() { this.orderId = this.Page.Request.QueryString["orderId"]; this.litOrderId = (Literal) this.FindControl("litOrderId"); this.lbltotalPrice = (FormatedMoneyLabel) this.FindControl("lbltotalPrice"); this.litAddDate = (FormatedTimeLabel) this.FindControl("litAddDate"); this.lblOrderStatus = (OrderStatusLabel) this.FindControl("lblOrderStatus"); this.litCloseReason = (Literal) this.FindControl("litCloseReason"); this.litRemark = (Literal) this.FindControl("litRemark"); this.litShipTo = (Literal) this.FindControl("litShipTo"); this.litRegion = (Literal) this.FindControl("litRegion"); this.litAddress = (Literal) this.FindControl("litAddress"); this.litZipcode = (Literal) this.FindControl("litZipcode"); this.litEmail = (Literal) this.FindControl("litEmail"); this.litPhone = (Literal) this.FindControl("litPhone"); this.litTellPhone = (Literal) this.FindControl("litTellPhone"); this.litUserName = (Literal) this.FindControl("litUserName"); this.litUserAddress = (Literal) this.FindControl("litUserAddress"); this.litUserEmail = (Literal) this.FindControl("litUserEmail"); this.litUserPhone = (Literal) this.FindControl("litUserPhone"); this.litUserTellPhone = (Literal) this.FindControl("litUserTellPhone"); this.litUserQQ = (Literal) this.FindControl("litUserQQ"); this.litUserMSN = (Literal) this.FindControl("litUserMSN"); this.litPaymentType = (Literal) this.FindControl("litPaymentType"); this.litModeName = (Literal) this.FindControl("litModeName"); this.plOrderOption = (Panel) this.FindControl("plOrderOption"); this.grdOrderOption = (GridView) this.FindControl("grdOrderOption"); this.plOrderSended = (Panel) this.FindControl("plOrderSended"); this.litRealModeName = (Literal) this.FindControl("litRealModeName"); this.litShippNumber = (Literal) this.FindControl("litShippNumber"); this.litDiscountName = (HyperLink) this.FindControl("litDiscountName"); this.lblAdjustedDiscount = (FormatedMoneyLabel) this.FindControl("lblAdjustedDiscount"); this.litFreeName = (HyperLink) this.FindControl("litFreeName"); this.plExpress = (Panel) this.FindControl("plExpress"); this.power = (HtmlAnchor) this.FindControl("power"); this.orderItems = (Common_OrderManage_OrderItems) this.FindControl("Common_OrderManage_OrderItems"); this.grdOrderGift = (GridView) this.FindControl("grdOrderGift"); this.plOrderGift = (Panel) this.FindControl("plOrderGift"); this.lblCartMoney = (FormatedMoneyLabel) this.FindControl("lblCartMoney"); this.litPoints = (Literal) this.FindControl("litPoints"); this.litWeight = (Literal) this.FindControl("litWeight"); this.litFree = (Literal) this.FindControl("litFree"); this.lblFreight = (FormatedMoneyLabel) this.FindControl("lblFreight"); this.lblPayCharge = (FormatedMoneyLabel) this.FindControl("lblPayCharge"); this.lblOptionPrice = (FormatedMoneyLabel) this.FindControl("lblOptionPrice"); this.litCouponValue = (Literal) this.FindControl("litCouponValue"); this.lblDiscount = (FormatedMoneyLabel) this.FindControl("lblDiscount"); this.litTotalPrice = (FormatedMoneyLabel) this.FindControl("litTotalPrice"); this.plRefund = (Panel) this.FindControl("plRefund"); this.lblTotalBalance = (FormatedMoneyLabel) this.FindControl("lblTotalBalance"); this.litRefundOrderRemark = (Literal) this.FindControl("litRefundOrderRemark"); PageTitle.AddTitle("订单详细页", HiContext.Current.Context); if (!this.Page.IsPostBack) { OrderInfo orderInfo = TradeHelper.GetOrderInfo(this.orderId); this.BindOrderBase(orderInfo); this.BindOrderAddress(orderInfo); this.BindOrderItems(orderInfo); this.BindOrderRefund(orderInfo); } }
protected override void AttachChildControls() { if (!int.TryParse(this.Page.Request.QueryString["articleId"], out this.articleId)) { base.GotoResourceNotFound(); } this.litArticleAddedDate = (FormatedTimeLabel) this.FindControl("litArticleAddedDate"); this.litArticleContent = (Literal) this.FindControl("litArticleContent"); this.litArticleDescription = (Literal) this.FindControl("litArticleDescription"); this.litArticleTitle = (Literal) this.FindControl("litArticleTitle"); this.lblFront = (Label) this.FindControl("lblFront"); this.lblNext = (Label) this.FindControl("lblNext"); this.lblFrontTitle = (Label) this.FindControl("lblFrontTitle"); this.lblNextTitle = (Label) this.FindControl("lblNextTitle"); this.aFront = (HtmlAnchor) this.FindControl("front"); this.aNext = (HtmlAnchor) this.FindControl("next"); this.ariticlative = (Common_ArticleRelative) this.FindControl("list_Common_ArticleRelative"); if (!this.Page.IsPostBack) { ArticleInfo article = CommentBrowser.GetArticle(this.articleId); if ((article != null) && article.IsRelease) { PageTitle.AddTitle(article.Title, HiContext.Current.Context); if (!string.IsNullOrEmpty(article.MetaKeywords)) { MetaTags.AddMetaKeywords(article.MetaKeywords, HiContext.Current.Context); } if (!string.IsNullOrEmpty(article.MetaDescription)) { MetaTags.AddMetaDescription(article.MetaDescription, HiContext.Current.Context); } this.litArticleTitle.Text = article.Title; this.litArticleDescription.Text = article.Description; string str = HiContext.Current.HostPath + Globals.GetSiteUrls().UrlData.FormatUrl("ArticleDetails", new object[] { this.articleId }); this.litArticleContent.Text = article.Content.Replace("href=\"#\"", "href=\"" + str + "\""); this.litArticleAddedDate.Time = article.AddedDate; ArticleInfo info2 = CommentBrowser.GetFrontOrNextArticle(this.articleId, "Front", article.CategoryId); if ((info2 != null) && (info2.ArticleId > 0)) { if (this.lblFront != null) { this.lblFront.Visible = true; this.aFront.HRef = Globals.GetSiteUrls().UrlData.FormatUrl("ArticleDetails", new object[] { info2.ArticleId }); this.lblFrontTitle.Text = info2.Title; } } else if (this.lblFront != null) { this.lblFront.Visible = false; } ArticleInfo info3 = CommentBrowser.GetFrontOrNextArticle(this.articleId, "Next", article.CategoryId); if ((info3 != null) && (info3.ArticleId > 0)) { if (this.lblNext != null) { this.lblNext.Visible = true; this.aNext.HRef = Globals.GetSiteUrls().UrlData.FormatUrl("ArticleDetails", new object[] { info3.ArticleId }); this.lblNextTitle.Text = info3.Title; } } else if (this.lblNext != null) { this.lblNext.Visible = false; } DataSet articlProductList = CommentBrowser.GetArticlProductList(this.articleId); if (((articlProductList == null) || (articlProductList.Tables.Count <= 0)) || (articlProductList.Tables[0].Rows.Count <= 0)) { this.BindList(); } else { this.ariticlative.DataSource = articlProductList.Tables[0]; this.ariticlative.DataBind(); } } } }
protected override void AttachChildControls() { if (string.IsNullOrEmpty(this.Page.Request.QueryString["orderId"])) { base.GotoResourceNotFound(); } this.orderId = this.Page.Request.QueryString["orderId"]; this.orderItems = (Common_OrderManage_ReviewsOrderItems) this.FindControl("Common_OrderManage_ReviewsOrderItems"); this.litWeight = (Literal) this.FindControl("litWeight"); this.litOrderId = (Literal) this.FindControl("litOrderId"); this.lbltotalPrice = (FormatedMoneyLabel) this.FindControl("lbltotalPrice"); this.litAddDate = (FormatedTimeLabel) this.FindControl("litAddDate"); this.lblOrderStatus = (OrderStatusLabel) this.FindControl("lblOrderStatus"); this.litCloseReason = (Literal) this.FindControl("litCloseReason"); this.btnRefer = ButtonManager.Create(this.FindControl("btnRefer")); this.btnRefer.Click += new EventHandler(this.btnRefer_Click); if (!this.Page.IsPostBack && ((HiContext.Current.User.UserRole == UserRole.Member) || (HiContext.Current.User.UserRole == UserRole.Underling))) { this.btnRefer.Text = "提交评论"; OrderInfo orderInfo = TradeHelper.GetOrderInfo(this.orderId); this.BindOrderItems(orderInfo); this.BindOrderBase(orderInfo); } }