|
- using Nancy;
- using Learun.Util;
- using System.Collections.Generic;
- using Learun.Application.TwoDevelopment.EducationalAdministration;
- using static Learun.Application.WebApi.Modules.StuInfoFreshApi;
- using System;
- using System.IO;
- using System.Linq;
- using Learun.Application.Base.SystemModule;
- using Learun.Application.OA;
- using Learun.Application.OA.File.FileInfo;
- using Learun.Application.TwoDevelopment.LogisticsManagement;
- using Learun.Application.TwoDevelopment.LR_Desktop;
- using Learun.Application.WorkFlow;
- using Microsoft.Ajax.Utilities;
-
- namespace Learun.Application.WebApi
- {
- /// <summary>
- /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
- /// Copyright (c) 2013-2018 北京泉江科技有限公司
- /// 创 建:超级管理员
- /// 日 期:2019-08-19 17:50
- /// 描 述:工资条
- /// </summary>
-
- public class WelfarePositionApi : BaseApi
- {
-
- private WelfarePositionIBLL WelfarePositionIBLL = new WelfarePositionBLL();
-
- /// <summary>
- /// 一卡通接口
- /// <summary>
- public WelfarePositionApi()
- : base("/Learun/adms/WelfarePosition")
- {
- Get["/getlist"] = GetList;
- Get["/form"] = GetForm;
-
- }
- #region 获取数据
-
- /// <summary>
- /// 获取页面显示列表分页数据
- /// <summary>
- /// <param name="_"></param>
- /// <returns></returns>
- public Response GetList(dynamic _)
- {
- ReqPageParam parameter = this.GetReqData<ReqPageParam>();
- var data = WelfarePositionIBLL.GetPageList(parameter.pagination, parameter.queryJson);
- var jsonData = new
- {
- rows = data,
- total = parameter.pagination.total,
- page = parameter.pagination.page,
- records = parameter.pagination.records
- };
- return Success(jsonData);
- }
- /// <summary>
- /// 获取表单数据
- /// <summary>
- /// <param name="_"></param>
- /// <returns></returns>
- public Response GetForm(dynamic _)
- {
- string keyValue = this.GetReqData();
- var WelfarePositionData = WelfarePositionIBLL.GetEntity(keyValue);
- var jsonData = new
- {
- WelfarePosition = WelfarePositionData,
- };
- return Success(jsonData);
- }
- #endregion
- }
-
- }
|