Exemplo n.º 1
0
        private void ptbPesquisaGrupo_Click(object sender, EventArgs e)
        {
            frPesquisa frPesquisa = new frPesquisa(EnumPesquisa.grupo_produto);

            frPesquisa.ShowDialog();
            CarregaGrupos();
            if (frPesquisa.grupoProdutoVO != null)
            {
                ExibeGrupoProduto(frPesquisa.grupoProdutoVO);
            }
        }
Exemplo n.º 2
0
        private void ptbPesquisa_Click(object sender, EventArgs e)
        {
            frPesquisa frPesquisa = new frPesquisa(EnumPesquisa.produto);

            frPesquisa.ShowDialog();
            if (frPesquisa.produtoVO != null)
            {
                for (int i = 0; i < listProdutoVO.Count; i++)
                {
                    if (frPesquisa.produtoVO.Descricao == listProdutoVO[i].Descricao)
                    {
                        ExibeProduto(listProdutoVO[i]);
                        break;
                    }
                }
            }
        }
Exemplo n.º 3
0
        private void ptbPesquisa_Click(object sender, EventArgs e)
        {
            frPesquisa frPesquisa = new frPesquisa(EnumPesquisa.cliente);

            frPesquisa.ShowDialog();
            CarregaCadastros();
            if (frPesquisa.clienteVO != null)
            {
                for (int i = 0; i < listClienteVO.Count; i++)
                {
                    if (frPesquisa.clienteVO.Nome == listClienteVO[i].Nome)
                    {
                        index = i;
                        lblQtdCliente.Text = $"{index + 1} de {listClienteVO.Count}";
                        ExibeCliente(listClienteVO[i]);
                        break;
                    }
                }
            }
        }