using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using EMIS.CommonLogic.Students.HighBaseTable; using EMIS.ViewModel; namespace EMIS.Web.Controllers.StudentManage.HighBaseTable { [Authorization] public class RecruitTerriorialReportController : Controller { public IRecruitTerritorialReportServices RecruitTerritorialReportServices { get; set; } public ActionResult Index() { return View(); } [HttpPost] public ActionResult Generate(int year) { try { RecruitTerritorialReportServices.GenerateReport(DateTime.Today.Year); return Json(new ReturnMessage() { IsSuccess = true, Message = "更新成功。" }); } catch (Exception ex) { return Json(new ReturnMessage() { IsSuccess = false, Message = "更新失败,原因:" + ex.Message }); } } } }