Beispiel #1
0
        public virtual ReportDocument CreateReport()
        {
            crActaEgreso rpt = new crActaEgreso();

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #2
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            v_aceg_ncorr = Request.Params["aceg_ncorr"];


            if (v_aceg_ncorr != "")
            {
                crActaEgreso rep = new crActaEgreso();

                conexion.Open();

                comDatos.Parameters["ACEG_NCORR"].Value = v_aceg_ncorr;

                OleDbDataReader dr = comDatos.ExecuteReader();
                if (dr.Read())
                {
                    v_plan_ccod = dr["plan_ccod"].ToString();
                    v_espe_ccod = dr["espe_ccod"].ToString();
                    v_carr_ccod = dr["carr_ccod"].ToString();
                }
                dr.Close();


                adpEncabezado.SelectCommand.Parameters["ACEG_NCORR"].Value = v_aceg_ncorr;
                adpEncabezado.Fill(ds);

                adpAsignaturas.SelectCommand.CommandText = FormarSqlAsignaturas();
                adpAsignaturas.Fill(ds);

                LlenarDataSetNotas();

                visor.Visible = false;
                conexion.Close();


                rep.SetDataSource(ds);
                visor.ReportSource = rep;
                ExportarPDF(rep);
            }
        }
Beispiel #3
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            v_aceg_ncorr = Request.Params["aceg_ncorr"];

            if (v_aceg_ncorr != "")
            {
                crActaEgreso rep = new crActaEgreso();

                conexion.Open();

                comDatos.Parameters["ACEG_NCORR"].Value = v_aceg_ncorr;

                OleDbDataReader dr = comDatos.ExecuteReader();
                if (dr.Read())
                {
                    v_plan_ccod = dr["plan_ccod"].ToString();
                    v_espe_ccod = dr["espe_ccod"].ToString();
                    v_carr_ccod = dr["carr_ccod"].ToString();
                }
                dr.Close();

                adpEncabezado.SelectCommand.Parameters["ACEG_NCORR"].Value = v_aceg_ncorr;
                adpEncabezado.Fill(ds);

                adpAsignaturas.SelectCommand.CommandText = FormarSqlAsignaturas();
                adpAsignaturas.Fill(ds);

                LlenarDataSetNotas();

                visor.Visible = false;
                conexion.Close();

                rep.SetDataSource(ds);
                visor.ReportSource = rep;
                ExportarPDF(rep);
            }
        }
Beispiel #4
0
 public virtual ReportDocument CreateReport()
 {
     crActaEgreso rpt = new crActaEgreso();
     rpt.Site = this.Site;
     return rpt;
 }