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.
 
 
 
 
 
 

74 lines
2.0 KiB

  1. using Learun.Util;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace Learun.Application.AppMagager
  8. {
  9. /// <summary>
  10. /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
  11. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  12. /// 创 建:超级管理员
  13. /// 日 期:2018-06-26 10:32
  14. /// 描 述:我的常用移动应用
  15. /// </summary>
  16. public class MyFunctionBLL: MyFunctionIBLL
  17. {
  18. private MyFunctionService myFunctionService = new MyFunctionService();
  19. #region 获取数据
  20. /// <summary>
  21. /// 获取列表数据
  22. /// </summary>
  23. /// <param name="userId">用户主键ID</param>
  24. /// <returns></returns>
  25. public IEnumerable<MyFunctionEntity> GetList(string userId)
  26. {
  27. try
  28. {
  29. return myFunctionService.GetList(userId);
  30. }
  31. catch (Exception ex)
  32. {
  33. if (ex is ExceptionEx)
  34. {
  35. throw;
  36. }
  37. else
  38. {
  39. throw ExceptionEx.ThrowBusinessException(ex);
  40. }
  41. }
  42. }
  43. #endregion
  44. #region 提交数据
  45. /// <summary>
  46. /// 保存实体数据(新增、修改)
  47. /// <param name="keyValue">主键</param>
  48. /// <summary>
  49. /// <returns></returns>
  50. public void SaveEntity(string userId, string strFunctionId)
  51. {
  52. try
  53. {
  54. myFunctionService.SaveEntity(userId, strFunctionId);
  55. }
  56. catch (Exception ex)
  57. {
  58. if (ex is ExceptionEx)
  59. {
  60. throw;
  61. }
  62. else
  63. {
  64. throw ExceptionEx.ThrowServiceException(ex);
  65. }
  66. }
  67. }
  68. #endregion
  69. }
  70. }