using Learun.Util; using System; using System.Collections.Generic; namespace Learun.Application.CRM { /// /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园 /// Copyright (c) 2013-2018 北京泉江科技有限公司 /// 创 建:超级管理员 /// 日 期:2017-07-11 14:28 /// 描 述:费用支出 /// public class CrmExpensesBLL : CrmExpensesIBLL { CrmExpensesService crmExpensesService = new CrmExpensesService(); #region 获取数据 /// /// 获取列表 /// /// 分页 /// 查询参数 /// 返回分页列表 public IEnumerable GetPageList(Pagination pagination, string queryJson) { try { return crmExpensesService.GetPageList(pagination, queryJson); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } /// /// 获取列表 /// /// 查询参数 /// 返回列表 public IEnumerable GetList(string queryJson) { try { return crmExpensesService.GetList(queryJson); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } /// /// 获取实体 /// /// 主键值 /// public CrmExpensesEntity GetEntity(string keyValue) { try { return crmExpensesService.GetEntity(keyValue); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } #endregion #region 提交数据 /// /// 删除数据 /// /// 主键 public void DeleteEntity(string keyValue) { try { crmExpensesService.DeleteEntity(keyValue); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowServiceException(ex); } } } /// /// 保存表单(新增) /// /// 实体对象 /// public void SaveEntity(CrmExpensesEntity entity) { try { crmExpensesService.SaveEntity(entity); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowServiceException(ex); } } } #endregion } }