/**
|
* ISys_DictionaryDAL.cs
|
*
|
* 功 能: 字典表数据访问接口
|
* 类 名: ISys_DictionaryDAL
|
*
|
* Ver 变更日期 负责人 变更内容
|
* ───────────────────────────────────
|
* V0.01 2013-4-12 9:23 吴崎均 初版
|
* V0.02 2013-4-12 17:45 吴崎均 新增方法:根据数据类型获取数据集合、获取全部数据类型、根据Keyid获得名称、根据代表值和类型获得名称
|
*
|
*
|
*
|
*
|
*
|
*/
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using CY.IBaseDAL;
|
using CY.Model;
|
|
namespace CY.IDAL
|
{
|
|
|
/// <summary>
|
/// 字典表-数据库操作接口
|
/// </summary>
|
public interface ISys_DictionaryDAL : ICommonDAL, IPaging<Sys_Dictionary>, IGetAllModel<Sys_Dictionary>
|
{
|
/// <summary>
|
/// 根据数据类型获取数据集合
|
/// </summary>
|
/// <param name="dicType">数据类型</param>
|
/// <returns></returns>
|
IEnumerable<Model.Sys_Dictionary> SelectModlesByType(string dicType);
|
|
/// <summary>
|
/// 获取全部数据类型
|
/// </summary>
|
/// <returns></returns>
|
IEnumerable<string> SelectDicTypes();
|
/// <summary>
|
/// 根据Keyid获得名称
|
/// </summary>
|
/// <param name="Keyid">数据id</param>
|
/// <returns></returns>
|
string SelectModelByKeyid(int? Keyid);
|
/// <summary>
|
/// 根据代表值和类型获得名称
|
/// </summary>
|
/// <param name="MeanValue">代表值</param>
|
/// <param name="DicType">类型</param>
|
/// <returns></returns>
|
int? GetNameByKeyid(int? MeanValue, string DicType);
|
|
/// <summary>
|
/// 根据代表值和类型获得Name
|
/// </summary>
|
/// <param name="MeanValue">数据id</param>
|
/// <param name="DicType">数据id</param>
|
/// <returns></returns>
|
string GetNameByMeanValue(int? MeanValue, string DicType);
|
}
|
}
|