Esempio n. 1
0
        private void LlenarCombos()
        {
            // obtengo todas las categorias y lleno el combo
            ICategoriaPerfil categoriaPerfil = CategoriaPerfilFactory.GetCategoriaPerfil();

            this.cmbCategoriaPerfil.DataSource = categoriaPerfil.GetCategoriaPerfilByDescripcionDataSet();;
            this.cmbCategoriaPerfil.DataBind();

            // obtengo todos los estados y lleno el combo
            IEstadoUsuarioPerfil  estadoUsuarioPerfil = EstadoUsuarioPerfilFactory.GetEstadoUsuarioPerfil();
            DsEstadoUsuarioPerfil ds = estadoUsuarioPerfil.GetEstadoUsuarioPerfilDataSet();

            this.cmbEstado.DataSource = ds.Datos.Select("EstadoUsuarioPerfilID <> 3", "Descripcion");
            this.cmbEstado.DataBind();
        }
Esempio n. 2
0
        private void LlenarCombos()
        {
            // Lleno el combo de estados
            IEstadoUsuarioPerfil estadoUsuarioPerfil = EstadoUsuarioPerfilFactory.GetEstadoUsuarioPerfil();

            this.cmbEstado.DataTextField  = "Descripcion";
            this.cmbEstado.DataValueField = "EstadoUsuarioPerfilID";

            DsEstadoUsuarioPerfil ds = estadoUsuarioPerfil.GetEstadoUsuarioPerfilDataSet();

            this.cmbEstado.DataSource = ds.Datos.Select("EstadoUsuarioPerfilID <> 3", "Descripcion");
            this.cmbEstado.DataBind();

            //SisPackController.LlenarCombos.UnidadNegocio(this.cmbUnidadNegocio,"",this.UnidadNegocioID);
            SisPackController.LlenarCombos.UnidadNegocio(this.cmbUnidadNegocio, "", 0);
//			SisPackController.LlenarCombos.
        }