示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            servisler servis  = new servisler();
            rapor1    raporum = new rapor1();

            List <servisler.kayıtlar> liste = new List <servisler.kayıtlar>();



            int kyttoplam;

            kyttoplam = dataGridView1.Rows.Count;

            for (int i = 0; i < kyttoplam - 1; i++)

            {
                servisler.kayıtlar item = new servisler.kayıtlar();
                item.ID          = int.Parse(dataGridView1.Rows[i].Cells[0].Value.ToString());
                item.TARİH       = dataGridView1.Rows[i].Cells[1].Value.ToString();
                item.ADSOYAD     = dataGridView1.Rows[i].Cells[2].Value.ToString();
                item.KURUM       = dataGridView1.Rows[i].Cells[3].Value.ToString();
                item.TELEFON     = dataGridView1.Rows[i].Cells[4].Value.ToString();
                item.SİKAYET     = dataGridView1.Rows[i].Cells[5].Value.ToString();
                item.İLGİLİBİRİM = dataGridView1.Rows[i].Cells[6].Value.ToString();
                item.AÇIKLAMA    = dataGridView1.Rows[i].Cells[7].Value.ToString();
                item.İLÇE        = dataGridView1.Rows[i].Cells[8].Value.ToString();
                item.MAHALLE     = dataGridView1.Rows[i].Cells[9].Value.ToString();
                item.CADDE       = dataGridView1.Rows[i].Cells[10].Value.ToString();
                item.APARTMAN    = dataGridView1.Rows[i].Cells[11].Value.ToString();
                item.DIŞKAPI     = dataGridView1.Rows[i].Cells[12].Value.ToString();
                item.İÇKAPI      = dataGridView1.Rows[i].Cells[13].Value.ToString();
                item.İNCELEME    = dataGridView1.Rows[i].Cells[14].Value.ToString();
                item.SONUC       = dataGridView1.Rows[i].Cells[15].Value.ToString();

                liste.Add(item);
            }

            raporum.kayıtlarBindingSource.DataSource = liste.ToArray();
            raporum.reportViewer1.RefreshReport();
            raporum.Show();
        }
示例#2
0
        private void raporlaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            rapor1 rpr1 = new rapor1();

            rpr1.Show();
        }