選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

213 行
6.0 KiB

  1. using Learun.Util;
  2. using System;
  3. using System.Data;
  4. using System.Collections.Generic;
  5. using Learun.Application.TwoDevelopment.AssetManagementSystem;
  6. namespace Learun.Application.TwoDevelopment.EducationalAdministration
  7. {
  8. /// <summary>
  9. /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架
  10. /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
  11. /// 创 建:超级管理员
  12. /// 日 期:2021-03-26 15:23
  13. /// 描 述:学生违纪管理
  14. /// </summary>
  15. public class StuDisciplineManagementBLL : StuDisciplineManagementIBLL
  16. {
  17. private StuDisciplineManagementService stuDisciplineManagementService = new StuDisciplineManagementService();
  18. #region 获取数据
  19. /// <summary>
  20. /// 获取页面显示列表数据
  21. /// </summary>
  22. /// <param name="pagination">分页参数</param>
  23. /// <param name="queryJson">查询参数</param>
  24. /// <returns></returns>
  25. public IEnumerable<StuDisciplineManagementEntity> GetPageList(Pagination pagination, string queryJson)
  26. {
  27. try
  28. {
  29. return stuDisciplineManagementService.GetPageList(pagination, queryJson);
  30. }
  31. catch (Exception ex)
  32. {
  33. if (ex is ExceptionEx)
  34. {
  35. throw;
  36. }
  37. else
  38. {
  39. throw ExceptionEx.ThrowBusinessException(ex);
  40. }
  41. }
  42. }
  43. /// <summary>
  44. /// 获取StuDisciplineManagement表实体数据
  45. /// </summary>
  46. /// <param name="keyValue">主键</param>
  47. /// <returns></returns>
  48. public StuDisciplineManagementEntity GetStuDisciplineManagementEntity(string keyValue)
  49. {
  50. try
  51. {
  52. return stuDisciplineManagementService.GetStuDisciplineManagementEntity(keyValue);
  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. /// 获取主表实体数据
  68. /// </summary>
  69. /// <param name="processId">流程实例ID</param>
  70. /// <returns></returns>
  71. public StuDisciplineManagementEntity GetEntityByProcessId(string processId)
  72. {
  73. try
  74. {
  75. return stuDisciplineManagementService.GetEntityByProcessId(processId);
  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. #endregion
  90. #region 提交数据
  91. /// <summary>
  92. /// 删除实体数据
  93. /// </summary>
  94. /// <param name="keyValue">主键</param>
  95. public void DeleteEntity(string keyValue)
  96. {
  97. try
  98. {
  99. stuDisciplineManagementService.DeleteEntity(keyValue);
  100. }
  101. catch (Exception ex)
  102. {
  103. if (ex is ExceptionEx)
  104. {
  105. throw;
  106. }
  107. else
  108. {
  109. throw ExceptionEx.ThrowBusinessException(ex);
  110. }
  111. }
  112. }
  113. /// <summary>
  114. /// 保存实体数据(新增、修改)
  115. /// </summary>
  116. /// <param name="keyValue">主键</param>
  117. /// <param name="entity">实体</param>
  118. public void SaveEntity(string keyValue, StuDisciplineManagementEntity entity)
  119. {
  120. try
  121. {
  122. stuDisciplineManagementService.SaveEntity(keyValue, entity);
  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. public void DoSubmit(string keyValue, string status, string processId)
  141. {
  142. try
  143. {
  144. stuDisciplineManagementService.DoSubmit(keyValue, status, processId);
  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. /// </summary>
  161. /// <param name="keyValue">主键</param>
  162. public void ChangeStatusByProcessId(string status, string processId, string userId)
  163. {
  164. try
  165. {
  166. stuDisciplineManagementService.ChangeStatusByProcessId(status, processId, userId);
  167. }
  168. catch (Exception ex)
  169. {
  170. if (ex is ExceptionEx)
  171. {
  172. throw;
  173. }
  174. else
  175. {
  176. throw ExceptionEx.ThrowBusinessException(ex);
  177. }
  178. }
  179. }
  180. #endregion
  181. public void ChangeStatusByProcessId(string ProcessID, int PStatus, string userId)
  182. {
  183. try
  184. {
  185. stuDisciplineManagementService.ChangeStatusByProcessId(ProcessID, PStatus, userId);
  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. }
  200. }