Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 
 

218 wiersze
6.1 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-03-26 11:35
  12. /// 描 述:学生销假管理
  13. /// </summary>
  14. public class StuCancelLeaveManagementBLL : StuCancelLeaveManagementIBLL
  15. {
  16. private StuCancelLeaveManagementService stuCancelLeaveManagementService = new StuCancelLeaveManagementService();
  17. #region 获取数据
  18. /// <summary>
  19. /// 获取页面显示列表数据
  20. /// </summary>
  21. /// <param name="pagination">分页参数</param>
  22. /// <param name="queryJson">查询参数</param>
  23. /// <returns></returns>
  24. public IEnumerable<StuCancelLeaveManagementEntity> GetPageList(Pagination pagination, string queryJson)
  25. {
  26. try
  27. {
  28. return stuCancelLeaveManagementService.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="queryJson">查询参数</param>
  46. /// <returns></returns>
  47. public IEnumerable<StuCancelLeaveManagementEntity> GetPageList( string queryJson)
  48. {
  49. try
  50. {
  51. return stuCancelLeaveManagementService.GetPageList(queryJson);
  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. /// 获取StuCancelLeaveManagement表实体数据
  67. /// </summary>
  68. /// <param name="keyValue">主键</param>
  69. /// <returns></returns>
  70. public StuCancelLeaveManagementEntity GetStuCancelLeaveManagementEntity(string keyValue)
  71. {
  72. try
  73. {
  74. return stuCancelLeaveManagementService.GetStuCancelLeaveManagementEntity(keyValue);
  75. }
  76. catch (Exception ex)
  77. {
  78. if (ex is ExceptionEx)
  79. {
  80. throw;
  81. }
  82. else
  83. {
  84. throw ExceptionEx.ThrowBusinessException(ex);
  85. }
  86. }
  87. }
  88. /// <summary>
  89. /// 获取主表实体数据
  90. /// </summary>
  91. /// <param name="processId">流程实例ID</param>
  92. /// <returns></returns>
  93. public StuCancelLeaveManagementEntity GetEntityByProcessId(string processId)
  94. {
  95. try
  96. {
  97. return stuCancelLeaveManagementService.GetEntityByProcessId(processId);
  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. #endregion
  112. #region 提交数据
  113. /// <summary>
  114. /// 删除实体数据
  115. /// </summary>
  116. /// <param name="keyValue">主键</param>
  117. public void DeleteEntity(string keyValue)
  118. {
  119. try
  120. {
  121. stuCancelLeaveManagementService.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. /// </summary>
  138. /// <param name="keyValue">主键</param>
  139. /// <param name="entity">实体</param>
  140. /// <returns></returns>
  141. public void SaveEntity(string keyValue, StuCancelLeaveManagementEntity entity)
  142. {
  143. try
  144. {
  145. stuCancelLeaveManagementService.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. stuCancelLeaveManagementService.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. stuCancelLeaveManagementService.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. }