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.
 
 
 
 
 
 

525 lines
14 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. /// <summary>
  66. /// 专业统计
  67. /// </summary>
  68. /// <param name="pagination">分页参数</param>
  69. /// <param name="queryJson">查询参数</param>
  70. /// <returns></returns>
  71. public IEnumerable<StuVolunteerEntity> GetMajorStatistics(string queryJson)
  72. {
  73. try
  74. {
  75. return stuVolunteerService.GetMajorStatistics(queryJson);
  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. stuVolunteerService.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. /// <returns></returns>
  119. public void SaveEntity(string keyValue, StuVolunteerEntity entity)
  120. {
  121. try
  122. {
  123. stuVolunteerService.SaveEntity(keyValue, entity);
  124. }
  125. catch (Exception ex)
  126. {
  127. if (ex is ExceptionEx)
  128. {
  129. throw;
  130. }
  131. else
  132. {
  133. throw ExceptionEx.ThrowBusinessException(ex);
  134. }
  135. }
  136. }
  137. /// <summary>
  138. /// 分班
  139. /// </summary>
  140. /// <param name="keyValue"></param>
  141. /// <param name="ClassNo"></param>
  142. public void SaveClassForm(string keyValue, string ClassNo)
  143. {
  144. try
  145. {
  146. stuVolunteerService.SaveClassForm(keyValue, ClassNo);
  147. }
  148. catch (Exception ex)
  149. {
  150. if (ex is ExceptionEx)
  151. {
  152. throw;
  153. }
  154. else
  155. {
  156. throw ExceptionEx.ThrowBusinessException(ex);
  157. }
  158. }
  159. }
  160. public void CheckForm(string keyValue, int ClassStatus)
  161. {
  162. try
  163. {
  164. stuVolunteerService.CheckForm(keyValue, ClassStatus);
  165. }
  166. catch (Exception ex)
  167. {
  168. if (ex is ExceptionEx)
  169. {
  170. throw;
  171. }
  172. else
  173. {
  174. throw ExceptionEx.ThrowBusinessException(ex);
  175. }
  176. }
  177. }
  178. /// <summary>
  179. /// 生成学籍
  180. /// </summary>
  181. public void GenerateStu()
  182. {
  183. try
  184. {
  185. stuVolunteerService.GenerateStu();
  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. #endregion
  200. #region 扩展数据
  201. /// <summary>
  202. /// 去重
  203. /// </summary>
  204. /// <param name="H_SchoolNo">学号</param>
  205. /// <param name="ApplyNo">报名号</param>
  206. /// <param name="CardNo">身份证</param>
  207. /// <returns></returns>
  208. public List<StuVolunteerEntity> GetRepetitions(string H_SchoolNo, string ApplyNo, string CardNo)
  209. {
  210. try
  211. {
  212. return stuVolunteerService.GetRepetitions(H_SchoolNo, ApplyNo, CardNo);
  213. }
  214. catch (Exception ex)
  215. {
  216. if (ex is ExceptionEx)
  217. {
  218. throw;
  219. }
  220. else
  221. {
  222. throw ExceptionEx.ThrowBusinessException(ex);
  223. }
  224. }
  225. }
  226. /// <summary>
  227. /// 标注数据
  228. /// </summary>
  229. /// <param name="keyValue">主键</param>
  230. public void LabelEntity(string keyValue)
  231. {
  232. try
  233. {
  234. stuVolunteerService.LabelEntity(keyValue);
  235. }
  236. catch (Exception ex)
  237. {
  238. if (ex is ExceptionEx)
  239. {
  240. throw;
  241. }
  242. else
  243. {
  244. throw ExceptionEx.ThrowBusinessException(ex);
  245. }
  246. }
  247. }
  248. /// <summary>
  249. /// 取消标注数据
  250. /// </summary>
  251. /// <param name="keyValue">主键</param>
  252. public void CancelLabel(string keyValue)
  253. {
  254. try
  255. {
  256. stuVolunteerService.CancelLabel(keyValue);
  257. }
  258. catch (Exception ex)
  259. {
  260. if (ex is ExceptionEx)
  261. {
  262. throw;
  263. }
  264. else
  265. {
  266. throw ExceptionEx.ThrowBusinessException(ex);
  267. }
  268. }
  269. }
  270. /// <summary>
  271. /// 志愿填报
  272. /// </summary>
  273. /// <param name="keyValue"></param>
  274. /// <param name="entity"></param>
  275. public void IsOurSchool(string keyValue, StuVolunteerEntity entity)
  276. {
  277. try
  278. {
  279. stuVolunteerService.IsOurSchool(keyValue, entity);
  280. }
  281. catch (Exception ex)
  282. {
  283. if (ex is ExceptionEx)
  284. {
  285. throw;
  286. }
  287. else
  288. {
  289. throw ExceptionEx.ThrowBusinessException(ex);
  290. }
  291. }
  292. }
  293. /// <summary>
  294. /// 录取学生
  295. /// </summary>
  296. /// <param name="keyValue">主键</param>
  297. public void EnrollEntity(string keyValue)
  298. {
  299. try
  300. {
  301. stuVolunteerService.EnrollEntity(keyValue);
  302. }
  303. catch (Exception ex)
  304. {
  305. if (ex is ExceptionEx)
  306. {
  307. throw;
  308. }
  309. else
  310. {
  311. throw ExceptionEx.ThrowBusinessException(ex);
  312. }
  313. }
  314. }
  315. /// <summary>
  316. /// 取消录取学生
  317. /// </summary>
  318. /// <param name="keyValue">主键</param>
  319. public void CancelEntity(string keyValue)
  320. {
  321. try
  322. {
  323. stuVolunteerService.CancelEntity(keyValue);
  324. }
  325. catch (Exception ex)
  326. {
  327. if (ex is ExceptionEx)
  328. {
  329. throw;
  330. }
  331. else
  332. {
  333. throw ExceptionEx.ThrowBusinessException(ex);
  334. }
  335. }
  336. }
  337. /// <summary>
  338. /// 保存实体数据(新增、修改)
  339. /// </summary>
  340. /// <param name="keyValue">主键</param>
  341. /// <param name="entity">实体</param>
  342. /// <returns></returns>
  343. public void DraftForm(string keyValue, StuVolunteerEntity entity)
  344. {
  345. try
  346. {
  347. stuVolunteerService.DraftForm(keyValue, entity);
  348. }
  349. catch (Exception ex)
  350. {
  351. if (ex is ExceptionEx)
  352. {
  353. throw;
  354. }
  355. else
  356. {
  357. throw ExceptionEx.ThrowBusinessException(ex);
  358. }
  359. }
  360. }
  361. /// <summary>
  362. /// 保存实体数据(新增、修改)
  363. /// </summary>
  364. /// <param name="keyValue">主键</param>
  365. /// <param name="entity">实体</param>
  366. /// <returns></returns>
  367. public void SubmitForm(string keyValue, StuVolunteerEntity entity)
  368. {
  369. try
  370. {
  371. stuVolunteerService.SubmitForm(keyValue, entity);
  372. }
  373. catch (Exception ex)
  374. {
  375. if (ex is ExceptionEx)
  376. {
  377. throw;
  378. }
  379. else
  380. {
  381. throw ExceptionEx.ThrowBusinessException(ex);
  382. }
  383. }
  384. }
  385. /// <summary>
  386. /// 获取StuVolunteer表实体数据
  387. /// </summary>
  388. /// <param name="keyValue">主键</param>
  389. /// <returns></returns>
  390. public StuVolunteerEntity GetEntityByCardNo(string CardNo)
  391. {
  392. try
  393. {
  394. return stuVolunteerService.GetEntityByCardNo(CardNo);
  395. }
  396. catch (Exception ex)
  397. {
  398. if (ex is ExceptionEx)
  399. {
  400. throw;
  401. }
  402. else
  403. {
  404. throw ExceptionEx.ThrowBusinessException(ex);
  405. }
  406. }
  407. }
  408. /// <summary>
  409. /// 标注数据
  410. /// </summary>
  411. /// <param name="keyValue">主键</param>
  412. public void JoinEntity(string keyValue)
  413. {
  414. try
  415. {
  416. stuVolunteerService.JoinEntity(keyValue);
  417. }
  418. catch (Exception ex)
  419. {
  420. if (ex is ExceptionEx)
  421. {
  422. throw;
  423. }
  424. else
  425. {
  426. throw ExceptionEx.ThrowBusinessException(ex);
  427. }
  428. }
  429. }
  430. /// <summary>
  431. /// 取消标注数据
  432. /// </summary>
  433. /// <param name="keyValue">主键</param>
  434. public void CanJoin(string keyValue)
  435. {
  436. try
  437. {
  438. stuVolunteerService.CanJoin(keyValue);
  439. }
  440. catch (Exception ex)
  441. {
  442. if (ex is ExceptionEx)
  443. {
  444. throw;
  445. }
  446. else
  447. {
  448. throw ExceptionEx.ThrowBusinessException(ex);
  449. }
  450. }
  451. }
  452. /// <summary>
  453. /// 专业审核
  454. /// </summary>
  455. /// <param name="keyValue"></param>
  456. /// <param name="ClassStatus"></param>
  457. public void MajorForm(string keyValue, int ClassStatus)
  458. {
  459. try
  460. {
  461. stuVolunteerService.MajorForm(keyValue, ClassStatus);
  462. }
  463. catch (Exception ex)
  464. {
  465. if (ex is ExceptionEx)
  466. {
  467. throw;
  468. }
  469. else
  470. {
  471. throw ExceptionEx.ThrowBusinessException(ex);
  472. }
  473. }
  474. }
  475. /// <summary>
  476. /// 专业注册
  477. /// </summary>
  478. /// <param name="keyValue"></param>
  479. /// <param name="ClassNo"></param>
  480. public void SaveMajorForm(string keyValue, string MajorNo)
  481. {
  482. try
  483. {
  484. stuVolunteerService.SaveMajorForm(keyValue, MajorNo);
  485. }
  486. catch (Exception ex)
  487. {
  488. if (ex is ExceptionEx)
  489. {
  490. throw;
  491. }
  492. else
  493. {
  494. throw ExceptionEx.ThrowBusinessException(ex);
  495. }
  496. }
  497. }
  498. #endregion
  499. }
  500. }