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

            ds = clPLantillas.GetGradosPlantillaFactor(PlantillaId, FactorId);
            List <ListaGradosFactorPlantilla> Datos = new List <ListaGradosFactorPlantilla>();


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