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 26 KiB

4 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059
  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="queryJson">查询参数</param>
  46. /// <returns></returns>
  47. public IEnumerable<StuEnrollEntity> GetList(string queryJson)
  48. {
  49. try
  50. {
  51. return stuEnrollService.GetList(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. public DataTable Execute(string sql)
  66. {
  67. return stuEnrollService.Execute(sql);
  68. }
  69. public IEnumerable<StuEnrollEntity> AllStudent()
  70. {
  71. try
  72. {
  73. return stuEnrollService.AllStudent();
  74. }
  75. catch (Exception ex)
  76. {
  77. if (ex is ExceptionEx)
  78. {
  79. throw;
  80. }
  81. else
  82. {
  83. throw ExceptionEx.ThrowBusinessException(ex);
  84. }
  85. }
  86. }
  87. public IEnumerable<Acc_DormitoryBuildEntity> GetDormitorys(Pagination pagination, string queryJson)
  88. {
  89. try
  90. {
  91. return stuEnrollService.GetDormitorys(pagination, queryJson);
  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<StuEnrollEntity> GetReportPageList(Pagination pagination, string queryJson)
  111. {
  112. try
  113. {
  114. return stuEnrollService.GetReportPageList(pagination, 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. /// <summary>
  129. /// 获取StuEnroll表实体数据
  130. /// <param name="keyValue">主键</param>
  131. /// <summary>
  132. /// <returns></returns>
  133. public StuEnrollEntity GetStuEnrollEntity(string keyValue)
  134. {
  135. try
  136. {
  137. return stuEnrollService.GetStuEnrollEntity(keyValue);
  138. }
  139. catch (Exception ex)
  140. {
  141. if (ex is ExceptionEx)
  142. {
  143. throw;
  144. }
  145. else
  146. {
  147. throw ExceptionEx.ThrowBusinessException(ex);
  148. }
  149. }
  150. }
  151. /// <summary>
  152. /// 获取StuEnroll表实体数据
  153. /// <param name="keyValue">主键</param>
  154. /// <summary>
  155. /// <returns></returns>
  156. public StuEnrollEntity GetEntityByProcessId(string processId)
  157. {
  158. try
  159. {
  160. return stuEnrollService.GetEntityByProcessId(processId);
  161. }
  162. catch (Exception ex)
  163. {
  164. if (ex is ExceptionEx)
  165. {
  166. throw;
  167. }
  168. else
  169. {
  170. throw ExceptionEx.ThrowBusinessException(ex);
  171. }
  172. }
  173. }
  174. public object GetStuInfo(string stuId)
  175. {
  176. try
  177. {
  178. return stuEnrollService.GetStuInfo(stuId);
  179. }
  180. catch (Exception ex)
  181. {
  182. if (ex is ExceptionEx)
  183. {
  184. throw;
  185. }
  186. else
  187. {
  188. throw ExceptionEx.ThrowBusinessException(ex);
  189. }
  190. }
  191. }
  192. public object GetCheckInStatistics(string DeptNo, string MajorNo, string ClassNo)
  193. {
  194. try
  195. {
  196. return stuEnrollService.GetCheckInStatistics(DeptNo, MajorNo, ClassNo);
  197. }
  198. catch (Exception ex)
  199. {
  200. if (ex is ExceptionEx)
  201. {
  202. throw;
  203. }
  204. else
  205. {
  206. throw ExceptionEx.ThrowBusinessException(ex);
  207. }
  208. }
  209. }
  210. public object GetHelpStatistics(string DeptNo, string MajorNo, string ClassNo)
  211. {
  212. try
  213. {
  214. return stuEnrollService.GetHelpStatistics(DeptNo, MajorNo, ClassNo);
  215. }
  216. catch (Exception ex)
  217. {
  218. if (ex is ExceptionEx)
  219. {
  220. throw;
  221. }
  222. else
  223. {
  224. throw ExceptionEx.ThrowBusinessException(ex);
  225. }
  226. }
  227. }
  228. public object GetMilitaryStatistics(string queryJson,int type)
  229. {
  230. try
  231. {
  232. return stuEnrollService.GetMilitaryStatistics(queryJson, type);
  233. }
  234. catch (Exception ex)
  235. {
  236. if (ex is ExceptionEx)
  237. {
  238. throw;
  239. }
  240. else
  241. {
  242. throw ExceptionEx.ThrowBusinessException(ex);
  243. }
  244. }
  245. }
  246. public List<TreeModel> GetTree()
  247. {
  248. try
  249. {
  250. var data = stuEnrollService.GetTree();
  251. List<TreeModel> treeList = new List<TreeModel>();
  252. foreach (var item in data)
  253. {
  254. TreeModel node = new TreeModel
  255. {
  256. id = item.Item3,
  257. text = $"{item.Item4}(男{item.Item1},女{item.Item2})",
  258. value = item.Item3,
  259. showcheck = false,
  260. checkstate = 0,
  261. isexpand = false,
  262. parentId = ""
  263. };
  264. treeList.Add(node);
  265. }
  266. return treeList.ToTree();
  267. }
  268. catch (Exception ex)
  269. {
  270. if (ex is ExceptionEx)
  271. {
  272. throw;
  273. }
  274. else
  275. {
  276. throw ExceptionEx.ThrowBusinessException(ex);
  277. }
  278. }
  279. }
  280. public List<TreeModel> GetBedTree(string classNo, string gender)
  281. {
  282. try
  283. {
  284. var data = stuEnrollService.GetBedTree(classNo, gender);
  285. List<TreeModel> treeList = new List<TreeModel>();
  286. foreach (var item in data)
  287. {
  288. TreeModel node = new TreeModel
  289. {
  290. id = item.ID,
  291. text = item.Name,
  292. value = item.ID,
  293. showcheck = false,
  294. checkstate = 0,
  295. isexpand = false,
  296. parentId = item.ParentID == null ? "" : item.ParentID
  297. };
  298. treeList.Add(node);
  299. }
  300. return treeList.ToTree();
  301. }
  302. catch (Exception ex)
  303. {
  304. if (ex is ExceptionEx)
  305. {
  306. throw;
  307. }
  308. else
  309. {
  310. throw ExceptionEx.ThrowBusinessException(ex);
  311. }
  312. }
  313. }
  314. public List<string> GetStuIdCards()
  315. {
  316. try
  317. {
  318. return stuEnrollService.GetStuIdCards();
  319. }
  320. catch (Exception ex)
  321. {
  322. if (ex is ExceptionEx)
  323. {
  324. throw;
  325. }
  326. else
  327. {
  328. throw ExceptionEx.ThrowBusinessException(ex);
  329. }
  330. }
  331. }
  332. #endregion
  333. #region 提交数据
  334. /// <summary>
  335. /// 删除实体数据
  336. /// <param name="keyValue">主键</param>
  337. /// <summary>
  338. /// <returns></returns>
  339. public void DeleteEntity(string keyValue)
  340. {
  341. try
  342. {
  343. stuEnrollService.DeleteEntity(keyValue);
  344. }
  345. catch (Exception ex)
  346. {
  347. if (ex is ExceptionEx)
  348. {
  349. throw;
  350. }
  351. else
  352. {
  353. throw ExceptionEx.ThrowBusinessException(ex);
  354. }
  355. }
  356. }
  357. public void EditEnrollType(string stuIds, string enrollType)
  358. {
  359. try
  360. {
  361. stuEnrollService.EditEnrollType(stuIds, enrollType);
  362. }
  363. catch (Exception ex)
  364. {
  365. if (ex is ExceptionEx)
  366. {
  367. throw;
  368. }
  369. else
  370. {
  371. throw ExceptionEx.ThrowBusinessException(ex);
  372. }
  373. }
  374. }
  375. /// <summary>
  376. /// 保存实体数据(新增、修改)
  377. /// <param name="keyValue">主键</param>
  378. /// <summary>
  379. /// <returns></returns>
  380. public void SaveEntity(string keyValue, StuEnrollEntity entity)
  381. {
  382. try
  383. {
  384. stuEnrollService.SaveEntity(keyValue, entity);
  385. }
  386. catch (Exception ex)
  387. {
  388. if (ex is ExceptionEx)
  389. {
  390. throw;
  391. }
  392. else
  393. {
  394. throw ExceptionEx.ThrowBusinessException(ex);
  395. }
  396. }
  397. }
  398. public void AllocationClass(string classNo, string dataJson)
  399. {
  400. try
  401. {
  402. stuEnrollService.AllocationClass(classNo, dataJson);
  403. }
  404. catch (Exception ex)
  405. {
  406. if (ex is ExceptionEx)
  407. {
  408. throw;
  409. }
  410. else
  411. {
  412. throw ExceptionEx.ThrowBusinessException(ex);
  413. }
  414. }
  415. }
  416. public void NewAllocationDormitory(string classNo, string dataJson)
  417. {
  418. try
  419. {
  420. stuEnrollService.NewAllocationDormitory(classNo, dataJson);
  421. }
  422. catch (Exception ex)
  423. {
  424. if (ex is ExceptionEx)
  425. {
  426. throw;
  427. }
  428. else
  429. {
  430. throw ExceptionEx.ThrowBusinessException(ex);
  431. }
  432. }
  433. }
  434. public void AllocationDormiotry(string dormitoryNo, string stuId, string dormitoryName)
  435. {
  436. try
  437. {
  438. stuEnrollService.AllocationDormitory(dormitoryNo, stuId, dormitoryName);
  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. public void SyncDept()
  453. {
  454. try
  455. {
  456. stuEnrollService.SyncDept();
  457. }
  458. catch (Exception ex)
  459. {
  460. if (ex is ExceptionEx)
  461. {
  462. throw;
  463. }
  464. else
  465. {
  466. throw ExceptionEx.ThrowBusinessException(ex);
  467. }
  468. }
  469. }
  470. public void SyncMajor()
  471. {
  472. try
  473. {
  474. stuEnrollService.SyncMajor();
  475. }
  476. catch (Exception ex)
  477. {
  478. if (ex is ExceptionEx)
  479. {
  480. throw;
  481. }
  482. else
  483. {
  484. throw ExceptionEx.ThrowBusinessException(ex);
  485. }
  486. }
  487. }
  488. public (bool, string) Sign(string stuId, bool status)
  489. {
  490. try
  491. {
  492. return stuEnrollService.Sign(stuId, status);
  493. }
  494. catch (Exception ex)
  495. {
  496. if (ex is ExceptionEx)
  497. {
  498. throw;
  499. }
  500. else
  501. {
  502. throw ExceptionEx.ThrowBusinessException(ex);
  503. }
  504. }
  505. }
  506. public (bool, string) Report(string stuId, bool status)
  507. {
  508. try
  509. {
  510. return stuEnrollService.Report(stuId, status);
  511. }
  512. catch (Exception ex)
  513. {
  514. if (ex is ExceptionEx)
  515. {
  516. throw;
  517. }
  518. else
  519. {
  520. throw ExceptionEx.ThrowBusinessException(ex);
  521. }
  522. }
  523. }
  524. public (bool, string) Stay(string stuId, bool status, bool After)
  525. {
  526. try
  527. {
  528. return stuEnrollService.Stay(stuId, status, After);
  529. }
  530. catch (Exception ex)
  531. {
  532. if (ex is ExceptionEx)
  533. {
  534. throw;
  535. }
  536. else
  537. {
  538. throw ExceptionEx.ThrowBusinessException(ex);
  539. }
  540. }
  541. }
  542. public void AllStay()
  543. {
  544. try
  545. {
  546. stuEnrollService.AllStay();
  547. }
  548. catch (Exception ex)
  549. {
  550. if (ex is ExceptionEx)
  551. {
  552. throw;
  553. }
  554. else
  555. {
  556. throw ExceptionEx.ThrowBusinessException(ex);
  557. }
  558. }
  559. }
  560. public (bool, string) Help(string stuId, bool status, bool payAfter)
  561. {
  562. try
  563. {
  564. return stuEnrollService.Help(stuId, status, payAfter);
  565. }
  566. catch (Exception ex)
  567. {
  568. if (ex is ExceptionEx)
  569. {
  570. throw;
  571. }
  572. else
  573. {
  574. throw ExceptionEx.ThrowBusinessException(ex);
  575. }
  576. }
  577. }
  578. public void AllHelp()
  579. {
  580. try
  581. {
  582. stuEnrollService.AllHelp();
  583. }
  584. catch (Exception ex)
  585. {
  586. if (ex is ExceptionEx)
  587. {
  588. throw;
  589. }
  590. else
  591. {
  592. throw ExceptionEx.ThrowBusinessException(ex);
  593. }
  594. }
  595. }
  596. public void Support(string stuIds)
  597. {
  598. try
  599. {
  600. stuEnrollService.Support(stuIds);
  601. }
  602. catch (Exception ex)
  603. {
  604. if (ex is ExceptionEx)
  605. {
  606. throw;
  607. }
  608. else
  609. {
  610. throw ExceptionEx.ThrowBusinessException(ex);
  611. }
  612. }
  613. }
  614. public void SupplySupport(string keyValue, StuEnrollEntity entity)
  615. {
  616. try
  617. {
  618. stuEnrollService.SupplySupport(keyValue,entity);
  619. }
  620. catch (Exception ex)
  621. {
  622. if (ex is ExceptionEx)
  623. {
  624. throw;
  625. }
  626. else
  627. {
  628. throw ExceptionEx.ThrowBusinessException(ex);
  629. }
  630. }
  631. }
  632. public void SupportChange(string keyValue, StuEnrollEntity entity)
  633. {
  634. try
  635. {
  636. stuEnrollService.SupportChange(keyValue, entity);
  637. }
  638. catch (Exception ex)
  639. {
  640. if (ex is ExceptionEx)
  641. {
  642. throw;
  643. }
  644. else
  645. {
  646. throw ExceptionEx.ThrowBusinessException(ex);
  647. }
  648. }
  649. }
  650. public void ChangeStatusById(string keyValue, int status, string processId)
  651. {
  652. try
  653. {
  654. stuEnrollService.ChangeStatusById(keyValue, status, processId);
  655. }
  656. catch (Exception ex)
  657. {
  658. if (ex is ExceptionEx)
  659. {
  660. throw;
  661. }
  662. else
  663. {
  664. throw ExceptionEx.ThrowBusinessException(ex);
  665. }
  666. }
  667. }
  668. public (bool, string) Military(string stuId, bool status, bool payAfter)
  669. {
  670. try
  671. {
  672. return stuEnrollService.Military(stuId, status, payAfter);
  673. }
  674. catch (Exception ex)
  675. {
  676. if (ex is ExceptionEx)
  677. {
  678. throw;
  679. }
  680. else
  681. {
  682. throw ExceptionEx.ThrowBusinessException(ex);
  683. }
  684. }
  685. }
  686. public void AllMilitary()
  687. {
  688. try
  689. {
  690. stuEnrollService.AllMilitary();
  691. }
  692. catch (Exception ex)
  693. {
  694. if (ex is ExceptionEx)
  695. {
  696. throw;
  697. }
  698. else
  699. {
  700. throw ExceptionEx.ThrowBusinessException(ex);
  701. }
  702. }
  703. }
  704. /// <summary>
  705. /// 生成帐号
  706. /// </summary>
  707. public void GenerateAccout()
  708. {
  709. try
  710. {
  711. stuEnrollService.GenerateAccout();
  712. }
  713. catch (Exception ex)
  714. {
  715. if (ex is ExceptionEx)
  716. {
  717. throw;
  718. }
  719. else
  720. {
  721. throw ExceptionEx.ThrowBusinessException(ex);
  722. }
  723. }
  724. }
  725. public void AllReport()
  726. {
  727. try
  728. {
  729. stuEnrollService.AllReport();
  730. }
  731. catch (Exception ex)
  732. {
  733. if (ex is ExceptionEx)
  734. {
  735. throw;
  736. }
  737. else
  738. {
  739. throw ExceptionEx.ThrowBusinessException(ex);
  740. }
  741. }
  742. }
  743. public void AllPhoto()
  744. {
  745. try
  746. {
  747. stuEnrollService.AllPhoto();
  748. }
  749. catch (Exception ex)
  750. {
  751. if (ex is ExceptionEx)
  752. {
  753. throw;
  754. }
  755. else
  756. {
  757. throw ExceptionEx.ThrowBusinessException(ex);
  758. }
  759. }
  760. }
  761. public void AllGetCloth()
  762. {
  763. try
  764. {
  765. stuEnrollService.AllGetCloth();
  766. }
  767. catch (Exception ex)
  768. {
  769. if (ex is ExceptionEx)
  770. {
  771. throw;
  772. }
  773. else
  774. {
  775. throw ExceptionEx.ThrowBusinessException(ex);
  776. }
  777. }
  778. }
  779. public void AllGetSize()
  780. {
  781. try
  782. {
  783. stuEnrollService.AllGetSize();
  784. }
  785. catch (Exception ex)
  786. {
  787. if (ex is ExceptionEx)
  788. {
  789. throw;
  790. }
  791. else
  792. {
  793. throw ExceptionEx.ThrowBusinessException(ex);
  794. }
  795. }
  796. }
  797. public void AllGetArticle()
  798. {
  799. try
  800. {
  801. stuEnrollService.AllGetArticle();
  802. }
  803. catch (Exception ex)
  804. {
  805. if (ex is ExceptionEx)
  806. {
  807. throw;
  808. }
  809. else
  810. {
  811. throw ExceptionEx.ThrowBusinessException(ex);
  812. }
  813. }
  814. }
  815. public (bool, string) IsPay(string stuId, bool status)
  816. {
  817. try
  818. {
  819. return stuEnrollService.IsPay(stuId, status);
  820. }
  821. catch (Exception ex)
  822. {
  823. if (ex is ExceptionEx)
  824. {
  825. throw;
  826. }
  827. else
  828. {
  829. throw ExceptionEx.ThrowBusinessException(ex);
  830. }
  831. }
  832. }
  833. public object GetPaymentInfo()
  834. {
  835. try
  836. {
  837. return stuEnrollService.GetPaymentInfo();
  838. }
  839. catch (Exception ex)
  840. {
  841. if (ex is ExceptionEx)
  842. {
  843. throw;
  844. }
  845. else
  846. {
  847. throw ExceptionEx.ThrowBusinessException(ex);
  848. }
  849. }
  850. }
  851. public object GetStuDefaultInfo(string StuId)
  852. {
  853. try
  854. {
  855. return stuEnrollService.GetStuDefaultInfo(StuId);
  856. }
  857. catch (Exception ex)
  858. {
  859. if (ex is ExceptionEx)
  860. {
  861. throw;
  862. }
  863. else
  864. {
  865. throw ExceptionEx.ThrowBusinessException(ex);
  866. }
  867. }
  868. }
  869. public (bool, string) IsPhoto(string stuId, bool status, string fileGuid)
  870. {
  871. try
  872. {
  873. return stuEnrollService.IsPhoto(stuId, status, fileGuid);
  874. }
  875. catch (Exception ex)
  876. {
  877. if (ex is ExceptionEx)
  878. {
  879. throw;
  880. }
  881. else
  882. {
  883. throw ExceptionEx.ThrowBusinessException(ex);
  884. }
  885. }
  886. }
  887. public (bool, string) GetCloth(string stuId, bool status)
  888. {
  889. try
  890. {
  891. return stuEnrollService.GetCloth(stuId, status);
  892. }
  893. catch (Exception ex)
  894. {
  895. if (ex is ExceptionEx)
  896. {
  897. throw;
  898. }
  899. else
  900. {
  901. throw ExceptionEx.ThrowBusinessException(ex);
  902. }
  903. }
  904. }
  905. public (bool, string) GetClothSize(string stuId, bool status)
  906. {
  907. try
  908. {
  909. return stuEnrollService.GetClothSize(stuId, status);
  910. }
  911. catch (Exception ex)
  912. {
  913. if (ex is ExceptionEx)
  914. {
  915. throw;
  916. }
  917. else
  918. {
  919. throw ExceptionEx.ThrowBusinessException(ex);
  920. }
  921. }
  922. }
  923. public (bool, string) GetArticles(string stuId, bool status)
  924. {
  925. try
  926. {
  927. return stuEnrollService.GetArticles(stuId, status);
  928. }
  929. catch (Exception ex)
  930. {
  931. if (ex is ExceptionEx)
  932. {
  933. throw;
  934. }
  935. else
  936. {
  937. throw ExceptionEx.ThrowBusinessException(ex);
  938. }
  939. }
  940. }
  941. public void GetMoney()
  942. {
  943. try
  944. {
  945. stuEnrollService.GetMoney();
  946. }
  947. catch (Exception ex)
  948. {
  949. if (ex is ExceptionEx)
  950. {
  951. throw;
  952. }
  953. else
  954. {
  955. throw ExceptionEx.ThrowBusinessException(ex);
  956. }
  957. }
  958. }
  959. public void RelationPhoto()
  960. {
  961. try
  962. {
  963. stuEnrollService.RelationPhoto();
  964. }
  965. catch (Exception ex)
  966. {
  967. if (ex is ExceptionEx)
  968. {
  969. throw;
  970. }
  971. else
  972. {
  973. throw ExceptionEx.ThrowBusinessException(ex);
  974. }
  975. }
  976. }
  977. public void Synchronization()
  978. {
  979. try
  980. {
  981. stuEnrollService.Synchronization();
  982. }
  983. catch (Exception ex)
  984. {
  985. if (ex is ExceptionEx)
  986. {
  987. throw;
  988. }
  989. else
  990. {
  991. throw ExceptionEx.ThrowBusinessException(ex);
  992. }
  993. }
  994. }
  995. #endregion
  996. }
  997. }