SOCController_heyw.cs 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.Mvc;
  6. using EMIS.ViewModel;
  7. using EMIS.Web.Controls;
  8. using EMIS.Utility.FormValidate;
  9. using EMIS.ViewModel.DQPSystem;
  10. using EMIS.CommonLogic.DQPSystem;
  11. using EMIS.Utility;
  12. using Bowin.Web.Controls.Mvc;
  13. namespace EMIS.Web.Controllers.DQPSystem
  14. {
  15. public partial class SOCController
  16. {
  17. [HttpPost]
  18. public ActionResult TeacherCoursematerialList(QueryParamsModel pararms)
  19. {
  20. ConfiguretView configuretView = ConfiguretExtensions.GetConfiguretermsView(pararms);
  21. var schoolyearID = pararms.getExtraGuid("Schoolyear");
  22. var userID = CustomPrincipal.Current.UserID;
  23. return base.Json(SOCServices.GetTeacherCoursematerialViewList(configuretView, schoolyearID.Value, userID, pararms.page, pararms.rows));
  24. }
  25. [HttpPost]
  26. public ActionResult StudentCoursematerialList(QueryParamsModel pararms)
  27. {
  28. ConfiguretView configuretView = ConfiguretExtensions.GetConfiguretermsView(pararms);
  29. var schoolyearID = pararms.getExtraGuid("Schoolyear");
  30. var userID = CustomPrincipal.Current.UserID;
  31. return base.Json(SOCServices.GetStudentCoursematerialViewList(configuretView, schoolyearID.Value, userID, pararms.page, pararms.rows));
  32. }
  33. public ActionResult StudentList()
  34. {
  35. return View();
  36. }
  37. public ActionResult StudentSOCDetail(Guid socDetailID)
  38. {
  39. var socDetailView = SOCServices.GetSOCDetailViewByID(socDetailID);
  40. return View(socDetailView);
  41. }
  42. [HttpPost]
  43. public ActionResult StudentList(QueryParamsModel pararms)
  44. {
  45. ConfiguretView configuretView = ConfiguretExtensions.GetConfiguretermsView(pararms);
  46. var schoolyearID = pararms.getExtraGuid("ddlSchoolyear");
  47. var coursematerialID = pararms.getExtraGuid("cgbCourse");
  48. var userID = CustomPrincipal.Current.UserID;
  49. var status = pararms.getExtraInt("DictionarySubmitStatus") == DropdownList.SELECT_ALL ? null : pararms.getExtraInt("DictionarySubmitStatus");
  50. return base.Json(SOCServices.GetSOCStudentViewGrid(configuretView, schoolyearID, coursematerialID, userID, status, pararms.page, pararms.rows));
  51. }
  52. }
  53. }