示例#1
0
文件: Memory_BL.cs 项目: dangtq72/ATT
        public static void LoadAllCodeToMemory()
        {
            lock (SLockerAllCode)
            {
                var ds         = MemmoryDA.GetAllCode();
                var lstAllCode = CBO <AllCodeInfo> .FillCollectionFromDataSet(ds);

                _sAllCodeCollectionInMemory = lstAllCode;
            }
        }
示例#2
0
文件: Memory_BL.cs 项目: dangtq72/ATT
        public List <AllCodeInfo> GetAllCode()
        {
            List <AllCodeInfo> list = new List <AllCodeInfo>();

            try
            {
                var ds = MemmoryDA.GetAllCode();
                list = CBO <AllCodeInfo> .FillCollectionFromDataSet(ds);
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
            }
            return(list);
        }
示例#3
0
文件: Memory_BL.cs 项目: dangtq72/ATT
        public List <NationInfo> GetNation()
        {
            List <NationInfo> list = new List <NationInfo>();

            try
            {
                MemmoryDA _da = new MemmoryDA();
                list = CBO <NationInfo> .FillCollectionFromDataSet(_da.GetNation());
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
            }
            return(list);
        }