125 lines
3.2 KiB
C#
125 lines
3.2 KiB
C#
|
using Learun.Util;
|
|||
|
using System;
|
|||
|
using System.Data;
|
|||
|
using System.Collections.Generic;
|
|||
|
|
|||
|
namespace Learun.Application.Report
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 版 本 PIT-ADMS V7.0.3 敏捷开发框架
|
|||
|
/// Copyright (c) 2013-2018 Hexagon PPM
|
|||
|
/// 创 建:超级管理员
|
|||
|
/// 日 期:2019-03-26 18:29
|
|||
|
/// 描 述:报表菜单关联设置
|
|||
|
/// </summary>
|
|||
|
public class RptRelationBLL : RptRelationIBLL
|
|||
|
{
|
|||
|
private RptRelationService rptRelationService = new RptRelationService();
|
|||
|
|
|||
|
#region 获取数据
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取页面显示列表数据
|
|||
|
/// <summary>
|
|||
|
/// <param name="queryJson">查询参数</param>
|
|||
|
/// <returns></returns>
|
|||
|
public IEnumerable<LR_RPT_RelationEntity> GetPageList(Pagination pagination, string queryJson)
|
|||
|
{
|
|||
|
try
|
|||
|
{
|
|||
|
return rptRelationService.GetPageList(pagination, queryJson);
|
|||
|
}
|
|||
|
catch (Exception ex)
|
|||
|
{
|
|||
|
if (ex is ExceptionEx)
|
|||
|
{
|
|||
|
throw;
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
throw ExceptionEx.ThrowBusinessException(ex);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取LR_RptRelation表实体数据
|
|||
|
/// <param name="keyValue">主键</param>
|
|||
|
/// <summary>
|
|||
|
/// <returns></returns>
|
|||
|
public LR_RPT_RelationEntity GetLR_RptRelationEntity(string keyValue)
|
|||
|
{
|
|||
|
try
|
|||
|
{
|
|||
|
return rptRelationService.GetLR_RptRelationEntity(keyValue);
|
|||
|
}
|
|||
|
catch (Exception ex)
|
|||
|
{
|
|||
|
if (ex is ExceptionEx)
|
|||
|
{
|
|||
|
throw;
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
throw ExceptionEx.ThrowBusinessException(ex);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region 提交数据
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 删除实体数据
|
|||
|
/// <param name="keyValue">主键</param>
|
|||
|
/// <summary>
|
|||
|
/// <returns></returns>
|
|||
|
public void DeleteEntity(string keyValue)
|
|||
|
{
|
|||
|
try
|
|||
|
{
|
|||
|
rptRelationService.DeleteEntity(keyValue);
|
|||
|
}
|
|||
|
catch (Exception ex)
|
|||
|
{
|
|||
|
if (ex is ExceptionEx)
|
|||
|
{
|
|||
|
throw;
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
throw ExceptionEx.ThrowBusinessException(ex);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 保存实体数据(新增、修改)
|
|||
|
/// <param name="keyValue">主键</param>
|
|||
|
/// <summary>
|
|||
|
/// <returns></returns>
|
|||
|
public void SaveEntity(string keyValue, LR_RPT_RelationEntity entity)
|
|||
|
{
|
|||
|
try
|
|||
|
{
|
|||
|
rptRelationService.SaveEntity(keyValue, entity);
|
|||
|
}
|
|||
|
catch (Exception ex)
|
|||
|
{
|
|||
|
if (ex is ExceptionEx)
|
|||
|
{
|
|||
|
throw;
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
throw ExceptionEx.ThrowBusinessException(ex);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
}
|
|||
|
}
|