Example #1
0
        //彻底删除
        protected void RealDel_Btn_Click(object sender, EventArgs e)
        {
            string ids = Request.Form["idchk"];

            if (!string.IsNullOrEmpty(ids))
            {
                bll.RealDelByIDS(ids);
                function.WriteSuccessMsg("删除成功");
            }
        }
Example #2
0
        protected void RPT_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            int id = Convert.ToInt32(e.CommandArgument);

            switch (e.CommandName.ToLower())
            {
            case "del":
                bll.ChangeRecycle(id.ToString(), 1);
                break;

            case "recdel":
                bll.RealDelByIDS(e.CommandArgument.ToString());
                break;

            case "rec":
                bll.ChangeRecycle(id.ToString(), 0);
                break;
            }
            MyBind();
        }
Example #3
0
        protected void RPT_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            switch (e.CommandName.ToLower())
            {
            case "del":
                bll.DelByIDS(e.CommandArgument.ToString(), M_OrderList.StatusEnum.Recycle);
                break;

            case "recdel":
                bll.RealDelByIDS(e.CommandArgument.ToString());
                break;

            case "rec":
                bll.DelByIDS(e.CommandArgument.ToString(), M_OrderList.StatusEnum.Normal);
                break;
            }
            if (e.CommandName.Equals("Del"))
            {
            }
            else if (e.CommandName.Equals("RecDel"))
            {
            }
            MyBind();
        }