Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 

80 рядки
2.4 KiB

  1. using Nancy;
  2. using Learun.Util;
  3. using System.Collections.Generic;
  4. using Learun.Application.TwoDevelopment.EducationalAdministration;
  5. using static Learun.Application.WebApi.Modules.StuInfoFreshApi;
  6. using System;
  7. using System.IO;
  8. using System.Linq;
  9. using Learun.Application.Base.SystemModule;
  10. using Learun.Application.OA;
  11. using Learun.Application.OA.File.FileInfo;
  12. using Learun.Application.TwoDevelopment.LogisticsManagement;
  13. using Learun.Application.TwoDevelopment.LR_Desktop;
  14. using Learun.Application.WorkFlow;
  15. using Microsoft.Ajax.Utilities;
  16. namespace Learun.Application.WebApi
  17. {
  18. /// <summary>
  19. /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
  20. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  21. /// 创 建:超级管理员
  22. /// 日 期:2019-08-19 17:50
  23. /// 描 述:工资条
  24. /// </summary>
  25. public class WelfarePositionApi : BaseApi
  26. {
  27. private WelfarePositionIBLL WelfarePositionIBLL = new WelfarePositionBLL();
  28. /// <summary>
  29. /// 一卡通接口
  30. /// <summary>
  31. public WelfarePositionApi()
  32. : base("/Learun/adms/WelfarePosition")
  33. {
  34. Get["/getlist"] = GetList;
  35. Get["/form"] = GetForm;
  36. }
  37. #region 获取数据
  38. /// <summary>
  39. /// 获取页面显示列表分页数据
  40. /// <summary>
  41. /// <param name="_"></param>
  42. /// <returns></returns>
  43. public Response GetList(dynamic _)
  44. {
  45. ReqPageParam parameter = this.GetReqData<ReqPageParam>();
  46. var data = WelfarePositionIBLL.GetPageList(parameter.pagination, parameter.queryJson);
  47. var jsonData = new
  48. {
  49. rows = data,
  50. total = parameter.pagination.total,
  51. page = parameter.pagination.page,
  52. records = parameter.pagination.records
  53. };
  54. return Success(jsonData);
  55. }
  56. /// <summary>
  57. /// 获取表单数据
  58. /// <summary>
  59. /// <param name="_"></param>
  60. /// <returns></returns>
  61. public Response GetForm(dynamic _)
  62. {
  63. string keyValue = this.GetReqData();
  64. var WelfarePositionData = WelfarePositionIBLL.GetEntity(keyValue);
  65. var jsonData = new
  66. {
  67. WelfarePosition = WelfarePositionData,
  68. };
  69. return Success(jsonData);
  70. }
  71. #endregion
  72. }
  73. }