示例#1
0
        public string Pesquisar(string q, string e, string g, string a, string h)
        {
            if (!string.IsNullOrEmpty(q))
            {
                try
                {
                    return(Pesquisa.Pesquisar(Server.UrlDecode(q), Server.UrlDecode(e), Server.UrlDecode(g), Server.UrlDecode(a), Server.UrlDecode(h)));
                }
                catch { }
            }

            return(string.Empty);
        }
示例#2
0
    public void Pequisar()
    {
        if (pesquisa.PodePesquisar(perfilSelecionado.perfil))
        {
            perfilSelecionado.perfil.verba          -= pesquisa.custoDinheiro;
            perfilSelecionado.perfil.pontosPesquisa -= pesquisa.custoPontosPesquisa;

            // TODO(andre:2018-07-02): Fazer com que a pesquisa consuma tempo de algum funcionário
            // Primeiro é necessario fazer com que seja possivel selecionar um funcionário
            pesquisa.Pesquisar();
            eventoPesquisar.Invoke();
        }
    }
示例#3
0
        public ActionResult Resultados(string q, string e, string g, string a, string h)
        {
            if (this.BaseUsuario != null)
            {
                this.Usuario    = new UsuarioVM(this.BaseUsuario);
                ViewBag.Usuario = this.Usuario;
            }

            if (!string.IsNullOrEmpty(q))
            {
                try
                {
                    ViewBag.JSON = Pesquisa.Pesquisar(Server.UrlDecode(q), Server.UrlDecode(e), Server.UrlDecode(g), Server.UrlDecode(a), Server.UrlDecode(h));
                    return(View());
                }
                catch { }
            }

            return(Redirect("/inicio/"));
        }