Esempio n. 1
0
        private void frmAlumnosPopUpAgregar_Load(object sender, EventArgs e)
        {
            cbHrmDomicilio.Enabled = false;
            txtBuscaHmno.Enabled   = false;

            AutoCompleteStringCollection alumnos = new AutoCompleteStringCollection();
            logPersonas logPersonas = new logPersonas();

            //--
            DataTable dt = logPersonas.traerPersonasAutocompetar("2");

            foreach (DataRow row in dt.Rows)
            {
                txtBuscaHmno.AutoCompleteCustomSource.Add(row[0].ToString());
            }

            //SqlDataReader dr = logPersonas.traerPersonasAutocompetar("2");
            //while (dr.Read())
            //{
            //    alumnos.Add(dr.GetString(0));
            //};

            txtBuscaHmno.AutoCompleteMode   = AutoCompleteMode.Suggest;
            txtBuscaHmno.AutoCompleteSource = AutoCompleteSource.CustomSource;
            //txtBuscaHmno.AutoCompleteCustomSource = alumnos;

            //--

            lbl_panelSala.Visible = true;
            panelDatos.Visible    = false;
            panelContacto.Visible = false;
            btnGuardar.Visible    = false;
            btnCancelar.Visible   = false;
        }
        private void frmAlumnosGrupoFliaPopUpAgregar_Load(object sender, EventArgs e)
        {
            //Autocompletar BuscarHermanos

            AutoCompleteStringCollection alumnos = new AutoCompleteStringCollection();
            logPersonas logPersonas = new logPersonas();
            //--
            DataTable dt = logPersonas.traerPersonasAutocompetar("2");


            foreach (DataRow row in dt.Rows)
            {
                txtBuscaAlumno.AutoCompleteCustomSource.Add(row[0].ToString());
            }
            //SqlDataReader dr = logPersonas.traerPersonasAutocompetar("2");
            //while (dr.Read())
            //{
            //    alumnos.Add(dr.GetString(0));
            //};


            txtBuscaAlumno.AutoCompleteMode   = AutoCompleteMode.Suggest;
            txtBuscaAlumno.AutoCompleteSource = AutoCompleteSource.CustomSource;
            //txtBuscaAlumno.AutoCompleteCustomSource = alumnos;

            //--
        }
        private void cargar_BuscaAlumnos()
        {
            //Autocompletar

            AutoCompleteStringCollection alumnos = new AutoCompleteStringCollection();
            logPersonas logPersonas = new logPersonas();

            //--
            DataTable dt = logPersonas.traerPersonasAutocompetar("2");

            foreach (DataRow row in dt.Rows)
            {
                txtGF_Buscar.AutoCompleteCustomSource.Add(row[0].ToString());
            }

            //SqlDataReader dr = logPersonas.traerPersonasAutocompetar("2");
            //while (dr.Read())
            //{
            //    alumnos.Add(dr.GetString(0));
            //};

            txtGF_Buscar.AutoCompleteMode   = AutoCompleteMode.Suggest;
            txtGF_Buscar.AutoCompleteSource = AutoCompleteSource.CustomSource;
            //txtGF_Buscar.AutoCompleteCustomSource = alumnos;
            //--
        }
Esempio n. 4
0
        private void frmGestionCuotas_Load(object sender, EventArgs e)
        {
            //cargar combo Salas
            logCuota metCobro = new logCuota();

            entSala.entSalaColeccion salas = metCobro.buscarSalas();

            cbSalas.DataSource    = new BindingSource(salas, null);
            cbSalas.ValueMember   = "SAL_ID";
            cbSalas.DisplayMember = "SAL_NOMBRE";
            cbSalas.SelectedItem  = null;

            // oculta los paneles

            panelBusqueda.Hide();
            panelGeneracion.Hide();
            listConceptos.Hide();

            //Autocompletar

            AutoCompleteStringCollection alumnos = new AutoCompleteStringCollection();
            logPersonas logPersonas = new logPersonas();
            //--
            DataTable dt = logPersonas.traerPersonasAutocompetar("2");

            foreach (DataRow row in dt.Rows)
            {
                txtMatriculados.AutoCompleteCustomSource.Add(row[0].ToString());
            }
            //SqlDataReader dr = logPersonas.traerPersonasAutocompetar("2");
            //while (dr.Read())
            //{
            //    alumnos.Add(dr.GetString(0));
            //};

            txtMatriculados.AutoCompleteMode   = AutoCompleteMode.Suggest;
            txtMatriculados.AutoCompleteSource = AutoCompleteSource.CustomSource;
            //txtMatriculados.AutoCompleteCustomSource = alumnos;
            //--

            dgvMatriculados.Visible = false;
            btnBajaCuota.Visible    = false;
        }