private void txtCalcular_Click(object sender, EventArgs e) { objVar = new clsVariables(); objControlador = new clsControlador(objVar); try { objVar.Cedula = Convert.ToInt64(txtCedula.Text); objControlador.mtConsultaClientePrestamo(); objVar.ValPrestamo = Convert.ToDouble(txtPrestamo.Text); objVar.NumCuotas = Convert.ToInt16(cmbNumCuotas.Text); objVar.TipoPrestamo = cmbTipoPrestamo.Text; mtTipoPrestamo(); MessageBox.Show("Valor Interes " + objVar.ValInteres, "Advertencia", MessageBoxButtons.OK); lblCalculado.Text = "Calculado"; objVar.FlujoCaja = objControlador.mtFlujocaja(); objControlador.mtEvaluaCredito(); mtAprobadoNegado(); } catch { MessageBox.Show("No se salte el primer paso: Ingrese la cedula y confirme la informacion del cliente ", "Error", MessageBoxButtons.OK); } }
private void btnBorrar_Click(object sender, EventArgs e) { objVar = new clsVariables(); objControl = new clsControlador(objVar); objVar.Cedula = Convert.ToInt64(txtCedula.Text); try { objControl.mtBorrarCliente(); MessageBox.Show("Cliente Borrado", "Advertencia", MessageBoxButtons.OK); } catch { MessageBox.Show("Error al borrar cliente o ya a sido borrado", "Advertencia", MessageBoxButtons.OK); } }
private void txtBuscar_Click(object sender, EventArgs e) { objVar = new clsVariables(); objControl = new clsControlador(objVar); objVar.Cedula = Convert.ToInt64(txtCedula.Text); objControl.mtConsultarProducto(); cmbTipoCredito.Text = objVar.TipoProducto; lblValDeuda.Text = objVar.Deuda.ToString(); lblNumCuenta.Text = objVar.NumeroCuenta.ToString(); dgvProductos.DataSource = objVar.dttProductos; }
private void btnBuscar_Click(object sender, EventArgs e) { objVar = new clsVariables(); objControlador = new clsControlador(objVar); objVar.Cedula = Convert.ToInt64(txtCedula.Text); try { objControlador.mtConsultaClientePrestamo(); dgvSolicitudCredito.DataSource = objVar.dttProductos; } catch { MessageBox.Show("El cliente no existe"); } }
private void btnBuscar_Click(object sender, EventArgs e) { objVar = new clsVariables(); objControl = new clsControlador(objVar); try { objVar.Cedula = Convert.ToInt64(txtCedula.Text); objControl.mtBuscarCliente(); txtNombre.Text = objVar.Nombre; txtDireccion.Text = objVar.Direccion; txtTelefono.Text = objVar.Telefono; } catch { MessageBox.Show("Cliente no encontrado", "Error", MessageBoxButtons.OK); } }
private void btnModificar_Click(object sender, EventArgs e) { objVar = new clsVariables(); objControl = new clsControlador(objVar); objVar.Cedula = Convert.ToInt64(txtCedula.Text); objVar.Nombre = txtNombre.Text; objVar.Telefono = txtTelefono.Text; objVar.Direccion = txtDireccion.Text; try { objControl.mtModificarCliente(); MessageBox.Show("Cliente Modificado con exito", "Advertencia", MessageBoxButtons.OK); } catch { MessageBox.Show("Error al Modificar cliente", "Advertencia", MessageBoxButtons.OK); } }
private void btnIngresar_Click(object sender, EventArgs e) { objVar = new clsVariables(); objControlador = new clsControlador(objVar); try { objVar.Usuario = txtUsuario.Text; objVar.Contraseña = txtContraseña.Text; objControlador.mtVerificarUsuario(); MessageBox.Show("Bienvenido Ascesor " + objVar.Usuario, "Notificacion", MessageBoxButtons.OK); this.Visible = false; MenuAsesor frmMenu = new MenuAsesor(); frmMenu.Show(); } catch { MessageBox.Show("Usuario o contraseña invalido", "Error", MessageBoxButtons.OK); } }
private void button1_Click(object sender, EventArgs e) { objVar = new clsVariables(); objControl = new clsControlador(objVar); try { objVar.Cedula = Convert.ToInt64(txtCedula.Text); objVar.Nombre = txtNombre.Text; objVar.Ingresos = Convert.ToDouble(txtIngresos.Text); objVar.Egresos = Convert.ToDouble(txtEgresos.Text); objVar.Deudas = Convert.ToInt16(txtDeudas.Text); objVar.Score = Convert.ToInt16(txtScore.Text); objControl.mtIngresarInfo(); MessageBox.Show("Ingresado con exito", "Advertencia", MessageBoxButtons.OK); } catch { MessageBox.Show("El Usuario Ingresado no es cliente", "Advertencia", MessageBoxButtons.OK); } }
private void btnIngresar_Click(object sender, EventArgs e) { objVar = new clsVariables(); objControl = new clsControlador(objVar); try { objVar.Cedula = Convert.ToInt64(txtCedula.Text); objVar.TipoCredito = cmbTipoCredito.Text; objVar.TipoProducto = cmbTipoProducto.Text; objVar.Deuda = Convert.ToDouble(lblValDeuda.Text); objControl.mtIngresarProductos(); MessageBox.Show("Producto Ingresado", "Advertencia", MessageBoxButtons.OK); } catch { MessageBox.Show("La cedula ingresada no coincide con ningun cliente o ya tiene un producto activo", "Error", MessageBoxButtons.OK); } }
private void btnBuscar_Click_1(object sender, EventArgs e) { objVar = new clsVariables(); objControl = new clsControlador(objVar); try { objVar.Cedula = Convert.ToInt64(txtCedula.Text); objControl.mtInfoFinanciera(); txtIngresos.Text = objVar.Ingresos.ToString(); txtEgresos.Text = objVar.Egresos.ToString(); txtDeudas.Text = objVar.Deudas.ToString(); txtScore.Text = objVar.Score.ToString(); txtNombre.Text = objVar.Nombre; } catch { MessageBox.Show("Cedula no encontrada", "Advertencia", MessageBoxButtons.OK); } }