12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.Mvc;
- using EMIS.ViewModel;
- using EMIS.Web.Controls;
- using EMIS.Utility.FormValidate;
- using EMIS.ViewModel.DQPSystem;
- using EMIS.CommonLogic.DQPSystem;
- using EMIS.Utility;
- using Bowin.Web.Controls.Mvc;
- namespace EMIS.Web.Controllers.DQPSystem
- {
- public partial class SOCController
- {
- [HttpPost]
- public ActionResult TeacherCoursematerialList(QueryParamsModel pararms)
- {
- ConfiguretView configuretView = ConfiguretExtensions.GetConfiguretermsView(pararms);
- var schoolyearID = pararms.getExtraGuid("Schoolyear");
- var userID = CustomPrincipal.Current.UserID;
- return base.Json(SOCServices.GetTeacherCoursematerialViewList(configuretView, schoolyearID.Value, userID, pararms.page, pararms.rows));
- }
- [HttpPost]
- public ActionResult StudentCoursematerialList(QueryParamsModel pararms)
- {
- ConfiguretView configuretView = ConfiguretExtensions.GetConfiguretermsView(pararms);
- var schoolyearID = pararms.getExtraGuid("Schoolyear");
- var userID = CustomPrincipal.Current.UserID;
- return base.Json(SOCServices.GetStudentCoursematerialViewList(configuretView, schoolyearID.Value, userID, pararms.page, pararms.rows));
- }
- public ActionResult StudentList()
- {
- return View();
- }
- public ActionResult StudentSOCDetail(Guid socDetailID)
- {
- var socDetailView = SOCServices.GetSOCDetailViewByID(socDetailID);
- return View(socDetailView);
- }
- [HttpPost]
- public ActionResult StudentList(QueryParamsModel pararms)
- {
- ConfiguretView configuretView = ConfiguretExtensions.GetConfiguretermsView(pararms);
- var schoolyearID = pararms.getExtraGuid("ddlSchoolyear");
- var coursematerialID = pararms.getExtraGuid("cgbCourse");
- var userID = CustomPrincipal.Current.UserID;
- var status = pararms.getExtraInt("DictionarySubmitStatus") == DropdownList.SELECT_ALL ? null : pararms.getExtraInt("DictionarySubmitStatus");
- return base.Json(SOCServices.GetSOCStudentViewGrid(configuretView, schoolyearID, coursematerialID, userID, status, pararms.page, pararms.rows));
- }
- }
- }
|