Exemplo n.º 1
0
 private void txtCUIT_Leave(object sender, EventArgs e)
 {
     if (Tipo == 'P')
     {
         if (negocioProv.dniCuitDuplicado(txtCUIT.Text, 'C') && txtCUIT.Text != "")
         {
             MessageBox.Show("El CUIL pertenece a otro proveedor", "Cuidado!");
             txtCUIT.Focus();
             txtCUIT.SelectAll();
         }
     }
     else
     {
         if (negocioCli.dniCuitDuplicado(txtCUIT.Text, 'C') && txtCUIT.Text != "")
         {
             MessageBox.Show("El CUIL pertenece a otro cliente", "Cuidado!");
             txtCUIT.Focus();
             txtCUIT.SelectAll();
         }
     }
 }