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.
 
 
 
 
 
 

270 lines
7.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-12-16 10:14
  12. /// 描 述:长阳迎新
  13. /// </summary>
  14. public class StuVolunteerBLL : StuVolunteerIBLL
  15. {
  16. private StuVolunteerService stuVolunteerService = new StuVolunteerService();
  17. #region 获取数据
  18. /// <summary>
  19. /// 获取页面显示列表数据
  20. /// </summary>
  21. /// <param name="pagination">分页参数</param>
  22. /// <param name="queryJson">查询参数</param>
  23. /// <returns></returns>
  24. public IEnumerable<StuVolunteerEntity> GetPageList(Pagination pagination, string queryJson)
  25. {
  26. try
  27. {
  28. return stuVolunteerService.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. /// 获取StuVolunteer表实体数据
  44. /// </summary>
  45. /// <param name="keyValue">主键</param>
  46. /// <returns></returns>
  47. public StuVolunteerEntity GetStuVolunteerEntity(string keyValue)
  48. {
  49. try
  50. {
  51. return stuVolunteerService.GetStuVolunteerEntity(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. #endregion
  66. #region 提交数据
  67. /// <summary>
  68. /// 删除实体数据
  69. /// </summary>
  70. /// <param name="keyValue">主键</param>
  71. public void DeleteEntity(string keyValue)
  72. {
  73. try
  74. {
  75. stuVolunteerService.DeleteEntity(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="keyValue">主键</param>
  93. /// <param name="entity">实体</param>
  94. /// <returns></returns>
  95. public void SaveEntity(string keyValue, StuVolunteerEntity entity)
  96. {
  97. try
  98. {
  99. stuVolunteerService.SaveEntity(keyValue, entity);
  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. #endregion
  114. #region 扩展数据
  115. /// <summary>
  116. /// 去重
  117. /// </summary>
  118. /// <param name="H_SchoolNo">学号</param>
  119. /// <param name="ApplyNo">报名号</param>
  120. /// <param name="CardNo">身份证</param>
  121. /// <returns></returns>
  122. public List<StuVolunteerEntity> GetRepetitions(string H_SchoolNo, string ApplyNo, string CardNo)
  123. {
  124. try
  125. {
  126. return stuVolunteerService.GetRepetitions(H_SchoolNo, ApplyNo, CardNo);
  127. }
  128. catch (Exception ex)
  129. {
  130. if (ex is ExceptionEx)
  131. {
  132. throw;
  133. }
  134. else
  135. {
  136. throw ExceptionEx.ThrowBusinessException(ex);
  137. }
  138. }
  139. }
  140. /// <summary>
  141. /// 标注数据
  142. /// </summary>
  143. /// <param name="keyValue">主键</param>
  144. public void LabelEntity(string keyValue)
  145. {
  146. try
  147. {
  148. stuVolunteerService.LabelEntity(keyValue);
  149. }
  150. catch (Exception ex)
  151. {
  152. if (ex is ExceptionEx)
  153. {
  154. throw;
  155. }
  156. else
  157. {
  158. throw ExceptionEx.ThrowBusinessException(ex);
  159. }
  160. }
  161. }
  162. /// <summary>
  163. /// 取消标注数据
  164. /// </summary>
  165. /// <param name="keyValue">主键</param>
  166. public void CancelLabel(string keyValue)
  167. {
  168. try
  169. {
  170. stuVolunteerService.CancelLabel(keyValue);
  171. }
  172. catch (Exception ex)
  173. {
  174. if (ex is ExceptionEx)
  175. {
  176. throw;
  177. }
  178. else
  179. {
  180. throw ExceptionEx.ThrowBusinessException(ex);
  181. }
  182. }
  183. }
  184. /// <summary>
  185. /// 志愿填报
  186. /// </summary>
  187. /// <param name="keyValue"></param>
  188. /// <param name="entity"></param>
  189. public void IsOurSchool(string keyValue, StuVolunteerEntity entity)
  190. {
  191. try
  192. {
  193. stuVolunteerService.SaveEntity(keyValue, entity);
  194. }
  195. catch (Exception ex)
  196. {
  197. if (ex is ExceptionEx)
  198. {
  199. throw;
  200. }
  201. else
  202. {
  203. throw ExceptionEx.ThrowBusinessException(ex);
  204. }
  205. }
  206. }
  207. /// <summary>
  208. /// 录取学生
  209. /// </summary>
  210. /// <param name="keyValue">主键</param>
  211. public void EnrollEntity(string keyValue)
  212. {
  213. try
  214. {
  215. stuVolunteerService.EnrollEntity(keyValue);
  216. }
  217. catch (Exception ex)
  218. {
  219. if (ex is ExceptionEx)
  220. {
  221. throw;
  222. }
  223. else
  224. {
  225. throw ExceptionEx.ThrowBusinessException(ex);
  226. }
  227. }
  228. }
  229. /// <summary>
  230. /// 取消录取学生
  231. /// </summary>
  232. /// <param name="keyValue">主键</param>
  233. public void CancelEntity(string keyValue)
  234. {
  235. try
  236. {
  237. stuVolunteerService.CancelEntity(keyValue);
  238. }
  239. catch (Exception ex)
  240. {
  241. if (ex is ExceptionEx)
  242. {
  243. throw;
  244. }
  245. else
  246. {
  247. throw ExceptionEx.ThrowBusinessException(ex);
  248. }
  249. }
  250. }
  251. #endregion
  252. }
  253. }