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.

StuEnrollBLL.cs 29 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118
  1. using Learun.Util;
  2. using System;
  3. using System.Data;
  4. using System.Collections.Generic;
  5. using Learun.Application.TwoDevelopment.LogisticsManagement;
  6. namespace Learun.Application.TwoDevelopment.EducationalAdministration
  7. {
  8. /// <summary>
  9. /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
  10. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  11. /// 创 建:超级管理员
  12. /// 日 期:2019-07-17 11:20
  13. /// 描 述:新生录取管理
  14. /// </summary>
  15. public class StuEnrollBLL : StuEnrollIBLL
  16. {
  17. private StuEnrollService stuEnrollService = new StuEnrollService();
  18. #region 获取数据
  19. /// <summary>
  20. /// 获取页面显示列表数据
  21. /// <summary>
  22. /// <param name="queryJson">查询参数</param>
  23. /// <returns></returns>
  24. public IEnumerable<StuEnrollEntity> GetPageList(Pagination pagination, string queryJson)
  25. {
  26. try
  27. {
  28. return stuEnrollService.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="pagination"></param>
  46. /// <param name="queryJson"></param>
  47. /// <returns></returns>
  48. public IEnumerable<StuEnrollEntity> GetPageListForTJ(Pagination pagination, string queryJson)
  49. {
  50. try
  51. {
  52. return stuEnrollService.GetPageListForTJ(pagination, queryJson);
  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. public IEnumerable<StuEnrollEntity> AllStudent()
  67. {
  68. try
  69. {
  70. return stuEnrollService.AllStudent();
  71. }
  72. catch (Exception ex)
  73. {
  74. if (ex is ExceptionEx)
  75. {
  76. throw;
  77. }
  78. else
  79. {
  80. throw ExceptionEx.ThrowBusinessException(ex);
  81. }
  82. }
  83. }
  84. public IEnumerable<Acc_DormitoryBuildEntity> GetDormitorys(Pagination pagination, string queryJson)
  85. {
  86. try
  87. {
  88. return stuEnrollService.GetDormitorys(pagination, queryJson);
  89. }
  90. catch (Exception ex)
  91. {
  92. if (ex is ExceptionEx)
  93. {
  94. throw;
  95. }
  96. else
  97. {
  98. throw ExceptionEx.ThrowBusinessException(ex);
  99. }
  100. }
  101. }
  102. /// <summary>
  103. /// 招生统计
  104. /// <summary>
  105. /// <param name="queryJson">查询参数</param>
  106. /// <returns></returns>
  107. public DataTable GetTJList(string queryJson)
  108. {
  109. try
  110. {
  111. return stuEnrollService.GetTJList(queryJson);
  112. }
  113. catch (Exception ex)
  114. {
  115. if (ex is ExceptionEx)
  116. {
  117. throw;
  118. }
  119. else
  120. {
  121. throw ExceptionEx.ThrowBusinessException(ex);
  122. }
  123. }
  124. }
  125. /// <summary>
  126. /// 获取页面显示列表数据
  127. /// <summary>
  128. /// <param name="queryJson">查询参数</param>
  129. /// <returns></returns>
  130. public IEnumerable<StuEnrollEntity> GetList(string queryJson)
  131. {
  132. try
  133. {
  134. return stuEnrollService.GetList(queryJson);
  135. }
  136. catch (Exception ex)
  137. {
  138. if (ex is ExceptionEx)
  139. {
  140. throw;
  141. }
  142. else
  143. {
  144. throw ExceptionEx.ThrowBusinessException(ex);
  145. }
  146. }
  147. }
  148. /// <summary>
  149. /// 获取页面显示列表数据
  150. /// <summary>
  151. /// <param name="queryJson">查询参数</param>
  152. /// <returns></returns>
  153. public IEnumerable<StuEnrollEntity> GetReportPageList(Pagination pagination, string queryJson)
  154. {
  155. try
  156. {
  157. return stuEnrollService.GetReportPageList(pagination, queryJson);
  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. /// 获取StuEnroll表实体数据
  173. /// <param name="keyValue">主键</param>
  174. /// <summary>
  175. /// <returns></returns>
  176. public StuEnrollEntity GetStuEnrollEntity(string keyValue)
  177. {
  178. try
  179. {
  180. return stuEnrollService.GetStuEnrollEntity(keyValue);
  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. public IEnumerable<StuEnrollMidExamScoreEntity> GetMidExamScoreData(string keyValue)
  195. {
  196. try
  197. {
  198. return stuEnrollService.GetMidExamScoreData(keyValue);
  199. }
  200. catch (Exception ex)
  201. {
  202. if (ex is ExceptionEx)
  203. {
  204. throw;
  205. }
  206. else
  207. {
  208. throw ExceptionEx.ThrowBusinessException(ex);
  209. }
  210. }
  211. }
  212. /// <summary>
  213. /// 获取StuEnroll表实体数据
  214. /// <param name="keyValue">主键</param>
  215. /// <summary>
  216. /// <returns></returns>
  217. public StuEnrollEntity GetEntityByPersonalData(string IDCard, string StuName)
  218. {
  219. try
  220. {
  221. return stuEnrollService.GetEntityByPersonalData(IDCard, StuName);
  222. }
  223. catch (Exception ex)
  224. {
  225. if (ex is ExceptionEx)
  226. {
  227. throw;
  228. }
  229. else
  230. {
  231. throw ExceptionEx.ThrowBusinessException(ex);
  232. }
  233. }
  234. }
  235. public object GetStuInfo(string stuId)
  236. {
  237. try
  238. {
  239. return stuEnrollService.GetStuInfo(stuId);
  240. }
  241. catch (Exception ex)
  242. {
  243. if (ex is ExceptionEx)
  244. {
  245. throw;
  246. }
  247. else
  248. {
  249. throw ExceptionEx.ThrowBusinessException(ex);
  250. }
  251. }
  252. }
  253. public object GetCheckInStatistics(string DeptNo, string MajorNo, string ClassNo)
  254. {
  255. try
  256. {
  257. return stuEnrollService.GetCheckInStatistics(DeptNo, MajorNo, ClassNo);
  258. }
  259. catch (Exception ex)
  260. {
  261. if (ex is ExceptionEx)
  262. {
  263. throw;
  264. }
  265. else
  266. {
  267. throw ExceptionEx.ThrowBusinessException(ex);
  268. }
  269. }
  270. }
  271. public object GetHelpStatistics(string DeptNo, string MajorNo, string ClassNo)
  272. {
  273. try
  274. {
  275. return stuEnrollService.GetHelpStatistics(DeptNo, MajorNo, ClassNo);
  276. }
  277. catch (Exception ex)
  278. {
  279. if (ex is ExceptionEx)
  280. {
  281. throw;
  282. }
  283. else
  284. {
  285. throw ExceptionEx.ThrowBusinessException(ex);
  286. }
  287. }
  288. }
  289. public object GetMilitaryStatistics(string DeptNo, string MajorNo, string ClassNo)
  290. {
  291. try
  292. {
  293. return stuEnrollService.GetMilitaryStatistics(DeptNo, MajorNo, ClassNo);
  294. }
  295. catch (Exception ex)
  296. {
  297. if (ex is ExceptionEx)
  298. {
  299. throw;
  300. }
  301. else
  302. {
  303. throw ExceptionEx.ThrowBusinessException(ex);
  304. }
  305. }
  306. }
  307. /// 查询
  308. /// <param name="keyValue">主键</param>
  309. /// <summary>
  310. /// <returns></returns>
  311. public StuEnrollEntity SearchForm(int type, StuEnrollEntity entity)
  312. {
  313. try
  314. {
  315. return stuEnrollService.SearchForm(type, entity);
  316. }
  317. catch (Exception ex)
  318. {
  319. if (ex is ExceptionEx)
  320. {
  321. throw;
  322. }
  323. else
  324. {
  325. throw ExceptionEx.ThrowServiceException(ex);
  326. }
  327. }
  328. }
  329. public IEnumerable<ExamSubjectEntity> GetExamDataByStuId(string keyValue)
  330. {
  331. try
  332. {
  333. return stuEnrollService.GetExamDataByStuId(keyValue);
  334. }
  335. catch (Exception ex)
  336. {
  337. if (ex is ExceptionEx)
  338. {
  339. throw;
  340. }
  341. else
  342. {
  343. throw ExceptionEx.ThrowBusinessException(ex);
  344. }
  345. }
  346. }
  347. public List<TreeModel> GetTree()
  348. {
  349. try
  350. {
  351. var data = stuEnrollService.GetTree();
  352. List<TreeModel> treeList = new List<TreeModel>();
  353. foreach (var item in data)
  354. {
  355. TreeModel node = new TreeModel
  356. {
  357. id = item.Item3,
  358. text = $"{item.Item4}(男{item.Item1},女{item.Item2})",
  359. value = item.Item3,
  360. showcheck = false,
  361. checkstate = 0,
  362. isexpand = false,
  363. parentId = ""
  364. };
  365. treeList.Add(node);
  366. }
  367. return treeList.ToTree();
  368. }
  369. catch (Exception ex)
  370. {
  371. if (ex is ExceptionEx)
  372. {
  373. throw;
  374. }
  375. else
  376. {
  377. throw ExceptionEx.ThrowBusinessException(ex);
  378. }
  379. }
  380. }
  381. public List<TreeModel> GetBedTree(string classNo, string gender)
  382. {
  383. try
  384. {
  385. var data = stuEnrollService.GetBedTree(classNo, gender);
  386. List<TreeModel> treeList = new List<TreeModel>();
  387. foreach (var item in data)
  388. {
  389. TreeModel node = new TreeModel
  390. {
  391. id = item.ID,
  392. text = item.Name,
  393. value = item.ID,
  394. showcheck = false,
  395. checkstate = 0,
  396. isexpand = false,
  397. parentId = item.ParentID == null ? "" : item.ParentID
  398. };
  399. treeList.Add(node);
  400. }
  401. return treeList.ToTree();
  402. }
  403. catch (Exception ex)
  404. {
  405. if (ex is ExceptionEx)
  406. {
  407. throw;
  408. }
  409. else
  410. {
  411. throw ExceptionEx.ThrowBusinessException(ex);
  412. }
  413. }
  414. }
  415. public List<string> GetStuIdCards()
  416. {
  417. try
  418. {
  419. return stuEnrollService.GetStuIdCards();
  420. }
  421. catch (Exception ex)
  422. {
  423. if (ex is ExceptionEx)
  424. {
  425. throw;
  426. }
  427. else
  428. {
  429. throw ExceptionEx.ThrowBusinessException(ex);
  430. }
  431. }
  432. }
  433. #endregion
  434. #region 提交数据
  435. /// <summary>
  436. /// 删除实体数据
  437. /// <param name="keyValue">主键</param>
  438. /// <summary>
  439. /// <returns></returns>
  440. public void DeleteEntity(string keyValue)
  441. {
  442. try
  443. {
  444. stuEnrollService.DeleteEntity(keyValue);
  445. }
  446. catch (Exception ex)
  447. {
  448. if (ex is ExceptionEx)
  449. {
  450. throw;
  451. }
  452. else
  453. {
  454. throw ExceptionEx.ThrowBusinessException(ex);
  455. }
  456. }
  457. }
  458. public void EditEnrollType(string stuIds, string enrollType)
  459. {
  460. try
  461. {
  462. stuEnrollService.EditEnrollType(stuIds, enrollType);
  463. }
  464. catch (Exception ex)
  465. {
  466. if (ex is ExceptionEx)
  467. {
  468. throw;
  469. }
  470. else
  471. {
  472. throw ExceptionEx.ThrowBusinessException(ex);
  473. }
  474. }
  475. }
  476. /// 保存实体数据(新增、修改)
  477. /// <param name="keyValue">主键</param>
  478. /// <summary>
  479. /// <returns></returns>
  480. public void SaveEnroll(string keyValue, StuEnrollEntity entity, List<StuEnrollMidExamScoreEntity> scoreData)
  481. {
  482. try
  483. {
  484. stuEnrollService.SaveEnroll(keyValue, entity, scoreData);
  485. }
  486. catch (Exception ex)
  487. {
  488. if (ex is ExceptionEx)
  489. {
  490. throw;
  491. }
  492. else
  493. {
  494. throw ExceptionEx.ThrowServiceException(ex);
  495. }
  496. }
  497. }
  498. /// <summary>
  499. /// 保存实体数据(新增、修改)
  500. /// <param name="keyValue">主键</param>
  501. /// <summary>
  502. /// <returns></returns>
  503. public void SaveEntity(string keyValue, StuEnrollEntity entity)
  504. {
  505. try
  506. {
  507. stuEnrollService.SaveEntity(keyValue, entity);
  508. }
  509. catch (Exception ex)
  510. {
  511. if (ex is ExceptionEx)
  512. {
  513. throw;
  514. }
  515. else
  516. {
  517. throw ExceptionEx.ThrowBusinessException(ex);
  518. }
  519. }
  520. }
  521. public void AllocationClass(string classNo, string dataJson)
  522. {
  523. try
  524. {
  525. stuEnrollService.AllocationClass(classNo, dataJson);
  526. }
  527. catch (Exception ex)
  528. {
  529. if (ex is ExceptionEx)
  530. {
  531. throw;
  532. }
  533. else
  534. {
  535. throw ExceptionEx.ThrowBusinessException(ex);
  536. }
  537. }
  538. }
  539. public void NewAllocationDormitory(string classNo, string dataJson)
  540. {
  541. try
  542. {
  543. stuEnrollService.NewAllocationDormitory(classNo, dataJson);
  544. }
  545. catch (Exception ex)
  546. {
  547. if (ex is ExceptionEx)
  548. {
  549. throw;
  550. }
  551. else
  552. {
  553. throw ExceptionEx.ThrowBusinessException(ex);
  554. }
  555. }
  556. }
  557. public void AllocationDormiotry(string dormitoryNo, string stuId, string dormitoryName)
  558. {
  559. try
  560. {
  561. stuEnrollService.AllocationDormitory(dormitoryNo, stuId, dormitoryName);
  562. }
  563. catch (Exception ex)
  564. {
  565. if (ex is ExceptionEx)
  566. {
  567. throw;
  568. }
  569. else
  570. {
  571. throw ExceptionEx.ThrowBusinessException(ex);
  572. }
  573. }
  574. }
  575. public void SyncDept()
  576. {
  577. try
  578. {
  579. stuEnrollService.SyncDept();
  580. }
  581. catch (Exception ex)
  582. {
  583. if (ex is ExceptionEx)
  584. {
  585. throw;
  586. }
  587. else
  588. {
  589. throw ExceptionEx.ThrowBusinessException(ex);
  590. }
  591. }
  592. }
  593. public void SyncMajor()
  594. {
  595. try
  596. {
  597. stuEnrollService.SyncMajor();
  598. }
  599. catch (Exception ex)
  600. {
  601. if (ex is ExceptionEx)
  602. {
  603. throw;
  604. }
  605. else
  606. {
  607. throw ExceptionEx.ThrowBusinessException(ex);
  608. }
  609. }
  610. }
  611. public (bool, string) Sign(string stuId, bool status)
  612. {
  613. try
  614. {
  615. return stuEnrollService.Sign(stuId, status);
  616. }
  617. catch (Exception ex)
  618. {
  619. if (ex is ExceptionEx)
  620. {
  621. throw;
  622. }
  623. else
  624. {
  625. throw ExceptionEx.ThrowBusinessException(ex);
  626. }
  627. }
  628. }
  629. public (bool, string) Report(string stuId, bool status)
  630. {
  631. try
  632. {
  633. return stuEnrollService.Report(stuId, status);
  634. }
  635. catch (Exception ex)
  636. {
  637. if (ex is ExceptionEx)
  638. {
  639. throw;
  640. }
  641. else
  642. {
  643. throw ExceptionEx.ThrowBusinessException(ex);
  644. }
  645. }
  646. }
  647. public (bool, string) Stay(string stuId, bool status, bool After)
  648. {
  649. try
  650. {
  651. return stuEnrollService.Stay(stuId, status, After);
  652. }
  653. catch (Exception ex)
  654. {
  655. if (ex is ExceptionEx)
  656. {
  657. throw;
  658. }
  659. else
  660. {
  661. throw ExceptionEx.ThrowBusinessException(ex);
  662. }
  663. }
  664. }
  665. public void AllStay()
  666. {
  667. try
  668. {
  669. stuEnrollService.AllStay();
  670. }
  671. catch (Exception ex)
  672. {
  673. if (ex is ExceptionEx)
  674. {
  675. throw;
  676. }
  677. else
  678. {
  679. throw ExceptionEx.ThrowBusinessException(ex);
  680. }
  681. }
  682. }
  683. public (bool, string) Help(string stuId, bool status, bool payAfter)
  684. {
  685. try
  686. {
  687. return stuEnrollService.Help(stuId, status, payAfter);
  688. }
  689. catch (Exception ex)
  690. {
  691. if (ex is ExceptionEx)
  692. {
  693. throw;
  694. }
  695. else
  696. {
  697. throw ExceptionEx.ThrowBusinessException(ex);
  698. }
  699. }
  700. }
  701. public void AllHelp()
  702. {
  703. try
  704. {
  705. stuEnrollService.AllHelp();
  706. }
  707. catch (Exception ex)
  708. {
  709. if (ex is ExceptionEx)
  710. {
  711. throw;
  712. }
  713. else
  714. {
  715. throw ExceptionEx.ThrowBusinessException(ex);
  716. }
  717. }
  718. }
  719. public (bool, string) Military(string stuId, bool status, bool payAfter)
  720. {
  721. try
  722. {
  723. return stuEnrollService.Military(stuId, status, payAfter);
  724. }
  725. catch (Exception ex)
  726. {
  727. if (ex is ExceptionEx)
  728. {
  729. throw;
  730. }
  731. else
  732. {
  733. throw ExceptionEx.ThrowBusinessException(ex);
  734. }
  735. }
  736. }
  737. public void AllMilitary()
  738. {
  739. try
  740. {
  741. stuEnrollService.AllMilitary();
  742. }
  743. catch (Exception ex)
  744. {
  745. if (ex is ExceptionEx)
  746. {
  747. throw;
  748. }
  749. else
  750. {
  751. throw ExceptionEx.ThrowBusinessException(ex);
  752. }
  753. }
  754. }
  755. public void AllReport()
  756. {
  757. try
  758. {
  759. stuEnrollService.AllReport();
  760. }
  761. catch (Exception ex)
  762. {
  763. if (ex is ExceptionEx)
  764. {
  765. throw;
  766. }
  767. else
  768. {
  769. throw ExceptionEx.ThrowBusinessException(ex);
  770. }
  771. }
  772. }
  773. public void AllPhoto()
  774. {
  775. try
  776. {
  777. stuEnrollService.AllPhoto();
  778. }
  779. catch (Exception ex)
  780. {
  781. if (ex is ExceptionEx)
  782. {
  783. throw;
  784. }
  785. else
  786. {
  787. throw ExceptionEx.ThrowBusinessException(ex);
  788. }
  789. }
  790. }
  791. public void AllGetCloth()
  792. {
  793. try
  794. {
  795. stuEnrollService.AllGetCloth();
  796. }
  797. catch (Exception ex)
  798. {
  799. if (ex is ExceptionEx)
  800. {
  801. throw;
  802. }
  803. else
  804. {
  805. throw ExceptionEx.ThrowBusinessException(ex);
  806. }
  807. }
  808. }
  809. public void AllGetSize()
  810. {
  811. try
  812. {
  813. stuEnrollService.AllGetSize();
  814. }
  815. catch (Exception ex)
  816. {
  817. if (ex is ExceptionEx)
  818. {
  819. throw;
  820. }
  821. else
  822. {
  823. throw ExceptionEx.ThrowBusinessException(ex);
  824. }
  825. }
  826. }
  827. public void AllGetArticle()
  828. {
  829. try
  830. {
  831. stuEnrollService.AllGetArticle();
  832. }
  833. catch (Exception ex)
  834. {
  835. if (ex is ExceptionEx)
  836. {
  837. throw;
  838. }
  839. else
  840. {
  841. throw ExceptionEx.ThrowBusinessException(ex);
  842. }
  843. }
  844. }
  845. public (bool, string) IsPay(string stuId, bool status)
  846. {
  847. try
  848. {
  849. return stuEnrollService.IsPay(stuId, status);
  850. }
  851. catch (Exception ex)
  852. {
  853. if (ex is ExceptionEx)
  854. {
  855. throw;
  856. }
  857. else
  858. {
  859. throw ExceptionEx.ThrowBusinessException(ex);
  860. }
  861. }
  862. }
  863. public object GetPaymentInfo()
  864. {
  865. try
  866. {
  867. return stuEnrollService.GetPaymentInfo();
  868. }
  869. catch (Exception ex)
  870. {
  871. if (ex is ExceptionEx)
  872. {
  873. throw;
  874. }
  875. else
  876. {
  877. throw ExceptionEx.ThrowBusinessException(ex);
  878. }
  879. }
  880. }
  881. public object GetStuDefaultInfo(string StuId)
  882. {
  883. try
  884. {
  885. return stuEnrollService.GetStuDefaultInfo(StuId);
  886. }
  887. catch (Exception ex)
  888. {
  889. if (ex is ExceptionEx)
  890. {
  891. throw;
  892. }
  893. else
  894. {
  895. throw ExceptionEx.ThrowBusinessException(ex);
  896. }
  897. }
  898. }
  899. public (bool, string) IsPhoto(string stuId, bool status, string fileGuid)
  900. {
  901. try
  902. {
  903. return stuEnrollService.IsPhoto(stuId, status, fileGuid);
  904. }
  905. catch (Exception ex)
  906. {
  907. if (ex is ExceptionEx)
  908. {
  909. throw;
  910. }
  911. else
  912. {
  913. throw ExceptionEx.ThrowBusinessException(ex);
  914. }
  915. }
  916. }
  917. public (bool, string) GetCloth(string stuId, bool status)
  918. {
  919. try
  920. {
  921. return stuEnrollService.GetCloth(stuId, status);
  922. }
  923. catch (Exception ex)
  924. {
  925. if (ex is ExceptionEx)
  926. {
  927. throw;
  928. }
  929. else
  930. {
  931. throw ExceptionEx.ThrowBusinessException(ex);
  932. }
  933. }
  934. }
  935. public (bool, string) GetClothSize(string stuId, bool status)
  936. {
  937. try
  938. {
  939. return stuEnrollService.GetClothSize(stuId, status);
  940. }
  941. catch (Exception ex)
  942. {
  943. if (ex is ExceptionEx)
  944. {
  945. throw;
  946. }
  947. else
  948. {
  949. throw ExceptionEx.ThrowBusinessException(ex);
  950. }
  951. }
  952. }
  953. public (bool, string) GetArticles(string stuId, bool status)
  954. {
  955. try
  956. {
  957. return stuEnrollService.GetArticles(stuId, status);
  958. }
  959. catch (Exception ex)
  960. {
  961. if (ex is ExceptionEx)
  962. {
  963. throw;
  964. }
  965. else
  966. {
  967. throw ExceptionEx.ThrowBusinessException(ex);
  968. }
  969. }
  970. }
  971. public void GetMoney()
  972. {
  973. try
  974. {
  975. stuEnrollService.GetMoney();
  976. }
  977. catch (Exception ex)
  978. {
  979. if (ex is ExceptionEx)
  980. {
  981. throw;
  982. }
  983. else
  984. {
  985. throw ExceptionEx.ThrowBusinessException(ex);
  986. }
  987. }
  988. }
  989. public void RelationPhoto()
  990. {
  991. try
  992. {
  993. stuEnrollService.RelationPhoto();
  994. }
  995. catch (Exception ex)
  996. {
  997. if (ex is ExceptionEx)
  998. {
  999. throw;
  1000. }
  1001. else
  1002. {
  1003. throw ExceptionEx.ThrowBusinessException(ex);
  1004. }
  1005. }
  1006. }
  1007. public void Synchronization()
  1008. {
  1009. try
  1010. {
  1011. stuEnrollService.Synchronization();
  1012. }
  1013. catch (Exception ex)
  1014. {
  1015. if (ex is ExceptionEx)
  1016. {
  1017. throw;
  1018. }
  1019. else
  1020. {
  1021. throw ExceptionEx.ThrowBusinessException(ex);
  1022. }
  1023. }
  1024. }
  1025. public void UpdateEnrollStatus(string keyValue, int EnrollStatus)
  1026. {
  1027. try
  1028. {
  1029. stuEnrollService.UpdateEnrollStatus(keyValue, EnrollStatus);
  1030. }
  1031. catch (Exception ex)
  1032. {
  1033. if (ex is ExceptionEx)
  1034. {
  1035. throw;
  1036. }
  1037. else
  1038. {
  1039. throw ExceptionEx.ThrowBusinessException(ex);
  1040. }
  1041. }
  1042. }
  1043. public void Admission(string keyValue, int IsAdmission)
  1044. {
  1045. try
  1046. {
  1047. stuEnrollService.Admission(keyValue, IsAdmission);
  1048. }
  1049. catch (Exception ex)
  1050. {
  1051. if (ex is ExceptionEx)
  1052. {
  1053. throw;
  1054. }
  1055. else
  1056. {
  1057. throw ExceptionEx.ThrowBusinessException(ex);
  1058. }
  1059. }
  1060. }
  1061. #endregion
  1062. }
  1063. }