123456789101112131415161718192021222324252627282930313233 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.Mvc;
- using EMIS.CommonLogic.TerminatePrinter;
- using EMIS.ViewModel;
- namespace EMIS.Web.ApiControllers.TerminatePrinter
- {
- public class PrintServicesController : Controller
- {
- public IStudentPrintTimesServices StudentPrintTimesServices { get; set; }
- public ActionResult GetPrintTimesByUserID(Guid userID)
- {
- return Json(StudentPrintTimesServices.GetStudentPrintMessageView(userID));
- }
- public ActionResult Count(Guid userID)
- {
- try
- {
- StudentPrintTimesServices.Count(userID);
- return base.Json(new ReturnMessage { IsSuccess = true, Message = "修改成功。" });
- }
- catch (Exception ex)
- {
- return base.Json(new ReturnMessage { IsSuccess = false, Message = "修改失败,原因:" + ex.Message + "。" });
- }
- }
- }
- }
|