using LeaRun.Application.Entity.SystemManage;
using System.Collections.Generic;
namespace LeaRun.Application.IService.SystemManage
{
///
/// 版 本 6.1
/// Copyright (c) 2013-2016 上海力软信息技术有限公司
/// 创建人:佘赐雄
/// 日 期:2015.11.17 9:56
/// 描 述:数据字典分类
///
public interface IDataItemService
{
#region 获取数据
///
/// 分类列表
///
///
IEnumerable GetList();
///
/// 分类实体
///
/// 主键值
///
DataItemEntity GetEntity(string keyValue);
///
/// 根据分类编号获取实体对象
///
/// 编号
///
DataItemEntity GetEntityByCode(string ItemCode);
#endregion
#region 验证数据
///
/// 分类编号不能重复
///
/// 编号
/// 主键
///
bool ExistItemCode(string itemCode, string keyValue);
///
/// 分类名称不能重复
///
/// 名称
/// 主键
///
bool ExistItemName(string itemName, string keyValue);
#endregion
#region 提交数据
///
/// 删除分类
///
/// 主键
void RemoveForm(string keyValue);
///
/// 保存分类表单(新增、修改)
///
/// 主键值
/// 分类实体
///
void SaveForm(string keyValue, DataItemEntity dataItemEntity);
#endregion
}
}