private void overAllCollectionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FeeSearch ss = new FeeSearch();

            Control[] ctrl           = ss.Controls.Find("groupSelectAll", true);
            GroupBox  groupSelectAll = ctrl.FirstOrDefault() as GroupBox;

            groupSelectAll.Visible = true;
            ss.Show();
        }
        private void betweenTwoDatesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FeeSearch ss = new FeeSearch();

            Control[] ctrl            = ss.Controls.Find("grpBetweenDates", true);
            GroupBox  grpBetweenDates = ctrl.FirstOrDefault() as GroupBox;

            grpBetweenDates.Visible = true;
            ss.Show();
        }
        private void studentFeeStatementToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FeeSearch ss = new FeeSearch();

            Control[] ctrl = ss.Controls.Find("GrpFeeStatementByClass", true);
            GroupBox  GrpFeeStatementByClass = ctrl.FirstOrDefault() as GroupBox;

            GrpFeeStatementByClass.Visible = true;
            ss.SearchFor = "Statement";
            ss.Show();
        }
        private void studentWiseToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FeeSearch ss = new FeeSearch();

            Control[] ctrl = ss.Controls.Find("GrpStudentWiseFee", true);
            GroupBox  GrpStudentWiseFee = ctrl.FirstOrDefault() as GroupBox;

            ss.SearchFor = "StudentWiseSearch";
            GrpStudentWiseFee.Visible = true;
            ss.Show();
        }
        private void forASeesionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FeeSearch ss = new FeeSearch();

            Control[] ctrl = ss.Controls.Find("groupSearchBySession", true);
            GroupBox  groupSearchBySession = ctrl.FirstOrDefault() as GroupBox;

            groupSearchBySession.Visible = true;
            ss.SearchFor = "ForSession";
            ss.Show();
        }
        private void byClassAndSessionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FeeSearch ss = new FeeSearch();

            Control[] ctrl = ss.Controls.Find("groupSessionAndClass", true);
            GroupBox  groupSessionAndClass = ctrl.FirstOrDefault() as GroupBox;

            groupSessionAndClass.Visible = true;
            ss.SearchFor = "SessionAndClass";
            ss.Show();
        }
        private void dailyReportToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FeeSearch ss = new FeeSearch();

            Control[] ctrl1 = ss.Controls.Find("grpDailyCollection", true);
            GroupBox  grpDailyCollection = ctrl1.FirstOrDefault() as GroupBox;

            grpDailyCollection.Visible = true;

            Control[]    ctrl           = ss.Controls.Find("gvSearchResult", true);
            DataGridView gvSearchResult = ctrl.FirstOrDefault() as DataGridView;

            SqlParameter[] m = new SqlParameter[1];
            m[0] = new SqlParameter("@Date", DateTime.Now.ToShortDateString());



            DataSet ds = SqlHelper.ExecuteDataset(Connection.Connection_string, "DailyFeeCollection", m);

            gvSearchResult.DataSource = ds.Tables[0];
            ss.Show();
        }