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.

JournalSendBLL.cs 5.7 KiB

4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  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. /// 日 期:2019-03-06 17:15
  12. /// 描 述:日志发送
  13. /// </summary>
  14. public class JournalSendBLL : JournalSendIBLL
  15. {
  16. private JournalSendService journalSendService = new JournalSendService();
  17. #region 获取数据
  18. /// <summary>
  19. /// 获取页面显示列表数据
  20. /// <summary>
  21. /// <param name="queryJson">查询参数</param>
  22. /// <returns></returns>
  23. public IEnumerable<JournalSendEntity> GetPageList(Pagination pagination, string queryJson)
  24. {
  25. try
  26. {
  27. return journalSendService.GetPageList(pagination, 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. /// 获取JournalSend表实体数据
  43. /// <param name="keyValue">主键</param>
  44. /// <summary>
  45. /// <returns></returns>
  46. public JournalSendEntity GetJournalSendEntity(string keyValue)
  47. {
  48. try
  49. {
  50. return journalSendService.GetJournalSendEntity(keyValue);
  51. }
  52. catch (Exception ex)
  53. {
  54. if (ex is ExceptionEx)
  55. {
  56. throw;
  57. }
  58. else
  59. {
  60. throw ExceptionEx.ThrowBusinessException(ex);
  61. }
  62. }
  63. }
  64. /// <summary>
  65. /// 获取JournalSend表实体数据
  66. /// <param name="keyValue">主键</param>
  67. /// <summary>
  68. /// <returns></returns>
  69. public JournalSendEntity GetJournalSendEntityNoHtml(string keyValue)
  70. {
  71. try
  72. {
  73. return journalSendService.GetJournalSendEntityNoHtml(keyValue);
  74. }
  75. catch (Exception ex)
  76. {
  77. if (ex is ExceptionEx)
  78. {
  79. throw;
  80. }
  81. else
  82. {
  83. throw ExceptionEx.ThrowBusinessException(ex);
  84. }
  85. }
  86. }
  87. /// <summary>
  88. /// 获取页面显示列表数据
  89. /// <summary>
  90. /// <param name="queryJson">查询参数</param>
  91. /// <returns></returns>
  92. public IEnumerable<JournalSendEntity> GetList(string queryJson)
  93. {
  94. try
  95. {
  96. return journalSendService.GetList(queryJson);
  97. }
  98. catch (Exception ex)
  99. {
  100. if (ex is ExceptionEx)
  101. {
  102. throw;
  103. }
  104. else
  105. {
  106. throw ExceptionEx.ThrowBusinessException(ex);
  107. }
  108. }
  109. }
  110. #endregion
  111. #region 提交数据
  112. /// <summary>
  113. /// 删除实体数据
  114. /// <param name="keyValue">主键</param>
  115. /// <summary>
  116. /// <returns></returns>
  117. public void DeleteEntity(string keyValue)
  118. {
  119. try
  120. {
  121. journalSendService.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. /// <param name="keyValue">主键</param>
  138. /// <summary>
  139. /// <returns></returns>
  140. public void SaveEntity(string keyValue, JournalSendEntity entity)
  141. {
  142. try
  143. {
  144. journalSendService.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. /// <param name="keyValue">主键</param>
  161. /// <summary>
  162. /// <returns></returns>
  163. public void SaveEntity(UserInfo userInfo, string keyValue, JournalSendEntity entity)
  164. {
  165. try
  166. {
  167. journalSendService.SaveEntity(userInfo, 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. public void Send(string journalSendId)
  182. {
  183. try
  184. {
  185. journalSendService.Send(journalSendId);
  186. }
  187. catch (Exception ex)
  188. {
  189. if (ex is ExceptionEx)
  190. {
  191. throw;
  192. }
  193. else
  194. {
  195. throw ExceptionEx.ThrowBusinessException(ex);
  196. }
  197. }
  198. }
  199. #endregion
  200. }
  201. }