StudentLevelScoreController.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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.ViewModel;
  8. using EMIS.Web.Controls;
  9. using EMIS.CommonLogic.ExaminationApply;
  10. using Bowin.Web.Controls.Mvc;
  11. using EMIS.CommonLogic.ScoreManage;
  12. using EMIS.CommonLogic.Students;
  13. namespace EMIS.Web.Controllers.StudentSystem.Examine
  14. {
  15. [Authorization]
  16. public class StudentLevelScoreController : Controller
  17. {
  18. public ILevelScoreServices levelScoreServices { get; set; }
  19. public Lazy<IStudentRecordServices> StudentRecordService { get; set; }
  20. //
  21. // GET: /LevelScore/
  22. public ActionResult List()
  23. {
  24. return View();
  25. }
  26. [HttpPost]
  27. public ActionResult List(QueryParamsModel pararms)
  28. {
  29. ConfiguretView configuretView = ConfiguretExtensions.GetConfiguretermsView(pararms);
  30. var user = HttpContext.User as EMIS.Utility.FormValidate.CustomPrincipal;
  31. var schoolyearID = pararms.getExtraGuid("SchoolyearDropdown");
  32. var examinationSubjectID = pararms.getExtraGuid("ExaminationSubjectDropdown");
  33. return Json(levelScoreServices.GetStudentLevelScoreGrid(configuretView, schoolyearID, examinationSubjectID,user.UserID, (int)pararms.page, (int)pararms.rows));
  34. }
  35. }
  36. }