protected void Grid_ppl_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            int pindex = Grid_ppl.PageIndex * Grid_ppl.PageSize;

            if (e.CommandName == "DelPPL")
            {
                DataTable    dtppl     = ViewState["CurrentPTTEditPPL"] as DataTable;
                int          index     = Convert.ToInt32(e.CommandArgument.ToString()) + pindex;
                OracleQuery2 cc2       = new OracleQuery2();
                string       d         = dtppl.Rows[index]["GROUP_KEY"].ToString();
                string       person_id = dtppl.Rows[index]["EMPLOYEE_ID"].ToString();

                // string company_id = dtppl.Rows[index]["COMPANY_id"].ToString();
                cc2.DeletePTTPPLFromAllGroup(person_id);
                BindPPLDetail();
            }

            if (e.CommandName == "EditPPL")
            {
                AddPPLPanel.Visible = true;
                grpPanel.Visible    = true;
                GroupIDINLabel.Text = "";
                DataTable dtppl      = ViewState["CurrentPTTEditPPL"] as DataTable;
                int       index      = Convert.ToInt32(e.CommandArgument.ToString()) + pindex;
                string    EmployeeID = dtppl.Rows[index]["EMPLOYEE_ID"].ToString();
                string    Name       = dtppl.Rows[index]["NAME"].ToString();
                string    posname    = dtppl.Rows[index]["POSITION"].ToString();
                string    unitname   = dtppl.Rows[index]["COMPANY"].ToString();
                string    MOBILE     = dtppl.Rows[index]["MOBILE"].ToString();
                string    MOBILE_FM  = dtppl.Rows[index]["MOBILE_FM"].ToString();
                string    UNITCODE   = dtppl.Rows[index]["UNITCODE"].ToString();
                //  string company_id = dtppl.Rows[index]["company_id"].ToString();
                SetGroup(EmployeeID, UNITCODE);
                EmployeeIDLabel.Text = EmployeeID;
                NameLabel.Text       = Name;
                posnameLabel.Text    = posname;
                unitnameLabel.Text   = unitname;
                //companyLabel.Text = company_id;
                TelLabel.Text       = MOBILE;
                TelLabel.Enabled    = MOBILE_FM == "0";
                resultppl.Visible   = true;
                SavePPL.Enabled     = true;
                grpPanel.Visible    = true;
                AddPPLPanel.Visible = true;
                HeadModal.Visible   = false;
                UpdatePPL.Visible   = true;
                SavePPL.Visible     = false;
                NoResult.Visible    = false;
            }
        }