| | |
| | | |
| | | try |
| | | { |
| | | List<string> dicList = dicNos.ToList(); |
| | | if (dicNos.Where(x => !cacheDicNos.Contains(x)).Count() > 0) |
| | | List<string> dicList = dicNos.Where(x => !cacheDicNos.Contains(x)).ToList(); |
| | | if (dicList.Count() > 0) |
| | | { |
| | | string str = AppSettings.Configuration["dics"]; |
| | | if (!string.IsNullOrEmpty(str)) |
| | |
| | | |
| | | List<string> dics = str.Split(",").ToList(); |
| | | |
| | | foreach (var item in dics) |
| | | foreach (var item in dicList) |
| | | { |
| | | if (dicList.Contains(item)) |
| | | if (dics.Contains(item)) |
| | | cusDics.Add(item); |
| | | dicList.Remove(item); |
| | | } |
| | | |
| | | foreach (var item in cusDics) |