Пример #1
0
        private void toolStripBtnPrint_Click(object sender, EventArgs e)
        {
            FormReport fr = new FormReport();

            fr.Show();
            fr.ShowReport("ReportPerson.rdlc", "DataSetPerson", db.GetDataPerson());
        }
Пример #2
0
 private void btnReport_Click(object sender, EventArgs e)
 {
     FormReport fr = new FormReport();
     fr.Show();
     DataTable dt = db.GetEventReport();
     fr.ShowReport("ReportEvent.rdlc", "DataSetReg", dt);
 }
Пример #3
0
        private void btnReport_Click(object sender, EventArgs e)
        {
            FormReport fr = new FormReport();

            fr.Show();
            DataTable dt = db.GetEventReport();

            fr.ShowReport("ReportEvent.rdlc", "DataSetReg", dt);
        }
Пример #4
0
 public static void OpenReportPerson(DataTier db, DataGridView dgv, int rowIndex, int columnIndex)
 {
     if (rowIndex >= 0 && columnIndex >= 0 && !dgv.Rows[rowIndex].IsNewRow &&
         dgv.Rows[rowIndex].Cells[columnIndex].OwningColumn == dgv.Columns["Report"])
     {
         FormReport fr = new FormReport();
         fr.Show();
         int personId = int.Parse(dgv.Rows[rowIndex].Cells["Id"].Value.ToString());
         fr.ShowReport("ReportPersonEvent.rdlc", "DataSetPersonEvent", db.GetPersonEvent(personId));
     }
 }
Пример #5
0
 public static void OpenReportReg(DataTier db, DataGridView dgv, int rowIndex, int columnIndex)
 {
     if (rowIndex >= 0 && columnIndex >= 0 && !dgv.Rows[rowIndex].IsNewRow &&
         dgv.Rows[rowIndex].Cells[columnIndex].OwningColumn == dgv.Columns["Report"])
     {
         FormReport fr = new FormReport();
         fr.Show();
         int eventId = int.Parse(dgv.Rows[rowIndex].Cells["Id"].Value.ToString());
         fr.ShowReport("ReportEvent.rdlc", "DataSetReg", db.GetEventReport(eventId));
     }
 }
Пример #6
0
 private void toolStripBtnPrint_Click(object sender, EventArgs e)
 {
     FormReport fr = new FormReport();
     fr.Show();
     fr.ShowReport("ReportPerson.rdlc", "DataSetPerson", db.GetDataPerson());
 }