Пример #1
0
        protected void DelBtn_Click(object sender, System.EventArgs e)
        {
            string text = this.txt_ids.Text;

            if (string.IsNullOrEmpty(text))
            {
                return;
            }
            string[] array = text.Split(new char[]
            {
                ','
            });
            for (int i = 0; i < array.Length; i++)
            {
                int num = 0;
                if (!array[i].bInt(ref num))
                {
                    this.ShowMsg("选择活动出错!", false);
                    return;
                }
            }
            for (int j = 0; j < array.Length; j++)
            {
                PointExChangeHelper.Delete(int.Parse(array[j]));
            }
            this.ShowMsg("删除活动成功!", true);
            this.BindData();
        }
Пример #2
0
 private void grdProducts_ItemCommand(object sender, RepeaterCommandEventArgs e)
 {
     if ((e.CommandName == "Delete") && !string.IsNullOrEmpty(e.CommandArgument.ToString()))
     {
         PointExChangeHelper.Delete(int.Parse(e.CommandArgument.ToString()));
         this.ShowMsg("删除活动成功!", true);
         this.BindData();
     }
 }
Пример #3
0
 private void grdProducts_ItemCommand(object sender, System.Web.UI.WebControls.RepeaterCommandEventArgs e)
 {
     if (e.CommandName == "Delete")
     {
         if (string.IsNullOrEmpty(e.CommandArgument.ToString()))
         {
             return;
         }
         int id = int.Parse(e.CommandArgument.ToString());
         PointExChangeHelper.Delete(id);
         this.ShowMsg("删除活动成功!", true);
         this.BindData();
     }
 }
Пример #4
0
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            string str = base.Request.Form["CheckBoxGroup"];

            if (!string.IsNullOrEmpty(str))
            {
                string[] strArray = str.Split(new char[] { ',' });
                for (int i = 0; i < strArray.Length; i++)
                {
                    int num2 = 0;
                    if (!strArray[i].bInt(ref num2))
                    {
                        this.ShowMsg("选择活动出错!", false);
                        return;
                    }
                }
                for (int j = 0; j < strArray.Length; j++)
                {
                    PointExChangeHelper.Delete(int.Parse(strArray[j]));
                }
                this.ShowMsg("删除活动成功!", true);
                this.BindData();
            }
        }