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

            ds = clPLantillas.GetFactoresPlantillaDisponibles(PlantillaId);
            List <ListaFactoresDisponibles> Datos = new List <ListaFactoresDisponibles>();


            foreach (DataRow dr in ds.Tables["DATOS"].Rows)
            {
                ListaFactoresDisponibles Registro = new ListaFactoresDisponibles();
                Registro.FactorId = Convert.ToInt32(dr["FactorId"]);
                Registro.Factor   = dr["Factor"].ToString();
                Datos.Add(Registro);
            }
            return(Datos);
        }
Ejemplo n.º 2
0
        public List <ListaCategoriasPlantilla> GetListaCategoriasPlantillas(int PlantillaId)
        {
            ds.Tables.Clear();
            Cl_PlantillaVal clPLantillas = new Cl_PlantillaVal();

            ds = clPLantillas.GetCategoriasPlantilla(PlantillaId);
            List <ListaCategoriasPlantilla> Datos = new List <ListaCategoriasPlantilla>();


            foreach (DataRow dr in ds.Tables["DATOS"].Rows)
            {
                ListaCategoriasPlantilla Registro = new ListaCategoriasPlantilla();
                Registro.Minimo = Convert.ToInt32(dr["Minimo"]);
                Registro.Maximo = Convert.ToInt32(dr["Maximo"]);
                Registro.Nombre = dr["NombreCategoria"].ToString();
                Datos.Add(Registro);
            }
            return(Datos);
        }
Ejemplo n.º 3
0
        public List <ListaPlantillas> GetListaPlantillas()
        {
            ds.Tables.Clear();
            Cl_PlantillaVal clPLantillas = new Cl_PlantillaVal();

            ds = clPLantillas.GetListaPlantillas();
            List <ListaPlantillas> Datos = new List <ListaPlantillas>();


            foreach (DataRow dr in ds.Tables["DATOS"].Rows)
            {
                ListaPlantillas Registro = new ListaPlantillas();
                Registro.PlantillaId = Convert.ToInt32(dr["PlantillaId"]);
                Registro.Nombre      = dr["Nombre"].ToString();
                Registro.Puntos      = Convert.ToInt32(dr["TotPuntos"]);
                Registro.Default     = Convert.ToInt32(dr["DefaultVal"]);
                Registro.Niveles     = Convert.ToInt32(dr["Niveles"]);
                Datos.Add(Registro);
            }
            return(Datos);
        }
Ejemplo n.º 4
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);
        }
Ejemplo n.º 5
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);
        }
Ejemplo n.º 6
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);
        }