| | |
| | | } |
| | | } |
| | | } |
| | | 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)) |
| | |
| | | cusDics.Add(item); |
| | | dicList.Remove(item); |
| | | } |
| | | |
| | | foreach (var item in cusDics) |
| | | { |
| | | VueDictionaryDTO vueDictionaryDTO = GetVueDictionary(item.Trim()); |
| | |
| | | result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data }; |
| | | } |
| | | break; |
| | | case "productStatusEmun": |
| | | { |
| | | List<object> data = new List<object>(); |
| | | Type type = typeof(ProductStatusEmun); |
| | | List<int> enums = Enum.GetValues(typeof(ProductStatusEmun)).Cast<int>().ToList(); |
| | | int index = 0; |
| | | foreach (var item in enums) |
| | | { |
| | | FieldInfo? fieldInfo = typeof(ProductStatusEmun).GetField(((ProductStatusEmun)item).ToString()); |
| | | DescriptionAttribute? description = fieldInfo.GetCustomAttribute<DescriptionAttribute>(); |
| | | if (description != null) |
| | | { |
| | | data.Add(new { key = item, value = description.Description }); |
| | | } |
| | | else |
| | | { |
| | | data.Add(new { key = item, value = item.ToString() }); |
| | | } |
| | | index++; |
| | | } |
| | | |
| | | result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data }; |
| | | } |
| | | break; |
| | | case "locationChangeType": |
| | | { |
| | | List<object> data = new List<object>(); |