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.
 
 
 
 
 
 

220 lines
6.4 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. /// 日 期:2021-04-14 11:52
  12. /// 描 述:学生撤销违纪管理
  13. /// </summary>
  14. public class StuCancelDisciplineManagementBLL : StuCancelDisciplineManagementIBLL
  15. {
  16. private StuCancelDisciplineManagementService stuCancelDisciplineManagementService = new StuCancelDisciplineManagementService();
  17. #region 获取数据
  18. /// <summary>
  19. /// 获取页面显示列表数据
  20. /// </summary>
  21. /// <param name="pagination">分页参数</param>
  22. /// <param name="queryJson">查询参数</param>
  23. /// <returns></returns>
  24. public IEnumerable<StuCancelDisciplineManagementEntity> GetPageList(Pagination pagination, string queryJson)
  25. {
  26. try
  27. {
  28. return stuCancelDisciplineManagementService.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. /// 获取页面显示列表数据
  44. /// </summary>
  45. /// <param name="pagination">分页参数</param>
  46. /// <param name="queryJson">查询参数</param>
  47. /// <returns></returns>
  48. public IEnumerable<StuCancelDisciplineManagementEntity> GetPageListOfTeacher(Pagination pagination, string queryJson)
  49. {
  50. try
  51. {
  52. return stuCancelDisciplineManagementService.GetPageListOfTeacher(pagination, queryJson);
  53. }
  54. catch (Exception ex)
  55. {
  56. if (ex is ExceptionEx)
  57. {
  58. throw;
  59. }
  60. else
  61. {
  62. throw ExceptionEx.ThrowBusinessException(ex);
  63. }
  64. }
  65. }
  66. /// <summary>
  67. /// 获取StuCancelDisciplineManagement表实体数据
  68. /// </summary>
  69. /// <param name="keyValue">主键</param>
  70. /// <returns></returns>
  71. public StuCancelDisciplineManagementEntity GetStuCancelDisciplineManagementEntity(string keyValue)
  72. {
  73. try
  74. {
  75. return stuCancelDisciplineManagementService.GetStuCancelDisciplineManagementEntity(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="processId">流程实例ID</param>
  93. /// <returns></returns>
  94. public StuCancelDisciplineManagementEntity GetEntityByProcessId(string processId)
  95. {
  96. try
  97. {
  98. return stuCancelDisciplineManagementService.GetEntityByProcessId(processId);
  99. }
  100. catch (Exception ex)
  101. {
  102. if (ex is ExceptionEx)
  103. {
  104. throw;
  105. }
  106. else
  107. {
  108. throw ExceptionEx.ThrowBusinessException(ex);
  109. }
  110. }
  111. }
  112. #endregion
  113. #region 提交数据
  114. /// <summary>
  115. /// 删除实体数据
  116. /// </summary>
  117. /// <param name="keyValue">主键</param>
  118. public void DeleteEntity(string keyValue)
  119. {
  120. try
  121. {
  122. stuCancelDisciplineManagementService.DeleteEntity(keyValue);
  123. }
  124. catch (Exception ex)
  125. {
  126. if (ex is ExceptionEx)
  127. {
  128. throw;
  129. }
  130. else
  131. {
  132. throw ExceptionEx.ThrowBusinessException(ex);
  133. }
  134. }
  135. }
  136. /// <summary>
  137. /// 保存实体数据(新增、修改)
  138. /// </summary>
  139. /// <param name="keyValue">主键</param>
  140. /// <param name="entity">实体</param>
  141. public void SaveEntity(string keyValue, StuCancelDisciplineManagementEntity entity)
  142. {
  143. try
  144. {
  145. stuCancelDisciplineManagementService.SaveEntity(keyValue, entity);
  146. }
  147. catch (Exception ex)
  148. {
  149. if (ex is ExceptionEx)
  150. {
  151. throw;
  152. }
  153. else
  154. {
  155. throw ExceptionEx.ThrowBusinessException(ex);
  156. }
  157. }
  158. }
  159. /// <summary>
  160. /// 提交实体数据
  161. /// </summary>
  162. /// <param name="keyValue">主键</param>
  163. public void DoSubmit(string keyValue, string status, string processId)
  164. {
  165. try
  166. {
  167. stuCancelDisciplineManagementService.DoSubmit(keyValue, status, processId);
  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. /// <summary>
  182. /// 审核实体数据
  183. /// </summary>
  184. /// <param name="keyValue">主键</param>
  185. public void ChangeStatusByProcessId(string status, string processId, string userId)
  186. {
  187. try
  188. {
  189. stuCancelDisciplineManagementService.ChangeStatusByProcessId(status, processId, userId);
  190. }
  191. catch (Exception ex)
  192. {
  193. if (ex is ExceptionEx)
  194. {
  195. throw;
  196. }
  197. else
  198. {
  199. throw ExceptionEx.ThrowBusinessException(ex);
  200. }
  201. }
  202. }
  203. #endregion
  204. }
  205. }