private void ActualizarControles()
        {
            listU = UsuarioDAO.getList();
            listD = DepartamentoDAO.getList();
            listR = RegistroDAO.getList();

            cmbId.DataSource    = null;
            cmbId.DisplayMember = "idUsuario";
            cmbId.DataSource    = listU;
        }
예제 #2
0
        private void ActualizarDataGrids()
        {
            listR  = RegistroDAO.getList();
            listUR = UsuarioDAO.GetUsuariosEnEdificio();
            Frequencia f = DepartamentoDAO.BuscarDepartamentoConcurrido();

            dataRegist.DataSource   = listR;
            dataBuilding.DataSource = listUR;
            lblfreq.Text            = f.frecuencia.ToString();
            lvlTop.Text             = f.nombre;
        }
예제 #3
0
        private void ActualizarControles()
        {
            listU = UsuarioDAO.getList();
            listD = DepartamentoDAO.getList();
            listR = RegistroDAO.getList();

            cmbD.DataSource    = null;
            cmbD.DisplayMember = "name";
            cmbD.ValueMember   = "Department ID";
            cmbD.DataSource    = listD;

            cmbId.DataSource    = null;
            cmbId.DisplayMember = "User ID";
            cmbId.DataSource    = listU;
        }