public List <BD.Entidades.TOP5ProfConsultados> obtenerLista(Listados.SeleccionListado seleccionListado)
        {
            List <BD.Entidades.TOP5ProfConsultados> listaTOP5 = new List <TOP5ProfConsultados>();

            List <SqlParameter> paramlist = new List <SqlParameter>();

            paramlist.Add(new SqlParameter("@Fecha_Inicio_Semestre", seleccionListado.construirFechaInicioSemestre()));
            paramlist.Add(new SqlParameter("@Fecha_Fin_Semestre", seleccionListado.construirFechaFinSemestre()));
            SqlDataReader lector = BDStranger_Strings.GetDataReader("STRANGER_STRINGS.SP_TOP5_PROFESIONALES_CONSULTADOS", "SP", paramlist);

            if (lector.HasRows)
            {
                for (int i = 0; i < 5; i++)
                {
                    lector.Read();

                    BD.Entidades.TOP5ProfConsultados top5 = new TOP5ProfConsultados();
                    top5.cantidad     = (int)lector["Cantidad"];
                    top5.nombre       = (string)lector["Nombre"];
                    top5.apellido     = (string)lector["Apellido"];
                    top5.plan         = (string)lector["Tipo_De_Plan"];
                    top5.especialidad = (string)lector["Especialidad_Descripcion"];

                    listaTOP5.Add(top5);
                }
            }
            return(listaTOP5);
        }
Пример #2
0
        public List <BD.Entidades.TOP5BonosComprados> obtenerLista(Listados.SeleccionListado seleccionListado)
        {
            List <BD.Entidades.TOP5BonosComprados> listaTOP5 = new List <TOP5BonosComprados>();

            List <SqlParameter> paramlist = new List <SqlParameter>();

            paramlist.Add(new SqlParameter("@Fecha_Inicio_Semestre", seleccionListado.construirFechaInicioSemestre()));
            paramlist.Add(new SqlParameter("@Fecha_Fin_Semestre", seleccionListado.construirFechaFinSemestre()));
            SqlDataReader lector = BDStranger_Strings.GetDataReader("STRANGER_STRINGS.SP_TOP5_AFILIADOS_BONOS", "SP", paramlist);

            if (lector.HasRows)
            {
                int i = 0;
                while (lector.Read() && i < 5)
                {
                    BD.Entidades.TOP5BonosComprados top5 = new TOP5BonosComprados();
                    top5.cantidad = (int)lector["Bonos_Comprados"];
                    top5.apellido = (string)lector["Apellido"];
                    top5.nombre   = (string)lector["Nombre"];
                    top5.pertenece_grupo_familiar = (string)lector["Pertenece_A_Grupo_Familiar"];

                    listaTOP5.Add(top5);

                    i++;
                }
            }
            return(listaTOP5);
        }
Пример #3
0
        public List <BD.Entidades.TOP5Cancelaciones> obtenerLista(Listados.SeleccionListado seleccionListado)
        {
            List <BD.Entidades.TOP5Cancelaciones> listaTOP5 = new List <TOP5Cancelaciones>();

            List <SqlParameter> paramlist = new List <SqlParameter>();

            paramlist.Add(new SqlParameter("@Fecha_Inicio_Semestre", seleccionListado.construirFechaInicioSemestre()));
            paramlist.Add(new SqlParameter("@Fecha_Fin_Semestre", seleccionListado.construirFechaFinSemestre()));
            SqlDataReader lector = BDStranger_Strings.GetDataReader("STRANGER_STRINGS.SP_TOP5_CANCELACIONES", "SP", paramlist);

            if (lector.HasRows)
            {
                int i = 0;
                while (lector.Read() && i < 5)
                {
                    BD.Entidades.TOP5Cancelaciones top5 = new TOP5Cancelaciones();
                    top5.cantidad     = (int)lector["Cant"];
                    top5.especialidad = (string)lector["Especialidad_Descripcion"];

                    listaTOP5.Add(top5);

                    i++;
                }
            }
            return(listaTOP5);
        }