Ejemplo n.º 1
0
        public List <ListaGradosFactoresDisponibles> GetGradosFactoresDisponibles(int PlantillaId, int FactorId)
        {
            ds.Tables.Clear();
            Cl_PlantillaVal clPLantillas = new Cl_PlantillaVal();

            ds = clPLantillas.GetGradosFactoresPlantillaDisponibles(PlantillaId, FactorId);
            List <ListaGradosFactoresDisponibles> Datos = new List <ListaGradosFactoresDisponibles>();


            foreach (DataRow dr in ds.Tables["DATOS"].Rows)
            {
                ListaGradosFactoresDisponibles Registro = new ListaGradosFactoresDisponibles();
                Registro.GradoId     = Convert.ToInt32(dr["GradoId"]);
                Registro.Grado       = dr["Grado"].ToString();
                Registro.Descripcion = dr["Descripcion"].ToString();
                Datos.Add(Registro);
            }
            return(Datos);
        }