private void btnSunat_Click(object sender, EventArgs e) { if (ext.rucsunat(txtRUC.Text)) { txtRazonSocial.Text = ext.RazonSocial; txtDireccionLegal.Text = ext.DireccionLegal; } else { ext.limpiar(this.Controls); } }
private void txtRUC_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { if (ext.rucsunat(txtRUC.Text)) { } else { ext.limpiar(this.Controls); } } }
private void txtRUC_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { if (ext.rucsunat(txtRUC.Text)) { txtRazonSocial.Text = ext.RazonSocial; txtDireccion.Text = ext.DireccionLegal; } else { ext.limpiar(this.Controls); cbActivoE.Checked = true; } } }
private void txtRuc_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.F2) { //ruc(txtRUC.Text); if (ext.rucsunat(txtRuc.Text)) { txtRazonSocial.Text = ext.RazonSocial; txtDireccion.Text = ext.DireccionLegal; } else { ext.limpiar(this.Controls); } } }