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