private WSGestorDeReportesEvaluacion.dtstNotasPeriodoEstudiante _getNotasPeriodoEstudiante()
        {
            WSGestorDeReportesEvaluacion.dtstNotasPeriodoEstudiante dsNotasPeriodoEstudiante = new WSGestorDeReportesEvaluacion.dtstNotasPeriodoEstudiante();
            WSGestorDeReportesEvaluacion.dtstNotasPeriodoEstudiante rstConsulta;

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

                rstConsulta = gre.GetNotasPeriodoEstudiante(this.UsuarioActual.Cedula.ToString(),
                                                            "",
                                                            this.periodoEstudiante.ToString());

                dsNotasPeriodoEstudiante = (rstConsulta != null)? rstConsulta
                                                                : new WSGestorDeReportesEvaluacion.dtstNotasPeriodoEstudiante();
            }
            catch (Exception ex)
            {
                Errores err = new Errores();
                err.SetError(ex, "_getNivelEstudiante - Usuario: " + UsuarioActual.Cedula.ToString() + " / " + UsuarioActual.CarreraActual.ToString() + " / " + UsuarioActual.CarreraActual.Codigo.ToString());
            }

            return dsNotasPeriodoEstudiante;
        }
示例#2
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);
        }