private void btnContinuar_Click(object sender, System.EventArgs e) { Confirmado = true; FormPadre.PrecioTotal = double.Parse(var_total.Text.Substring(1)); FormPadre.elem_CompraDos.ActualizarNumeroAsientos(); FormPadre.CambiarADos(sender, e); }
private void btnContinuar_Click(object sender, System.EventArgs e) { if (CantBoletosSeleccionados == CantBoletosAComprar) { Confirmado = true; FormPadre.AsientosSeleccionados = var_infoAsientos.Text; FormPadre.elem_CompraTres.ActualizarInformacionCompra(); FormPadre.CambiarATres(sender, e); } else { Notificar.notificarFallo("Error al validar sus asientos", "Verifique que ha seleccionado todos sus asientos disponibles"); } }
private void btnConfirmar_Click(object sender, EventArgs e) { if (comboTarjetas.SelectedIndex == 0) { PropiedadesGenerales.Notificar.notificarFallo("Eror al ingresar datos bancarios", "Seleccione una tarjeta primero"); } else if (txtCCV.Text.Length < 3 || !txtCCV.Text.Equals(((Tarjetas)comboTarjetas.SelectedItem).tarjeta_ccv)) { PropiedadesGenerales.Notificar.notificarFallo("Eror al ingresar datos bancarios", "Codigo de seguridad CCV incorrecto"); } else { try { Factura factura = new Factura(); factura.factura_cliente = PropiedadesGenerales.ClienteActual.id; factura.factura_funcion = VistaFunciones.id; factura.factura_metodo_pago = "APP ESCRITORIO"; factura.factura_fecha_emision = DateTime.Now; factura.id = PropiedadesGenerales.FacturaController.Create(factura); List <Boleto> lista = CrearListadoBoletos(factura.id); lista.ForEach(boleto => { PropiedadesGenerales.BoletoController.Create(boleto); }); PropiedadesGenerales.Notificar.notificarCorrecto("Éxito", "Ha completado correctamente su compra, se ha generado una factura asociada a la compra."); FormPadre.Close(); } catch (ControllerException ex) { PropiedadesGenerales.Notificar.notificarError(ex); } } }