using Learun.Util;
using System;
using System.Data;
using System.Collections.Generic;
namespace Learun.Application.TwoDevelopment.ZZDT_EC
{
///
/// 版 本 PIT-ADMS V7.0.3 敏捷开发框架
/// Copyright (c) 2013-2018 Hexagon PPM
/// 创 建:超级管理员
/// 日 期:2022-08-23 17:31
/// 描 述:命名规则,与对象类型和属性都有关联
///
public class ec_objecttypenamingconvBLL : ec_objecttypenamingconvIBLL
{
private ec_objecttypenamingconvService ec_objecttypenamingconvService = new ec_objecttypenamingconvService();
#region 获取数据
///
/// 获取列表数据
///
///
public IEnumerable GetList(string queryJson)
{
try
{
return ec_objecttypenamingconvService.GetList(queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
///
/// 获取列表分页数据
/// 分页参数
///
///
public IEnumerable GetPageList(Pagination pagination, string queryJson)
{
try
{
return ec_objecttypenamingconvService.GetPageList(pagination, queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
///
/// 获取实体数据
/// 主键
///
///
public ec_objecttypenamingconvEntity GetEntity(string keyValue, string ProjectId)
{
try
{
return ec_objecttypenamingconvService.GetEntity(keyValue, ProjectId);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion
#region 提交数据
///
/// 删除实体数据
/// 主键
///
///
public void DeleteEntity(string keyValue)
{
try
{
ec_objecttypenamingconvService.DeleteEntity(keyValue);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
///
/// 保存实体数据(新增、修改)
/// 主键
///
///
public void SaveEntity(string keyValue, ec_objecttypenamingconvEntity entity, string ProjectId)
{
try
{
ec_objecttypenamingconvService.SaveEntity(keyValue, entity, ProjectId);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}
#endregion
}
}