From 7ca9651f81d7b84f054194d3d46fdbd1d9c8b922 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期三, 09 七月 2025 22:55:27 +0800
Subject: [PATCH] 增加质检出入库逻辑

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_SystemService/Sys_DictionaryService.cs |   29 ++++++++++++++++++++++++++---
 1 files changed, 26 insertions(+), 3 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_SystemService/Sys_DictionaryService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_SystemService/Sys_DictionaryService.cs"
index 38ac7a9..48f998a 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_SystemService/Sys_DictionaryService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_SystemService/Sys_DictionaryService.cs"
@@ -98,8 +98,8 @@
                     }
                 }
             }
-            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))
@@ -114,7 +114,6 @@
                             cusDics.Add(item);
                         dicList.Remove(item);
                     }
-
                     foreach (var item in cusDics)
                     {
                         VueDictionaryDTO vueDictionaryDTO = GetVueDictionary(item.Trim());
@@ -521,6 +520,30 @@
                             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>();

--
Gitblit v1.9.3