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.
 
 
 
 
 
 

171 lines
4.7 KiB

  1. using Learun.Util;
  2. using System;
  3. using System.Data;
  4. using System.Collections.Generic;
  5. namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
  6. {
  7. /// <summary>
  8. /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
  9. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  10. /// 创 建:超级管理员
  11. /// 日 期:2019-06-05 16:20
  12. /// 描 述:代扣方式管理
  13. /// </summary>
  14. public class FinaReplaceModeBLL : FinaReplaceModeIBLL
  15. {
  16. private FinaReplaceModeService finaReplaceModeService = new FinaReplaceModeService();
  17. #region 获取数据
  18. /// <summary>
  19. /// 获取页面显示列表数据
  20. /// <summary>
  21. /// <param name="queryJson">查询参数</param>
  22. /// <returns></returns>
  23. public IEnumerable<FinaReplaceModeEntity> GetPageList(Pagination pagination, string queryJson)
  24. {
  25. try
  26. {
  27. return finaReplaceModeService.GetPageList(pagination, queryJson);
  28. }
  29. catch (Exception ex)
  30. {
  31. if (ex is ExceptionEx)
  32. {
  33. throw;
  34. }
  35. else
  36. {
  37. throw ExceptionEx.ThrowBusinessException(ex);
  38. }
  39. }
  40. }
  41. /// <summary>
  42. /// 获取页面显示列表数据
  43. /// <summary>
  44. /// <returns></returns>
  45. public IEnumerable<FinaReplaceModeEntity> GetList(string keyword)
  46. {
  47. try
  48. {
  49. return finaReplaceModeService.GetList(keyword);
  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. /// 获取FinaReplaceMode表实体数据
  65. /// <param name="keyValue">主键</param>
  66. /// <summary>
  67. /// <returns></returns>
  68. public FinaReplaceModeEntity GetFinaReplaceModeEntity(string keyValue)
  69. {
  70. try
  71. {
  72. return finaReplaceModeService.GetFinaReplaceModeEntity(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. /// <summary>
  87. /// 获取FinaReplaceModeEntity表实体数据
  88. /// <param name="replaceModeName">代扣方式名称</param>
  89. /// <summary>
  90. /// <returns></returns>
  91. public FinaReplaceModeEntity GetFinaReplaceModeEntityByReplaceModeName(string replaceModeName)
  92. {
  93. try
  94. {
  95. return finaReplaceModeService.GetFinaReplaceModeEntityByReplaceModeName(replaceModeName);
  96. }
  97. catch (Exception ex)
  98. {
  99. if (ex is ExceptionEx)
  100. {
  101. throw;
  102. }
  103. else
  104. {
  105. throw ExceptionEx.ThrowBusinessException(ex);
  106. }
  107. }
  108. }
  109. #endregion
  110. #region 提交数据
  111. /// <summary>
  112. /// 删除实体数据
  113. /// <param name="keyValue">主键</param>
  114. /// <summary>
  115. /// <returns></returns>
  116. public void DeleteEntity(string keyValue)
  117. {
  118. try
  119. {
  120. finaReplaceModeService.DeleteEntity(keyValue);
  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. /// <summary>
  135. /// 保存实体数据(新增、修改)
  136. /// <param name="keyValue">主键</param>
  137. /// <summary>
  138. /// <returns></returns>
  139. public void SaveEntity(string keyValue, FinaReplaceModeEntity entity)
  140. {
  141. try
  142. {
  143. finaReplaceModeService.SaveEntity(keyValue, entity);
  144. }
  145. catch (Exception ex)
  146. {
  147. if (ex is ExceptionEx)
  148. {
  149. throw;
  150. }
  151. else
  152. {
  153. throw ExceptionEx.ThrowBusinessException(ex);
  154. }
  155. }
  156. }
  157. #endregion
  158. }
  159. }