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; }
///
/// 评价控制页面
///
///
public ActionResult List()
{
var evaluationControlView = new EvaluationControlView();
evaluationControlView = EvaluationControlServices.GetEvaluationControlView();
return View(evaluationControlView);
}
///
/// 评价控制保存
///
///
///
[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 });
}
}
}
}