Exemplo n.º 1
0
 private void MostrarNombreEmpleado(string _ClaveEmpleado)
 {
     try
     {
         if (!string.IsNullOrEmpty(_ClaveEmpleado))
         {
             Usuario_Negocio Neg     = new Usuario_Negocio();
             string          _Nombre = Neg.ObtenerNombreEmpleadoXClave(Comun.Conexion, Comun.IDSucursalCaja, _ClaveEmpleado);
             txtNombreEmpleado.Text = _Nombre;
             if (string.IsNullOrEmpty(_Nombre))
             {
                 MessageBox.Show("Clave no encontrada.", Comun.Sistema, MessageBoxButtons.OK, MessageBoxIcon.Information);
                 txtClaveVendedor.Text = string.Empty;
                 txtClaveVendedor.Focus();
             }
         }
         else
         {
             txtNombreEmpleado.Text = string.Empty;
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }