ScoreServicesController.cs 1.0 KB

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.ScoreManage;
  7. using EMIS.CommonLogic.Students;
  8. namespace EMIS.Web.ServiceControllers.ScoreManage
  9. {
  10. public class ScoreServicesController : Controller
  11. {
  12. public ICourseGradeServices CourseGradeServices { get; set; }
  13. public IScoreServices ScoreServices { get; set; }
  14. public ActionResult GetScoreTotalView(Guid userID)
  15. {
  16. return Json(CourseGradeServices.GetStudentPersonalScoreGT(userID), JsonRequestBehavior.AllowGet);
  17. }
  18. public ActionResult GetScoreDetailView(Guid userID)
  19. {
  20. return Json(CourseGradeServices.GetStudentCourseGrade(userID), JsonRequestBehavior.AllowGet);
  21. }
  22. public ActionResult GetSubmitedScoreList(Guid coursematerialID, int? startTermID, Guid userID)
  23. {
  24. return Json(CourseGradeServices.GetSubmitedScoreList(coursematerialID, startTermID, userID), JsonRequestBehavior.AllowGet);
  25. }
  26. }
  27. }