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.
 
 
 
 
 
 

209 line
5.7 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-08-30 11:05
  12. /// 描 述:学生证书管理
  13. /// </summary>
  14. public class StudentCertificateBLL : StudentCertificateIBLL
  15. {
  16. private StudentCertificateService studentCertificateService = new StudentCertificateService();
  17. #region 获取数据
  18. /// <summary>
  19. /// 获取页面显示列表数据
  20. /// </summary>
  21. /// <param name="pagination">分页参数</param>
  22. /// <param name="queryJson">查询参数</param>
  23. /// <returns></returns>
  24. public IEnumerable<StudentCertificateEntity> GetPageList(Pagination pagination, string queryJson)
  25. {
  26. try
  27. {
  28. return studentCertificateService.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. /// 获取StudentCertificate表实体数据
  44. /// </summary>
  45. /// <param name="keyValue">主键</param>
  46. /// <returns></returns>
  47. public StudentCertificateEntity GetStudentCertificateEntity(string keyValue)
  48. {
  49. try
  50. {
  51. return studentCertificateService.GetStudentCertificateEntity(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. /// <summary>
  66. /// 获取页面显示列表数据
  67. /// </summary>
  68. /// <returns></returns>
  69. public IEnumerable<StudentCertificateEntity> GetList(string queryJson)
  70. {
  71. try
  72. {
  73. return studentCertificateService.GetList(queryJson);
  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="processId">流程实例ID</param>
  91. /// <returns></returns>
  92. public StudentCertificateEntity GetEntityByProcessId(string processId)
  93. {
  94. try
  95. {
  96. return studentCertificateService.GetEntityByProcessId(processId);
  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. /// </summary>
  115. /// <param name="keyValue">主键</param>
  116. public void DeleteEntity(string keyValue)
  117. {
  118. try
  119. {
  120. studentCertificateService.DeleteEntity(keyValue);
  121. }
  122. catch (Exception ex)
  123. {
  124. if (ex is ExceptionEx)
  125. {
  126. throw;
  127. }
  128. else
  129. {
  130. throw ExceptionEx.ThrowBusinessException(ex);
  131. }
  132. }
  133. }
  134. /// <summary>
  135. /// 保存实体数据(新增、修改)
  136. /// </summary>
  137. /// <param name="keyValue">主键</param>
  138. /// <param name="entity">实体</param>
  139. public void SaveEntity(string keyValue, StudentCertificateEntity entity)
  140. {
  141. try
  142. {
  143. studentCertificateService.SaveEntity(keyValue, entity);
  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. public void ChangeStatusByProcessId(string processId, int status)
  158. {
  159. try
  160. {
  161. studentCertificateService.ChangeStatusByProcessId(processId, status);
  162. }
  163. catch (Exception ex)
  164. {
  165. if (ex is ExceptionEx)
  166. {
  167. throw;
  168. }
  169. else
  170. {
  171. throw ExceptionEx.ThrowBusinessException(ex);
  172. }
  173. }
  174. }
  175. public void ChangeStatusById(string keyValue, int status, string processId)
  176. {
  177. try
  178. {
  179. studentCertificateService.ChangeStatusById(keyValue, status, processId);
  180. }
  181. catch (Exception ex)
  182. {
  183. if (ex is ExceptionEx)
  184. {
  185. throw;
  186. }
  187. else
  188. {
  189. throw ExceptionEx.ThrowBusinessException(ex);
  190. }
  191. }
  192. }
  193. #endregion
  194. }
  195. }