using Learun.Util; using System; using System.Data; using System.Collections.Generic; using Learun.Application.TwoDevelopment.EducationalAdministration; namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement { /// /// 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架 /// Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 /// 创 建:超级管理员 /// 日 期:2023-08-07 15:52 /// 描 述:学生年度缴费管理 /// public class FinaChargeStuYearBLL : FinaChargeStuYearIBLL { private FinaChargeStuYearService finaChargeStuYearService = new FinaChargeStuYearService(); #region 获取数据 /// /// 获取页面显示列表数据 /// /// 分页参数 /// 查询参数 /// public IEnumerable GetPageList(Pagination pagination, string queryJson) { try { return finaChargeStuYearService.GetPageList(pagination, queryJson); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } /// /// 获取FinaChargeStuYear表实体数据 /// /// 主键 /// public FinaChargeStuYearEntity GetFinaChargeStuYearEntity(string keyValue) { try { return finaChargeStuYearService.GetFinaChargeStuYearEntity(keyValue); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } #endregion #region 提交数据 /// /// 删除实体数据 /// /// 主键 public void DeleteEntity(string keyValue) { try { finaChargeStuYearService.DeleteEntity(keyValue); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } /// /// 保存实体数据(新增、修改) /// /// 主键 /// 实体 /// public void SaveEntity(string keyValue, FinaChargeStuYearEntity entity) { try { finaChargeStuYearService.SaveEntity(keyValue, entity); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } public void SaveGenerateByCondition(FinaChargeStuYearEntity entity) { try { finaChargeStuYearService.SaveGenerateByCondition(entity); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } public List GetTree() { try { var list = finaChargeStuYearService.GetYearList(); List treeList = new List(); foreach (var item in list) { TreeModel node = new TreeModel { id =item.FSYear.ToString(), text = item.FSYear.ToString(), value = item.FSYear.ToString(), showcheck = false, checkstate = 0, isexpand = true, parentId = "" }; treeList.Add(node); } return treeList.ToTree(); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } public IEnumerable GetFinaChargeStuItemList(string keyValue) { try { return finaChargeStuYearService.GetFinaChargeStuItemList(keyValue); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } public IEnumerable GetStuInvoice(string keyValue) { try { return finaChargeStuYearService.GetStuInvoice(keyValue); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } #endregion } }