示例#1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void uxGridTieredPricing_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "Page")
     {
     }
     else
     {
         if (e.CommandName == "Edit")
         {
             Response.Redirect(AddTieredPricingPageLink + ItemId + "&tierid=" + e.CommandArgument.ToString());
         }
         if (e.CommandName == "Delete")
         {
             ZNode.Libraries.Admin.ProductAdmin productAdmin = new ProductAdmin();
             bool Status = productAdmin.DeleteProductTierById(int.Parse(e.CommandArgument.ToString()));
             if (Status)
             {
                 BindTieredPricing();
             }
         }
     }
 }