Ejemplo n.º 1
0
        public List <FactoresPlantilla> GetFactoresPlantillas(int PlantillaId)
        {
            ds.Tables.Clear();
            Cl_PlantillaVal clPLantillas = new Cl_PlantillaVal();

            ds = clPLantillas.GetFactoresPlantilla(PlantillaId);
            List <FactoresPlantilla> Datos = new List <FactoresPlantilla>();


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