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.
 
 
 
 
 
 

1008 lines
27 KiB

  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-08-08 17:21
  13. /// 描 述:新生信息管理
  14. /// </summary>
  15. public class StuInfoFreshBLL : StuInfoFreshIBLL
  16. {
  17. private StuInfoFreshService stuInfoFreshService = new StuInfoFreshService();
  18. #region 获取数据
  19. /// <summary>
  20. /// 获取列表数据
  21. /// </summary>
  22. /// <param name="queryJson"></param>
  23. /// <returns></returns>
  24. public void SynchronousList()
  25. {
  26. try
  27. {
  28. stuInfoFreshService.SynchronousList();
  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. /// <returns></returns>
  46. public IEnumerable<StuInfoFreshEntity> GetList(string queryJson)
  47. {
  48. try
  49. {
  50. return stuInfoFreshService.GetList(queryJson);
  51. }
  52. catch (Exception ex)
  53. {
  54. if (ex is ExceptionEx)
  55. {
  56. throw;
  57. }
  58. else
  59. {
  60. throw ExceptionEx.ThrowBusinessException(ex);
  61. }
  62. }
  63. }
  64. /// <summary>
  65. /// 获取列表数据
  66. /// <summary>
  67. /// <returns></returns>
  68. public IEnumerable<StuInfoFreshEntity> GetList2(string queryJson)
  69. {
  70. try
  71. {
  72. return stuInfoFreshService.GetList2(queryJson);
  73. }
  74. catch (Exception ex)
  75. {
  76. if (ex is ExceptionEx)
  77. {
  78. throw;
  79. }
  80. else
  81. {
  82. throw ExceptionEx.ThrowBusinessException(ex);
  83. }
  84. }
  85. }
  86. /// <summary>
  87. /// 获取列表分页数据
  88. /// <param name="pagination">分页参数</param>
  89. /// <summary>
  90. /// <returns></returns>
  91. public IEnumerable<StuInfoFreshEntity> GetPageList(Pagination pagination, string queryJson)
  92. {
  93. try
  94. {
  95. return stuInfoFreshService.GetPageList(pagination, queryJson);
  96. }
  97. catch (Exception ex)
  98. {
  99. if (ex is ExceptionEx)
  100. {
  101. throw;
  102. }
  103. else
  104. {
  105. throw ExceptionEx.ThrowBusinessException(ex);
  106. }
  107. }
  108. }
  109. /// <summary>
  110. /// 获取StuInfoFreshFamily表数据
  111. /// <summary>
  112. /// <returns></returns>
  113. public IEnumerable<StuInfoFreshFamilyEntity> GetStuInfoFreshFamilyList(string keyValue)
  114. {
  115. try
  116. {
  117. return stuInfoFreshService.GetStuInfoFreshFamilyList(keyValue);
  118. }
  119. catch (Exception ex)
  120. {
  121. if (ex is ExceptionEx)
  122. {
  123. throw;
  124. }
  125. else
  126. {
  127. throw ExceptionEx.ThrowBusinessException(ex);
  128. }
  129. }
  130. }
  131. /// <summary>
  132. /// 获取StuInfoFreshEmergePeople表数据
  133. /// <summary>
  134. /// <returns></returns>
  135. public IEnumerable<StuInfoFreshEmergePeopleEntity> GetStuInfoFreshEmergePeopleList(string keyValue)
  136. {
  137. try
  138. {
  139. return stuInfoFreshService.GetStuInfoFreshEmergePeopleList(keyValue);
  140. }
  141. catch (Exception ex)
  142. {
  143. if (ex is ExceptionEx)
  144. {
  145. throw;
  146. }
  147. else
  148. {
  149. throw ExceptionEx.ThrowBusinessException(ex);
  150. }
  151. }
  152. }
  153. /// <summary>
  154. /// 获取StuInfoFresh表实体数据
  155. /// <param name="keyValue">主键</param>
  156. /// <summary>
  157. /// <returns></returns>
  158. public StuInfoFreshEntity GetStuInfoFreshEntity(string keyValue)
  159. {
  160. try
  161. {
  162. return stuInfoFreshService.GetStuInfoFreshEntity(keyValue);
  163. }
  164. catch (Exception ex)
  165. {
  166. if (ex is ExceptionEx)
  167. {
  168. throw;
  169. }
  170. else
  171. {
  172. throw ExceptionEx.ThrowBusinessException(ex);
  173. }
  174. }
  175. }
  176. /// <summary>
  177. /// 获取StuInfoFresh表实体数据
  178. /// <param name="keyValue">主键</param>
  179. /// <summary>
  180. /// <returns></returns>
  181. public StuInfoFreshEntity GetStuInfoFreshEntityByStuNo(string stuNo)
  182. {
  183. try
  184. {
  185. return stuInfoFreshService.GetStuInfoFreshEntityByStuNo(stuNo);
  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. /// <summary>
  200. /// 获取StuInfoFreshEmergePeople表实体数据
  201. /// <param name="keyValue">主键</param>
  202. /// <summary>
  203. /// <returns></returns>
  204. public StuInfoFreshEmergePeopleEntity GetStuInfoFreshEmergePeopleEntity(string keyValue)
  205. {
  206. try
  207. {
  208. return stuInfoFreshService.GetStuInfoFreshEmergePeopleEntity(keyValue);
  209. }
  210. catch (Exception ex)
  211. {
  212. if (ex is ExceptionEx)
  213. {
  214. throw;
  215. }
  216. else
  217. {
  218. throw ExceptionEx.ThrowBusinessException(ex);
  219. }
  220. }
  221. }
  222. /// <summary>
  223. /// 获取StuInfoFreshFamily表实体数据
  224. /// <param name="keyValue">主键</param>
  225. /// <summary>
  226. /// <returns></returns>
  227. public StuInfoFreshFamilyEntity GetStuInfoFreshFamilyEntity(string keyValue)
  228. {
  229. try
  230. {
  231. return stuInfoFreshService.GetStuInfoFreshFamilyEntity(keyValue);
  232. }
  233. catch (Exception ex)
  234. {
  235. if (ex is ExceptionEx)
  236. {
  237. throw;
  238. }
  239. else
  240. {
  241. throw ExceptionEx.ThrowBusinessException(ex);
  242. }
  243. }
  244. }
  245. /// <summary>
  246. /// 获取列表分页数据
  247. /// <param name="pagination">分页参数</param>
  248. /// <summary>
  249. /// <returns></returns>
  250. public IEnumerable<StuInfoFreshEntity> GetStuInfoFreshListByClassNo(string classNo)
  251. {
  252. try
  253. {
  254. return stuInfoFreshService.GetStuInfoFreshListByClassNo(classNo);
  255. }
  256. catch (Exception ex)
  257. {
  258. if (ex is ExceptionEx)
  259. {
  260. throw;
  261. }
  262. else
  263. {
  264. throw ExceptionEx.ThrowBusinessException(ex);
  265. }
  266. }
  267. }
  268. /// <summary>
  269. /// 获取分配宿舍列表
  270. /// </summary>
  271. /// <param name="pagination"></param>
  272. /// <param name="queryJson"></param>
  273. /// <returns></returns>
  274. public IEnumerable<Acc_DormitoryBuildEntity> GetDormitorys(Pagination pagination, string queryJson)
  275. {
  276. try
  277. {
  278. return stuInfoFreshService.GetDormitorys(pagination, queryJson);
  279. }
  280. catch (Exception ex)
  281. {
  282. if (ex is ExceptionEx)
  283. {
  284. throw;
  285. }
  286. else
  287. {
  288. throw ExceptionEx.ThrowBusinessException(ex);
  289. }
  290. }
  291. }
  292. /// <summary>
  293. /// 获取分配宿舍列表
  294. /// </summary>
  295. /// <param name="pagination"></param>
  296. /// <param name="queryJson"></param>
  297. /// <returns></returns>
  298. public IEnumerable<Acc_DormitoryBuildEntity> GetDormitorys2(Pagination pagination, string queryJson)
  299. {
  300. try
  301. {
  302. return stuInfoFreshService.GetDormitorys2(pagination, queryJson);
  303. }
  304. catch (Exception ex)
  305. {
  306. if (ex is ExceptionEx)
  307. {
  308. throw;
  309. }
  310. else
  311. {
  312. throw ExceptionEx.ThrowBusinessException(ex);
  313. }
  314. }
  315. }
  316. /// <summary>
  317. /// 获取分配宿舍树
  318. /// </summary>
  319. /// <returns></returns>
  320. public List<TreeModel> GetTree()
  321. {
  322. try
  323. {
  324. var data = stuInfoFreshService.GetTree();
  325. List<TreeModel> treeList = new List<TreeModel>();
  326. foreach (var item in data)
  327. {
  328. TreeModel node = new TreeModel
  329. {
  330. id = item.Item3,
  331. text = $"{item.Item4}(男{item.Item1},女{item.Item2})",
  332. value = item.Item3,
  333. showcheck = false,
  334. checkstate = 0,
  335. isexpand = false,
  336. parentId = ""
  337. };
  338. treeList.Add(node);
  339. }
  340. return treeList.ToTree();
  341. }
  342. catch (Exception ex)
  343. {
  344. if (ex is ExceptionEx)
  345. {
  346. throw;
  347. }
  348. else
  349. {
  350. throw ExceptionEx.ThrowBusinessException(ex);
  351. }
  352. }
  353. }
  354. //获取分配床位树
  355. public List<TreeModel> GetBedTree(string classNo, string gender)
  356. {
  357. try
  358. {
  359. var data = stuInfoFreshService.GetBedTree(classNo, gender);
  360. List<TreeModel> treeList = new List<TreeModel>();
  361. foreach (var item in data)
  362. {
  363. TreeModel node = new TreeModel
  364. {
  365. id = item.ID,
  366. text = item.Name,
  367. value = item.ID,
  368. showcheck = false,
  369. checkstate = 0,
  370. isexpand = false,
  371. parentId = item.ParentID == null ? "" : item.ParentID
  372. };
  373. treeList.Add(node);
  374. }
  375. return treeList.ToTree();
  376. }
  377. catch (Exception ex)
  378. {
  379. if (ex is ExceptionEx)
  380. {
  381. throw;
  382. }
  383. else
  384. {
  385. throw ExceptionEx.ThrowBusinessException(ex);
  386. }
  387. }
  388. }
  389. public IEnumerable<StuInfoFreshEntity> GetNewStudentList(string queryJson)
  390. {
  391. try
  392. {
  393. return stuInfoFreshService.GetNewStudentList(queryJson);
  394. }
  395. catch (Exception ex)
  396. {
  397. if (ex is ExceptionEx)
  398. {
  399. throw;
  400. }
  401. else
  402. {
  403. throw ExceptionEx.ThrowBusinessException(ex);
  404. }
  405. }
  406. }
  407. #endregion
  408. #region 提交数据
  409. /// <summary>
  410. /// 删除实体数据
  411. /// <param name="keyValue">主键</param>
  412. /// <summary>
  413. /// <returns></returns>
  414. public void DeleteEntity(string keyValue)
  415. {
  416. try
  417. {
  418. stuInfoFreshService.DeleteEntity(keyValue);
  419. }
  420. catch (Exception ex)
  421. {
  422. if (ex is ExceptionEx)
  423. {
  424. throw;
  425. }
  426. else
  427. {
  428. throw ExceptionEx.ThrowBusinessException(ex);
  429. }
  430. }
  431. }
  432. /// <summary>
  433. /// 保存实体数据(新增、修改)
  434. /// <param name="keyValue">主键</param>
  435. /// <summary>
  436. /// <returns></returns>
  437. public void SaveEntity(string keyValue, StuInfoFreshEntity entity, List<StuInfoFreshEmergePeopleEntity> stuInfoFreshEmergePeopleList, List<StuInfoFreshFamilyEntity> stuInfoFreshFamilyList)
  438. {
  439. try
  440. {
  441. stuInfoFreshService.SaveEntity(keyValue, entity, stuInfoFreshEmergePeopleList, stuInfoFreshFamilyList);
  442. }
  443. catch (Exception ex)
  444. {
  445. if (ex is ExceptionEx)
  446. {
  447. throw;
  448. }
  449. else
  450. {
  451. throw ExceptionEx.ThrowBusinessException(ex);
  452. }
  453. }
  454. }
  455. /// <summary>
  456. /// 保存实体数据(新增、修改)
  457. /// <param name="keyValue">主键</param>
  458. /// <summary>
  459. /// <returns></returns>
  460. public void SaveEntity(string keyValue, StuInfoFreshEntity entity)
  461. {
  462. try
  463. {
  464. stuInfoFreshService.SaveEntity(keyValue, entity);
  465. }
  466. catch (Exception ex)
  467. {
  468. if (ex is ExceptionEx)
  469. {
  470. throw;
  471. }
  472. else
  473. {
  474. throw ExceptionEx.ThrowBusinessException(ex);
  475. }
  476. }
  477. }
  478. #endregion
  479. #region 扩展数据
  480. /// <summary>
  481. /// 确认报到、取消报到
  482. /// <param name="keyValue">主键</param>
  483. /// <summary>
  484. /// <returns></returns>
  485. public void IsRegister(string keyValue, string status)
  486. {
  487. try
  488. {
  489. stuInfoFreshService.IsRegister(keyValue, status);
  490. }
  491. catch (Exception ex)
  492. {
  493. if (ex is ExceptionEx)
  494. {
  495. throw;
  496. }
  497. else
  498. {
  499. throw ExceptionEx.ThrowBusinessException(ex);
  500. }
  501. }
  502. }
  503. /// <summary>
  504. /// 收取学生档案
  505. /// <param name="keyValue">主键</param>
  506. /// <summary>
  507. /// <returns></returns>
  508. public void IsCollectFile(string keyValue, string status)
  509. {
  510. try
  511. {
  512. stuInfoFreshService.IsCollectFile(keyValue, status);
  513. }
  514. catch (Exception ex)
  515. {
  516. if (ex is ExceptionEx)
  517. {
  518. throw;
  519. }
  520. else
  521. {
  522. throw ExceptionEx.ThrowBusinessException(ex);
  523. }
  524. }
  525. }
  526. /// <summary>
  527. /// 领取钥匙
  528. /// <param name="keyValue">主键</param>
  529. /// <summary>
  530. /// <returns></returns>
  531. public void IsGetKey(string keyValue, string status)
  532. {
  533. try
  534. {
  535. stuInfoFreshService.IsGetKey(keyValue, status);
  536. }
  537. catch (Exception ex)
  538. {
  539. if (ex is ExceptionEx)
  540. {
  541. throw;
  542. }
  543. else
  544. {
  545. throw ExceptionEx.ThrowBusinessException(ex);
  546. }
  547. }
  548. }
  549. /// <summary>
  550. /// 领取校园卡
  551. /// <param name="keyValue">主键</param>
  552. /// <summary>
  553. /// <returns></returns>
  554. public void IsGetCard(string keyValue, string status)
  555. {
  556. try
  557. {
  558. stuInfoFreshService.IsGetCard(keyValue, status);
  559. }
  560. catch (Exception ex)
  561. {
  562. if (ex is ExceptionEx)
  563. {
  564. throw;
  565. }
  566. else
  567. {
  568. throw ExceptionEx.ThrowBusinessException(ex);
  569. }
  570. }
  571. }
  572. /// <summary>
  573. /// 领取军训服装
  574. /// <param name="keyValue">主键</param>
  575. /// <summary>
  576. /// <returns></returns>
  577. public void IsGetMiliClothes(string keyValue, string status)
  578. {
  579. try
  580. {
  581. stuInfoFreshService.IsGetMiliClothes(keyValue, status);
  582. }
  583. catch (Exception ex)
  584. {
  585. if (ex is ExceptionEx)
  586. {
  587. throw;
  588. }
  589. else
  590. {
  591. throw ExceptionEx.ThrowBusinessException(ex);
  592. }
  593. }
  594. }
  595. /// <summary>
  596. /// 领取床上用品
  597. /// <param name="keyValue">主键</param>
  598. /// <summary>
  599. /// <returns></returns>
  600. public void IsGetBedding(string keyValue, string status)
  601. {
  602. try
  603. {
  604. stuInfoFreshService.IsGetBedding(keyValue, status);
  605. }
  606. catch (Exception ex)
  607. {
  608. if (ex is ExceptionEx)
  609. {
  610. throw;
  611. }
  612. else
  613. {
  614. throw ExceptionEx.ThrowBusinessException(ex);
  615. }
  616. }
  617. }
  618. /// <summary>
  619. /// 缴费
  620. /// <param name="keyValue">主键</param>
  621. /// <summary>
  622. /// <returns></returns>
  623. public void IsPayFee(string keyValue, string status)
  624. {
  625. try
  626. {
  627. stuInfoFreshService.IsPayFee(keyValue, status);
  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. /// <summary>
  642. /// 其他费用缴费
  643. /// <param name="keyValue">主键</param>
  644. /// <summary>
  645. /// <returns></returns>
  646. public void IsOtherPayFee(string keyValue, string status)
  647. {
  648. try
  649. {
  650. stuInfoFreshService.IsOtherPayFee(keyValue, status);
  651. }
  652. catch (Exception ex)
  653. {
  654. if (ex is ExceptionEx)
  655. {
  656. throw;
  657. }
  658. else
  659. {
  660. throw ExceptionEx.ThrowBusinessException(ex);
  661. }
  662. }
  663. }
  664. /// <summary>
  665. /// 审核助学贷款
  666. /// <param name="keyValue">主键</param>
  667. /// <summary>
  668. /// <returns></returns>
  669. public void DoCheckLoan(string keyValue, string status)
  670. {
  671. try
  672. {
  673. stuInfoFreshService.DoCheckLoan(keyValue, status);
  674. }
  675. catch (Exception ex)
  676. {
  677. if (ex is ExceptionEx)
  678. {
  679. throw;
  680. }
  681. else
  682. {
  683. throw ExceptionEx.ThrowBusinessException(ex);
  684. }
  685. }
  686. }
  687. /// <summary>
  688. /// 分配班级
  689. /// <param name="keyValue">主键</param>
  690. /// <summary>
  691. /// <returns></returns>
  692. public void DoAllocationClass(List<StuInfoFreshEntity> stuInfoFreshEntities)
  693. {
  694. try
  695. {
  696. stuInfoFreshService.DoAllocationClass(stuInfoFreshEntities);
  697. }
  698. catch (Exception ex)
  699. {
  700. if (ex is ExceptionEx)
  701. {
  702. throw;
  703. }
  704. else
  705. {
  706. throw ExceptionEx.ThrowBusinessException(ex);
  707. }
  708. }
  709. }
  710. /// <summary>
  711. /// 分配宿舍
  712. /// <param name="keyValue">主键</param>
  713. /// <summary>
  714. /// <returns></returns>
  715. public void DoAllocationDormitory(List<Acc_DormitoryBuildEntity> acc_DormitoryBuildEntities)
  716. {
  717. try
  718. {
  719. stuInfoFreshService.DoAllocationDormitory(acc_DormitoryBuildEntities);
  720. }
  721. catch (Exception ex)
  722. {
  723. if (ex is ExceptionEx)
  724. {
  725. throw;
  726. }
  727. else
  728. {
  729. throw ExceptionEx.ThrowBusinessException(ex);
  730. }
  731. }
  732. }
  733. /// <summary>
  734. /// 导入宿舍
  735. /// <param name="keyValue">主键</param>
  736. /// <summary>
  737. /// <returns></returns>
  738. public void ImportDormitory(List<Acc_DormitoryBuildEntity> acc_DormitoryBuildEntities)
  739. {
  740. try
  741. {
  742. stuInfoFreshService.ImportDormitory(acc_DormitoryBuildEntities);
  743. }
  744. catch (Exception ex)
  745. {
  746. if (ex is ExceptionEx)
  747. {
  748. throw;
  749. }
  750. else
  751. {
  752. throw ExceptionEx.ThrowBusinessException(ex);
  753. }
  754. }
  755. }
  756. /// <summary>
  757. /// 取消分配宿舍
  758. /// <param name="keyValue">主键</param>
  759. /// <summary>
  760. /// <returns></returns>
  761. public void CancelAllocationDormitory(List<Acc_DormitoryBuildEntity> acc_DormitoryBuildEntities)
  762. {
  763. try
  764. {
  765. stuInfoFreshService.CancelAllocationDormitory(acc_DormitoryBuildEntities);
  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. /// <summary>
  780. /// 分配床位
  781. /// </summary>
  782. /// <param name="dormitoryNo"></param>
  783. /// <param name="stuId"></param>
  784. /// <param name="dormitoryName"></param>
  785. public void DoAllocationBed(string dormitoryNo, string keyValue)
  786. {
  787. try
  788. {
  789. stuInfoFreshService.DoAllocationBed(dormitoryNo, keyValue);
  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. /// <summary>
  804. /// 自动分配床位
  805. /// </summary>
  806. /// <param name="classNo">班级编号</param>
  807. /// <param name="stuId"></param>
  808. /// <param name="dormitoryName"></param>
  809. public void DoAllocationBedOfAuto(string classNo)
  810. {
  811. try
  812. {
  813. stuInfoFreshService.DoAllocationBedOfAuto(classNo);
  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 ConfirmDormitory()
  828. {
  829. try
  830. {
  831. stuInfoFreshService.ConfirmDormitory();
  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 void ConfirmDormitoryTwo()
  846. {
  847. try
  848. {
  849. stuInfoFreshService.ConfirmDormitoryTwo();
  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 void GetUniform(string keyValue, bool Status)
  864. {
  865. try
  866. {
  867. stuInfoFreshService.GetUniform(keyValue, Status);
  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 void PayUniform(string keyValue, bool Status)
  882. {
  883. try
  884. {
  885. stuInfoFreshService.PayUniform(keyValue, Status);
  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. /// <summary>
  900. /// 导入学籍信息
  901. /// </summary>
  902. public void ImportStuInfoBasic()
  903. {
  904. try
  905. {
  906. stuInfoFreshService.ImportStuInfoBasic();
  907. }
  908. catch (Exception ex)
  909. {
  910. if (ex is ExceptionEx)
  911. {
  912. throw;
  913. }
  914. else
  915. {
  916. throw ExceptionEx.ThrowBusinessException(ex);
  917. }
  918. }
  919. }
  920. /// <summary>
  921. /// 删除宿舍信息
  922. /// </summary>
  923. public void DeleteBed(string keyValue)
  924. {
  925. try
  926. {
  927. stuInfoFreshService.DeleteBed(keyValue);
  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. #endregion
  942. #region 上传图片
  943. public (bool, string) IsPhoto(string stuId, bool status, string fileGuid)
  944. {
  945. try
  946. {
  947. return stuInfoFreshService.IsPhoto(stuId, status, fileGuid);
  948. }
  949. catch (Exception ex)
  950. {
  951. if (ex is ExceptionEx)
  952. {
  953. throw;
  954. }
  955. else
  956. {
  957. throw ExceptionEx.ThrowBusinessException(ex);
  958. }
  959. }
  960. }
  961. #endregion
  962. }
  963. }