/// <summary> /// 已选课程显示 视图 /// </summary> /// <returns></returns> public ActionResult StudentFinishedChooseCourse() { List <StudentFinishedChooseCourse_V> view = new OperationStudentData().GetStudentFinishedChooseCourse_View(SessionInfo_Num); return(View(view)); }
/// <summary> /// 开始选课 视图 /// </summary> /// <returns></returns> public ActionResult StudentBeginNewCourse() { List <StudentBeginNewCourse_V> view = new OperationStudentData().GetStudentBeginNewCourse_View(); return(View(view)); }
public ActionResult StudentBeginNewCourse_jsonGet(int currentPage) { List <StudentBeginNewCourse_V> view = new OperationStudentData().GetStudentBeginNewCourse_View(); PagingDeal.GetPageInfo(view.Count, currentPage); //设置分页总数 ViewBag.totalPage = PagingDeal.PageInfo[0]; return(Json(view.Skip(PagingDeal.Count * (currentPage - 1)).Take(PagingDeal.PageInfo[1]), JsonRequestBehavior.AllowGet)); }
/// <summary> /// 开始选课 视图 /// </summary> /// <returns></returns> public ActionResult StudentBeginNewCourse_Add(int idNewC) { int sign = new OperationStudentData(). SetStudentStudyCourse_table(SessionInfo_ID, idNewC); if (sign == 1) { return(Json(new { msg = "Successd" }, JsonRequestBehavior.AllowGet)); } else { return(Json(new { msg = "Failed" }, JsonRequestBehavior.AllowGet)); } }
public ActionResult StudentBeginNewCourse_jsonSet_add(int IDNewCourse) { if (IDNewCourse != -1) { if (0 == new OperationStudentData().SetStudentStudyCourse_table(SessionInfo_ID, IDNewCourse)) { //代表已经选过此课程 这儿的IDNewCourse只是借用名称 传消息 return(Json(new { IDNewCourse = 0 }, JsonRequestBehavior.AllowGet)); } List <StudentBeginNewCourse_V> view = new OperationStudentData().GetStudentBeginNewCourse_View(IDNewCourse); return(Json(view, JsonRequestBehavior.AllowGet)); } else {// -1 获取所有已选课程信息 List <StudentBeginNewCourse_V> view = new OperationStudentData().GetStudentBeginNewCourse_View(); return(Json(view, JsonRequestBehavior.AllowGet)); } }
/// <summary> /// 学生信息 视图 /// </summary> /// <returns></returns> public ActionResult StudentInfo() { var student = new OperationStudentData().GetStudent_ViewInfo(SessionInfo_ID); return(View(student)); }