protected void Page_Load(object sender, System.EventArgs e) { //if (!this.Page.IsPostBack) //{ // this.ddlType.BindEnum<EcShop.Entities.VShop.LocationType>("Topic");//修改1 // dropCategories.DataBind(); // dropImportSourceType.DataBind(); //} if (int.TryParse(base.Request.QueryString["Id"], out this.id)) { if (!this.Page.IsPostBack) { this.ddlType.BindEnum <EcShop.Entities.VShop.LocationType>("");//修改1 dropCategories.DataBind(); dropImportSourceType.DataBind(); dropBrandTypes.DataBind(); if (id != 0) { this.Restore(); } return; } } else { base.Response.Redirect("ManageCheapProduct.aspx"); } }
protected void Page_Load(object sender, System.EventArgs e) { this.productIds = this.Page.Request.QueryString["productIds"]; this.btnSaveInfo.Click += new System.EventHandler(this.btnSaveInfo_Click); this.grdSelectedProducts.RowDataBound += new System.Web.UI.WebControls.GridViewRowEventHandler(this.grdSelectedProducts_RowDataBound); if (!this.Page.IsPostBack) { this.BindProduct(); ddlImportSourceTypeAll.DataBind(); } }
protected void Page_Load(object sender, System.EventArgs e) { if (!this.Page.IsPostBack) { this.ddlType.BindEnum <EcShop.Entities.VShop.LocationType>("VipCard");//修改1 this.BindIcons(); dropCategories.DataBind(); dropImportSourceType.DataBind(); } }
protected void Page_Load(object sender, System.EventArgs e) { if (int.TryParse(base.Request.QueryString["Id"], out this.id)) { if (!this.Page.IsPostBack) { this.ddlType.BindEnum <EcShop.Entities.VShop.LocationType>("VipCard");//修改1 dropCategories.DataBind(); dropImportSourceType.DataBind(); this.BindIcons(); this.Restore(); return; } } else { base.Response.Redirect("ManageNavigate.aspx"); } }
protected void Page_Load(object sender, System.EventArgs e) { int.TryParse(base.Request.QueryString["productId"], out this.productId); int.TryParse(base.Request.QueryString["categoryId"], out this.categoryId); string text = (base.Request.UrlReferrer == null) ? "" : base.Request.UrlReferrer.PathAndQuery.ToString(); if (!this.Page.IsPostBack || text.ToLower().IndexOf("selectcategory.aspx") > -1) { System.Collections.Generic.IList <int> list = null; System.Collections.Generic.Dictionary <int, System.Collections.Generic.IList <int> > attrs; ProductInfo productDetails = ProductHelper.GetProductDetails(this.productId, out attrs, out list); if (productDetails == null) { base.GotoResourceNotFound(); return; } if (!string.IsNullOrEmpty(base.Request.QueryString["categoryId"])) { this.litCategoryName.Text = CatalogHelper.GetFullCategory(this.categoryId); this.ViewState["ProductCategoryId"] = this.categoryId; this.lnkEditCategory.NavigateUrl = "SelectCategory.aspx?categoryId=" + this.categoryId.ToString(System.Globalization.CultureInfo.InvariantCulture); } else { this.litCategoryName.Text = CatalogHelper.GetFullCategory(productDetails.CategoryId); this.ViewState["ProductCategoryId"] = productDetails.CategoryId; this.categoryId = productDetails.CategoryId; this.lnkEditCategory.NavigateUrl = "SelectCategory.aspx?categoryId=" + productDetails.CategoryId.ToString(System.Globalization.CultureInfo.InvariantCulture); } System.Web.UI.WebControls.HyperLink expr_185 = this.lnkEditCategory; expr_185.NavigateUrl = expr_185.NavigateUrl + "&productId=" + productDetails.ProductId.ToString(System.Globalization.CultureInfo.InvariantCulture); this.litralProductTag.SelectedValue = list; if (list.Count > 0) { foreach (int current in list) { TrimTextBox expr_1DC = this.txtProductTag; expr_1DC.Text = expr_1DC.Text + current.ToString() + ","; } this.txtProductTag.Text = this.txtProductTag.Text.Substring(0, this.txtProductTag.Text.Length - 1); } this.dropProductTypes.DataBind(); this.dropBrandCategories.DataBind(); //if (categoryId > 0) //{ // this.dropTaxRate.DataBind(categoryId); //} //else //{ this.dropTaxRate.DataBind(); //} this.ddlSupplier.DataBind(); this.ddlShipping.DataBind(); ddlImportSourceType.DataBind(); this.ddlUnit.DataBind(); this.LoadProduct(productDetails, attrs); SiteSettings siteSettings = HiContext.Current.SiteSettings; this.litReferralDeduct.Text = "(全站统一比例:" + siteSettings.ReferralDeduct.ToString("F2") + " %)"; this.litSubMemberDeduct.Text = "(全站统一比例:" + siteSettings.SubMemberDeduct.ToString("F2") + " %)"; this.litSubReferralDeduct.Text = "(全站统一比例:" + siteSettings.SubReferralDeduct.ToString("F2") + " %)"; BindCombinationData(); } }