Exemple #1
0
        protected override void AttachChildControls()
        {
            this.rptProduct = (ThemedTemplatedRepeater)this.FindControl("rptProduct");
            if (!this.Page.IsPostBack)
            {
                this.BindList();
            }
            this.div_activelist = (System.Web.UI.HtmlControls.HtmlGenericControl) this.FindControl("div_activelist");
            if (this.div_activelist != null)
            {
                string type = string.IsNullOrEmpty(System.Configuration.ConfigurationManager.AppSettings["IsActiveOpen"])?"1":System.Configuration.ConfigurationManager.AppSettings["IsActiveOpen"].ToString();
                this.div_activelist.Visible = (type == "1") ? true : false;
            }

            if (HiContext.Current.User.UserRole == UserRole.Member && ((Member)HiContext.Current.User).ReferralStatus == 2 && string.IsNullOrEmpty(this.Page.Request.QueryString["ReferralUserId"]))
            {
                string text = System.Web.HttpContext.Current.Request.Url.ToString();
                if (text.IndexOf("?") > -1)
                {
                    text = text + "&ReferralUserId=" + HiContext.Current.User.UserId;
                }
                else
                {
                    text = text + "?ReferralUserId=" + HiContext.Current.User.UserId;
                }
                this.Page.Response.Redirect(text);
                return;
            }
            HiContext current = HiContext.Current;

            PageTitle.AddTitle(current.SiteSettings.SiteName + " - " + current.SiteSettings.SiteDescription, HiContext.Current.Context);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            int result = 0;

            int.TryParse(Page.Request.QueryString["ProductId"], out result);

            if (!Page.IsPostBack)
            {
                ProductInfo productSimpleInfo = ProductBrowser.GetProductSimpleInfo(result);

                if (productSimpleInfo != null)
                {
                    BindImages(productSimpleInfo);
                }

                if (!string.IsNullOrEmpty(productSimpleInfo.Title))
                {
                    PageTitle.AddTitle(productSimpleInfo.Title, HiContext.Current.Context);
                }
                else
                {
                    PageTitle.AddTitle(productSimpleInfo.ProductName, HiContext.Current.Context);
                }
            }
        }
Exemple #3
0
 protected override void AttachChildControls()
 {
     if (!int.TryParse(this.Page.Request.QueryString["categoryId"], out this.categoryId))
     {
         base.GotoResourceNotFound();
     }
     this.litLeadBuy = (Common_CategoryLeadBuy)this.FindControl("Common_CategoryLeadBuy");
     if (!this.Page.IsPostBack)
     {
         CategoryInfo category = CategoryBrowser.GetCategory(this.categoryId);
         if (category != null)
         {
             if (!string.IsNullOrEmpty(category.MetaKeywords))
             {
                 MetaTags.AddMetaKeywords(category.MetaKeywords, HiContext.Current.Context);
             }
             if (!string.IsNullOrEmpty(category.MetaDescription))
             {
                 MetaTags.AddMetaDescription(category.MetaDescription, HiContext.Current.Context);
             }
             if (!string.IsNullOrEmpty(category.Name))
             {
                 PageTitle.AddTitle(category.MetaTitle, HiContext.Current.Context);
             }
             if (this.litLeadBuy != null)
             {
                 this.litLeadBuy.Text = category.Notes1;
             }
         }
         this.LoadPageSearch(category);
     }
     base.AttachChildControls();
 }
Exemple #4
0
 protected override void AttachChildControls()
 {
     if (!this.Page.IsPostBack)
     {
         string title = string.IsNullOrEmpty(this.Page.Request.QueryString["keywords"]) ? "商品搜索" : this.Page.Request.QueryString["keywords"];
         PageTitle.AddTitle(title, HiContext.Current.Context);
     }
     base.AttachChildControls();
 }
Exemple #5
0
 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;
             }
         }
     }
 }
 void LoadCategoryHead(BrandCategoryInfo brandcategory)
 {
     if (!string.IsNullOrEmpty(brandcategory.MetaKeywords))
     {
         MetaTags.AddMetaKeywords(brandcategory.MetaKeywords, HiContext.Current.Context);
     }
     if (!string.IsNullOrEmpty(brandcategory.MetaKeywords))
     {
         MetaTags.AddMetaDescription(brandcategory.MetaDescription, HiContext.Current.Context);
     }
     if (!string.IsNullOrEmpty(brandcategory.BrandName))
     {
         PageTitle.AddTitle(brandcategory.BrandName, HiContext.Current.Context);
     }
 }
Exemple #7
0
 protected override void AttachChildControls()
 {
     this.rptProducts         = (ThemedTemplatedRepeater)this.FindControl("rptProducts");
     this.pager               = (Pager)this.FindControl("pager");
     this.litSearchResultPage = (Literal)this.FindControl("litSearchResultPage");
     this.txtSKU              = (HtmlInputText)this.FindControl("txtSKU");
     this.txtKeywords         = (HtmlInputText)this.FindControl("txtKeywords");
     this.txtStartPrice       = (HtmlInputText)this.FindControl("txtStartPrice");
     this.txtEndPrice         = (HtmlInputText)this.FindControl("txtEndPrice");
     this.btnSearch           = ButtonManager.Create(this.FindControl("btnSearch"));
     this.btnSearch.Click    += new EventHandler(this.btnSearch_Click);
     if (!this.Page.IsPostBack)
     {
         string title = "商品下架区";
         PageTitle.AddTitle(title, HiContext.Current.Context);
         this.BindProducts(this.GetProductBrowseQuery());
     }
 }
Exemple #8
0
 void LoadPageSearch(GiftInfo gift)
 {
     if (!string.IsNullOrEmpty(gift.Meta_Keywords))
     {
         MetaTags.AddMetaKeywords(gift.Meta_Keywords, HiContext.Current.Context);
     }
     if (!string.IsNullOrEmpty(gift.Meta_Description))
     {
         MetaTags.AddMetaDescription(gift.Meta_Description, HiContext.Current.Context);
     }
     if (!string.IsNullOrEmpty(gift.Title))
     {
         PageTitle.AddTitle(gift.Title, HiContext.Current.Context);
     }
     else
     {
         PageTitle.AddTitle(gift.Name, HiContext.Current.Context);
     }
 }
 void LoadPageSearch(ProductInfo productDetails)
 {
     if (!string.IsNullOrEmpty(productDetails.MetaKeywords))
     {
         MetaTags.AddMetaKeywords(productDetails.MetaKeywords, HiContext.Current.Context);
     }
     if (!string.IsNullOrEmpty(productDetails.MetaDescription))
     {
         MetaTags.AddMetaDescription(productDetails.MetaDescription, HiContext.Current.Context);
     }
     if (!string.IsNullOrEmpty(productDetails.Title))
     {
         PageTitle.AddTitle(productDetails.Title, HiContext.Current.Context);
     }
     else
     {
         PageTitle.AddTitle(productDetails.ProductName, HiContext.Current.Context);
     }
 }
 protected override void AttachChildControls()
 {
     if (!int.TryParse(this.Page.Request.QueryString["productId"], out this.productId))
     {
         base.GotoResourceNotFound();
     }
     this.hlinkProductOfTitle   = (HyperLink)this.FindControl("hlinkProductOfTitle");
     this.hlinkProductOfContext = (HyperLink)this.FindControl("hlinkProductOfContext");
     this.hlinkHome             = (HyperLink)this.FindControl("hlinkHome");
     this.litProductUrl         = (Literal)this.FindControl("litProductUrl");
     this.txtFriendEmail        = (TextBox)this.FindControl("txtFriendEmail");
     this.txtFriendName         = (TextBox)this.FindControl("txtFriendName");
     this.txtUserName           = (TextBox)this.FindControl("txtUserName");
     this.txtMessage            = (TextBox)this.FindControl("txtMessage");
     this.btnRefer        = (Button)this.FindControl("btnRefer");
     this.txtTJCode       = (HtmlInputText)this.FindControl("txtTJCode");
     this.btnRefer.Click += new EventHandler(this.btnRefer_Click);
     if (!this.Page.IsPostBack)
     {
         ProductInfo productSimpleInfo = ProductBrowser.GetProductSimpleInfo(this.productId);
         if (productSimpleInfo != null)
         {
             IUser user = HiContext.Current.User;
             this.txtUserName.Text                  = user.Username;
             this.hlinkProductOfTitle.Text          = productSimpleInfo.ProductName;
             this.hlinkProductOfTitle.NavigateUrl   = Globals.GetSiteUrls().UrlData.FormatUrl("productDetails", new object[] { this.productId });
             this.hlinkProductOfContext.Text        = productSimpleInfo.ProductName;
             this.hlinkProductOfContext.NavigateUrl = Globals.GetSiteUrls().UrlData.FormatUrl("productDetails", new object[] { this.productId });
             this.hlinkHome.NavigateUrl             = Globals.GetSiteUrls().UrlData.FormatUrl("home");
             this.hlinkHome.Text  = HiContext.Current.SiteSettings.SiteName;
             this.txtTJCode.Value = string.Empty;
             if ((user.UserRole == UserRole.Member) || (user.UserRole == UserRole.Underling))
             {
                 this.litProductUrl.Text = Globals.FullPath(HttpContext.Current.Request.Url.PathAndQuery).Replace("IntroducedToFriend", "productDetails") + "&ReferralUserId=" + user.UserId;
             }
             else
             {
                 this.litProductUrl.Text = Globals.FullPath(Globals.GetSiteUrls().UrlData.FormatUrl("productDetails", new object[] { this.productId }));
             }
             PageTitle.AddTitle("推荐给好友", HiContext.Current.Context);
         }
     }
 }
Exemple #11
0
 void LoadPageSearch(CategoryInfo category)
 {
     if (!string.IsNullOrEmpty(category.MetaKeywords))
     {
         MetaTags.AddMetaKeywords(category.MetaKeywords, HiContext.Current.Context);
     }
     if (!string.IsNullOrEmpty(category.MetaDescription))
     {
         MetaTags.AddMetaDescription(category.MetaDescription, HiContext.Current.Context);
     }
     if (!string.IsNullOrEmpty(category.MetaTitle))
     {
         PageTitle.AddTitle(category.MetaTitle, HiContext.Current.Context);
     }
     else
     {
         PageTitle.AddTitle(category.Name, HiContext.Current.Context);
     }
 }
Exemple #12
0
 protected override void AttachChildControls()
 {
     if (!int.TryParse(this.Page.Request.QueryString["productID"], out this.productId))
     {
         base.GotoResourceNotFound();
     }
     this.lblProductNameLinkText = (Label)this.FindControl("lblProductNameLinkText");
     this.hlinkProductTitle      = (HyperLink)this.FindControl("hlinkProductTitle");
     this.hlinkProductContent    = (HyperLink)this.FindControl("hlinkProductContent");
     this.lblImgUrl = (Label)this.FindControl("lblImgUrl");
     this.lblUrl    = (Label)this.FindControl("lblUrl");
     this.lblUrl2   = (Label)this.FindControl("lblUrl2");
     this.imgUrl    = (HiImage)this.FindControl("imgUrl");
     PageTitle.AddTitle("推荐到博客", HiContext.Current.Context);
     if (!this.Page.IsPostBack)
     {
         string      name = "productDetails";
         ProductInfo productSimpleInfo = ProductBrowser.GetProductSimpleInfo(this.productId);
         if (productSimpleInfo.SaleStatus == ProductSaleStatus.UnSale)
         {
             name = "unproductdetails";
         }
         string str2 = Globals.GetSiteUrls().UrlData.FormatUrl(name, new object[] { this.productId });
         this.hlinkProductTitle.Text        = this.hlinkProductContent.Text = productSimpleInfo.ProductName;
         this.hlinkProductTitle.NavigateUrl = this.hlinkProductContent.NavigateUrl = str2;
         this.lblProductNameLinkText.Text   = string.Format("插入这段代码,可以在你的博客中显示“{0}”的文字链接", string.Format("<a href=\"{0}\" target=\"_blank\">{1}</a>", str2, "Text"));
         this.imgUrl.ImageUrl = productSimpleInfo.ImageUrl1;
         if (!string.IsNullOrEmpty(productSimpleInfo.ImageUrl1))
         {
             this.lblImgUrl.Text = Globals.FullPath(Globals.ApplicationPath + this.imgUrl.ImageUrl);
         }
         IUser user = HiContext.Current.User;
         if ((user.UserRole == UserRole.Member) || (user.UserRole == UserRole.Underling))
         {
             this.lblUrl.Text = this.lblUrl2.Text = Globals.FullPath(HttpContext.Current.Request.Url.PathAndQuery).Replace("BlogIt", name) + "&ReferralUserId=" + user.UserId;
         }
         else
         {
             this.lblUrl.Text = this.lblUrl2.Text = Globals.FullPath(Globals.GetSiteUrls().UrlData.FormatUrl(name, new object[] { this.productId }));
         }
     }
 }
Exemple #13
0
 protected override void OnInit(System.EventArgs e)
 {
     base.OnInit(e);
     PageTitle.AddTitle(Hidistro.Membership.Context.HiContext.Current.SiteSettings.SiteName, this.Context);
     foreach (System.Web.UI.Control control in this.Page.Header.Controls)
     {
         if (control is System.Web.UI.HtmlControls.HtmlLink)
         {
             System.Web.UI.HtmlControls.HtmlLink htmlLink = control as System.Web.UI.HtmlControls.HtmlLink;
             if (htmlLink.Href.StartsWith("/"))
             {
                 htmlLink.Href = Globals.ApplicationPath + htmlLink.Href;
             }
             else
             {
                 htmlLink.Href = Globals.ApplicationPath + "/" + htmlLink.Href;
             }
         }
     }
 }
Exemple #14
0
 protected override void OnInit(EventArgs e)
 {
     PageTitle.AddTitle(HiContext.Current.SiteSettings.SiteName, Context);
     foreach (Control control in Page.Header.Controls)
     {
         if (control is HtmlLink)
         {
             HtmlLink link = control as HtmlLink;
             if (link.Href.StartsWith("/"))
             {
                 link.Href = Globals.ApplicationPath + link.Href;
             }
             else
             {
                 link.Href = Globals.ApplicationPath + "/" + link.Href;
             }
         }
     }
     base.OnInit(e);
 }
Exemple #15
0
 protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     PageTitle.AddTitle(HiContext.Current.SiteSettings.SiteName, this.Context);
     foreach (Control control in this.Page.Header.Controls)
     {
         if (control is HtmlLink)
         {
             HtmlLink htmlLink = control as HtmlLink;
             if (htmlLink.Href.StartsWith("/"))
             {
                 htmlLink.Href = htmlLink.Href;
             }
             else
             {
                 htmlLink.Href = "/" + htmlLink.Href;
             }
         }
     }
 }
Exemple #16
0
 protected override void OnInit(System.EventArgs e)
 {
     base.OnInit(e);
     PageTitle.AddTitle(SettingsManager.GetMasterSettings(true).SiteName);
     foreach (System.Web.UI.Control control in this.Page.Header.Controls)
     {
         if (control is System.Web.UI.HtmlControls.HtmlLink)
         {
             System.Web.UI.HtmlControls.HtmlLink link = control as System.Web.UI.HtmlControls.HtmlLink;
             if (link.Href.StartsWith("/"))
             {
                 link.Href = Globals.ApplicationPath + link.Href;
             }
             else
             {
                 link.Href = Globals.ApplicationPath + "/" + link.Href;
             }
         }
     }
 }
Exemple #17
0
        protected override void AttachChildControls()
        {
            if (HiContext.Current.User.UserRole == UserRole.Member && ((Member)HiContext.Current.User).ReferralStatus == 2 && string.IsNullOrEmpty(this.Page.Request.QueryString["ReferralUserId"]))
            {
                string text = System.Web.HttpContext.Current.Request.Url.ToString();
                if (text.IndexOf("?") > -1)
                {
                    text = text + "&ReferralUserId=" + HiContext.Current.User.UserId;
                }
                else
                {
                    text = text + "?ReferralUserId=" + HiContext.Current.User.UserId;
                }
                this.Page.Response.Redirect(text);
                return;
            }
            HiContext current = HiContext.Current;

            PageTitle.AddTitle(current.SiteSettings.SiteName + " - " + current.SiteSettings.SiteDescription, HiContext.Current.Context);
        }
Exemple #18
0
 protected override void AttachChildControls()
 {
     this.litBrandName            = (Literal)this.FindControl("litBrandName");
     this.litBrandRemark          = (Literal)this.FindControl("litBrandRemark");
     this.rptProduct              = (ThemedTemplatedRepeater)this.FindControl("rptProduct");
     this.pager                   = (Pager)this.FindControl("pager");
     this.litBrandProductResult   = (Literal)this.FindControl("litBrandProductResult");
     this.cutdownSearch           = (Common_CutdownSearch)this.FindControl("search_Common_CutdownSearch");
     this.btnSortPrice            = (Common_Search_SortPrice)this.FindControl("btn_Common_Search_SortPrice");
     this.btnSortTime             = (Common_Search_SortTime)this.FindControl("btn_Common_Search_SortTime");
     this.btnSortPopularity       = (Common_Search_SortPopularity)this.FindControl("btn_Common_Search_SortPopularity");
     this.btnSortSaleCounts       = (Common_Search_SortSaleCounts)this.FindControl("btn_Common_Search_SortSaleCounts");
     this.cutdownSearch.ReSearch += new Common_CutdownSearch.ReSearchEventHandler(this.cutdownSearch_ReSearch);
     this.btnSortPrice.Sorting   += new Common_Search_SortTime.SortingHandler(this.btnSortPrice_Sorting);
     this.btnSortTime.Sorting    += new Common_Search_SortTime.SortingHandler(this.btnSortTime_Sorting);
     if (this.btnSortPopularity != null)
     {
         this.btnSortPopularity.Sorting += new Common_Search_SortPopularity.SortingHandler(this.btnSortPopularity_Sorting);
     }
     if (this.btnSortSaleCounts != null)
     {
         this.btnSortSaleCounts.Sorting += new Common_Search_SortSaleCounts.SortingHandler(this.btnSortSaleCounts_Sorting);
     }
     if (!this.Page.IsPostBack)
     {
         int.TryParse(this.Page.Request.QueryString["brandId"], out this.brandId);
         BrandCategoryInfo brandCategory = CategoryBrowser.GetBrandCategory(this.brandId);
         if (brandCategory == null)
         {
             this.Page.Response.Redirect(Globals.ApplicationPath + "/ResourceNotFound.aspx?errorMsg=" + Globals.UrlEncode("该品牌已经不存在"));
         }
         else
         {
             this.LoadCategoryHead(brandCategory);
             this.litBrandName.Text   = brandCategory.BrandName;
             this.litBrandRemark.Text = brandCategory.Description;
             PageTitle.AddTitle(brandCategory.BrandName, HiContext.Current.Context);
             this.BindBrandProduct();
         }
     }
 }
 protected override void AttachChildControls()
 {
     this.orderId             = this.Page.Request.QueryString["orderId"];
     this.litOrderId          = (System.Web.UI.WebControls.Literal) this.FindControl("litOrderId");
     this.lbltotalPrice       = (FormatedMoneyLabel)this.FindControl("lbltotalPrice");
     this.litAddDate          = (FormatedTimeLabel)this.FindControl("litAddDate");
     this.lblOrderStatus      = (OrderStatusLabel)this.FindControl("lblOrderStatus");
     this.litCloseReason      = (System.Web.UI.WebControls.Literal) this.FindControl("litCloseReason");
     this.litRemark           = (System.Web.UI.WebControls.Literal) this.FindControl("litRemark");
     this.litShipTo           = (System.Web.UI.WebControls.Literal) this.FindControl("litShipTo");
     this.litRegion           = (System.Web.UI.WebControls.Literal) this.FindControl("litRegion");
     this.litAddress          = (System.Web.UI.WebControls.Literal) this.FindControl("litAddress");
     this.litZipcode          = (System.Web.UI.WebControls.Literal) this.FindControl("litZipcode");
     this.litEmail            = (System.Web.UI.WebControls.Literal) this.FindControl("litEmail");
     this.litPhone            = (System.Web.UI.WebControls.Literal) this.FindControl("litPhone");
     this.litTellPhone        = (System.Web.UI.WebControls.Literal) this.FindControl("litTellPhone");
     this.litShipToDate       = (System.Web.UI.WebControls.Literal) this.FindControl("litShipToDate");
     this.litPaymentType      = (System.Web.UI.WebControls.Literal) this.FindControl("litPaymentType");
     this.litModeName         = (System.Web.UI.WebControls.Literal) this.FindControl("litModeName");
     this.plOrderSended       = (System.Web.UI.WebControls.Panel) this.FindControl("plOrderSended");
     this.litRealModeName     = (System.Web.UI.WebControls.Literal) this.FindControl("litRealModeName");
     this.litShippNumber      = (System.Web.UI.WebControls.Literal) this.FindControl("litShippNumber");
     this.litDiscountName     = (System.Web.UI.WebControls.HyperLink) this.FindControl("litDiscountName");
     this.lblAdjustedDiscount = (FormatedMoneyLabel)this.FindControl("lblAdjustedDiscount");
     this.litFreeName         = (System.Web.UI.WebControls.HyperLink) this.FindControl("litFreeName");
     this.plExpress           = (System.Web.UI.WebControls.Panel) this.FindControl("plExpress");
     this.power                      = (System.Web.UI.HtmlControls.HtmlAnchor) this.FindControl("power");
     this.orderItems                 = (Common_OrderManage_OrderItems)this.FindControl("Common_OrderManage_OrderItems");
     this.grdOrderGift               = (System.Web.UI.WebControls.GridView) this.FindControl("grdOrderGift");
     this.plOrderGift                = (System.Web.UI.WebControls.Panel) this.FindControl("plOrderGift");
     this.lblBundlingPrice           = (System.Web.UI.WebControls.Literal) this.FindControl("lblBundlingPrice");
     this.litPoints                  = (System.Web.UI.WebControls.Literal) this.FindControl("litPoints");
     this.litSentTimesPointPromotion = (System.Web.UI.WebControls.HyperLink) this.FindControl("litSentTimesPointPromotion");
     this.litWeight                  = (System.Web.UI.WebControls.Literal) this.FindControl("litWeight");
     this.litFree                    = (System.Web.UI.WebControls.Literal) this.FindControl("litFree");
     this.lblFreight                 = (FormatedMoneyLabel)this.FindControl("lblFreight");
     this.lblPayCharge               = (FormatedMoneyLabel)this.FindControl("lblPayCharge");
     this.litCouponValue             = (System.Web.UI.WebControls.Literal) this.FindControl("litCouponValue");
     this.lblDiscount                = (FormatedMoneyLabel)this.FindControl("lblDiscount");
     this.litTotalPrice              = (FormatedMoneyLabel)this.FindControl("litTotalPrice");
     this.lblRefundTotal             = (FormatedMoneyLabel)this.FindControl("lblRefundTotal");
     this.litAddOrderDate            = (FormatedTimeLabel)this.FindControl("litAddOrderDate");
     this.litPayDate                 = (FormatedTimeLabel)this.FindControl("litPayDate");
     this.litPayBack                 = (FormatedTimeLabel)this.FindControl("litPayBack");
     this.litBackShip                = (FormatedTimeLabel)this.FindControl("litBackShip");
     this.litShipDate                = (FormatedTimeLabel)this.FindControl("litShipDate");
     this.litResultDate              = (FormatedTimeLabel)this.FindControl("litResultDate");
     this.lkbtnConfirmOrder          = (System.Web.UI.WebControls.LinkButton) this.FindControl("lkbtnConfirmOrder");
     this.lkbtnCloseOrder            = (System.Web.UI.WebControls.LinkButton) this.FindControl("lkbtnCloseOrder");
     this.lkbtnApplyForRefund        = (System.Web.UI.HtmlControls.HtmlAnchor) this.FindControl("lkbtnApplyForRefund");
     this.lkbtnApplyForReturn        = (System.Web.UI.HtmlControls.HtmlAnchor) this.FindControl("lkbtnApplyForReturn");
     this.lkbtnApplyForReplace       = (System.Web.UI.HtmlControls.HtmlAnchor) this.FindControl("lkbtnApplyForReplace");
     this.btnOk                      = (System.Web.UI.WebControls.Button) this.FindControl("btnOk");
     this.btnReplace                 = (System.Web.UI.WebControls.Button) this.FindControl("btnReplace");
     this.btnReturn                  = (System.Web.UI.WebControls.Button) this.FindControl("btnReturn");
     this.btnPay                     = (System.Web.UI.WebControls.Button) this.FindControl("btnPay");
     this.lbRefundMoney              = (System.Web.UI.WebControls.Label) this.FindControl("lbRefundMoney");
     this.lbRefundMoney              = (System.Web.UI.WebControls.Label) this.FindControl("lbRefundMoney");
     this.lbCloseReason              = (System.Web.UI.WebControls.Label) this.FindControl("lbCloseReason");
     this.txtRemark                  = (System.Web.UI.WebControls.TextBox) this.FindControl("txtRemark");
     this.txtReturnRemark            = (System.Web.UI.WebControls.TextBox) this.FindControl("txtReturnRemark");
     this.txtReplaceRemark           = (System.Web.UI.WebControls.TextBox) this.FindControl("txtReplaceRemark");
     this.dropRefundType             = (System.Web.UI.WebControls.DropDownList) this.FindControl("dropRefundType");
     this.dropRefundReason           = (System.Web.UI.WebControls.DropDownList) this.FindControl("dropRefundReason");
     this.dropReturnReason           = (System.Web.UI.WebControls.DropDownList) this.FindControl("dropReturnReason");
     this.dropReturnRefundType       = (System.Web.UI.WebControls.DropDownList) this.FindControl("dropReturnRefundType");
     this.dropPayType                = (System.Web.UI.WebControls.DropDownList) this.FindControl("dropPayType");
     this.plRefund                   = (System.Web.UI.WebControls.Panel) this.FindControl("plRefund");
     this.lblTotalBalance            = (FormatedMoneyLabel)this.FindControl("lblTotalBalance");
     this.litRefundOrderRemark       = (System.Web.UI.WebControls.Literal) this.FindControl("litRefundOrderRemark");
     this.litTax                     = (FormatedMoneyLabel)this.FindControl("litTax");
     this.litInvoiceTitle            = (System.Web.UI.WebControls.Literal) this.FindControl("litInvoiceTitle");
     this.hdorderId                  = (System.Web.UI.HtmlControls.HtmlInputHidden) this.FindControl("hdorderId");
     PageTitle.AddTitle("订单详细页", HiContext.Current.Context);
     this.btnPay.Click            += new System.EventHandler(this.btnPay_Click);
     this.btnOk.Click             += new System.EventHandler(this.btnOk_Click);
     this.btnReturn.Click         += new System.EventHandler(this.btnReturn_Click);
     this.btnReplace.Click        += new System.EventHandler(this.btnReplace_Click);
     this.lkbtnConfirmOrder.Click += new System.EventHandler(this.lkbtnConfirmOrder_Click);
     this.lkbtnCloseOrder.Click   += new System.EventHandler(this.lkbtnCloseOrder_Click);
     if (!this.Page.IsPostBack)
     {
         OrderInfo orderInfo = TradeHelper.GetOrderInfo(this.orderId);
         if (orderInfo == null || orderInfo.UserId != HiContext.Current.User.UserId)
         {
             this.Page.Response.Redirect(Globals.ApplicationPath + "/ResourceNotFound.aspx?errorMsg=" + Globals.UrlEncode("该订单不存在或者不属于当前用户的订单"));
             return;
         }
         this.BindOrderBase(orderInfo);
         this.BindOrderAddress(orderInfo);
         this.BindOrderItems(orderInfo);
         BindRefundReason();
         BindReturnReason();
     }
 }
Exemple #20
0
        protected override void AttachChildControls()
        {
            HiContext current = HiContext.Current;

            PageTitle.AddTitle(current.SiteSettings.SiteName + " - " + current.SiteSettings.SiteDescription, HiContext.Current.Context);
        }
Exemple #21
0
 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()
 {
     this.orderId = base.GetParameter("orderId", false);
     this.litFightGroupStatusLabel = (FightGroupStatusLabel)this.FindControl("litFightGroupStatusLabel");
     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.litShipToDate       = (Literal)this.FindControl("litShipToDate");
     this.litPaymentType      = (Literal)this.FindControl("litPaymentType");
     this.litModeName         = (Literal)this.FindControl("litModeName");
     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.litTakeCode                = (Literal)this.FindControl("litTakeCode");
     this.litStoreInfo               = (Literal)this.FindControl("litStoreInfo");
     this.litStoreName               = (Literal)this.FindControl("litStoreName");
     this.litStoreTel                = (Literal)this.FindControl("litStoreTel");
     this.divstoreinfo               = (HtmlGenericControl)this.FindControl("divstoreinfo");
     this.divInvoiceTitle            = (HtmlGenericControl)this.FindControl("divInvoiceTitle");
     this.divInvoiceTaxpayerNumber   = (HtmlGenericControl)this.FindControl("divInvoiceTaxpayerNumber");
     this.divTax                     = (HtmlGenericControl)this.FindControl("divTax");
     this.listOrders                 = (Common_OrderManage_OrderItems)this.FindControl("Common_OrderManage_OrderItems");
     this.orderGifts                 = (Common_OrderManage_OrderGifts)this.FindControl("Common_OrderManage_OrderGifts");
     this.plOrderGift                = (Panel)this.FindControl("plOrderGift");
     this.lblBundlingPrice           = (Literal)this.FindControl("lblBundlingPrice");
     this.litPoints                  = (Literal)this.FindControl("litPoints");
     this.litSentTimesPointPromotion = (HyperLink)this.FindControl("litSentTimesPointPromotion");
     this.litWeight                  = (Literal)this.FindControl("litWeight");
     this.litFree                    = (Literal)this.FindControl("litFree");
     this.lblFreight                 = (FormatedMoneyLabel)this.FindControl("lblFreight");
     this.litCouponValue             = (Literal)this.FindControl("litCouponValue");
     this.litPointMoney              = (Literal)this.FindControl("litPointMoney");
     this.lblDiscount                = (FormatedMoneyLabel)this.FindControl("lblDiscount");
     this.litTotalPrice              = (FormatedMoneyLabel)this.FindControl("litTotalPrice");
     this.lblRefundTotal             = (FormatedMoneyLabel)this.FindControl("lblRefundTotal");
     this.litAddOrderDate            = (FormatedTimeLabel)this.FindControl("litAddOrderDate");
     this.litPayDate                 = (FormatedTimeLabel)this.FindControl("litPayDate");
     this.litPayBack                 = (FormatedTimeLabel)this.FindControl("litPayBack");
     this.litBackShip                = (FormatedTimeLabel)this.FindControl("litBackShip");
     this.litShipDate                = (FormatedTimeLabel)this.FindControl("litShipDate");
     this.litResultDate              = (FormatedTimeLabel)this.FindControl("litResultDate");
     this.lkbtnConfirmOrder          = (LinkButton)this.FindControl("lkbtnConfirmOrder");
     this.lkbtnCloseOrder            = (LinkButton)this.FindControl("lkbtnCloseOrder");
     this.hidExpressCompanyName      = (HiddenField)this.FindControl("hidExpressCompanyName");
     this.hidShipOrderNumber         = (HiddenField)this.FindControl("hidShipOrderNumber");
     this.hidHiPOSTakeCode           = (HiddenField)this.FindControl("hidHiPOSTakeCode");
     this.btnPay                     = (Button)this.FindControl("btnPay");
     this.lbRefundMoney              = (Label)this.FindControl("lbRefundMoney");
     this.lbRefundMoney              = (Label)this.FindControl("lbRefundMoney");
     this.lbCloseReason              = (Label)this.FindControl("lbCloseReason");
     this.txtRemark                  = (TextBox)this.FindControl("txtRemark");
     this.txtReturnRemark            = (TextBox)this.FindControl("txtReturnRemark");
     this.txtReplaceRemark           = (TextBox)this.FindControl("txtReplaceRemark");
     this.dropRefundType             = (RefundTypeDropDownList)this.FindControl("dropRefundType");
     this.dropReturnRefundType       = (RefundTypeDropDownList)this.FindControl("dropReturnRefundType");
     this.dropPayType                = (DropDownList)this.FindControl("dropPayType");
     this.plRefund                   = (Panel)this.FindControl("plRefund");
     this.lblTotalBalance            = (FormatedMoneyLabel)this.FindControl("lblTotalBalance");
     this.litRefundOrderRemark       = (Literal)this.FindControl("litRefundOrderRemark");
     this.litInvoiceTitle            = (Literal)this.FindControl("litInvoiceTitle");
     this.litInvoiceTaxpayerNumber   = (Literal)this.FindControl("litInvoiceTaxpayerNumber");
     this.litTax                     = (FormatedMoneyLabel)this.FindControl("litTax");
     this.hdorderId                  = (HtmlInputHidden)this.FindControl("hdorderId");
     this.lkbtnApplyForRefund        = (HtmlAnchor)this.FindControl("lkbtnApplyForRefund");
     this.lkbtnUserRealNameVerify    = (HtmlAnchor)this.FindControl("lkbtnUserRealNameVerify");
     this.hidPreSaleId               = (HiddenField)this.FindControl("hidPreSaleId");
     this.hidIsPayDeposit            = (HiddenField)this.FindControl("hidIsPayDeposit");
     this.hidIsPaymentStore          = (HiddenField)this.FindControl("hidIsPaymentStore");
     this.litDepositPayDate          = (FormatedTimeLabel)this.FindControl("litDepositPayDate");
     this.litFinalPamentPayDate      = (Literal)this.FindControl("litFinalPamentPayDate");
     this.lblDeposit                 = (FormatedMoneyLabel)this.FindControl("lblDeposit");
     this.lblFinalPayment            = (FormatedMoneyLabel)this.FindControl("lblFinalPayment");
     this.litGetGoodsRemark          = (Literal)this.FindControl("litGetGoodsRemark");
     this.divPickUpRemark            = (HtmlGenericControl)this.FindControl("divPickUpRemark");
     this.litBalanceAmount           = (Literal)this.FindControl("litBalanceAmount");
     this.hidExpressStatus           = (HtmlInputHidden)this.FindControl("hidExpressStatus");
     this.litInvoiceType             = (Literal)this.FindControl("litInvoiceType");
     this.litRegisterAddress         = (Literal)this.FindControl("litRegisterAddress");
     this.litRegisterTel             = (Literal)this.FindControl("litRegisterTel");
     this.litOpenBank                = (Literal)this.FindControl("litOpenBank");
     this.litBankName                = (Literal)this.FindControl("litBankName");
     this.litReceiveName             = (Literal)this.FindControl("litReceiveName");
     this.litReceiveMobbile          = (Literal)this.FindControl("litReceiveMobbile");
     this.litReceiveEmail            = (Literal)this.FindControl("litReceiveEmail");
     this.litReceiveRegionName       = (Literal)this.FindControl("litReceiveRegionName");
     this.litReceiveAddress          = (Literal)this.FindControl("litReceiveAddress");
     this.listOrders.ItemDataBound  += this.orderItems_ItemDataBound;
     PageTitle.AddTitle("订单详细页", HiContext.Current.Context);
     this.order = TradeHelper.GetOrderInfo(this.orderId);
     this.divInvoiceTitle.Visible          = (this.order.Tax > decimal.Zero && !string.IsNullOrEmpty(this.order.InvoiceTitle));
     this.divInvoiceTaxpayerNumber.Visible = (this.order.Tax > decimal.Zero && !string.IsNullOrEmpty(this.order.InvoiceTaxpayerNumber));
     this.divTax.Visible           = (this.order.Tax > decimal.Zero);
     this.btnPay.Click            += this.btnPay_Click;
     this.lkbtnConfirmOrder.Click += this.lkbtnConfirmOrder_Click;
     this.lkbtnCloseOrder.Click   += this.lkbtnCloseOrder_Click;
     if (!this.Page.IsPostBack)
     {
         if (!string.IsNullOrEmpty(this.order.TakeCode))
         {
             this.hidHiPOSTakeCode.Value = Globals.HIPOSTAKECODEPREFIX + this.order.TakeCode;
         }
         if (this.order == null || this.order.UserId != HiContext.Current.UserId)
         {
             this.Page.Response.Redirect("/ResourceNotFound.aspx?errorMsg=" + Globals.UrlEncode("该订单不存在或者不属于当前用户的订单"));
         }
         else
         {
             this.BindOrderBase(this.order);
             this.BindOrderAddress(this.order);
             this.BindOrderItems(this.order);
             this.BindStoreInfo(this.order);
             if (!string.IsNullOrEmpty(this.order.InvoiceTitle))
             {
                 UserInvoiceDataInfo userInvoiceDataInfo = this.order.InvoiceInfo;
                 if (userInvoiceDataInfo == null)
                 {
                     userInvoiceDataInfo = new UserInvoiceDataInfo
                     {
                         InvoiceType           = this.order.InvoiceType,
                         InvoiceTaxpayerNumber = this.order.InvoiceTaxpayerNumber.ToNullString(),
                         InvoiceTitle          = this.order.InvoiceTitle.ToNullString()
                     };
                 }
                 this.litInvoiceTaxpayerNumber.SetWhenIsNotNull(this.order.InvoiceTaxpayerNumber);
                 this.litInvoiceTitle.SetWhenIsNotNull(this.order.InvoiceTitle);
                 this.litInvoiceType.SetWhenIsNotNull(EnumDescription.GetEnumDescription((Enum)(object)this.order.InvoiceType, 0));
                 this.litRegisterAddress.SetWhenIsNotNull(userInvoiceDataInfo.RegisterAddress.ToNullString());
                 this.litRegisterTel.SetWhenIsNotNull(userInvoiceDataInfo.RegisterTel.ToNullString());
                 this.litOpenBank.SetWhenIsNotNull(userInvoiceDataInfo.OpenBank.ToNullString());
                 this.litBankName.SetWhenIsNotNull(userInvoiceDataInfo.BankAccount.ToNullString());
                 this.litReceiveName.SetWhenIsNotNull(userInvoiceDataInfo.ReceiveName.ToNullString());
                 if (this.order.InvoiceType != InvoiceType.Enterprise)
                 {
                     this.litReceiveMobbile.SetWhenIsNotNull(userInvoiceDataInfo.ReceivePhone.ToNullString());
                     if (this.order.InvoiceType != InvoiceType.VATInvoice)
                     {
                         this.litReceiveEmail.SetWhenIsNotNull(userInvoiceDataInfo.ReceiveEmail.ToNullString());
                     }
                 }
                 this.litReceiveRegionName.SetWhenIsNotNull(userInvoiceDataInfo.ReceiveRegionName.ToNullString());
                 this.litReceiveAddress.SetWhenIsNotNull(userInvoiceDataInfo.ReceiveAddress.ToNullString());
             }
             if (this.order.FightGroupId > 0)
             {
                 FightGroupInfo fightGroup = VShopHelper.GetFightGroup(this.order.FightGroupId);
                 this.lkbtnApplyForRefund.Visible    = (fightGroup.Status != 0 && this.order.OrderStatus == OrderStatus.BuyerAlreadyPaid && this.order.GetPayTotal() > decimal.Zero);
                 this.litFightGroupStatusLabel.Order = this.order;
             }
         }
     }
 }
 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.litShipToDate       = (Literal)this.FindControl("litShipToDate");
     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.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.lblBundlingPrice           = (Literal)this.FindControl("lblBundlingPrice");
     this.litPoints                  = (Literal)this.FindControl("litPoints");
     this.litSentTimesPointPromotion = (HyperLink)this.FindControl("litSentTimesPointPromotion");
     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.litCouponValue             = (Literal)this.FindControl("litCouponValue");
     this.lblDiscount                = (FormatedMoneyLabel)this.FindControl("lblDiscount");
     this.litTotalPrice              = (FormatedMoneyLabel)this.FindControl("litTotalPrice");
     this.lblRefundTotal             = (FormatedMoneyLabel)this.FindControl("lblRefundTotal");
     this.lbRefundMoney              = (Label)this.FindControl("lbRefundMoney");
     this.plRefund                   = (Panel)this.FindControl("plRefund");
     this.lblTotalBalance            = (FormatedMoneyLabel)this.FindControl("lblTotalBalance");
     this.litRefundOrderRemark       = (Literal)this.FindControl("litRefundOrderRemark");
     this.litTax                     = (FormatedMoneyLabel)this.FindControl("litTax");
     this.litInvoiceTitle            = (Literal)this.FindControl("litInvoiceTitle");
     PageTitle.AddTitle("订单详细页", HiContext.Current.Context);
     if (!this.Page.IsPostBack)
     {
         OrderInfo orderInfo = TradeHelper.GetOrderInfo(this.orderId);
         if ((orderInfo == null) || (orderInfo.UserId != HiContext.Current.User.UserId))
         {
             this.Page.Response.Redirect(Globals.ApplicationPath + "/ResourceNotFound.aspx?errorMsg=" + Globals.UrlEncode("该订单不存在或者不属于当前用户的订单"));
         }
         else
         {
             this.BindOrderBase(orderInfo);
             this.BindOrderAddress(orderInfo);
             this.BindOrderItems(orderInfo);
             this.BindOrderRefund(orderInfo);
             this.BindOrderReturn(orderInfo);
         }
     }
 }
Exemple #24
0
 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;
             }
         }
     }
 }
Exemple #25
0
 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);
     }
 }