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 DataItemIBLL
{
#region 数据字典分类
///
/// 分类列表
///
///
List GetClassifyList();
///
/// 分类列表
///
/// 关键词(名称/编码)
/// 是否只取有效
///
List GetClassifyList(string keyword, bool enabledMark = true);
///
/// 获取分类树形数据
///
///
List GetClassifyTree();
///
/// 判断分类编号是否重复
///
/// 主键
/// 编码
///
bool ExistItemCode(string keyValue, string itemCode);
///
/// 判断分类名称是否重复
///
/// 主键
/// 名称
///
bool ExistItemName(string keyValue, string itemName);
///
/// 保存分类数据实体
///
/// 主键
/// 实体
void SaveClassifyEntity(string keyValue, DataItemEntity entity);
///
/// 虚拟删除分类数据
///
/// 主键
void VirtualDeleteClassify(string keyValue);
///
/// 通过编号获取字典分类实体
///
/// 编码
///
DataItemEntity GetClassifyEntityByCode(string itemCode);
#endregion
#region 字典明细
///
/// 获取数据字典明显
///
/// 分类编码
///
List GetDetailList(string itemCode);
IEnumerable GetAllDetailList();
///
/// 获取数据字典明显
///
/// 分类编码
/// 关键词(名称/值)
///
List GetDetailList(string itemCode, string keyword);
///
/// 获取数据字典详细映射数据
///
///
Dictionary> GetModelMap();
///
/// 获取数据字典明显
///
/// 分类编号
/// 父级主键
///
List GetDetailListByParentId(string itemCode, string parentId);
///
/// 获取字典明细树形数据
///
/// 分类编号
///
List GetDetailTree(string itemCode);
///
/// 项目值不能重复
///
/// 主键
/// 项目值
/// 分类编码
///
bool ExistDetailItemValue(string keyValue, string itemValue, string itemCode);
///
/// 项目名不能重复
///
/// 主键
/// 项目名
/// 分类编码
///
bool ExistDetailItemName(string keyValue, string itemName, string itemCode);
///
/// 保存明细数据实体
///
/// 主键
/// 实体
void SaveDetailEntity(string keyValue, DataItemDetailEntity entity);
///
/// 虚拟删除明细数据
///
/// 主键
void VirtualDeleteDetail(string keyValue);
#endregion
}
}