wangxinhui
10 天以前 6861434f1445d1685b67a24897890c34f8c54f85
代码管理/WMS/WMSServices/WIDESEA_SystemService/Sys_DictionaryService.cs
@@ -176,25 +176,6 @@
                            result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data };
                        }
                        break;
                    case "materials":
                        {
                            {
                                List<object> data = new List<object>();
                                {
                                    List<Dt_MaterielInfo> materielInfos = _basicRepository.MaterielInfoRepository.QueryData();
                                    int index = 0;
                                    foreach (var item in materielInfos)
                                    {
                                        data.Add(new { key = item.MaterielCode, value = item.MaterielCode });
                                        index++;
                                    }
                                }
                                result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data };
                            }
                        }
                        break;
                    case "taskType":
                        {
                            List<object> data = new List<object>();
@@ -558,33 +539,6 @@
                                foreach (var item in enums)
                                {
                                    FieldInfo? fieldInfo = typeof(PrintStatusEnum).GetField(((PrintStatusEnum)item).ToString());
                                    DescriptionAttribute? description = fieldInfo.GetCustomAttribute<DescriptionAttribute>();
                                    if (description != null)
                                    {
                                        data.Add(new { key = item.ToString(), value = description.Description });
                                    }
                                    else
                                    {
                                        data.Add(new { key = item.ToString(), value = item.ToString() });
                                    }
                                    index++;
                                }
                            }
                            result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data };
                        }
                        break;
                    case "proStockAttributeEnum":
                        {
                            List<object> data = new List<object>();
                            {
                                Type type = typeof(ProStockAttributeEnum);
                                List<int> enums = Enum.GetValues(typeof(ProStockAttributeEnum)).Cast<int>().ToList();
                                int index = 0;
                                foreach (var item in enums)
                                {
                                    FieldInfo? fieldInfo = typeof(ProStockAttributeEnum).GetField(((ProStockAttributeEnum)item).ToString());
                                    DescriptionAttribute? description = fieldInfo.GetCustomAttribute<DescriptionAttribute>();
                                    if (description != null)
                                    {