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.
 
 
 
 
 
 

166 lines
4.3 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-Ultimate V7.0.0 数字化智慧校园
  9. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  10. /// 创 建:超级管理员
  11. /// 日 期:2020-06-10 12:25
  12. /// 描 述:文化程度
  13. /// </summary>
  14. public class BCdCultureDegreeBLL : BCdCultureDegreeIBLL
  15. {
  16. private BCdCultureDegreeService bCdCultureDegreeService = new BCdCultureDegreeService();
  17. #region 获取数据
  18. /// <summary>
  19. /// 获取列表数据
  20. /// <summary>
  21. /// <returns></returns>
  22. public IEnumerable<BCdCultureDegreeEntity> GetList( string queryJson )
  23. {
  24. try
  25. {
  26. return bCdCultureDegreeService.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. public IEnumerable<BCdCultureDegreeEntity> GetAllList()
  41. {
  42. try
  43. {
  44. return bCdCultureDegreeService.GetAllList();
  45. }
  46. catch (Exception ex)
  47. {
  48. if (ex is ExceptionEx)
  49. {
  50. throw;
  51. }
  52. else
  53. {
  54. throw ExceptionEx.ThrowBusinessException(ex);
  55. }
  56. }
  57. }
  58. /// <summary>
  59. /// 获取列表分页数据
  60. /// <param name="pagination">分页参数</param>
  61. /// <summary>
  62. /// <returns></returns>
  63. public IEnumerable<BCdCultureDegreeEntity> GetPageList(Pagination pagination, string queryJson)
  64. {
  65. try
  66. {
  67. return bCdCultureDegreeService.GetPageList(pagination, queryJson);
  68. }
  69. catch (Exception ex)
  70. {
  71. if (ex is ExceptionEx)
  72. {
  73. throw;
  74. }
  75. else
  76. {
  77. throw ExceptionEx.ThrowBusinessException(ex);
  78. }
  79. }
  80. }
  81. /// <summary>
  82. /// 获取实体数据
  83. /// <param name="keyValue">主键</param>
  84. /// <summary>
  85. /// <returns></returns>
  86. public BCdCultureDegreeEntity GetEntity(string keyValue)
  87. {
  88. try
  89. {
  90. return bCdCultureDegreeService.GetEntity(keyValue);
  91. }
  92. catch (Exception ex)
  93. {
  94. if (ex is ExceptionEx)
  95. {
  96. throw;
  97. }
  98. else
  99. {
  100. throw ExceptionEx.ThrowBusinessException(ex);
  101. }
  102. }
  103. }
  104. #endregion
  105. #region 提交数据
  106. /// <summary>
  107. /// 删除实体数据
  108. /// <param name="keyValue">主键</param>
  109. /// <summary>
  110. /// <returns></returns>
  111. public void DeleteEntity(string keyValue)
  112. {
  113. try
  114. {
  115. bCdCultureDegreeService.DeleteEntity(keyValue);
  116. }
  117. catch (Exception ex)
  118. {
  119. if (ex is ExceptionEx)
  120. {
  121. throw;
  122. }
  123. else
  124. {
  125. throw ExceptionEx.ThrowBusinessException(ex);
  126. }
  127. }
  128. }
  129. /// <summary>
  130. /// 保存实体数据(新增、修改)
  131. /// <param name="keyValue">主键</param>
  132. /// <summary>
  133. /// <returns></returns>
  134. public void SaveEntity(string keyValue, BCdCultureDegreeEntity entity)
  135. {
  136. try
  137. {
  138. bCdCultureDegreeService.SaveEntity(keyValue, entity);
  139. }
  140. catch (Exception ex)
  141. {
  142. if (ex is ExceptionEx)
  143. {
  144. throw;
  145. }
  146. else
  147. {
  148. throw ExceptionEx.ThrowBusinessException(ex);
  149. }
  150. }
  151. }
  152. #endregion
  153. }
  154. }