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.
 
 
 
 
 
 

221 lines
5.8 KiB

  1. using Learun.Util;
  2. using System;
  3. using System.Data;
  4. using System.Collections.Generic;
  5. namespace Learun.Application.TwoDevelopment.EducationalAdministration
  6. {
  7. /// <summary>
  8. /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
  9. /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  10. /// 创 建:超级管理员
  11. /// 日 期:2023-03-13 10:37
  12. /// 描 述:定制功能助学金
  13. /// </summary>
  14. public class StuFellowshipBLL : StuFellowshipIBLL
  15. {
  16. private StuFellowshipService stuFellowshipService = new StuFellowshipService();
  17. #region 获取数据
  18. /// <summary>
  19. /// 获取列表数据
  20. /// </summary>
  21. /// <param name="queryJson">查询参数</param>
  22. /// <returns></returns>
  23. public IEnumerable<StuFellowshipEntity> GetList( string queryJson )
  24. {
  25. try
  26. {
  27. return stuFellowshipService.GetList(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. /// <param name="pagination">分页参数</param>
  45. /// <param name="queryJson">查询参数</param>
  46. /// <returns></returns>
  47. public IEnumerable<StuFellowshipEntity> GetPageList(Pagination pagination, string queryJson)
  48. {
  49. try
  50. {
  51. return stuFellowshipService.GetPageList(pagination, queryJson);
  52. }
  53. catch (Exception ex)
  54. {
  55. if (ex is ExceptionEx)
  56. {
  57. throw;
  58. }
  59. else
  60. {
  61. throw ExceptionEx.ThrowBusinessException(ex);
  62. }
  63. }
  64. }
  65. /// <summary>
  66. /// 获取实体数据
  67. /// </summary>
  68. /// <param name="keyValue">主键</param>
  69. /// <returns></returns>
  70. public StuFellowshipEntity GetEntity(string keyValue)
  71. {
  72. try
  73. {
  74. return stuFellowshipService.GetEntity(keyValue);
  75. }
  76. catch (Exception ex)
  77. {
  78. if (ex is ExceptionEx)
  79. {
  80. throw;
  81. }
  82. else
  83. {
  84. throw ExceptionEx.ThrowBusinessException(ex);
  85. }
  86. }
  87. }
  88. /// <summary>
  89. /// 获取统计列表数据
  90. /// </summary>
  91. /// <param name="queryJson">条件参数</param>
  92. /// <returns></returns>
  93. public IEnumerable<StuFellowshipEntity> GetStatisticList(string queryJson)
  94. {
  95. try
  96. {
  97. return stuFellowshipService.GetStatisticList(queryJson);
  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. #endregion
  112. #region 提交数据
  113. /// <summary>
  114. /// 删除实体数据
  115. /// </summary>
  116. /// <param name="keyValue">主键</param>
  117. public void DeleteEntity(string keyValue)
  118. {
  119. try
  120. {
  121. stuFellowshipService.DeleteEntity(keyValue);
  122. }
  123. catch (Exception ex)
  124. {
  125. if (ex is ExceptionEx)
  126. {
  127. throw;
  128. }
  129. else
  130. {
  131. throw ExceptionEx.ThrowBusinessException(ex);
  132. }
  133. }
  134. }
  135. /// <summary>
  136. /// 保存实体数据(新增、修改)
  137. /// </summary>
  138. /// <param name="keyValue">主键</param>
  139. /// <param name="entity">实体</param>
  140. public void SaveEntity(string keyValue, StuFellowshipEntity entity)
  141. {
  142. try
  143. {
  144. stuFellowshipService.SaveEntity(keyValue, entity);
  145. }
  146. catch (Exception ex)
  147. {
  148. if (ex is ExceptionEx)
  149. {
  150. throw;
  151. }
  152. else
  153. {
  154. throw ExceptionEx.ThrowBusinessException(ex);
  155. }
  156. }
  157. }
  158. /// <summary>
  159. /// 提交
  160. /// </summary>
  161. /// <param name="keyValue">主键</param>
  162. public void DoSubmit(string keyValue, string status, string step)
  163. {
  164. try
  165. {
  166. stuFellowshipService.DoSubmit(keyValue, status, step);
  167. }
  168. catch (Exception ex)
  169. {
  170. if (ex is ExceptionEx)
  171. {
  172. throw;
  173. }
  174. else
  175. {
  176. throw ExceptionEx.ThrowBusinessException(ex);
  177. }
  178. }
  179. }
  180. /// <summary>
  181. /// 退回
  182. /// </summary>
  183. /// <param name="keyValue">主键</param>
  184. public void DoBack(string keyValue, string status, string step)
  185. {
  186. try
  187. {
  188. stuFellowshipService.DoBack(keyValue, status, step);
  189. }
  190. catch (Exception ex)
  191. {
  192. if (ex is ExceptionEx)
  193. {
  194. throw;
  195. }
  196. else
  197. {
  198. throw ExceptionEx.ThrowBusinessException(ex);
  199. }
  200. }
  201. }
  202. #endregion
  203. }
  204. }