protected void Page_Load(object sender, EventArgs e) { EditedObject = Product; if (ProductID > 0) { DataSet ds = TaxClassInfoProvider.GetSKUTaxClasses(ProductID); if (!DataHelper.DataSourceIsEmpty(ds)) { currentValues = TextHelper.Join(";", DataHelper.GetStringValues(ds.Tables[0], "TaxClassID")); } uniSelector.WhereCondition = GetWhereCondition(); if (!RequestHelper.IsPostBack()) { uniSelector.Value = currentValues; } headTitle.Text = GetString("product_edit_tax.taxtitle"); } // Get category of product OptionCategoryInfo category = OptionCategoryInfoProvider.GetOptionCategoryInfo(Product.SKUOptionCategoryID); // Ensure correct info label for Attribute and Text product option if (category != null) { if (category.CategoryType != OptionCategoryTypeEnum.Products) { headTitle.Text = GetString("product_edit_tax.taxtitleforoption"); } } }
protected void Page_Load(object sender, EventArgs e) { lblSiteTitle.Text = GetString("product_edit_tax.taxtitle"); if (ProductID > 0) { DataSet ds = TaxClassInfoProvider.GetSKUTaxClasses(ProductID); if (!DataHelper.DataSourceIsEmpty(ds)) { currentValues = TextHelper.Join(";", SqlHelperClass.GetStringValues(ds.Tables[0], "TaxClassID")); } this.uniSelector.WhereCondition = GetWhereCondition(currentValues); if (!RequestHelper.IsPostBack()) { this.uniSelector.Value = currentValues; } } this.uniSelector.IconPath = GetObjectIconUrl("ecommerce.taxclass", "object.png"); }