1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- 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 StudentChangeReportController : Controller
- {
- public IStudentChangeServices StudentChangeServices { get; set; }
- public ActionResult Index()
- {
- return View();
- }
- [HttpPost]
- public ActionResult Generate(int year)
- {
- try
- {
- StudentChangeServices.GenerateReport(DateTime.Today.Year);
- return Json(new ReturnMessage()
- {
- IsSuccess = true,
- Message = "更新成功。"
- });
- }
- catch (Exception ex)
- {
- return Json(new ReturnMessage()
- {
- IsSuccess = false,
- Message = "更新失败,原因:" + ex.Message
- });
- }
- }
- }
- }
|