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.

PMMembershipChangeBLL.cs 3.9 KiB

4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. using Learun.Util;
  2. using System;
  3. using System.Data;
  4. using System.Collections.Generic;
  5. namespace Learun.Application.TwoDevelopment.PersonnelManagement
  6. {
  7. /// <summary>
  8. /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
  9. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  10. /// 创 建:超级管理员
  11. /// 日 期:2020-02-28 16:19
  12. /// 描 述:党籍异动管理
  13. /// </summary>
  14. public class PMMembershipChangeBLL : PMMembershipChangeIBLL
  15. {
  16. private PMMembershipChangeService pMMembershipChangeService = new PMMembershipChangeService();
  17. #region 获取数据
  18. /// <summary>
  19. /// 获取列表数据
  20. /// <summary>
  21. /// <returns></returns>
  22. public IEnumerable<PMMembershipChangeEntity> GetList( string queryJson )
  23. {
  24. try
  25. {
  26. return pMMembershipChangeService.GetList(queryJson);
  27. }
  28. catch (Exception ex)
  29. {
  30. if (ex is ExceptionEx)
  31. {
  32. throw;
  33. }
  34. else
  35. {
  36. throw ExceptionEx.ThrowBusinessException(ex);
  37. }
  38. }
  39. }
  40. /// <summary>
  41. /// 获取列表分页数据
  42. /// <param name="pagination">分页参数</param>
  43. /// <summary>
  44. /// <returns></returns>
  45. public IEnumerable<PMMembershipChangeEntity> GetPageList(Pagination pagination, string queryJson)
  46. {
  47. try
  48. {
  49. return pMMembershipChangeService.GetPageList(pagination, queryJson);
  50. }
  51. catch (Exception ex)
  52. {
  53. if (ex is ExceptionEx)
  54. {
  55. throw;
  56. }
  57. else
  58. {
  59. throw ExceptionEx.ThrowBusinessException(ex);
  60. }
  61. }
  62. }
  63. /// <summary>
  64. /// 获取实体数据
  65. /// <param name="keyValue">主键</param>
  66. /// <summary>
  67. /// <returns></returns>
  68. public PMMembershipChangeEntity GetEntity(string keyValue)
  69. {
  70. try
  71. {
  72. return pMMembershipChangeService.GetEntity(keyValue);
  73. }
  74. catch (Exception ex)
  75. {
  76. if (ex is ExceptionEx)
  77. {
  78. throw;
  79. }
  80. else
  81. {
  82. throw ExceptionEx.ThrowBusinessException(ex);
  83. }
  84. }
  85. }
  86. #endregion
  87. #region 提交数据
  88. /// <summary>
  89. /// 删除实体数据
  90. /// <param name="keyValue">主键</param>
  91. /// <summary>
  92. /// <returns></returns>
  93. public void DeleteEntity(string keyValue)
  94. {
  95. try
  96. {
  97. pMMembershipChangeService.DeleteEntity(keyValue);
  98. }
  99. catch (Exception ex)
  100. {
  101. if (ex is ExceptionEx)
  102. {
  103. throw;
  104. }
  105. else
  106. {
  107. throw ExceptionEx.ThrowBusinessException(ex);
  108. }
  109. }
  110. }
  111. /// <summary>
  112. /// 保存实体数据(新增、修改)
  113. /// <param name="keyValue">主键</param>
  114. /// <summary>
  115. /// <returns></returns>
  116. public void SaveEntity(string keyValue, PMMembershipChangeEntity entity)
  117. {
  118. try
  119. {
  120. pMMembershipChangeService.SaveEntity(keyValue, entity);
  121. }
  122. catch (Exception ex)
  123. {
  124. if (ex is ExceptionEx)
  125. {
  126. throw;
  127. }
  128. else
  129. {
  130. throw ExceptionEx.ThrowBusinessException(ex);
  131. }
  132. }
  133. }
  134. #endregion
  135. }
  136. }