149 lines
4.1 KiB
C#
149 lines
4.1 KiB
C#
|
using Learun.Util;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
|
|||
|
namespace Learun.Application.CRM
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 版 本 PIT-ADMS V7.0.3 敏捷开发框架
|
|||
|
/// Copyright (c) 2013-2018 勤一科技
|
|||
|
/// 创 建:超级管理员
|
|||
|
/// 日 期:2017-07-11 14:48
|
|||
|
/// 描 述:应收账款
|
|||
|
/// </summary>
|
|||
|
public class CrmReceivableBLL : CrmReceivableIBLL
|
|||
|
{
|
|||
|
private CrmReceivableService crmReceivableService = new CrmReceivableService();
|
|||
|
|
|||
|
#region 获取数据
|
|||
|
/// <summary>
|
|||
|
/// 获取收款单列表
|
|||
|
/// </summary>
|
|||
|
/// <param name="pagination">分页</param>
|
|||
|
/// <param name="queryJson">查询参数</param>
|
|||
|
/// <returns>返回分页列表</returns>
|
|||
|
public IEnumerable<CrmOrderEntity> GetPaymentPageList(Pagination pagination, string queryJson)
|
|||
|
{
|
|||
|
try
|
|||
|
{
|
|||
|
|
|||
|
return crmReceivableService.GetPaymentPageList(pagination, queryJson);
|
|||
|
}
|
|||
|
catch (Exception ex)
|
|||
|
{
|
|||
|
if (ex is ExceptionEx)
|
|||
|
{
|
|||
|
throw;
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
throw ExceptionEx.ThrowBusinessException(ex);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
/// <summary>
|
|||
|
/// 获取收款记录列表
|
|||
|
/// </summary>
|
|||
|
/// <param name="orderId">订单主键</param>
|
|||
|
/// <returns></returns>
|
|||
|
public IEnumerable<CrmReceivableEntity> GetPaymentRecord(string orderId)
|
|||
|
{
|
|||
|
try
|
|||
|
{
|
|||
|
return crmReceivableService.GetPaymentRecord(orderId);
|
|||
|
}
|
|||
|
catch (Exception ex)
|
|||
|
{
|
|||
|
if (ex is ExceptionEx)
|
|||
|
{
|
|||
|
throw;
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
throw ExceptionEx.ThrowBusinessException(ex);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region 提交数据
|
|||
|
/// <summary>
|
|||
|
/// 保存表单(新增)
|
|||
|
/// </summary>
|
|||
|
/// <param name="entity">实体对象</param>
|
|||
|
/// <returns></returns>
|
|||
|
public void SaveEntity(CrmReceivableEntity entity)
|
|||
|
{
|
|||
|
try
|
|||
|
{
|
|||
|
crmReceivableService.SaveEntity(entity);
|
|||
|
}
|
|||
|
catch (Exception ex)
|
|||
|
{
|
|||
|
if (ex is ExceptionEx)
|
|||
|
{
|
|||
|
throw;
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
throw ExceptionEx.ThrowBusinessException(ex);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region 报表
|
|||
|
/// <summary>
|
|||
|
/// 获取收款列表
|
|||
|
/// </summary>
|
|||
|
/// <param name="queryJson">查询参数</param>
|
|||
|
/// <returns>返回列表</returns>
|
|||
|
public IEnumerable<ReceivableReportModel> GetReportList(string queryJson)
|
|||
|
{
|
|||
|
try
|
|||
|
{
|
|||
|
return crmReceivableService.GetList(queryJson);
|
|||
|
}
|
|||
|
catch (Exception ex)
|
|||
|
{
|
|||
|
if (ex is ExceptionEx)
|
|||
|
{
|
|||
|
throw;
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
throw ExceptionEx.ThrowBusinessException(ex);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取列表
|
|||
|
/// </summary>
|
|||
|
/// <param name="pagination">分页</param>
|
|||
|
/// <param name="queryJson">查询参数</param>
|
|||
|
/// <returns>返回分页列表</returns>
|
|||
|
public IEnumerable<ReceivableReportModel> 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
|
|||
|
}
|
|||
|
}
|