12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.Mvc;
- using EMIS.CommonLogic.MinorManage.MinorApply;
- using EMIS.Utility.FormValidate;
- using EMIS.ViewModel;
- namespace EMIS.Web.Controllers.MinorManage.MinorApply
- {
- [Authorization]
- public class StudentMinorRegistController : Controller
- {
- //
- // GET: /StudentMinor/
- public IStudentMinorServices studentMinorServices { get; set; }
- [HttpGet]
- public ActionResult List()
- {
- var user = CustomPrincipal.Current;
- var studentMinor = studentMinorServices.GetMinorApplyView(user.UserID);
- return View(studentMinor);
- }
- [HttpPost]
- public ActionResult List(QueryParamsModel pararms)
- {
- return base.Json(studentMinorServices.GetMinorSpecialtyViewByUserIDGrid(CustomPrincipal.Current.UserID, pararms.page, pararms.rows));
- }
- [HttpPost]
- public ActionResult Cancel(Guid? userID, Guid? studentMinorRegistID)
- {
- try
- {
- studentMinorServices.StudentMinorCancel(userID, studentMinorRegistID);
- return base.Json("取消成功。");
- }
- catch (Exception ex)
- {
- return base.Json("取消失败,原因:" + ex.Message);
- }
- }
- }
- }
|