Ejemplo n.º 1
0
        private void receberPedido()
        {
            if (pedidoPagamento == null)
            {
                pedidoPagamento            = new formPedidoPag();
                pedidoPagamento.PedidoID   = (int)dgvPedido.CurrentRow.Cells[0].Value;
                pedidoPagamento.ValorTotal = (decimal)dgvPedido.CurrentRow.Cells[2].Value;
                pedidoPagamento.Viagem     = (bool)dgvPedido.CurrentRow.Cells[5].Value;
                pedidoPagamento.TaxaS      = (bool)dgvPedido.CurrentRow.Cells[7].Value;
                pedidoPagamento.VlTaxaS    = (decimal)dgvPedido.CurrentRow.Cells[8].Value;
                pedidoPagamento.SubTotal   = (decimal)dgvPedido.CurrentRow.Cells[9].Value;

                pedidoPagamento.MdiParent = ActiveForm;
                pedidoPagamento.Show();
                pedidoPagamento.FormClosed += fecharPedidoPagamento;
            }
        }
Ejemplo n.º 2
0
        private void receberPedido()
        {
            if (pedidoPag == null)
            {
                pedidoPag            = new formPedidoPag();
                pedidoPag.PedidoID   = PedidoID;
                pedidoPag.SubTotal   = Convert.ToDecimal(tbSubtotal.Text);
                pedidoPag.ValorTotal = Convert.ToDecimal(tbTotal.Text);
                pedidoPag.Viagem     = cbViagem.Checked;
                pedidoPag.TaxaS      = cbTaxa.Checked;
                pedidoPag.VlTaxaS    = Convert.ToDecimal(tbTaxa.Text);
                Visible = false;

                pedidoPag.MdiParent = ActiveForm;
                pedidoPag.Show();
                pedidoPag.FormClosed += fecharPedidoPag;
            }
        }
Ejemplo n.º 3
0
 private void fecharPedidoPagamento(object sender, EventArgs e)
 {
     pedidoPagamento = null;
     botoes_Alterar(sender, e);
 }
Ejemplo n.º 4
0
 private void fecharPedidoPag(object sender, FormClosedEventArgs e)
 {
     pedidoPag = null;
     Visible   = true;
     Close();
 }