You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

WfSystemDemoController.cs 2.5 KiB

4 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. using Learun.Application.TwoDevelopment.SystemDemo;
  2. using Learun.Util;
  3. using System.Web.Mvc;
  4. namespace Learun.Application.Web.Areas.LR_WorkFlowModule.Controllers
  5. {
  6. /// <summary>
  7. /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
  8. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  9. /// 创建人:陈彬彬
  10. /// 日 期:2017.04.17
  11. /// 描 述:系统表单-请假单
  12. /// </summary>
  13. public class WfSystemDemoController : MvcControllerBase
  14. {
  15. #region 请假表单
  16. // 请假表单后台方法
  17. DemoleaveIBLL demoleaveIBLL = new DemoleaveBLL();
  18. /// <summary>
  19. /// 系统请假单(视图)
  20. /// </summary>
  21. /// <returns></returns>
  22. public ActionResult DemoLeaveForm()
  23. {
  24. return View();
  25. }
  26. /// <summary>
  27. /// 系统请假单(列表视图)
  28. /// </summary>
  29. /// <returns></returns>
  30. public ActionResult DemoLeaveIndex()
  31. {
  32. return View();
  33. }
  34. /// <summary>
  35. /// 获取分页数据
  36. /// </summary>
  37. /// <param name="pagination">分页参数</param>
  38. /// <returns></returns>
  39. [HttpGet]
  40. [AjaxOnly]
  41. public ActionResult GetPageList(string pagination)
  42. {
  43. Pagination paginationobj = pagination.ToObject<Pagination>();
  44. var data = demoleaveIBLL.GetPageList(paginationobj);
  45. var jsonData = new
  46. {
  47. rows = data,
  48. total = paginationobj.total,
  49. page = paginationobj.page,
  50. records = paginationobj.records,
  51. };
  52. return JsonResult(jsonData);
  53. }
  54. /// <summary>
  55. /// 系统请假单(保存数据)
  56. /// </summary>
  57. /// <param name="keyValue"></param>
  58. /// <param name="entity"></param>
  59. /// <returns></returns>
  60. public ActionResult DemoLeaveSaveForm(string keyValue, DemoleaveEntity entity)
  61. {
  62. demoleaveIBLL.SaveEntity(keyValue, entity);
  63. return Success("保存成功");
  64. }
  65. /// <summary>
  66. /// 系统请假单(获取数据)
  67. /// </summary>
  68. /// <param name="processId">流程实例主键</param>
  69. /// <returns></returns>
  70. public ActionResult DemoLeaveGetFormData(string processId)
  71. {
  72. var data = demoleaveIBLL.GetEntity(processId);
  73. return JsonResult(data);
  74. }
  75. #endregion
  76. }
  77. }