protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName == "Edit")
        {
            z_id.Text = e.CommandArgument.ToString();
        }

        if (e.CommandName == "Delete")
        {
            int z_id = Convert.ToInt32(e.CommandArgument);
            BLL.product myb = new BLL.product();
            int result = myb.num(z_id);
            if (result > 0)
            {
                msg("先把含有此子类的商品记录删除,才能删除子类");
            }
            else
            {
                BLL.procate d_bll = new BLL.procate();
                int rs = d_bll.dalete(z_id);
                if (rs > 0)
                {
                    msg("删除成功");
                    bing();
                }
                else
                {
                    msg("删除失败!");

                }
            }

        }
    }
    protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName == "Edit")
        {
            z_id.Text = e.CommandArgument.ToString();
        }

        if (e.CommandName == "Delete")
        {
            int         z_id   = Convert.ToInt32(e.CommandArgument);
            BLL.product myb    = new BLL.product();
            int         result = myb.num(z_id);
            if (result > 0)
            {
                msg("先把含有此子类的商品记录删除,才能删除子类");
            }
            else
            {
                BLL.procate d_bll = new BLL.procate();
                int         rs    = d_bll.dalete(z_id);
                if (rs > 0)
                {
                    msg("删除成功");
                    bing();
                }
                else
                {
                    msg("删除失败!");
                }
            }
        }
    }