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.
 
 
 
 
 
 

241 lines
6.3 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-Ultimate V7.0.0 数字化智慧校园
  9. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  10. /// 创 建:超级管理员
  11. /// 日 期:2019-05-24 15:40
  12. /// 描 述:学生请假记录
  13. /// </summary>
  14. public class StuAttendanceLeaveBLL : StuAttendanceLeaveIBLL
  15. {
  16. private StuAttendanceLeaveService stuAttendanceLeaveService = new StuAttendanceLeaveService();
  17. #region 获取数据
  18. /// <summary>
  19. /// 获取页面显示列表数据
  20. /// <summary>
  21. /// <param name="queryJson">查询参数</param>
  22. /// <returns></returns>
  23. public IEnumerable<StuAttendanceLeaveEntity> GetPageList(Pagination pagination, string queryJson)
  24. {
  25. try
  26. {
  27. return stuAttendanceLeaveService.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. /// 获取页面显示列表数据
  43. /// <summary>
  44. /// <param name="queryJson">查询参数</param>
  45. /// <returns></returns>
  46. public IEnumerable<StuAttendanceLeaveEntity> GetList(string queryJson)
  47. {
  48. try
  49. {
  50. return stuAttendanceLeaveService.GetList(queryJson);
  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. public List<StuAttendanceLeaveEntity> GetList()
  65. {
  66. try
  67. {
  68. return stuAttendanceLeaveService.GetList();
  69. }
  70. catch (Exception ex)
  71. {
  72. if (ex is ExceptionEx)
  73. {
  74. throw;
  75. }
  76. else
  77. {
  78. throw ExceptionEx.ThrowBusinessException(ex);
  79. }
  80. }
  81. }
  82. /// <summary>
  83. /// 获取StuAttendanceLeave表实体数据
  84. /// <param name="keyValue">主键</param>
  85. /// <summary>
  86. /// <returns></returns>
  87. public StuAttendanceLeaveEntity GetStuAttendanceLeaveEntity(string keyValue)
  88. {
  89. try
  90. {
  91. return stuAttendanceLeaveService.GetStuAttendanceLeaveEntity(keyValue);
  92. }
  93. catch (Exception ex)
  94. {
  95. if (ex is ExceptionEx)
  96. {
  97. throw;
  98. }
  99. else
  100. {
  101. throw ExceptionEx.ThrowBusinessException(ex);
  102. }
  103. }
  104. }
  105. /// <summary>
  106. /// 获取页面显示列表数据
  107. /// <summary>
  108. /// <param name="queryJson">查询参数</param>
  109. /// <returns></returns>
  110. public IEnumerable<StuAttendanceLeaveEntity> GetListByJson(string queryJson)
  111. {
  112. try
  113. {
  114. return stuAttendanceLeaveService.GetListByJson(queryJson);
  115. }
  116. catch (Exception ex)
  117. {
  118. if (ex is ExceptionEx)
  119. {
  120. throw;
  121. }
  122. else
  123. {
  124. throw ExceptionEx.ThrowBusinessException(ex);
  125. }
  126. }
  127. }
  128. #endregion
  129. #region 提交数据
  130. /// <summary>
  131. /// 删除实体数据
  132. /// <param name="keyValue">主键</param>
  133. /// <summary>
  134. /// <returns></returns>
  135. public void DeleteEntity(string keyValue)
  136. {
  137. try
  138. {
  139. stuAttendanceLeaveService.DeleteEntity(keyValue);
  140. }
  141. catch (Exception ex)
  142. {
  143. if (ex is ExceptionEx)
  144. {
  145. throw;
  146. }
  147. else
  148. {
  149. throw ExceptionEx.ThrowBusinessException(ex);
  150. }
  151. }
  152. }
  153. public void Check(string keyValue, string checkValue)
  154. {
  155. try
  156. {
  157. stuAttendanceLeaveService.Check(keyValue, checkValue);
  158. }
  159. catch (Exception ex)
  160. {
  161. if (ex is ExceptionEx)
  162. {
  163. throw;
  164. }
  165. else
  166. {
  167. throw ExceptionEx.ThrowBusinessException(ex);
  168. }
  169. }
  170. }
  171. /// <summary>
  172. /// 保存实体数据(新增、修改)
  173. /// <param name="keyValue">主键</param>
  174. /// <summary>
  175. /// <returns></returns>
  176. public void SaveEntity(string keyValue, StuAttendanceLeaveEntity entity)
  177. {
  178. try
  179. {
  180. stuAttendanceLeaveService.SaveEntity(keyValue, entity);
  181. }
  182. catch (Exception ex)
  183. {
  184. if (ex is ExceptionEx)
  185. {
  186. throw;
  187. }
  188. else
  189. {
  190. throw ExceptionEx.ThrowBusinessException(ex);
  191. }
  192. }
  193. }
  194. /// <summary>
  195. /// 保存实体数据(新增、修改)
  196. /// <param name="keyValue">主键</param>
  197. /// <summary>
  198. /// <returns></returns>
  199. public void SaveEntity(UserInfo userInfo, string keyValue, StuAttendanceLeaveEntity entity)
  200. {
  201. try
  202. {
  203. stuAttendanceLeaveService.SaveEntity(userInfo, keyValue, entity);
  204. }
  205. catch (Exception ex)
  206. {
  207. if (ex is ExceptionEx)
  208. {
  209. throw;
  210. }
  211. else
  212. {
  213. throw ExceptionEx.ThrowBusinessException(ex);
  214. }
  215. }
  216. }
  217. #endregion
  218. }
  219. }