Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

FinaChargeStuYearBLL.cs 6.1 KiB

1 rok temu
1 rok temu
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. using Learun.Util;
  2. using System;
  3. using System.Data;
  4. using System.Collections.Generic;
  5. using Learun.Application.TwoDevelopment.EducationalAdministration;
  6. namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
  7. {
  8. /// <summary>
  9. /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
  10. /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  11. /// 创 建:超级管理员
  12. /// 日 期:2023-08-07 15:52
  13. /// 描 述:学生年度缴费管理
  14. /// </summary>
  15. public class FinaChargeStuYearBLL : FinaChargeStuYearIBLL
  16. {
  17. private FinaChargeStuYearService finaChargeStuYearService = new FinaChargeStuYearService();
  18. #region 获取数据
  19. /// <summary>
  20. /// 获取页面显示列表数据
  21. /// </summary>
  22. /// <param name="pagination">分页参数</param>
  23. /// <param name="queryJson">查询参数</param>
  24. /// <returns></returns>
  25. public IEnumerable<FinaChargeStuYearEntity> GetPageList(Pagination pagination, string queryJson)
  26. {
  27. try
  28. {
  29. return finaChargeStuYearService.GetPageList(pagination, queryJson);
  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. /// <summary>
  44. /// 获取FinaChargeStuYear表实体数据
  45. /// </summary>
  46. /// <param name="keyValue">主键</param>
  47. /// <returns></returns>
  48. public FinaChargeStuYearEntity GetFinaChargeStuYearEntity(string keyValue)
  49. {
  50. try
  51. {
  52. return finaChargeStuYearService.GetFinaChargeStuYearEntity(keyValue);
  53. }
  54. catch (Exception ex)
  55. {
  56. if (ex is ExceptionEx)
  57. {
  58. throw;
  59. }
  60. else
  61. {
  62. throw ExceptionEx.ThrowBusinessException(ex);
  63. }
  64. }
  65. }
  66. #endregion
  67. #region 提交数据
  68. /// <summary>
  69. /// 删除实体数据
  70. /// </summary>
  71. /// <param name="keyValue">主键</param>
  72. public void DeleteEntity(string keyValue)
  73. {
  74. try
  75. {
  76. finaChargeStuYearService.DeleteEntity(keyValue);
  77. }
  78. catch (Exception ex)
  79. {
  80. if (ex is ExceptionEx)
  81. {
  82. throw;
  83. }
  84. else
  85. {
  86. throw ExceptionEx.ThrowBusinessException(ex);
  87. }
  88. }
  89. }
  90. /// <summary>
  91. /// 保存实体数据(新增、修改)
  92. /// </summary>
  93. /// <param name="keyValue">主键</param>
  94. /// <param name="entity">实体</param>
  95. /// <returns></returns>
  96. public void SaveEntity(string keyValue, FinaChargeStuYearEntity entity)
  97. {
  98. try
  99. {
  100. finaChargeStuYearService.SaveEntity(keyValue, entity);
  101. }
  102. catch (Exception ex)
  103. {
  104. if (ex is ExceptionEx)
  105. {
  106. throw;
  107. }
  108. else
  109. {
  110. throw ExceptionEx.ThrowBusinessException(ex);
  111. }
  112. }
  113. }
  114. public void SaveGenerateByCondition(FinaChargeStuYearEntity entity)
  115. {
  116. try
  117. {
  118. finaChargeStuYearService.SaveGenerateByCondition(entity);
  119. }
  120. catch (Exception ex)
  121. {
  122. if (ex is ExceptionEx)
  123. {
  124. throw;
  125. }
  126. else
  127. {
  128. throw ExceptionEx.ThrowBusinessException(ex);
  129. }
  130. }
  131. }
  132. public List<TreeModel> GetTree()
  133. {
  134. try
  135. {
  136. var list = finaChargeStuYearService.GetYearList();
  137. List<TreeModel> treeList = new List<TreeModel>();
  138. foreach (var item in list)
  139. {
  140. TreeModel node = new TreeModel
  141. {
  142. id =item.FSYear.ToString(),
  143. text = item.FSYear.ToString(),
  144. value = item.FSYear.ToString(),
  145. showcheck = false,
  146. checkstate = 0,
  147. isexpand = true,
  148. parentId = ""
  149. };
  150. treeList.Add(node);
  151. }
  152. return treeList.ToTree();
  153. }
  154. catch (Exception ex)
  155. {
  156. if (ex is ExceptionEx)
  157. {
  158. throw;
  159. }
  160. else
  161. {
  162. throw ExceptionEx.ThrowBusinessException(ex);
  163. }
  164. }
  165. }
  166. public IEnumerable<FinaChargeStuYearItemEntity> GetFinaChargeStuItemList(string keyValue)
  167. {
  168. try
  169. {
  170. return finaChargeStuYearService.GetFinaChargeStuItemList(keyValue);
  171. }
  172. catch (Exception ex)
  173. {
  174. if (ex is ExceptionEx)
  175. {
  176. throw;
  177. }
  178. else
  179. {
  180. throw ExceptionEx.ThrowBusinessException(ex);
  181. }
  182. }
  183. }
  184. public IEnumerable<StuEnrollInvoiceRecordEntity> GetStuInvoice(string keyValue)
  185. {
  186. try
  187. {
  188. return finaChargeStuYearService.GetStuInvoice(keyValue);
  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. }