Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
 

41 rinda
1.2 KiB

  1. using Learun.Application.Base.SystemModule;
  2. using Nancy;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Web;
  7. namespace Learun.Application.WebApi.Modules
  8. {
  9. /// <summary>
  10. /// 版 本 Learun-ADMS V7.0.0 数字化智慧校园
  11. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  12. /// 创建人:数字化智慧校园-框架开发组
  13. /// 日 期:2018.01.04
  14. /// 描 述:编码规则
  15. /// </summary>
  16. public class CodeRuleApi: BaseApi
  17. {
  18. /// <summary>
  19. /// 注册接口
  20. /// </summary>
  21. public CodeRuleApi()
  22. : base("/learun/adms/coderule")
  23. {
  24. Get["/code"] = GetEnCode;// 获取数据字典详细列表
  25. }
  26. private CodeRuleIBLL codeRuleIBLL = new CodeRuleBLL();
  27. /// <summary>
  28. /// 获取数据字典详细列表
  29. /// </summary>
  30. /// <param name="_"></param>
  31. /// <returns></returns>
  32. private Response GetEnCode(dynamic _)
  33. {
  34. string req = this.GetReqData();// 获取模板请求数据
  35. var data = codeRuleIBLL.GetBillCode(req);
  36. return SuccessString(data);
  37. }
  38. }
  39. }