123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.Mvc;
- using EMIS.CommonLogic.RetakeManage;
- using EMIS.ViewModel.RetakeManage;
- using Bowin.Web.Controls.Mvc;
- using EMIS.ViewModel;
- using Bowin.Common.Linq.Entity;
- namespace EMIS.Web.Controllers.RetakeManage
- {
- [Authorization]
- public class RetakeParameterController : Controller
- {
- public IRetakeParameterServices RetakeParameterServices { get; set; }
- /// <summary>
- /// 重修参数设定页面
- /// </summary>
- /// <returns></returns>
- public ActionResult Index()
- {
- var retakeParameterView = RetakeParameterServices.GetRetakeParameterView();
- return View(retakeParameterView);
- }
- /// <summary>
- /// 重修参数设定设置
- /// </summary>
- /// <param name="retakeParameterView"></param>
- /// <returns></returns>
- [HttpPost]
- public ActionResult Index(RetakeParameterView retakeParameterView)
- {
- var retakeExamsCategoryViewList = DataGrid.GetTableData<RetakeExamsCategoryView>("dgRetakeExamsCategoryList");
- try
- {
- RetakeParameterServices.SaveParameterView(retakeParameterView, retakeExamsCategoryViewList);
- return Json(new ReturnMessage()
- {
- IsSuccess = true,
- Message = "设置成功。"
- });
- }
- catch (Exception ex)
- {
- return Json(new ReturnMessage()
- {
- IsSuccess = false,
- Message = "设置失败,原因:" + ex.Message
- });
- }
- }
- /// <summary>
- /// 重修预查考试性质列表查询
- /// </summary>
- /// <param name="pararms"></param>
- /// <returns></returns>
- [HttpPost]
- public ActionResult RetakeExamsCategoryList(QueryParamsModel pararms)
- {
- var retakeExamsCategoryList = RetakeParameterServices.GetExamsCategoryViewList();
- return Json(new GridResultSet<RetakeExamsCategoryView> { total = retakeExamsCategoryList.Count, rows = retakeExamsCategoryList });
- }
- }
- }
|