コード例 #1
0
 protected void btnBrowseProducts_Click(object sender, ImageClickEventArgs e)
 {
     pnlProductPicker.Visible = !pnlProductPicker.Visible;
     if (NewSkuField.Text.Trim().Length > 0)
     {
         if (pnlProductPicker.Visible)
         {
             ProductPicker1.Keyword = NewSkuField.Text;
             ProductPicker1.LoadSearch();
         }
     }
 }
コード例 #2
0
 protected void btnAdd_Click(object sender, EventArgs e)
 {
     msg.ClearMessage();
     if (ProductPicker1.SelectedProducts.Count == 0)
     {
         msg.ShowInformation(Localization.GetString("NoProducts"));
     }
     foreach (var s in ProductPicker1.SelectedProducts)
     {
         HccApp.CatalogServices.AddProductToCategory(s, BvinField.Value);
     }
     LoadCategory();
     ProductPicker1.LoadSearch();
 }
コード例 #3
0
 protected void btnAdd_Click(object sender, EventArgs e)
 {
     msg.ClearMessage();
     if (ProductPicker1.SelectedProducts.Count == 0)
     {
         msg.ShowInformation("Please select products to add first.");
     }
     foreach (var s in ProductPicker1.SelectedProducts)
     {
         HccApp.CatalogServices.AddProductToCategory(s, BvinField.Value);
     }
     LoadCategory();
     ProductPicker1.LoadSearch();
 }