Ejemplo n.º 1
0
        private void tipoDePagamentoToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmConsultaTipoPagamento f = new frmConsultaTipoPagamento();

            f.ShowDialog();
            f.Dispose();
        }
Ejemplo n.º 2
0
        private void mnuConsultaTipoPagamento_Click(object sender, EventArgs e)
        {
            frmConsultaTipoPagamento f = new frmConsultaTipoPagamento();

            f.ShowDialog();
            f.Dispose();
        }
 private void btnLocalizar_Click(object sender, EventArgs e)
 {
     if (codigo != 0)
     {
         DALConexao          cx     = new DALConexao(DadosDaConexao.StringDeConexão);
         BLLTipoPagamento    bll    = new BLLTipoPagamento(cx);
         ModeloTipoPagamento modelo = bll.CarregaModeloTipoPagamento(codigo);
         PreencheCampos(modelo);
     }
     else
     {
         frmConsultaTipoPagamento f = new frmConsultaTipoPagamento();
         Close();
         f.ShowDialog();
         f.Dispose();
     }
 }
Ejemplo n.º 4
0
        private void btLocalizar_Click(object sender, EventArgs e)
        {
            frmConsultaTipoPagamento f = new frmConsultaTipoPagamento();

            f.ShowDialog();
            if (f.codigo != 0)
            {
                DALConexao          cx     = new DALConexao(DadosDaConexao.StringDeConexao);
                BLLTipoPagamento    bll    = new BLLTipoPagamento(cx);
                ModeloTipoPagamento modelo = bll.CarregaModeloTipoPagamento(f.codigo);
                txtCodigo.Text = modelo.TpaCod.ToString();
                txtNome.Text   = modelo.TpaNome;
                alteraBotoes(3);
            }
            else
            {
                this.LimpaTela();
                this.alteraBotoes(1);
            }
            f.Dispose();
        }
Ejemplo n.º 5
0
        private void btLocalizar_Click(object sender, EventArgs e)
        {
            frmConsultaTipoPagamento f = new frmConsultaTipoPagamento();
            f.ShowDialog();
            f.Dispose();

            if (f.codigo != 0)
            {
                DALConexao cx = new DALConexao(DadosConexao.StringDeConexao);
                BLLTipoPagamento bll = new BLLTipoPagamento(cx);
                ModeloTipoPagamento modelo = bll.CarregaModeloTipoPagamento(f.codigo);
                txtCodigo.Text = modelo.TpaCod.ToString();
                txtNome.Text = modelo.TpaNome;
                alteraBotoes(3);
            }
            else
            {
                this.LimpaTela();
                this.alteraBotoes(1);
            }
            f.Dispose();
        }
Ejemplo n.º 6
0
        private void btLocalizar_Click(object sender, EventArgs e)
        {
            frmConsultaTipoPagamento f = new frmConsultaTipoPagamento();
            // obj para gravar os dados no banco
            DALConexao       cx  = new DALConexao(DadosDaConexao.StringDeConexao);
            BLLTipoPagamento bll = new BLLTipoPagamento(cx);

            //exibe o frmConsultaCategoria para seleção da alteração
            f.ShowDialog();
            //verifica se foi armazenado uma categoria no frmConsultaCategoria
            if (f.codigo != 0)
            {
                ModeloTipoDePagamento modelo = bll.CarregarModeloTipoPagamento(f.codigo);
                txtCod.Text  = modelo.TpaCod.ToString();
                txtNome.Text = modelo.TpaNome;
                alteraBotoes(3);
            }
            else
            {
                this.limpaTela();
                this.alteraBotoes(1);
            }
            f.Dispose();
        }
        private void tipoDePagamentoToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmConsultaTipoPagamento f = new frmConsultaTipoPagamento();

            CheckMdiChildren(f);
        }
Ejemplo n.º 8
0
 private void tipoDePagamentoToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     frmConsultaTipoPagamento f = new frmConsultaTipoPagamento();
     f.ShowDialog();
     f.Dispose();
 }