private void txt_Importe_TextChanged(object sender, EventArgs e) { ClaseMultiusos cm = new ClaseMultiusos(); if (txt_Importe.Text != "") { double saldo = System.Convert.ToDouble(cm.ExtraerCodigo("saldo", "tbl_cuenta", "id_cuenta", txt_Cuenta.Text)); double importe = System.Convert.ToDouble(txt_Importe.Text); LogicaOperacionesExternas loe = new LogicaOperacionesExternas(); if (saldo <= importe) { verificacionImporte = false; } else { verificacionImporte = true; newSaldo = loe.calculoDeNuevoSaldo(importe.ToString(), saldo.ToString()); } } else if (txt_Importe.Text == "") { txt_codigo.Text = "0"; } verificacionBotones(); }
private void textBox4_TextChanged(object sender, EventArgs e) { int opcion = 1; if (cbo_OpcionesBusqueda.Text == "Codigo:") { opcion = 1; } else if (cbo_OpcionesBusqueda.Text == "Cuenta:") { opcion = 2; } else if (cbo_OpcionesBusqueda.Text == "Beneficiario Externo:") { opcion = 3; } else if (cbo_OpcionesBusqueda.Text == "Agencia:") { opcion = 4; } DataSet ds; LogicaOperacionesExternas cpl = new LogicaOperacionesExternas(); ds = cpl.CargarDataGridOperacionesExternas(textBox4.Text, opcion); dt_OperacionesExternas.DataSource = ds.Tables[0]; }
private void ConsultaDeSolicitudes_Load(object sender, EventArgs e) { DataSet ds; LogicaOperacionesExternas cpl = new LogicaOperacionesExternas(); ds = cpl.CargarDataGridSolicitudesOpeExternas(); dt_SolicitudesConciliacion.DataSource = ds.Tables[0]; }
private void ConsultaOperacionesExternas_Load(object sender, EventArgs e) { int opcion = 1; DataSet ds; LogicaOperacionesExternas cpl = new LogicaOperacionesExternas(); ds = cpl.CargarDataGridOperacionesExternas("", opcion); dt_OperacionesExternas.DataSource = ds.Tables[0]; }
private void btn_GenerarSolicitud_Click(object sender, EventArgs e) { LogicaOperacionesExternas cpl = new LogicaOperacionesExternas(); cpl.validacionInsertarOperacioensExternas("tbl_transferencia_externa", txt_codigo.Text, txt_Fecha.Text, txt_Importe.Text, txt_Nota.Text, txt_Cuenta.Text, txt_BenExterno.Text, txt_Agencia.Text, txt_Empleado.Text, txt_Estado.Text, txt_Status.Text); }
private void textBox4_KeyPress(object sender, KeyPressEventArgs e) { LogicaOperacionesExternas cpl = new LogicaOperacionesExternas(); cpl.validarNumeros(sender, e); }