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

            ds = clPLantillas.GetPorcentajePlantilla(PlantillaId);
            List <ListaTotalPonderacionPlantilla> Datos = new List <ListaTotalPonderacionPlantilla>();


            foreach (DataRow dr in ds.Tables["DATOS"].Rows)
            {
                ListaTotalPonderacionPlantilla Registro = new ListaTotalPonderacionPlantilla();
                if (dr["PonderacionTot"].ToString() == "")
                {
                    Registro.PonderacionTot = 0;
                }
                else
                {
                    Registro.PonderacionTot = Convert.ToDouble(dr["PonderacionTot"]);
                }
                Datos.Add(Registro);
            }
            return(Datos);
        }