public ActionResult GerarLinksRelatorio(int codCliente)
        {
            try
            {
                using (var clienteBLL = new ClienteSapiensBLL())
                {
                    string[] links = new string[3];

                    var p = Session["Parecer"] as ParecerSolicitacao;

                    var codGrupoEconomico = p.DadosPrincipaisAprovacao.Last().CodGrupoEmpresa;

                    var codGre = string.IsNullOrEmpty(codGrupoEconomico) ? "0" : codGrupoEconomico;

                    links[0] = clienteBLL.GerarLinkRelatorio025(codCliente.ToString(), codGre, new DateTime(2000, 1, 1));
                    links[1] = clienteBLL.GerarLink104Vencer(codCliente.ToString(), codGre, new DateTime(2000, 1, 1));
                    links[2] = clienteBLL.GerarLinkRelatorio104Vencido(codCliente.ToString(), codGre, new DateTime(2000, 1, 1));

                    if (links[0].IndexOf("Erro") != -1 || links[1].IndexOf("Erro") != -1 || links[2].IndexOf("Erro") != -1)
                    {
                        throw new Exception(links[0]);
                    }
                    else
                    {
                        return Json(links, JsonRequestBehavior.DenyGet);
                    }
                }
            }
            catch (Exception ex)
            {
                return Json(new { erro = ex.Message }, JsonRequestBehavior.DenyGet);
            }
        }