Пример #1
0
 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}");
         }
     }
 }
Пример #2
0
 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}");
         }
     }
 }
Пример #3
0
 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}");
         }
     }
 }
Пример #4
0
 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}");
         }
     }
 }
Пример #5
0
 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}");
         }
     }
 }
Пример #6
0
 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}");
         }
     }
 }
Пример #7
0
 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}");
         }
     }
 }
Пример #8
0
 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}");
         }
     }
 }
Пример #9
0
 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}");
         }
     }
 }
Пример #10
0
 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}");
         }
     }
 }
Пример #11
0
 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}");
         }
     }
 }
Пример #12
0
        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}");
                }
            }
        }
Пример #13
0
 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}");
         }
     }
 }
Пример #14
0
        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}");
                }
            }
        }
Пример #15
0
 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();
         }
     }
 }
Пример #16
0
        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}");
                }
            }
        }
Пример #17
0
        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}");
                }
            }
        }
Пример #18
0
        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}");
                }
            }
        }
Пример #19
0
        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}");
                }
            }
        }