StudentStatisticsController.cs 965 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.Mvc;
  6. using EMIS.CommonLogic.CalendarManage;
  7. using EMIS.CommonLogic.Report;
  8. namespace EMIS.Web.Controllers.StudentManage.StudentStatistics
  9. {
  10. public class StudentStatisticsController : Controller
  11. {
  12. public ISchoolYearServices SchoolYearServices { get; set; }
  13. public INewReportServices NewReportServices { get; set; }
  14. //
  15. // GET: /StudentStatistics/
  16. public ActionResult List()
  17. {
  18. var schoolYear = SchoolYearServices.GetSchoolYearIsCurrent(true);
  19. ViewBag.SchoolYearID = schoolYear.Code;//默认当前学年
  20. return View();
  21. }
  22. public ActionResult StudentStatisticsPDF(int? InSchoolStatusID)
  23. {
  24. var pdf = NewReportServices.StudentStatisticsPDF(InSchoolStatusID);
  25. return File(pdf.ToArray(), "application/pdf");
  26. }
  27. }
  28. }