示例#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);
     }
 }
示例#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);
         }
     }
 }
示例#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;
         }
     }
 }
示例#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);
                }
            }
        }