using LeaRun.Application.Entity.SystemManage;
using LeaRun.Application.Entity.SystemManage.ViewModel;
using System.Collections.Generic;
namespace LeaRun.Application.IService.SystemManage
{
///
/// 版 本 6.1
/// Copyright (c) 2013-2016 上海力软信息技术有限公司
/// 创建人:佘赐雄
/// 日 期:2015.11.17 9:56
/// 描 述:数据字典明细
///
public interface IDataItemDetailService
{
#region 获取数据
///
/// 明细列表
///
/// 分类Id
///
IEnumerable GetList(string itemId);
///
/// 明细实体
///
/// 主键值
///
DataItemDetailEntity GetEntity(string keyValue);
///
/// 获取数据字典列表(给绑定下拉框提供的)
///
///
IEnumerable GetDataItemList();
#endregion
#region 验证数据
///
/// 项目值不能重复
///
/// 项目值
/// 主键
/// 分类Id
///
bool ExistItemValue(string itemValue, string keyValue, string itemId);
///
/// 项目名不能重复
///
/// 项目名
/// 主键
/// 分类Id
///
bool ExistItemName(string itemName, string keyValue, string itemId);
#endregion
#region 提交数据
///
/// 删除明细
///
/// 主键
void RemoveForm(string keyValue);
///
/// 保存明细表单(新增、修改)
///
/// 主键值
/// 明细实体
///
void SaveForm(string keyValue, DataItemDetailEntity dataItemDetailEntity);
#endregion
}
}