AdultEducationSchedulingReportController.cs 1017 B

12345678910111213141516171819202122232425262728293031
  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. namespace EMIS.Web.Controllers.EducationSchedule
  8. {
  9. [Authorization]
  10. public class AdultEducationSchedulingReportController : Controller
  11. {
  12. //
  13. // GET: /AdultEducationSchedulingReport/
  14. public ISchoolYearServices SchoolYearServices { get; set; }
  15. public ActionResult ClassmajorReport()
  16. {
  17. var schoolYear = SchoolYearServices.GetSchoolYearIsCurrent(true);
  18. ViewBag.SchoolYearID = schoolYear == null ? "-1" : schoolYear.SchoolyearID.ToString();//默认当前学年
  19. return View();
  20. }
  21. public ActionResult TeacherReport()
  22. {
  23. var schoolYear = SchoolYearServices.GetSchoolYearIsCurrent(true);
  24. ViewBag.SchoolYearID = schoolYear == null ? "-1" : schoolYear.SchoolyearID.ToString();//默认当前学年
  25. return View();
  26. }
  27. }
  28. }