Пример #1
0
        private WSGestorDeReportesMatriculacion.dtstHorario _horarioEstudiante()
        {
            WSGestorDeReportesMatriculacion.dtstHorario dsHorario      = new WSGestorDeReportesMatriculacion.dtstHorario();
            WSGestorDeReportesMatriculacion.dtstHorario rstServicioWeb = new WSGestorDeReportesMatriculacion.dtstHorario();

            try
            {
                if (!string.IsNullOrEmpty(_ultimoPeriodoEstudiante))
                {
                    ProxySeguro.GestorDeReportesMatriculacion rm = new ProxySeguro.GestorDeReportesMatriculacion();
                    rm.CookieContainer = new System.Net.CookieContainer();
                    rm.SetCodCarrera(UsuarioActual.CarreraActual.Codigo.ToString());

                    //  El servicio web retorna no registra la excepcion y retorna null
                    rstServicioWeb = rm.GetReporteHorarioEstudiante(UsuarioActual.Cedula.ToString(),
                                                                    UsuarioActual.CarreraActual.Codigo.ToString(),
                                                                    _ultimoPeriodoEstudiante);

                    dsHorario = (rstServicioWeb != null)
                                    ? this._limpiarHorarioCurso(rstServicioWeb)
                                    : new WSGestorDeReportesMatriculacion.dtstHorario();
                }
            }catch (Exception ex)
            {
                Errores err = new Errores();
                err.SetError(ex, "_horarioEstudiante");
            }

            return(dsHorario);
        }
Пример #2
0
        private DataSet _getDtaNominaEstudiantes()
        {
            DataSet nomina = default(DataSet);

            ProxySeguro.GestorDeReportesMatriculacion grm = new ProxySeguro.GestorDeReportesMatriculacion();
            grm.CookieContainer = new System.Net.CookieContainer();
            grm.SetCodCarrera(this.UsuarioActual.CarreraActual.Codigo);

            try{
                nomina = grm.GetReporteListadoMatriculadosMateriaParalelo(this._strCodParalelo,
                                                                          this._dtstPeriodoVigente.Periodos[0]["strCodigo"].ToString(),
                                                                          this._strCodNivel,
                                                                          this._strCodAsignatura);
            }
            catch (Exception ex) {
                nomina = default(DataSet);

                Errores err = new Errores();
                err.SetError(ex, "_getDtaNominaEstudiantes");
            }

            grm.Dispose();

            return(nomina);
        }
Пример #3
0
        //  Lista de asignaturas por carrera de periodos anteriores
        public WSGestorDeReportesMatriculacion.dtstCursosDocente _dsAsignaturasDocentePA(string strCodCarrera, string strCodPeriodo)
        {
            WSGestorDeReportesMatriculacion.dtstCursosDocente dsCursosDocente = new WSGestorDeReportesMatriculacion.dtstCursosDocente();
            WSGestorDeReportesMatriculacion.dtstCursosDocente rstCursoDocente = new WSGestorDeReportesMatriculacion.dtstCursosDocente();

            try
            {
                ProxySeguro.GestorDeReportesMatriculacion rm = new ProxySeguro.GestorDeReportesMatriculacion();
                rm.CookieContainer = new System.Net.CookieContainer();
                rm.SetCodCarrera(strCodCarrera);

                rstCursoDocente = rm.GetCursosDocente(strCodPeriodo,
                                                      this.UsuarioActual.Cedula.ToString());

                if (rstCursoDocente != null)
                {
                    dsCursosDocente = rstCursoDocente;
                }
            }
            catch (Exception ex)
            {
                Errores err = new Errores();
                err.SetError(ex, "_getAsignaturasDocente");
            }

            return(dsCursosDocente);
        }
Пример #4
0
        //  Lista de asignaturas por carrera
        private WSGestorDeReportesMatriculacion.dtstCursosDocente _dsAsignaturasDocente()
        {
            WSGestorDeReportesMatriculacion.dtstCursosDocente dsCursosDocente = new WSGestorDeReportesMatriculacion.dtstCursosDocente();
            WSGestorDeReportesMatriculacion.dtstCursosDocente rstCursoDocente = new WSGestorDeReportesMatriculacion.dtstCursosDocente();

            try{
                ProxySeguro.GestorDeReportesMatriculacion rm = new ProxySeguro.GestorDeReportesMatriculacion();
                rm.CookieContainer = new System.Net.CookieContainer();
                rm.SetCodCarrera(this.UsuarioActual.CarreraActual.Codigo);

                rstCursoDocente = (this._dtstPeriodoVigente.Periodos.Rows.Count > 0)
                                        ? rm.GetCursosDocente(this._dtstPeriodoVigente.Periodos[0]["strCodigo"].ToString(),
                                                              this.UsuarioActual.Cedula.ToString())
                                        : new WSGestorDeReportesMatriculacion.dtstCursosDocente();

                if (rstCursoDocente != null)
                {
                    dsCursosDocente = rstCursoDocente;
                }
            }catch (Exception ex) {
                Errores err = new Errores();
                err.SetError(ex, "_getAsignaturasDocente");
            }

            return(dsCursosDocente);
        }
        private WSGestorDeReportesMatriculacion.dtstPeriodos _periodosMatriculasEstudiante()
        {
            WSGestorDeReportesMatriculacion.dtstPeriodos lstPeridosEstudiante = new WSGestorDeReportesMatriculacion.dtstPeriodos();

            try
            {
                //  Recuperar períodos para los que se tenga matrículas
                ProxySeguro.GestorDeReportesMatriculacion gr = new ProxySeguro.GestorDeReportesMatriculacion();
                gr.CookieContainer = new System.Net.CookieContainer();
                gr.SetCodCarrera(this.UsuarioActual.CarreraActual.Codigo);

                lstPeridosEstudiante = gr.GetPeriodosDeMatriculaEstudiante( this.UsuarioActual.Cedula, 
                                                                            "" );
            }catch (Exception ex){
                Errores err = new Errores();
                err.SetError(ex, "periodosMatriculasEstudiante - Usuario: " + UsuarioActual.Cedula.ToString() + " / " + UsuarioActual.CarreraActual.ToString() + " / " + UsuarioActual.CarreraActual.Codigo.ToString());
            }

            return lstPeridosEstudiante;
        }
Пример #6
0
        private WSGestorDeReportesMatriculacion.dtstHorario _horarioCursoParalelo(string strCodNivel, string strCodParalelo)
        {
            WSGestorDeReportesMatriculacion.dtstHorario hcp            = new WSGestorDeReportesMatriculacion.dtstHorario();
            WSGestorDeReportesMatriculacion.dtstHorario dsHorarioCurso = new WSGestorDeReportesMatriculacion.dtstHorario();

            try
            {
                ProxySeguro.GestorDeReportesMatriculacion rm = new ProxySeguro.GestorDeReportesMatriculacion();
                rm.CookieContainer = new System.Net.CookieContainer();
                rm.SetCodCarrera(UsuarioActual.CarreraActual.Codigo.ToString());

                hcp = rm.GetReporteHorarioCurso(strCodParalelo,
                                                _dsPeriodoVigente.Periodos[0]["strCodigo"].ToString(),
                                                strCodNivel);

                dsHorarioCurso = this._limpiarHorarioCurso(hcp);
            }
            catch (Exception ex) {
                Errores err = new Errores();
                err.SetError(ex, "_horarioCursoParalelo");
            }

            return(dsHorarioCurso);
        }