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:48 /// 描 述:应收账款 /// public class CrmReceivableBLL : CrmReceivableIBLL { private CrmReceivableService crmReceivableService = new CrmReceivableService(); #region 获取数据 /// /// 获取收款单列表 /// /// 分页 /// 查询参数 /// 返回分页列表 public IEnumerable GetPaymentPageList(Pagination pagination, string queryJson) { try { return crmReceivableService.GetPaymentPageList(pagination, queryJson); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } /// /// 获取收款记录列表 /// /// 订单主键 /// public IEnumerable GetPaymentRecord(string orderId) { try { return crmReceivableService.GetPaymentRecord(orderId); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } #endregion #region 提交数据 /// /// 保存表单(新增) /// /// 实体对象 /// public void SaveEntity(CrmReceivableEntity entity) { try { crmReceivableService.SaveEntity(entity); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } #endregion #region 报表 /// /// 获取收款列表 /// /// 查询参数 /// 返回列表 public IEnumerable GetReportList(string queryJson) { try { return crmReceivableService.GetList(queryJson); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } /// /// 获取列表 /// /// 分页 /// 查询参数 /// 返回分页列表 public IEnumerable GetReportPageList(Pagination pagination, string queryJson) { try { return crmReceivableService.GetPageList(pagination, queryJson); } catch (Exception ex) { if (ex is ExceptionEx) { throw; } else { throw ExceptionEx.ThrowBusinessException(ex); } } } #endregion } }