DifferentDynamicController.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.Mvc;
  6. using EMIS.ViewModel;
  7. using Bowin.Web.Controls.Mvc;
  8. using EMIS.CommonLogic.Students;
  9. using Bowin.Common.Linq.Entity;
  10. using EMIS.Web.Controls;
  11. namespace EMIS.Web.Controllers.DifferentDynamic
  12. {
  13. [Authorization]
  14. public abstract class DifferentDynamicController : Controller
  15. {
  16. public IDifferentDynamicServices DifferentDynamicServices { get; set; }
  17. public IStudentsServices StudentsServices { get; set; }
  18. /// <summary>
  19. /// 获取可以进行异动申请的学生。
  20. /// </summary>
  21. /// <param name="pararms"></param>
  22. /// <returns></returns>
  23. [HttpPost]
  24. public ActionResult AbleDifferentDynamicApplyStudentList(QueryParamsModel pararms)
  25. {
  26. var configuretView = ConfiguretExtensions.GetConfiguretermsView(pararms);
  27. var list = StudentsServices.GetAbleDifferentDynamicApplyStudentList(configuretView, (int)pararms.page, (int)pararms.rows);
  28. return Json(list);
  29. }
  30. /// <summary>
  31. /// 获取流程步骤详细信息
  32. /// </summary>
  33. /// <param name="pararms"></param>
  34. /// <returns></returns>
  35. [HttpPost]
  36. public ActionResult ApproveWorkflowList(Guid id)
  37. {
  38. var result = DifferentDynamicServices.GetApproveHistoryViewList(id).ToList();
  39. var gridResult = new GridResultSet<ViewModel.SystemView.WorkflowApproveHistoryView>
  40. {
  41. total = result.Count,
  42. rows = result
  43. };
  44. return base.Json(gridResult);
  45. }
  46. /// <summary>
  47. ///
  48. /// </summary>
  49. /// <param name="argment"></param>
  50. /// <returns></returns>
  51. protected static int? CheckIsSelectAll(int? argment)
  52. {
  53. return argment == DropdownList.SELECT_ALL ? null : argment;
  54. }
  55. }
  56. }