Exemplo n.º 1
0
        /// <summary>
        /// 取得國籍中英文對照,回傳中文,英文
        /// </summary>
        /// <returns></returns>
        public static Dictionary <string, string> GetNationalityMappingDict()
        {
            Dictionary <string, string>   retVal   = new Dictionary <string, string>();
            List <UDT_NationalityMapping> dataList = UDTTransfer.UDTNationalityMappingSelectAll();

            foreach (UDT_NationalityMapping data in dataList)
            {
                if (!retVal.ContainsKey(data.Name))
                {
                    retVal.Add(data.Name, data.Eng_Name);
                }
            }
            return(retVal);
        }
Exemplo n.º 2
0
 void _bgWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     _NationalityMappingList = UDTTransfer.UDTNationalityMappingSelectAll();
 }