private void bindGrid(Object sender, CommandEventArgs e)
        {
            string dept = e.CommandArgument.ToString();

            if (dept == "100")
            {
                PTTB.Visible = true;
                PTT.Visible  = false;
                GC.Visible   = false;
                CS.Visible   = false;
                TCS.Visible  = false;
                PTTB.BindPPLDetail();
            }
            else if (dept == "200")
            {
                PTTB.Visible = false;
                PTT.Visible  = true;
                GC.Visible   = false;
                CS.Visible   = false;
                TCS.Visible  = false;
                PTT.BindPPLDetail();
            }
            else if (dept == "300")
            {
                PTTB.Visible = false;
                PTT.Visible  = false;
                GC.Visible   = true;
                CS.Visible   = false;
                TCS.Visible  = false;
                GC.BindPPLDetail();
            }
            else if (dept == "400")
            {
                PTTB.Visible = false;
                PTT.Visible  = false;
                GC.Visible   = false;
                CS.Visible   = true;
                TCS.Visible  = false;
                CS.BindPPLDetail();
            }
            else if (dept == "500")
            {
                PTTB.Visible = false;
                PTT.Visible  = false;
                GC.Visible   = false;
                CS.Visible   = false;
                TCS.Visible  = true;
                TCS.BindPPLDetail();
            }
            else if (dept == "600")
            {
                PTTB.Visible = false;
                PTT.Visible  = false;
                GC.Visible   = false;
                CS.Visible   = false;
                TCS.Visible  = false;
            }
        }
        private void BindGridDetail(string group_id, int level)
        {
            string group = group_id.Substring(0, 1);

            CountPPL.Text = "";
            if (group == "1")
            {
                PTTB.BindGroupDetail(group_id, level);
                PTTBPPL.BindPPLDetail(group_id, level);
                CountPPL.Text   = PTTBPPL.CountPPL();
                PTTB.Visible    = true;
                PTT.Visible     = false;
                GC.Visible      = false;
                CS.Visible      = false;
                TCS.Visible     = false;
                TEST.Visible    = false;
                PTTPPL.Visible  = false;
                PTTBPPL.Visible = true;
                GCPPL.Visible   = false;
                CSPPL.Visible   = false;
                TCSPPL.Visible  = false;
                TESTPPL.Visible = false;
            }
            else if (group == "2")
            {
                PTT.BindGroupDetail(group_id, level);
                PTTPPL.BindPPLDetail(group_id, level);
                CountPPL.Text   = PTTPPL.CountPPL();
                PTTB.Visible    = false;
                PTT.Visible     = true;
                GC.Visible      = false;
                CS.Visible      = false;
                TCS.Visible     = false;
                TEST.Visible    = false;
                PTTPPL.Visible  = true;
                PTTBPPL.Visible = false;
                GCPPL.Visible   = false;
                CSPPL.Visible   = false;
                TCSPPL.Visible  = false;
                TESTPPL.Visible = false;
            }
            else if (group == "3")
            {
                GC.BindGroupDetail(group_id, level);
                GCPPL.BindPPLDetail(group_id, level);
                CountPPL.Text   = GCPPL.CountPPL();
                PTTB.Visible    = false;
                PTT.Visible     = false;
                GC.Visible      = true;
                CS.Visible      = false;
                TCS.Visible     = false;
                TEST.Visible    = false;
                PTTPPL.Visible  = false;
                PTTBPPL.Visible = false;
                GCPPL.Visible   = true;
                CSPPL.Visible   = false;
                TCSPPL.Visible  = false;
                TESTPPL.Visible = false;
            }
            else if (group == "4")
            {
                CS.BindGroupDetail(group_id, level);
                CSPPL.BindPPLDetail(group_id, level);
                CountPPL.Text   = CSPPL.CountPPL();
                PTTB.Visible    = false;
                PTT.Visible     = false;
                GC.Visible      = false;
                TCS.Visible     = false;
                CS.Visible      = true;
                TEST.Visible    = false;
                PTTPPL.Visible  = false;
                PTTBPPL.Visible = false;
                GCPPL.Visible   = false;
                CSPPL.Visible   = true;
                TCSPPL.Visible  = false;
                TESTPPL.Visible = false;
            }
            else if (group == "5")
            {
                TCS.BindGroupDetail(group_id, level);
                TCSPPL.BindPPLDetail(group_id, level);
                CountPPL.Text   = TCSPPL.CountPPL();
                PTTB.Visible    = false;
                PTT.Visible     = false;
                GC.Visible      = false;
                CS.Visible      = false;
                TCS.Visible     = true;
                TEST.Visible    = false;
                PTTPPL.Visible  = false;
                PTTBPPL.Visible = false;
                GCPPL.Visible   = false;
                CSPPL.Visible   = false;
                TCSPPL.Visible  = true;
                TESTPPL.Visible = false;
            }
            else if (group == "6")
            {
                TEST.BindGroupDetail(group_id, level);
                TESTPPL.BindPPLDetail(group_id, level);
                PTTB.Visible    = false;
                PTT.Visible     = false;
                GC.Visible      = false;
                TCS.Visible     = false;
                CS.Visible      = false;
                TEST.Visible    = true;
                PTTPPL.Visible  = false;
                PTTBPPL.Visible = false;
                GCPPL.Visible   = false;
                CSPPL.Visible   = false;
                TCSPPL.Visible  = false;
                TESTPPL.Visible = true;
            }
            else
            {
                GROUPLabel.Text = "-";
                PPLLabel.Text   = "-";
                PTTB.Visible    = false;
                PTT.Visible     = false;
                GC.Visible      = false;
                CS.Visible      = false;
                TCS.Visible     = false;
                TEST.Visible    = false;
                PTTPPL.Visible  = false;
                PTTBPPL.Visible = false;
                GCPPL.Visible   = false;
                CSPPL.Visible   = false;
                TCSPPL.Visible  = false;
                TESTPPL.Visible = false;
            }
            //setEnableBtn();
        }