123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Web;
- using System.Web.Mvc;
- using EMIS.Web.Controls;
- using EMIS.ViewModel;
- using EMIS.ViewModel.EvaluationManage.EvaluationSetting;
- using EMIS.CommonLogic.EvaluationManage.EvaluationSetting;
- namespace EMIS.Web.Controllers.EvaluationManage.EvaluationSetting
- {
- [Authorization]
- public class EvaluationControlController : Controller
- {
- public IEvaluationControlServices EvaluationControlServices { get; set; }
- /// <summary>
- /// 评价控制页面
- /// </summary>
- /// <returns></returns>
- public ActionResult List()
- {
- var evaluationControlView = new EvaluationControlView();
- evaluationControlView = EvaluationControlServices.GetEvaluationControlView();
- return View(evaluationControlView);
- }
- /// <summary>
- /// 评价控制保存
- /// </summary>
- /// <param name="evaluationControlView"></param>
- /// <returns></returns>
- [HttpPost]
- public ActionResult List(EvaluationControlView evaluationControlView)
- {
- try
- {
- EvaluationControlServices.EvaluationControlSave(evaluationControlView);
- return Json(new ReturnMessage { IsSuccess = true, Message = "保存成功。" });
- }
- catch (Exception ex)
- {
- return Json(new ReturnMessage { IsSuccess = false, Message = "保存失败,原因:" + ex.Message });
- }
- }
- }
- }
|