Exemplo n.º 1
0
        public ViewResult GridReports()
        {
            ReportGridViewModel reports = new ReportGridViewModel();
            SqlGenericData      sqlData = new SqlGenericData();

            List <Report> reportsNativo = new List <Report>();
            List <Report> reportsCustom = new List <Report>();


            reportsNativo         = sqlData.RetornaReportsNativo();
            reportsCustom         = sqlData.RetornaReportsCustom(this.contexto.idOrganizacao);
            reports.reportsNativo = reportsNativo;

            if (reportsCustom.Count > 0)
            {
                reports.reportsCustomizado = reportsCustom;
            }


            return(View(reports));
        }