Example #1
0
        private void radioGeral_CheckedChanged(object sender, EventArgs e)
        {
            panelFornecedor.Visible = false;
            panelData.Visible       = false;

            //limpar
            GridCompra2.DataSource  = null;
            GridItens.DataSource    = null;
            GridParcela2.DataSource = null;

            if (radioGeral.Checked == true)
            {
                DALConexao conexao = new DALConexao(DadosDaConexao.StringDeConexao);
                BLLCompra  compra  = new BLLCompra(conexao);
                GridCompra2.DataSource = compra.LocalizarPorNome("");
                this.AtaulizaTabelaCompraGeral();
            }
            if (radioDataCompra.Checked == true)
            {
                panelData.Visible = true;
            }
            if (radioNome.Checked == true)
            {
                panelFornecedor.Visible = true;
            }
            if (radioParcelasAbertas.Checked == true)
            {
                DALConexao conexao = new DALConexao(DadosDaConexao.StringDeConexao);
                BLLCompra  compra  = new BLLCompra(conexao);
                GridCompra2.DataSource = compra.LocalizarPorParcela();
                this.AtaulizaTabelaCompraGeral();
            }
        }