Exemple #1
0
        protected void EGV_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            switch (e.CommandName.ToLower())
            {
            case "del2":
                int id = DataConverter.CLng(e.CommandArgument.ToString());
                oaBll.UpdateStatus(id);
                Page.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('操作成功');", true);
                break;

            case "edit1":
                Response.Redirect("../Drafting.aspx?Edit=1&AppID=" + e.CommandArgument.ToString());
                break;
            }
            DataBind();
        }
        protected void EGV_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            int id = DataConverter.CLng(e.CommandArgument.ToString());

            switch (e.CommandName.ToLower())
            {
            case "del2":
                oaBll.Del(id);
                Page.ClientScript.RegisterStartupScript(this.GetType(), "", "alert('操作成功');", true);
                break;

            case "restore":
                oaBll.UpdateStatus(id, 0);
                break;
            }
            DataBind();
        }