123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- using LeaRun.Application.Entity.BaseManage;
- using LeaRun.Application.IService.BaseManage;
- using LeaRun.Application.Service.BaseManage;
- using LeaRun.Util.WebControl;
- using System.Collections.Generic;
- using System;
- namespace LeaRun.Application.Busines.BaseManage
- {
- /// <summary>
- /// 版 本 6.1
- /// Copyright (c) 2013-2016 上海力软信息技术有限公司
- /// 创 建:超级管理员
- /// 日 期:2017-02-22 21:03
- /// 描 述:系统功能表
- /// </summary>
- public class Base_ModuleBLL
- {
- private Base_ModuleIService service = new Base_ModuleService();
- #region 获取数据
- /// <summary>
- /// 获取列表
- /// </summary>
- /// <param name="queryJson">查询参数</param>
- /// <returns>返回列表</returns>
- public IEnumerable<Base_ModuleEntity> GetList(string queryJson)
- {
- return service.GetList(queryJson);
- }
- /// <summary>
- /// 获取实体
- /// </summary>
- /// <param name="keyValue">主键值</param>
- /// <returns></returns>
- public Base_ModuleEntity GetEntity(string keyValue)
- {
- return service.GetEntity(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, Base_ModuleEntity entity)
- {
- try
- {
- service.SaveForm(keyValue, entity);
- }
- catch (Exception)
- {
- throw;
- }
- }
- #endregion
- }
- }
|