示例#1
0
        private void tsmiReporteCursos_Click(object sender, EventArgs e)
        {
            ReporteCursos form = new ReporteCursos();

            form.MdiParent = this;
            form.Show();
        }
示例#2
0
        private void reporteCursosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ReporteCursos reporteCursos = new ReporteCursos();

            reporteCursos.Show();
        }
示例#3
0
 private void btnAceptar_Click(object sender, EventArgs e)
 {
     if (Validar())
     {
         if (Tipo == "Curso")
         {
             Reporte reporte = new Reporte();
             reporte.IDCurso = listcursos[cmbIDCurso.SelectedIndex].ID;
             reporte.IDDocente = listprofesores[cmbIDProfesor.SelectedIndex].ID;
             reporte.IDPlan = listplanes[cmbIDPlan.SelectedIndex].ID;
             reporte.IDEspecialidad = listplanes[cmbIDPlan.SelectedIndex].IDEspecialidad;
             reporte.IDComision = listcursos[cmbIDCurso.SelectedIndex].IDComision;
             reporte.IDMateria = listcursos[cmbIDCurso.SelectedIndex].IDMateria;
             ReporteCursos rep = new ReporteCursos(reporte);
             rep.Show();
         }
         else
         {
             Reporte reporte = new Reporte();
             reporte.IDPlan = listplanes[cmbIDPlan.SelectedIndex].ID;
             reporte.IDEspecialidad = listplanes[cmbIDPlan.SelectedIndex].IDEspecialidad;
             ReportePlanes rep = new ReportePlanes(reporte);
             rep.Show();
         }
     }
 }
示例#4
0
        private void reporteDeCursosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ReporteCursos formReporteCursos = new ReporteCursos();

            formReporteCursos.ShowDialog();
        }
示例#5
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     ReporteCursos rpt = new ReporteCursos();
     rpt.Site = this.Site;
     return rpt;
 }