private void Cek_Click(object sender, EventArgs e)
        {
            try
            {
                int      a = sorgu.sp_findBid_Bisim(Bname.Text);
                DateTime b = tarih1.Value;
                DateTime c = tarih2.Value;
                if (comboBox1.SelectedIndex == 0)
                {
                    b = DateTime.Now;
                    c = DateTime.Now;
                    Refresh1(a, b, c);
                }
                else if (comboBox1.SelectedIndex == 1)
                {
                    c = DateTime.Now;
                    b = c.AddDays(-7);

                    Refresh1(a, b, c);
                }
                else if (comboBox1.SelectedIndex == 2)
                {
                    c = DateTime.Now;
                    b = c.AddYears(-1);
                    Refresh1(a, b, c);
                }
                else
                {
                    Refresh1(a, b, c);
                }
            }
            catch (Exception g)
            {
                MessageBox.Show(g.ToString(), "Hata Kod:13", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
        private void Cek_Click(object sender, EventArgs e)
        {
            DateTime b = tarih1.Value;
            DateTime c = tarih2.Value;

            if (Gorev_Checked.Checked && akategori.SelectedIndex != -1)
            {
                try
                {
                    int    a = sorgu.sp_findBid_Bisim(bolumadı.SelectedItem.ToString());
                    string d = akategori.SelectedItem.ToString();
                    if (comboBox1.SelectedIndex == 0)
                    {
                        c = DateTime.Now;
                        b = c.AddDays(-1);
                        Refresh2(a, b, c, d);
                    }
                    else if (comboBox1.SelectedIndex == 1)
                    {
                        c = DateTime.Now;
                        b = c.AddMonths(-1);
                        Refresh2(a, b, c, d);
                    }
                    else if (comboBox1.SelectedIndex == 2)
                    {
                        c = DateTime.Now;
                        b = c.AddYears(-1);
                        Refresh2(a, b, c, d);
                    }
                    else
                    {
                        Refresh2(a, b, c, d);
                    }
                }
                catch (Exception g)
                {
                    MessageBox.Show(g.ToString(), "Hata Kod:7", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
            else
            {
                try
                {
                    int a = sorgu.sp_findBid_Bisim(bolumadı.SelectedItem.ToString());
                    if (comboBox1.SelectedIndex == 0)
                    {
                        c = DateTime.Now;
                        b = c.AddDays(-1);
                        Refresh1(a, b, c);
                    }
                    else if (comboBox1.SelectedIndex == 1)
                    {
                        c = DateTime.Now;
                        b = c.AddMonths(-1);
                        Refresh1(a, b, c);
                    }
                    else if (comboBox1.SelectedIndex == 2)
                    {
                        c = DateTime.Now;
                        b = c.AddYears(-1);
                        Refresh1(a, b, c);
                    }
                    else
                    {
                        Refresh1(a, b, c);
                    }
                }
                catch (Exception h)
                {
                    MessageBox.Show(h.ToString(), "Hata Kod:8", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
        }