private void button1_Click(object sender, EventArgs e) { FORM102ATableAdapters.contribuyenteTableAdapter contribuyente = new FORM102ATableAdapters.contribuyenteTableAdapter(); contribuyente.ActualizarSaldoContr(impuesto, Convert.ToInt32(LblIdContr.Text)); Formulario106 formulario106 = new Formulario106(); formulario106.Show(); this.Hide(); }
public void cargarDatos() { CargarIDContr(); FORM102ATableAdapters.contribuyenteTableAdapter contribuyente = new FORM102ATableAdapters.contribuyenteTableAdapter(); FORM102A.contribuyenteDataTable table = contribuyente.GetDatosContr(Convert.ToInt32(LblIdContr.Text)); FORM102A.contribuyenteRow contribuyenteRow = (FORM102A.contribuyenteRow)table.Rows[0]; txtRazonS.Text = contribuyenteRow.razonSocial_contr.ToString(); txtRUC.Text = contribuyenteRow.ruc_contr.ToString(); txtImp.Text = contribuyenteRow.saldo_contr.ToString(); txtCodImp.Text = "FA3H45"; }
public void InsertarContribuyente() { FORM102ATableAdapters.contribuyenteTableAdapter ingresos = new FORM102ATableAdapters.contribuyenteTableAdapter(); try { if (ExistContr()) { MessageBox.Show("El contribuyente ya existe"); } else { ingresos.InserContribuyente(txtRUC.Text.Trim(), txtRSocial.Text.Trim()); MessageBox.Show("Contribuyente guardado"); } } catch (Exception error) { MessageBox.Show(error.Message); } }