using LeaRun.Application.Entity.DemoManage;
using LeaRun.Application.IService.DemoManage;
using LeaRun.Application.Service.DemoManage;
using LeaRun.Util.WebControl;
using System.Collections.Generic;
using System;
namespace LeaRun.Application.Busines.DemoManage
{
///
/// 版 本 6.1
/// Copyright (c) 2013-2016 上海力软信息技术有限公司
/// 创 建:超级管理员
/// 日 期:2016-12-06 17:29
/// 描 述:OfficeRk
///
public class OfficeRkBLL
{
private OfficeRkIService service = new OfficeRkService();
#region 获取数据
///
/// 获取列表
///
/// 分页
/// 查询参数
/// 返回分页列表
public IEnumerable GetPageList(Pagination pagination, string queryJson)
{
return service.GetPageList(pagination, queryJson);
}
///
/// 获取实体
///
/// 主键值
///
public OfficeRkEntity GetEntity(string keyValue)
{
return service.GetEntity(keyValue);
}
///
/// 获取子表详细信息
///
/// 主键值
///
public IEnumerable GetDetails(string keyValue)
{
return service.GetDetails(keyValue);
}
#endregion
#region 提交数据
///
/// 删除数据
///
/// 主键
public void RemoveForm(string keyValue)
{
try
{
service.RemoveForm(keyValue);
}
catch (Exception)
{
throw;
}
}
///
/// 保存表单(新增、修改)
///
/// 主键值
/// 实体对象
///
public void SaveForm(string keyValue, OfficeRkEntity entity,List entryList)
{
try
{
service.SaveForm(keyValue, entity, entryList);
}
catch (Exception)
{
throw;
}
}
#endregion
}
}