Пример #1
0
        void BtnOrcamentosClick(object sender, EventArgs e)
        {
            string[] args = new string[5];
            args[0] = Globais.sUsuario;
            args[1] = Globais.sFilial;
            args[2] = Globais.bAdministrador ? "S" : "N";
            args[3] = "-clienteacao";
            int    i        = dgvAcoes.CurrentRow.Index;
            string seq      = dgvAcoes.Rows[i].Cells["Cod"].Value.ToString();
            string clientes = "'" + cliente.Trim() + "'" + AcaoDAO.ClientesAcaoIn(seq);

            args[4] = clientes;
            orcamento.MainForm frm = new orcamento.MainForm(args);
            frm.ShowDialog();
        }
Пример #2
0
        void DgvOrcamentosMouseDoubleClick(object sender, MouseEventArgs e)
        {
            DataGridView.HitTestInfo hti = dgvOrcamentos.HitTest(e.X, e.Y);
            if (hti.RowIndex == -1)
            {
                return;
            }
            int    i        = hti.RowIndex;
            string situacao = dgvOrcamentos.Rows[i].Cells["Situação"].Value.ToString();
            string xx       = situacao;
            string yy       = vendedor;

            string[] args = new string[2];
            args[0] = vendedor;
            args[1] = situacao;
            orcamento.MainForm frm = new orcamento.MainForm(args);
            frm.ShowDialog();
        }