using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using EMIS.CommonLogic.CalendarManage; using EMIS.CommonLogic.Report; namespace EMIS.Web.Controllers.StudentManage.StudentStatistics { public class StudentStatisticsController : Controller { public ISchoolYearServices SchoolYearServices { get; set; } public INewReportServices NewReportServices { get; set; } // // GET: /StudentStatistics/ public ActionResult List() { var schoolYear = SchoolYearServices.GetSchoolYearIsCurrent(true); ViewBag.SchoolYearID = schoolYear.Code;//默认当前学年 return View(); } public ActionResult StudentStatisticsPDF(int? InSchoolStatusID) { var pdf = NewReportServices.StudentStatisticsPDF(InSchoolStatusID); return File(pdf.ToArray(), "application/pdf"); } } }