private void txtID_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { fShow fsw = new fShow("FORNECEDORES", 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 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 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 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 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 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 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", "Descrição", "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 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 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", new string[] { "ID", "Cliente", "Data", "Total Bruto", "R$ Líquido" }); fsw.ShowDialog(); if (!string.IsNullOrEmpty(fsw.ParametroID.ToString())) { txtOrcamento.Text = fsw.ParametroID.ToString(); SendKeys.SendWait("{ENTER}"); } } }
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("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 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 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(); } } }