Exemplo n.º 1
0
 public void InciarFormulario()
 {
     try
     {
         EM_CatColaborador Datos = new EM_CatColaborador {
             Conexion = Comun.Conexion, IDUsuario = User.Identity.Name
         };
         EM_CatalagosNegocio GN = new EM_CatalagosNegocio();
         GN.ObtenerTipoUserLogeado(Datos);
         if (Datos.IDTipoUsu == 1 || Datos.IDTipoUsu == 3)
         {
             this.IDTipoUsuario = Datos.IDTipoUsu;
             this.CargarComboColaboradores();
         }
         else
         {
             this.hf2.Value = User.Identity.Name;
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }