FlowAferProcessingController.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. using LeaRun.Application.Busines.FlowManage;
  2. using LeaRun.Application.Code;
  3. using LeaRun.Util;
  4. using LeaRun.Util.WebControl;
  5. using System.Web.Mvc;
  6. namespace LeaRun.Application.Web.Areas.FlowManage.Controllers
  7. {
  8. /// <summary>
  9. /// 版 本 6.1
  10. /// Copyright (c) 2013-2016 上海力软信息技术有限公司
  11. /// 创建人:陈彬彬
  12. /// 日 期:2016.03.19 13:57
  13. /// 描 述:已办流程
  14. /// </summary>
  15. public class FlowAferProcessingController : MvcControllerBase
  16. {
  17. private WFRuntimeBLL wfProcessBll = new WFRuntimeBLL();
  18. #region 视图功能
  19. //
  20. // GET: /FlowManage/FlowAferProcessing/
  21. [HttpGet]
  22. [HandlerAuthorize(PermissionMode.Enforce)]
  23. public ActionResult Index()
  24. {
  25. return View();
  26. }
  27. /// <summary>
  28. /// 查看状态
  29. /// </summary>
  30. /// <returns></returns>
  31. [HttpGet]
  32. public ActionResult ProcessLookForm()
  33. {
  34. return View();
  35. }
  36. #endregion
  37. #region 提取数据
  38. /// <summary>
  39. /// 获取已办的工作流程(分页)
  40. /// </summary>
  41. /// <param name="pagination">分页参数</param>
  42. /// <param name="queryJson">查询参数</param>
  43. /// <returns>返回分页列表Json</returns>
  44. [HttpGet]
  45. public ActionResult GetPageListJson(Pagination pagination, string queryJson)
  46. {
  47. pagination.page++;
  48. var data = wfProcessBll.GetToMeAfterPageList(pagination, queryJson);
  49. var JsonData = new
  50. {
  51. rows = data,
  52. total = pagination.total,
  53. page = pagination.page,
  54. records = pagination.records,
  55. };
  56. return Content(JsonData.ToJson());
  57. }
  58. #endregion
  59. }
  60. }