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