示例#1
0
        private void btnSelecionarCliente_Click(object sender, EventArgs e)
        {
            UI.frmBusca tela = new UI.frmBusca(false);
            tela.Text = "Busca de Clientes";
            tela.ShowDialog();

            if (clienteBLL.Cod != 0)
            {
                txtCodCli.Text  = clienteBLL.Cod.ToString();
                txtNomeCli.Text = clienteBLL.Nome;
            }
        }
示例#2
0
        private void btnSelecionarProduto_Click(object sender, EventArgs e)
        {
            UI.frmBusca tela = new UI.frmBusca(true);
            tela.Text = "Busca de Produtos";
            tela.ShowDialog();

            if (produtoBLL.Cod != 0)
            {
                txtCodProd.Text       = produtoBLL.Cod.ToString();
                txtDescricaoProd.Text = produtoBLL.Descricao;
                nudQtd.Maximum        = produtoBLL.Qtd;
            }
        }