using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using EMIS.ViewModel; using Bowin.Web.Controls.Mvc; using EMIS.CommonLogic.Students; using Bowin.Common.Linq.Entity; using EMIS.Web.Controls; namespace EMIS.Web.Controllers.DifferentDynamic { [Authorization] public abstract class DifferentDynamicController : Controller { public IDifferentDynamicServices DifferentDynamicServices { get; set; } public IStudentsServices StudentsServices { get; set; } /// /// 获取可以进行异动申请的学生。 /// /// /// [HttpPost] public ActionResult AbleDifferentDynamicApplyStudentList(QueryParamsModel pararms) { var configuretView = ConfiguretExtensions.GetConfiguretermsView(pararms); var list = StudentsServices.GetAbleDifferentDynamicApplyStudentList(configuretView, (int)pararms.page, (int)pararms.rows); return Json(list); } /// /// 获取流程步骤详细信息 /// /// /// [HttpPost] public ActionResult ApproveWorkflowList(Guid id) { var result = DifferentDynamicServices.GetApproveHistoryViewList(id).ToList(); var gridResult = new GridResultSet { total = result.Count, rows = result }; return base.Json(gridResult); } /// /// /// /// /// protected static int? CheckIsSelectAll(int? argment) { return argment == DropdownList.SELECT_ALL ? null : argment; } } }