username@email.com
2025-05-21 a980cd04341d71216e0f59bd4b7327fe9fc50032
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**  
* 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);
    }
}