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.

TSLogController.cs 1.7 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. using Learun.Application.Extention.TaskScheduling;
  2. using Learun.Util;
  3. using System.Web.Mvc;
  4. namespace Learun.Application.Web.Areas.LR_TaskScheduling.Controllers
  5. {
  6. /// <summary>
  7. /// 版 本 Learun-ADMS V7.0.3 力软敏捷开发框架
  8. /// Copyright (c) 2013-2018 上海力软信息技术有限公司
  9. /// 创 建:超级管理员
  10. /// 日 期:2018-10-24 14:57
  11. /// 描 述:任务日志
  12. /// </summary>
  13. public class TSLogController : MvcControllerBase
  14. {
  15. private TSLogIBLL tSkLogIBLL = new TSLogBLL();
  16. #region 视图功能
  17. /// <summary>
  18. /// 主页面
  19. /// <summary>
  20. /// <returns></returns>
  21. [HttpGet]
  22. public ActionResult Index()
  23. {
  24. return View();
  25. }
  26. /// <summary>
  27. /// 表单页
  28. /// <summary>
  29. /// <returns></returns>
  30. [HttpGet]
  31. public ActionResult Form()
  32. {
  33. return View();
  34. }
  35. #endregion
  36. #region 获取数据
  37. /// <summary>
  38. /// 获取列表分页数据
  39. /// <param name="pagination">分页参数</param>
  40. /// <summary>
  41. /// <returns></returns>
  42. [HttpGet]
  43. [AjaxOnly]
  44. public ActionResult GetPageList(string pagination, string queryJson)
  45. {
  46. Pagination paginationobj = pagination.ToObject<Pagination>();
  47. var data = tSkLogIBLL.GetPageList(paginationobj, queryJson);
  48. var jsonData = new
  49. {
  50. rows = data,
  51. total = paginationobj.total,
  52. page = paginationobj.page,
  53. records = paginationobj.records
  54. };
  55. return Success(jsonData);
  56. }
  57. #endregion
  58. }
  59. }