12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- 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; }
- /// <summary>
- /// 获取可以进行异动申请的学生。
- /// </summary>
- /// <param name="pararms"></param>
- /// <returns></returns>
- [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);
- }
- /// <summary>
- /// 获取流程步骤详细信息
- /// </summary>
- /// <param name="pararms"></param>
- /// <returns></returns>
- [HttpPost]
- public ActionResult ApproveWorkflowList(Guid id)
- {
- var result = DifferentDynamicServices.GetApproveHistoryViewList(id).ToList();
- var gridResult = new GridResultSet<ViewModel.SystemView.WorkflowApproveHistoryView>
- {
- total = result.Count,
- rows = result
- };
- return base.Json(gridResult);
- }
- /// <summary>
- ///
- /// </summary>
- /// <param name="argment"></param>
- /// <returns></returns>
- protected static int? CheckIsSelectAll(int? argment)
- {
- return argment == DropdownList.SELECT_ALL ? null : argment;
- }
- }
- }
|