Beispiel #1
0
        public string getHTMLAsignaturasDocentePorPeriodoAcademico(string strCodCarrera, string strCodPeriodo)
        {
            string rst   = string.Empty;
            string nivel = string.Empty;
            string color = "odd";

            WSGestorDeReportesMatriculacion.dtstCursosDocente dtstCursosDocente = this._dsAsignaturasDocentePA(strCodCarrera,
                                                                                                               strCodPeriodo);
            rst += " <tr role='row' class='" + color + "'>";
            rst += "     <td style='align-content: center; vertical-align: middle; text-align: center;' colspan='9'>" + Language.es_ES.EST_LBL_SIN_REGISTROS + "</td>";
            rst += " </tr>";
            if (dtstCursosDocente.Cursos.Count > 0)
            {
                int x        = 0;
                int posicion = 0;
                rst = string.Empty;
                foreach (DataRow item in dtstCursosDocente.Cursos)
                {
                    posicion = ++x;
                    color    = (color == "odd") ? "even" : "odd";
                    nivel    = this._getNumOrdinal(item["strCodNivel"].ToString());
                    rst     += "<tr id=" + item["strCodMateria"].ToString().Trim() + "_" + item["strCodNivel"].ToString() + "_" + item["strCodParalelo"].ToString() + " role='row' class='" + color + "'>";
                    rst     += "    <td style='align-content: center; vertical-align: middle; text-align: center;'>" + posicion + "</td>";
                    rst     += "    <td style='align-content: center; vertical-align: middle; text-align: left;'>" + item["strNombreMateria"].ToString().Trim() + "</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;'>"+ nivel + "</td>";
                    rst     += "	<td style='align-content: center; vertical-align: middle; text-align: center;'> <div class='btn-group btn-group-xs'><button type='button' style='padding-top: 2px;' class='btn btn-info'><span class='glyphicon glyphicon-download-alt'></span> DESCARGAR EVALUACIONES</button></div> </td>";
                    rst     += "	<td style='align-content: center; vertical-align: middle; text-align: center;'> <div class='btn-group btn-group-xs'><button type='button' style='padding-top: 2px;' class='btn btn-success'>VER INFORMACIÓN</button></div></td>";
                    rst     += "</tr>";
                }
            }

            return(rst);
        }
Beispiel #2
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);
        }
Beispiel #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);
        }
        public DatosAsignaturasDocenteModel(string strCodCarrera)
        {
            if (!string.IsNullOrEmpty(strCodCarrera))
            {
                this.UsuarioActual.SetRolCarreraActual(Roles.Docentes,
                                                       strCodCarrera);
            }

            this._dtstPeriodoVigente = this._dataPeriodoAcademicoVigente();
            this._dtstCursosDocente  = this._dsAsignaturasDocente();
        }
Beispiel #5
0
        //  Gestiona si el acta ha sido impresa
        //  public bool estadoActa = true;

        public Asignatura()
        {
            if (!string.IsNullOrEmpty(this._strCodCarrera))
            {
                this.UsuarioActual.SetRolCarreraActual(Roles.Docentes,
                                                       this._strCodCarrera);
            }

            this._evaluacion         = new EvaluacionActiva();
            this._dtstPeriodoVigente = this._dataPeriodoAcademicoVigente();
            this._dtstCursosDocente  = this._dsAsignaturasDocente();
            this._evaluacionActiva   = _evaluacion.getDataEvaluacionActiva();
            this._drProximoParcial   = this._evaluacion.getProximoParcial();
        }