private void txtID_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { fShow fsw = new fShow("VENDEDORES", new string[] { "id", "nome", "cidade", "estado", "telefone" }, "nome"); fsw.ShowDialog(); txtID.Text = fsw.ParametroID.ToString(); if (!string.IsNullOrEmpty(txtID.Text)) { SendKeys.SendWait("{ENTER}"); } } }
private void txtOrcamento_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { e.Handled = true; fShow fsw = new fShow("ORCAMENTO", new string[] { "ID", "CLIENTE_ID", "DATA", "TOTALBRUTO", "TOTALLIQUIDO" }, "DATA"); fsw.ShowDialog(); if (!string.IsNullOrEmpty(fsw.ParametroID.ToString())) { txtEntrada.Text = fsw.ParametroID.ToString(); SendKeys.SendWait("{ENTER}"); } } }
private void txtEntrega_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { e.Handled = true; fShow fsw = new fShow("TRANSPORTADORES", new string[] { "ID", "DESCRICAO", "TAXA" }, "DESCRICAO"); fsw.ShowDialog(); if (!string.IsNullOrEmpty(fsw.ParametroID.ToString())) { txtEntrega.Text = int.Parse(fsw.ParametroID.ToString()).ToString(); SendKeys.SendWait("{ENTER}"); } } }
private void txtFormaPagamento_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { e.Handled = true; fShow fsw = new fShow("FormasPagamento", new string[] { "Id", "Descricao" }, "Descricao"); fsw.ShowDialog(); txtFormaPagamento.Text = int.Parse(fsw.ParametroID.ToString()).ToString(); if (!string.IsNullOrEmpty(txtFormaPagamento.Text)) { SendKeys.SendWait("{ENTER}"); } } }
private void txtCodigo_KeyDown_1(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { fShow fsw = new fShow("CENTROCUSTOS", new string[] { "Codigo", "Descricao" }, "Codigo"); fsw.ShowDialog(); txtCodigo.Text = fsw.ParametroID.ToString(); if (txtCodigo.Text != "") { SendKeys.SendWait("{TAB}"); } } }
private void txtMarca_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { e.Handled = true; fShow fns = new fShow("MARCAS", new string[] { "Id", "Descricao" }, "descricao"); fns.ShowDialog(); if (!string.IsNullOrEmpty(fns.ParametroID.ToString())) { txtMarca.Text = fns.ParametroID.ToString(); SendKeys.SendWait("{ENTER}"); } } }
private void txtCliente_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { fShow fs = new fShow("CLIENTE", new string[] { "ID", "NOME", "CIDADE", "TELEFONE", "CELULAR" }, "ID"); fs.ShowDialog(); txtCliente.Text = fs.ParametroID.ToString(); if (txtCliente.Text != "") { SendKeys.SendWait("{TAB}"); } } }
private void txtID_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { fShow fsw = new fShow("TABELA_LOGIN", new string[] { "Id", "Nome", "Login" }, "Id"); fsw.ShowDialog(); txtID.Text = fsw.ParametroID.ToString(); if (txtID.Text != "") { SendKeys.SendWait("{TAB}"); } } }
private void txtNcm_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { e.Handled = true; fShow fns = new fShow("ncm", new string[] { "NCM", "NOME" }, "NOME"); fns.ShowDialog(); if (!string.IsNullOrEmpty(fns.ParametroID.ToString())) { txtNcm.Text = fns.ParametroID.ToString(); SendKeys.SendWait("{ENTER}"); } } }
private void txtCest_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { e.Handled = true; fShow fns = new fShow("TAB_CEST", new string[] { "CEST", "DESCRICAO", "NCM" }, "CEST"); fns.ShowDialog(); if (!string.IsNullOrEmpty(fns.ParametroID.ToString())) { txtCest.Text = fns.ParametroID.ToString(); SendKeys.SendWait("{ENTER}"); } } }
private void txtCentroVendas_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { fShow fs = new fShow("CENTROVENDAS", new string[] { "CODIGO", "DESCRICAO" }, "CODIGO"); fs.ShowDialog(); txtCentroVendas.Text = fs.ParametroID.ToString(); if (txtCentroVendas.Text != "") { SendKeys.SendWait("{TAB}"); } } }
private void txtID_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { fShow fsw = new fShow("CLIENTE", new string[] { "Id", "Nome", "Endereco", "Cidade", "Cpf", "Telefone" }, "Nome"); fsw.ShowDialog(); txtID.Text = fsw.ParametroID.ToString(); if (!string.IsNullOrEmpty(txtID.Text)) { SendKeys.Send("{ENTER}"); } } }
private void txtID_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { e.Handled = true; fShow fns = new fShow("PRODUTOS", new string[] { "ID", "DESCRICAO", "UNIDADE", "LOCAL_ESTOQUE", "ESTOQUE_ATUAL", "PRECO_VENDA", "DESCONTO_VISTA" }, "DESCRICAO", new string[] { "ID", "Descricao", "Unidade", "Local", "Estoque", "R$ Preço", "Desc.Max" }); fns.ShowDialog(); if (!string.IsNullOrEmpty(fns.ParametroID.ToString())) { txtID.Text = fns.ParametroID.ToString(); SendKeys.SendWait("{ENTER}"); } } }
private void txtFornecedor_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { fShow fsw = new fShow("Fornecedor", new string[] { "Id", "Nome", "CNPJ", "Endereco", "Cidade", "Estado", "Telefone" }, "nome"); fsw.ShowDialog(); txtFornecedor.Text = fsw.ParametroID.ToString(); if (!string.IsNullOrEmpty(txtFornecedor.Text)) { SendKeys.SendWait("{ENTER}"); } } }
private void txtEditor_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { e.Handled = true; fShow fsw = new fShow("PRODUTOS", new string[] { "ID", "DESCRICAO", "CODEBAR", "ESTOQUE_ATUAL", "PRECO_VENDA" }, "DESCRICAO"); fsw.ShowDialog(); txtEditor.Text = int.Parse(fsw.ParametroID.ToString()).ToString(); if (!string.IsNullOrEmpty(txtEditor.Text)) { SendKeys.SendWait("{ENTER}"); txtEditor.Visible = false; GrdPro.Focus(); } } }
private void txtID_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { fShow fsw = new fShow("GRUPOS", new string[] { "Id", "DESCRICAO" }, "DESCRICAO"); fsw.ShowDialog(); txtID.Text = fsw.ParametroID.ToString(); if (!string.IsNullOrEmpty(txtID.Text)) { SendKeys.SendWait("{ENTER}"); } } }
private void txtID_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { fShow fsw = new fShow("FORMASPAGAMENTO", new string[] { "Id", "DESCRICAO" }, "DESCRICAO"); fsw.ShowDialog(); if (!string.IsNullOrEmpty(fsw.ParametroID.ToString())) { txtID.Text = int.Parse(fsw.ParametroID.ToString()).ToString(); SendKeys.SendWait("{ENTER}"); } } }
private void txtId_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { fShow fsw = new fShow("TRANSPORTADORES", new string[] { "Id", "Descricao", "Taxa" }, "Descricao"); fsw.ShowDialog(); if (!string.IsNullOrEmpty(fsw.ParametroID.ToString())) { txtID.Text = int.Parse(fsw.ParametroID.ToString()).ToString(); SendKeys.SendWait("{ENTER}"); } } }
private void txtCentrodeCustos_KeyDown(object sender, KeyEventArgs e) { /* * if (e.KeyCode == Keys.F2) * { * //cmbCentroCustos.Visible = true; * //cmbCentroCustos.Focus(); * } */ if (e.KeyCode == Keys.F2) { fShow fsw = new fShow("CENTROCUSTOS", new string[] { "Codigo", "Descricao" }, "Codigo"); fsw.ShowDialog(); txtCentrodeCustos.Text = fsw.ParametroID.ToString(); if (txtCentrodeCustos.Text != "") { SendKeys.SendWait("{TAB}"); } } }