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.
 
 
 
 
 
 

127 lines
3.7 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 YKTStateMentController : 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. [HttpGet]
  36. public ActionResult ManageIndexTeacher()
  37. {
  38. return View();
  39. }
  40. [HttpGet]
  41. public ActionResult IndexForStudent()
  42. {
  43. var userinfo = LoginUserInfo.Get();
  44. ViewBag.StuNo = userinfo.account;
  45. return View();
  46. }
  47. [HttpGet]
  48. public ActionResult IndexForTeacher()
  49. {
  50. var userinfo = LoginUserInfo.Get();
  51. ViewBag.EmpNo = userinfo.account;
  52. return View();
  53. }
  54. [HttpGet]
  55. public ActionResult AnalysisByMonthForStudent()
  56. {
  57. return View();
  58. }
  59. #endregion
  60. #region 获取数据
  61. /// <summary>
  62. /// 获取页面显示列表数据
  63. /// </summary>
  64. /// <param name="pagination">分页参数</param>
  65. /// <param name="queryJson">查询参数</param>
  66. /// <returns></returns>
  67. [HttpGet]
  68. [AjaxOnly]
  69. public ActionResult GetPageList(string pagination, string queryJson)
  70. {
  71. Pagination paginationobj = pagination.ToObject<Pagination>();
  72. var data = yktStateMentIbll.GetPageList(paginationobj, queryJson);
  73. var jsonData = new
  74. {
  75. rows = data,
  76. total = paginationobj.total,
  77. page = paginationobj.page,
  78. records = paginationobj.records
  79. };
  80. return Success(jsonData);
  81. }
  82. [HttpGet]
  83. [AjaxOnly]
  84. public ActionResult GetAnalysisByMonthForStudentPageList(string pagination, string queryJson)
  85. {
  86. Pagination paginationobj = pagination.ToObject<Pagination>();
  87. var data = yktStateMentIbll.GetAnalysisByMonthForStudentPageList(paginationobj, queryJson);
  88. var jsonData = new
  89. {
  90. rows = data,
  91. total = paginationobj.total,
  92. page = paginationobj.page,
  93. records = paginationobj.records
  94. };
  95. return Success(jsonData);
  96. }
  97. [HttpGet]
  98. [AjaxOnly]
  99. public ActionResult GetTeacherPageList(string pagination, string queryJson)
  100. {
  101. Pagination paginationobj = pagination.ToObject<Pagination>();
  102. var data = yktStateMentIbll.GetTeacherPageList(paginationobj, queryJson);
  103. var jsonData = new
  104. {
  105. rows = data,
  106. total = paginationobj.total,
  107. page = paginationobj.page,
  108. records = paginationobj.records
  109. };
  110. return Success(jsonData);
  111. }
  112. #endregion
  113. }
  114. }