Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
 private void txtRUC_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.F2)
     {
         if (ext.rucsunat(txtRUC.Text))
         {
         }
         else
         {
             ext.limpiar(this.Controls);
         }
     }
 }
Beispiel #3
0
 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;
         }
     }
 }
Beispiel #4
0
        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);
                }
            }
        }