private void llenarComboProovedor()
        {
            ProovedorCmb.DropDownStyle = ComboBoxStyle.DropDownList;


            if (UsuarioUtil.Usuario.tipoUsuario.Equals(TipoUsuario.PROVEEDOR))
            {
                proveedor   = proovedorService.getProveedorConUsuario(UsuarioUtil.Usuario.userName);
                proovedores = new List <Proovedor> {
                    proveedor
                };

                proovedorBindingSource.DataSource = proovedores;

                //ProovedorCmb.Items.Add( proveedor );
            }
            else
            {
                proovedores = proovedorService.searchProovedores();
                //foreach (var proovedor in proovedores)
                //{
                //    ProovedorCmb.Items.Add(proovedor.razonSocial);
                //}
                proovedorBindingSource.DataSource = proovedores;
            }
        }
Exemple #2
0
        private void inicializarFiltro()
        {
            filtroProvCombo.DropDownStyle = ComboBoxStyle.DropDownList;
            List <Proovedor> proveedores = proveedorService.searchProovedores();

            proovedorBindingSource.DataSource = proveedores;
            filtroProvCombo.SelectedIndex     = -1;
            filtroDescTxt.Text = "";
        }
 private void llenarDatagrid()
 {
     proveedores         = _proveedorService.searchProovedores();
     ProvGrid.DataSource = new BindingSource(proveedores, null);
 }
 private void cargarProveedores()
 {
     proovedores = _proveedorService.searchProovedores();
     proovedores.ForEach(p => ProveedorCombo.Items.Add(p.razonSocial));
 }