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.
 
 
 
 
 
 

194 lines
5.2 KiB

  1. using Learun.Util;
  2. using System;
  3. using System.Data;
  4. using System.Collections.Generic;
  5. namespace Learun.Application.OA
  6. {
  7. /// <summary>
  8. /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
  9. /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  10. /// 创 建:超级管理员
  11. /// 日 期:2021-05-20 15:14
  12. /// 描 述:失物招领
  13. /// </summary>
  14. public class LostArticleInfoBLL : LostArticleInfoIBLL
  15. {
  16. private LostArticleInfoService lostArticleInfoService = new LostArticleInfoService();
  17. #region 获取数据
  18. /// <summary>
  19. /// 获取页面显示列表数据
  20. /// </summary>
  21. /// <param name="pagination">分页参数</param>
  22. /// <param name="queryJson">查询参数</param>
  23. /// <returns></returns>
  24. public IEnumerable<LostArticleInfoEntity> GetPageList(Pagination pagination, string queryJson)
  25. {
  26. try
  27. {
  28. return lostArticleInfoService.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. /// <summary>
  43. /// 获取LostArticleInfo表实体数据
  44. /// </summary>
  45. /// <param name="keyValue">主键</param>
  46. /// <returns></returns>
  47. public LostArticleInfoEntity GetLostArticleInfoEntity(string keyValue)
  48. {
  49. try
  50. {
  51. return lostArticleInfoService.GetLostArticleInfoEntity(keyValue);
  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. #endregion
  66. #region 提交数据
  67. /// <summary>
  68. /// 删除实体数据
  69. /// </summary>
  70. /// <param name="keyValue">主键</param>
  71. public void DeleteEntity(string keyValue)
  72. {
  73. try
  74. {
  75. lostArticleInfoService.DeleteEntity(keyValue);
  76. }
  77. catch (Exception ex)
  78. {
  79. if (ex is ExceptionEx)
  80. {
  81. throw;
  82. }
  83. else
  84. {
  85. throw ExceptionEx.ThrowBusinessException(ex);
  86. }
  87. }
  88. }
  89. /// <summary>
  90. /// 发布
  91. /// </summary>
  92. /// <param name="keyValue">主键</param>
  93. public void PublishForm(string keyValue)
  94. {
  95. try
  96. {
  97. lostArticleInfoService.PublishForm(keyValue);
  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. /// <summary>
  112. /// 保存实体数据(新增、修改)
  113. /// </summary>
  114. /// <param name="keyValue">主键</param>
  115. /// <param name="entity">实体</param>
  116. /// <returns></returns>
  117. public void ClaimForm(string keyValue, LostArticleInfoEntity entity)
  118. {
  119. try
  120. {
  121. lostArticleInfoService.ClaimForm(keyValue, entity);
  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. public void CancleForm(string keyValue)
  140. {
  141. try
  142. {
  143. lostArticleInfoService.CancleForm(keyValue);
  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. /// <summary>
  158. /// 保存实体数据(新增、修改)
  159. /// </summary>
  160. /// <param name="keyValue">主键</param>
  161. /// <param name="entity">实体</param>
  162. /// <returns></returns>
  163. public void SaveEntity(string keyValue, LostArticleInfoEntity entity)
  164. {
  165. try
  166. {
  167. lostArticleInfoService.SaveEntity(keyValue, entity);
  168. }
  169. catch (Exception ex)
  170. {
  171. if (ex is ExceptionEx)
  172. {
  173. throw;
  174. }
  175. else
  176. {
  177. throw ExceptionEx.ThrowBusinessException(ex);
  178. }
  179. }
  180. }
  181. #endregion
  182. }
  183. }