Пример #1
0
        static void Get_AllCode()
        {
            try
            {
                #region Allcode
                c_hs_Allcode.Clear();
                Memory_BL          _AllCodeBL = new Memory_BL();
                List <AllCodeInfo> _lst_al    = _AllCodeBL.GetAllCode();

                if (_lst_al.Count > 0)
                {
                    foreach (AllCodeInfo item in _lst_al)
                    {
                        if (c_hs_Allcode.ContainsKey(item.CdName + "|" + item.CdType) == false)
                        {
                            List <AllCodeInfo> _lst = new List <AllCodeInfo>();
                            _lst.Add(item);
                            c_hs_Allcode[item.CdName + "|" + item.CdType] = _lst;
                        }
                        else
                        {
                            List <AllCodeInfo> _lst = (List <AllCodeInfo>)c_hs_Allcode[item.CdName + "|" + item.CdType];
                            _lst.Add(item);
                        }
                    }
                }
                #endregion
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
            }
        }
Пример #2
0
 public static List <NationInfo> GetNation()
 {
     try
     {
         List <NationInfo> _lst = new List <NationInfo>();
         Memory_BL         _bl  = new Memory_BL();
         _lst = _bl.GetNation();
         return(_lst);
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
         return(new List <NationInfo>());
     }
 }