示例#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());
 }