Beispiel #1
0
 private void btnPesquisaCliente_Click(object sender, EventArgs e)
 {
     pesquisa = new pesquisaPessoa();
     if (pesquisa.ShowDialog(this) == DialogResult.OK)
     {
         clearObjetos();
         zeraVariaveis();
         auxIdCliente        = pesquisa.Gridchave;
         auxNameCliente      = pesquisa.GridNome;
         auxIdAtividade      = pesquisa.GridIdAtividade;
         txtClienteFone.Text = auxNameCliente;
         txtIdCliente.Text   = auxIdCliente;
         if (flagSemaforo != 0)
         {
             conectorPDV_find_fone_read();
             conectorPDV_find_fone_set();
             dgvPesquisaFone.Select();
         }
     }
     if ((newddd != "") && (newtelefone != ""))
     {
         statusItens(true);
     }
     else
     {
         statusItens(false);
         clearObjetos();
     }
     flagSemaforo = 1;
     alteraIconesSalvar();
 }
Beispiel #2
0
 private void btnPesquisaClientePedidoVenda_Click(object sender, EventArgs e)
 {
     pesquisa = new pesquisaPessoa();
     if (pesquisa.ShowDialog(this) == DialogResult.OK)
     {
         auxIdCliente = pesquisa.Gridchave;
         txtDescClientePesquisaPedido.Text = pesquisa.GridNome;
         dgvPesquisaPesquisaPedido.Rows.Clear();
         if (dgvPesquisaPesquisaPedido.RowCount < 1)
         {
             dgvPesquisaPesquisaPedido.Rows.Add();
         }
     }
     btnPesquisaPedidoVenda.Select();
 }