Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Nivel objNivel = new Nivel();
            objNivel.ID_NIVEL = 1;
            objNivel.DESCRIPCION = "Esta es la prueba";
            objNivel.MISION = "esta si es una verdadera prueba";
            objNivel.VISION = "ojdnbvonv";
            objNivel.OBJETIVO = "El objetivo antonio";
            Carrera objCarrera = new Carrera();
            objCarrera.NOMBRE = "ingenieria en sistemasc omputacionales";
            objCarrera.DESCRIPCION = "carrera pesada para estudiar sistemas";

               List<Carrera> carreras = objBll.getCarreras();
               List<Calificacion> calificaciones = objBll.getCalificaciones();
               List<Curso> cursos = objBll.getCursos();
               List<Docente> docentes = objBll.getDocentes();
               List<Horario> horarios = objBll.getHorarios();
               List<Nivel> niveles = objBll.getCatNiveles();
               List<Periodo> periodos = objBll.getPeriodos();
               MessageBox.Show("");
        }
Beispiel #2
0
 public void eliminaNivele(Nivel obj)
 {
     this.ExecuteNonQuery(String.Format("EXECUTE "));
     if (this.ExistError)
         throw new Exception(this.MessageError);
 }
Beispiel #3
0
 public void updateNivele(Nivel obj)
 {
 }
Beispiel #4
0
        /// <summary>
        /// Obtiene la lista de niveles
        /// </summary>
        /// <returns>
        /// DEvuelve los niveles correspondientes al periodo indicado
        /// </returns>
        public List<Nivel> getNivelesPeriodoById(Periodo obj)
        {
            List<Nivel> niveles = new List<Nivel>();
            this.Query = String.Format("SELECT ID_NIVEL FROM PERIODOS WHERE ID_PERIODO = {0}", obj.ID_PERIODO);
            IDataReader r = this.ExecuteReader(this.Query);

            while (r.Read())
            {
                this.Query = String.Format("SELECT * FROM NIVELES WHERE ID_NIVEL IN ({0})", r[""].ToString());
                IDataReader reader = this.ExecuteReader(this.Query);
                if (this.ExistError)
                {
                    //this.MessageError;
                }
                while (reader.Read())
                {
                    Nivel nivel = new Nivel();
                    nivel.ID_NIVEL = Convert.ToInt32(reader["ID_NIVEL"]);
                    nivel.NIVEL = reader["NIVEL"].ToString();
                    nivel.DESCRIPCION = reader["DESCRIPCION"].ToString();
                    nivel.MISION = reader["MISION"].ToString();
                    nivel.OBJETIVO = reader["OBJETIVO"].ToString();
                    nivel.VISION = reader["VISION"].ToString();
                    niveles.Add(nivel);
                }
            }

            return niveles;
        }