public string HTMLHorarioExamen()
        {
            string rst = string.Empty;

            rst += " <tr role='row'>";
            rst += "     <td style='align-content: center; vertical-align: middle; text-align: center;' colspan='9'>" + Language.es_ES.EST_LBL_SIN_REGISTROS.ToUpper() + "</td>";
            rst += " </tr>";
            try
            {
                WSGestorDeReportesEvaluacion.dtstHorarioExamenes dsHorarioExamenes = _dsHorarioExamenes();
                if (dsHorarioExamenes != null && dsHorarioExamenes.Tables["Materias"].Rows.Count > 0)
                {
                    rst = string.Empty;
                    foreach (DataRow item in dsHorarioExamenes.Tables["Materias"].Rows)
                    {
                        rst += " <tr role='row' class='even'>";
                        rst += "     <td style='align-content: center; vertical-align: middle; text-align: center;'>" + item["strNombreMateria"].ToString() + "</td>";
                        rst += "     <td style='align-content: center; vertical-align: middle; text-align: center;'>" + item["strDescripcionNivel"].ToString() + "</ td >";
                        rst += "     <td style='align-content: center; vertical-align: middle; text-align: center;'>" + item["strCodParalelo"].ToString() + "</td>";
                        rst += "     <td style='align-content: center; vertical-align: middle; text-align: center;'>" + item["dtFechaExPrinc"].ToString() + "</td>";
                        rst += "     <td style='align-content: center; vertical-align: middle; text-align: center;'>" + item["dtFechaExSusp"].ToString() + "</td>";
                        rst += " </tr>";
                    }
                }
            }
            catch (Exception ex)
            {
                Errores err = new Errores();
                err.SetError(ex, "HTMLHorarioCarrera");
            }
            return(rst);
        }
Exemple #2
0
        public LocalReport getReporteHorariosExamenes(string reportPath)
        {
            LocalReport rptHorarioExEst = new LocalReport();

            try
            {
                WSGestorDeReportesEvaluacion.dtstHorarioExamenes dsHorariosExamenes = this._getHorarioExamenes();

                ReportDataSource rds = new ReportDataSource();
                rds.Name  = "dsHorarioExamenes";
                rds.Value = dsHorariosExamenes.Materias;

                rptHorarioExEst.DataSources.Clear();
                rptHorarioExEst.DataSources.Add(rds);
                rptHorarioExEst.ReportPath = reportPath;

                rptHorarioExEst.SetParameters(this._getParametrosGeneralesReporte());
                rptHorarioExEst.Refresh();
            }
            catch (Exception ex)
            {
                Errores err = new Errores();
                err.SetError(ex, "getReporteHorariosExamenes");
            }

            return(rptHorarioExEst);
        }
        public void HorarioExamenes()
        {
            GestorDeReportesEvaluacion gr = new GestorDeReportesEvaluacion();

            gr.CookieContainer = new System.Net.CookieContainer();
            gr.set_CodCarrera(this.UsuarioActual.CarreraActual.Codigo);
            WSGestorDeReportesEvaluacion.dtstHorarioExamenes dsHorarioExamenes = gr.GetHorarioExamenesDocente(strCodPeriodoVigente, this.UsuarioActual.Cedula);
        }
Exemple #4
0
        private WSGestorDeReportesEvaluacion.dtstHorarioExamenes _getHorarioExamenes()
        {
            WSGestorDeReportesEvaluacion.dtstHorarioExamenes dsConsultaHorarioExamenes = new WSGestorDeReportesEvaluacion.dtstHorarioExamenes();
            WSGestorDeReportesEvaluacion.dtstHorarioExamenes dsHorarioExamenes         = new WSGestorDeReportesEvaluacion.dtstHorarioExamenes();

            try{
                ProxySeguro.GestorDeReportesEvaluacion re = new ProxySeguro.GestorDeReportesEvaluacion();
                re.CookieContainer = new System.Net.CookieContainer();
                re.set_CodCarrera(UsuarioActual.CarreraActual.Codigo.ToString());

                dsHorarioExamenes = re.GetHorarioExamenesEstudiante(_dsPeriodoVigente.Periodos[0]["strCodigo"].ToString(),
                                                                    UsuarioActual.Cedula.ToString());
            }catch (Exception ex) {
                Errores err = new Errores();
                err.SetError(ex, "_getHorarioExamenes");
            }

            return(dsHorarioExamenes);
        }
        public LocalReport getReporteHorarios(string reportPath)
        {
            LocalReport rptHorarioDocente = new LocalReport();

            try
            {
                if (this.strTipoHorario.Equals("Clase"))
                {
                    WSGestorDeReportesMatriculacion.dtstHorario dtsHorario = _dsHorarioClase();
                    List <HorarioClaseDocente> lstHorarioDocente           = new List <HorarioClaseDocente>();
                    foreach (DataRow item in dtsHorario.Tables["Horario"].Rows)
                    {
                        HorarioClaseDocente objHorarioClase = new HorarioClaseDocente
                        {
                            StrCodHora         = item.ItemArray[0].ToString(),
                            StrDescripcionHora = item.ItemArray[1].ToString(),
                            StrInicioFinHora   = item.ItemArray[2].ToString(),
                            StrLunes           = item.ItemArray[3].ToString(),
                            StrMartes          = item.ItemArray[4].ToString(),
                            StrMiercoles       = item.ItemArray[5].ToString(),
                            StrJueves          = item.ItemArray[6].ToString(),
                            StrViernes         = item.ItemArray[7].ToString(),
                            StrSabado          = item.ItemArray[8].ToString(),
                            StrDomingo         = item.ItemArray[9].ToString()
                        };
                        lstHorarioDocente.Add(objHorarioClase);
                    }
                    ReportDataSource rds = new ReportDataSource();
                    rds.Name  = "dsHorarioClaseDocente";
                    rds.Value = lstHorarioDocente;
                    rptHorarioDocente.DataSources.Clear();
                    rptHorarioDocente.DataSources.Add(rds);
                    rptHorarioDocente.ReportPath = reportPath;
                    rptHorarioDocente.SetParameters(_getParametrosGeneralesReporte());
                    rptHorarioDocente.Refresh();
                }
                else
                {
                    WSGestorDeReportesEvaluacion.dtstHorarioExamenes dsHorarioExamenes = _dsHorarioExamenes();
                    List <HorarioExamenDocente> lstHorarioExDocente = new List <HorarioExamenDocente>();
                    foreach (DataRow item in dsHorarioExamenes.Tables["Materias"].Rows)
                    {
                        HorarioExamenDocente objHorarioExamen = new HorarioExamenDocente
                        {
                            StrCodMateria       = item.ItemArray[0].ToString(),
                            StrCodParalelo      = item.ItemArray[1].ToString(),
                            StrCodNivel         = item.ItemArray[2].ToString(),
                            StrDescripcionNivel = item.ItemArray[3].ToString(),
                            StrNombreMateria    = item.ItemArray[4].ToString(),
                            DtFechaExPrinc      = item.ItemArray[5].ToString(),
                            DtFechaExSusp       = item.ItemArray[6].ToString(),
                            StrCedula           = item.ItemArray[7].ToString(),
                            StrKeyMateria       = item.ItemArray[8].ToString()
                        };
                        lstHorarioExDocente.Add(objHorarioExamen);
                    }
                    ReportDataSource rds = new ReportDataSource();
                    rds.Name  = "dsHorarioExamenDocente";
                    rds.Value = lstHorarioExDocente;
                    rptHorarioDocente.DataSources.Clear();
                    rptHorarioDocente.DataSources.Add(rds);
                    rptHorarioDocente.ReportPath = reportPath;
                    rptHorarioDocente.SetParameters(_getParametrosGeneralesReporte());
                    rptHorarioDocente.Refresh();
                }
            }
            catch (Exception ex)
            {
                Errores err = new Errores();
                err.SetError(ex, "getReporteHorarios");
            }
            return(rptHorarioDocente);
        }
 public HorarioExamenesEstudiante()
 {
     _dsPeriodoVigente   = _getPeriodoVigenteCarrera();
     _dsHorariosExamenes = _getDatosHorarioEstudianteExamenes();
 }