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.
 
 
 
 
 
 

71 lines
2.0 KiB

  1. using Learun.Util;
  2. using System.Data;
  3. using Learun.Application.TwoDevelopment.EducationalAdministration;
  4. using System.Web.Mvc;
  5. using Learun.Application.TwoDevelopment.LR_CodeDemo;
  6. using System.Collections.Generic;
  7. using Learun.Application.Base.SystemModule;
  8. namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
  9. {
  10. /// <summary>
  11. /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
  12. /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  13. /// 创 建:超级管理员
  14. /// 日 期:2023-02-23 10:34
  15. /// 描 述:门禁闸机
  16. /// </summary>
  17. public class DoorController : MvcControllerBase
  18. {
  19. private YKTStateMentIBLL yktStateMentIbll = new YKTStateMentBLL();
  20. #region 视图功能
  21. /// <summary>
  22. /// 主页面
  23. /// <summary>
  24. /// <returns></returns>
  25. [HttpGet]
  26. public ActionResult Index()
  27. {
  28. return View();
  29. }
  30. [HttpGet]
  31. public ActionResult GenerateNearByYear()
  32. {
  33. return Success(Learun.Util.WebHelper.GenerateNearByYear());
  34. }
  35. #endregion
  36. #region 获取数据
  37. /// <summary>
  38. /// 获取页面显示列表数据
  39. /// </summary>
  40. /// <param name="pagination">分页参数</param>
  41. /// <param name="queryJson">查询参数</param>
  42. /// <returns></returns>
  43. [HttpGet]
  44. [AjaxOnly]
  45. public ActionResult GetPageList(string pagination, string queryJson)
  46. {
  47. Pagination paginationobj = pagination.ToObject<Pagination>();
  48. var data = yktStateMentIbll.GetDoorPageList(paginationobj, queryJson);
  49. var jsonData = new
  50. {
  51. rows = data,
  52. total = paginationobj.total,
  53. page = paginationobj.page,
  54. records = paginationobj.records
  55. };
  56. return Success(jsonData);
  57. }
  58. #endregion
  59. }
  60. }