Ejemplo n.º 1
0
        public ActionResult PendingReviewExcel()
        {
            byte[] excelFile = Talon.Excel(PendingReviewReport.GetPendingReviews().OrderByDescending(n => n.Age)).Columns(c =>
            {
                c.Bound(m => m.ArtifactDisplayTitle).Title("STI Number and Rev").Width(100);
                c.Bound(m => m.ReviewerName).Title("Reviewer").Width(150);
                c.Bound(m => m.ReviewerOrg).Title("Reviewer Org").Width(150);
                c.Bound(m => m.ReviewerTypeDisplayName).Title("Review Type").Width(150);
                c.Bound(m => m.ReviewStatusDisplayName).Title("Review Status").Width(100);
                c.Bound(m => m.ReviewStartDateStr).Title("Review Start Date").Width(100);
                c.Bound(m => m.Age).Title("Age").Width(100);
            }).Export();

            return(File(excelFile, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", $"LRS_PendingReviews_{DateTime.Now:MM-dd-yyyy}.xlsx"));
        }
Ejemplo n.º 2
0
 public ActionResult PendingReviews()
 {
     return(View(PendingReviewReport.GetPendingReviews()));
 }