using Learun.Util;
using System;
using System.Data;
using System.Collections.Generic;
namespace Learun.Application.TwoDevelopment.ReceiveSendFeeManagement
{
///
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创 建:超级管理员
/// 日 期:2019-06-04 15:14
/// 描 述:收费标准设置
///
public class FinaChargesStandardBLL : FinaChargesStandardIBLL
{
private FinaChargesStandardService finaChargesStandardService = new FinaChargesStandardService();
#region 获取数据
///
/// 获取页面显示列表数据
///
/// 查询参数
///
public IEnumerable GetPageList(Pagination pagination, string queryJson)
{
try
{
return finaChargesStandardService.GetPageList(pagination, queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
///
/// 获取页面显示列表数据
///
/// 查询参数
///
public IEnumerable GetTreeList(string queryJson)
{
try
{
return finaChargesStandardService.GetTreeList(queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
///
/// 获取FinaChargesStandard表数据
///
///
public IEnumerable GetFinaChargesStandardList(string keyValue)
{
try
{
return finaChargesStandardService.GetFinaChargesStandardList(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
///
/// 获取FinaChargesStandard表数据
///
/// 专业
/// 学年
/// 学期
/// 年级
///
public IEnumerable GetFinaChargesStandardListByMajorNo(string majorNo, string academicYearNo, string semester, string grade)
{
try
{
return finaChargesStandardService.GetFinaChargesStandardListByMajorNo(majorNo, academicYearNo, semester, grade);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
///
/// 获取FinaChargesStandard表数据
///
/// 专业
/// 学年
/// 学期
/// 年级
///
public IEnumerable GetFinaChargesStandardListByMajorNoOfNotAll(string majorNo, string academicYearNo, string semester, string grade)
{
try
{
return finaChargesStandardService.GetFinaChargesStandardListByMajorNoOfNotAll(majorNo, academicYearNo, semester, grade);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
///
/// 获取FinaChargesStandard表实体数据
/// 主键
///
///
public FinaChargesStandardEntity GetFinaChargesStandardEntity(string keyValue)
{
try
{
return finaChargesStandardService.GetFinaChargesStandardEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
///
/// 获取FinaChargesStandard表实体数据
/// 收费项目主键
///
///
public FinaChargesStandardEntity GetFinaChargesStandardEntityByChargeItemID(string chargeItemID)
{
try
{
return finaChargesStandardService.GetFinaChargesStandardEntityByChargeItemID(chargeItemID);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
#endregion
#region 提交数据
///
/// 删除实体数据
/// 主键
///
///
public void DeleteEntity(string keyValue)
{
try
{
finaChargesStandardService.DeleteEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
///
/// 保存实体数据(新增、修改)
/// 主键
///
///
public void SaveEntity(string keyValue, FinaChargesStandardEntity entity)
{
try
{
finaChargesStandardService.SaveEntity(keyValue, entity);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion
#region 扩展数据
///
/// 保存
///
public void SaveFinaChargesStandardList(string majorNo, string academicYearNo, string semester, string grade, List finaChargesStandardList)
{
try
{
finaChargesStandardService.SaveFinaChargesStandardList(majorNo, academicYearNo, semester, grade, finaChargesStandardList);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
///
/// 某专业的收费标准是否已使用
///
///
///
///
///
///
public bool IsChargeByMajorNo(string majorNo, string academicYearNo, string semester, string grade)
{
try
{
return finaChargesStandardService.IsChargeByMajorNo(majorNo,academicYearNo,semester,grade);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion
}
}