Exemplo n.º 1
0
        protected void Grid_ppl_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName == "DelPPL")
            {
                DataTable dtgroup  = ViewState["CurrentGrp"] as DataTable;
                DataTable dtppl    = ViewState["CurrentPPL"] as DataTable;
                int       index    = Convert.ToInt32(e.CommandArgument.ToString());
                string    group_id = groupLabel.Text;
                int       level    = Convert.ToInt32(LevelLabel.Text);
                // string text = TreeView1.SelectedNode.Text;
                if (group_id == "-1")
                {
                    return;
                }
                string       depart    = group_id.Substring(0, 3);
                OracleQuery2 cc2       = new OracleQuery2();
                string       person_id = dtppl.Rows[index]["id"].ToString();
                cc2.DeleteTESTPPL(group_id, person_id);

                //TreeView1.Nodes.Clear();
                //bindTree();
                BindPPLDetail(group_id, level);
            }
        }