日期:2014-05-17 浏览次数:20777 次
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Web.SessionState;
namespace WZW.Web.Biz.Core
{
public class DictManager
{
private static DictManager instance = new DictManager();
private static readonly object synRoot = new object();
// 字典目录Map
private HashMap dictCatalogMap = new HashMap();
// 字典Map
private HashMap dictMap = new HashMap();
// 字典列表Map
private HashMap dictListMap = new HashMap();
public static DictManager GetInstance()
{
return instance;
}
private void InitDict()
{
lock (synRoot)
{
dictCatalogMap = new HashMap();
dictMap = new HashMap();
dictListMap = new HashMap();
// 获取字典索引
SqlParaMap spm = new SqlParaMap();
spm.AddOrderyBy("dict_memoni");
List<SysDict> sysDictList = SysDictManager.GetInstance().QuerySysDictForList(spm);
foreach (SysDict sysDict in sysDictList)
{
// 初始化字典列表
DictCatalog dictCatalog = new DictCatalog();
dictCatalog.Memoni = sysDict.Dict_memoni;
dictCatalog.Name = sysDict.Dict_name;
&nb