using Learun.Util;
using System.Collections.Generic;
namespace Learun.Application.Base.SystemModule
{
///
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2018 北京泉江科技有限公司
/// 创建人:陈彬彬
/// 日 期:2017.03.08
/// 描 述:功能模块
///
public interface ModuleIBLL
{
#region 功能模块
///
/// 功能列表
///
///
List GetModuleList();
///
/// 功能列表
///
///
ModuleEntity GetModuleByUrl(string url);
///
/// 获取功能列表的树形数据
///
///
List GetModuleTree();
///
/// 获取功能列表的树形数据(带勾选框)
///
///
List GetModuleCheckTree();
///
/// 获取功能列表的树形数据(只有展开项)
///
///
List GetExpendModuleTree();
///
/// 根据父级主键获取数据
///
/// 关键字
/// 父级主键
///
List GetModuleListByParentId(string keyword, string parentId);
///
/// 功能实体
///
/// 主键值
///
ModuleEntity GetModuleEntity(string keyValue);
#endregion
#region 模块按钮
///
/// 获取按钮列表数据
///
/// 模块Id
///
List GetButtonListNoAuthorize(string moduleId);
///
/// 获取按钮列表数据
///
/// 模块Id
///
List GetButtonList(string moduleId);
///
/// 获取按钮列表数据
///
/// 功能模块地址
///
List GetButtonListByUrl(string url);
///
/// 获取按钮列表树形数据(基于功能模块)
///
///
List GetButtonCheckTree();
#endregion
#region 模块视图
///
/// 获取视图列表数据
///
/// 模块Id
///
List GetColumnList(string moduleId);
///
/// 获取视图列表数据
///
/// 功能模块地址
///
List GetColumnListByUrl(string url);
///
/// 获取按钮列表树形数据(基于功能模块)
///
///
List GetColumnCheckTree();
#endregion
#region 模块表单
///
/// 获取表单字段数据
///
/// 模块Id
///
List GetFormList(string moduleId);
///
/// 获取表单字段数据
///
/// 功能模块地址
///
List GetFormListByUrl(string url);
///
/// 获取表单字段树形数据(基于功能模块)
///
///
List GetFormCheckTree();
#endregion
#region 提交数据
///
/// 虚拟删除模块功能
///
/// 主键值
bool Delete(string keyValue);
///
/// 保存模块功能实体(新增、修改)
///
/// 主键值
/// 实体
/// 按钮列表
/// 视图列集合
/// 视图列集合
void SaveEntity(string keyValue, ModuleEntity moduleEntity, List moduleButtonEntitys, List moduleColumnEntitys, List moduleFormEntitys);
#endregion
#region 权限验证
///
/// 验证当前访问的地址是否有权限
///
/// 访问地址
///
bool FilterAuthorize(string url);
#endregion
}
}