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.
 
 
 
 
 
 

145 lines
4.0 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. /// 日 期:2022-03-02 09:29
  12. /// 描 述:教材征订管理明细
  13. /// </summary>
  14. public class TextBookSolSubDetailBLL : TextBookSolSubDetailIBLL
  15. {
  16. private TextBookSolSubDetailService textBookSolSubDetailService = new TextBookSolSubDetailService();
  17. #region 获取数据
  18. /// <summary>
  19. /// 获取页面显示列表数据
  20. /// </summary>
  21. /// <param name="pagination">分页参数</param>
  22. /// <param name="queryJson">查询参数</param>
  23. /// <returns></returns>
  24. public IEnumerable<TextBookSolSubDetailEntity> GetPageList(Pagination pagination, string queryJson)
  25. {
  26. try
  27. {
  28. return textBookSolSubDetailService.GetPageList(pagination, queryJson);
  29. }
  30. catch (Exception ex)
  31. {
  32. if (ex is ExceptionEx)
  33. {
  34. throw;
  35. }
  36. else
  37. {
  38. throw ExceptionEx.ThrowBusinessException(ex);
  39. }
  40. }
  41. }
  42. public IEnumerable<TextBookSolSubDetailEntity> GetListBySolSubId(string SolSubId)
  43. {
  44. try
  45. {
  46. return textBookSolSubDetailService.GetListBySolSubId(SolSubId);
  47. }
  48. catch (Exception ex)
  49. {
  50. if (ex is ExceptionEx)
  51. {
  52. throw;
  53. }
  54. else
  55. {
  56. throw ExceptionEx.ThrowBusinessException(ex);
  57. }
  58. }
  59. }
  60. /// <summary>
  61. /// 获取TextBookSolSubDetail表实体数据
  62. /// </summary>
  63. /// <param name="keyValue">主键</param>
  64. /// <returns></returns>
  65. public TextBookSolSubDetailEntity GetTextBookSolSubDetailEntity(string keyValue)
  66. {
  67. try
  68. {
  69. return textBookSolSubDetailService.GetTextBookSolSubDetailEntity(keyValue);
  70. }
  71. catch (Exception ex)
  72. {
  73. if (ex is ExceptionEx)
  74. {
  75. throw;
  76. }
  77. else
  78. {
  79. throw ExceptionEx.ThrowBusinessException(ex);
  80. }
  81. }
  82. }
  83. #endregion
  84. #region 提交数据
  85. /// <summary>
  86. /// 删除实体数据
  87. /// </summary>
  88. /// <param name="keyValue">主键</param>
  89. public void DeleteEntity(string keyValue)
  90. {
  91. try
  92. {
  93. textBookSolSubDetailService.DeleteEntity(keyValue);
  94. }
  95. catch (Exception ex)
  96. {
  97. if (ex is ExceptionEx)
  98. {
  99. throw;
  100. }
  101. else
  102. {
  103. throw ExceptionEx.ThrowBusinessException(ex);
  104. }
  105. }
  106. }
  107. /// <summary>
  108. /// 保存实体数据(新增、修改)
  109. /// </summary>
  110. /// <param name="keyValue">主键</param>
  111. /// <param name="entity">实体</param>
  112. /// <returns></returns>
  113. public void SaveEntity(string keyValue, TextBookSolSubDetailEntity entity)
  114. {
  115. try
  116. {
  117. textBookSolSubDetailService.SaveEntity(keyValue, entity);
  118. }
  119. catch (Exception ex)
  120. {
  121. if (ex is ExceptionEx)
  122. {
  123. throw;
  124. }
  125. else
  126. {
  127. throw ExceptionEx.ThrowBusinessException(ex);
  128. }
  129. }
  130. }
  131. #endregion
  132. }
  133. }