From cd78554c3da306ed8c866d971bee94457665f80c Mon Sep 17 00:00:00 2001 From: wangxinhui <wangxinhui@hnkhzn.com> Date: 星期六, 30 八月 2025 17:35:51 +0800 Subject: [PATCH] ERP一期接口 --- 项目代码/WMS/WMSServices/WIDESEA_SystemService/Sys_DictionaryService.cs | 394 -------------------------------------------------------- 1 files changed, 0 insertions(+), 394 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_SystemService/Sys_DictionaryService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_SystemService/Sys_DictionaryService.cs" index 87935d4..25e77a2 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_SystemService/Sys_DictionaryService.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_SystemService/Sys_DictionaryService.cs" @@ -211,54 +211,6 @@ } } break; - case "returnStatus": - { - List<object> data = new List<object>(); - Type type = typeof(ReturnOrderStatusEnum); - List<int> enums = Enum.GetValues(typeof(ReturnOrderStatusEnum)).Cast<int>().ToList(); - int index = 0; - foreach (var item in enums) - { - FieldInfo? fieldInfo = typeof(ReturnOrderStatusEnum).GetField(((ReturnOrderStatusEnum)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 "returnType": - { - List<object> data = new List<object>(); - Type type = typeof(ReturnOrderTypeEnum); - List<int> enums = Enum.GetValues(typeof(ReturnOrderTypeEnum)).Cast<int>().ToList(); - int index = 0; - foreach (var item in enums) - { - FieldInfo? fieldInfo = typeof(ReturnOrderTypeEnum).GetField(((ReturnOrderTypeEnum)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 "taskType": { List<object> data = new List<object>(); @@ -331,112 +283,6 @@ data.Add(new { key = item.ToString(), value = item.ToString() }); } index++; - } - - result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data }; - } - break; - - case "outLockStockStatusEnum": - { - List<object> data = new List<object>(); - Type type = typeof(OutLockStockStatusEnum); - List<int> enums = Enum.GetValues(typeof(OutLockStockStatusEnum)).Cast<int>().ToList(); - int index = 0; - foreach (var item in enums) - { - FieldInfo? fieldInfo = typeof(OutLockStockStatusEnum).GetField(((OutLockStockStatusEnum)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 "inOrderType": - { - List<object> data = new List<object>(); - - { - Type type = typeof(InOrderTypeEnum); - List<int> enums = Enum.GetValues(typeof(InOrderTypeEnum)).Cast<int>().ToList(); - int index = 0; - foreach (var item in enums) - { - FieldInfo? fieldInfo = typeof(InOrderTypeEnum).GetField(((InOrderTypeEnum)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 "outOrderType": - { - List<object> data = new List<object>(); - - { - Type type = typeof(OutOrderTypeEnum); - List<int> enums = Enum.GetValues(typeof(OutOrderTypeEnum)).Cast<int>().ToList(); - int index = 0; - foreach (var item in enums) - { - FieldInfo? fieldInfo = typeof(OutOrderTypeEnum).GetField(((OutOrderTypeEnum)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 "orderDetailStatusEnum": - { - List<object> data = new List<object>(); - - { - Type type = typeof(OrderDetailStatusEnum); - List<int> enums = Enum.GetValues(typeof(OrderDetailStatusEnum)).Cast<int>().ToList(); - int index = 0; - foreach (var item in enums) - { - FieldInfo? fieldInfo = typeof(OrderDetailStatusEnum).GetField(((OrderDetailStatusEnum)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 }; @@ -698,57 +544,6 @@ result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data }; } break; - case "outStockStatus": - { - List<object> data = new List<object>(); - Type type = typeof(OutLockStockStatusEnum); - List<int> enums = Enum.GetValues(typeof(OutLockStockStatusEnum)).Cast<int>().ToList(); - int index = 0; - foreach (var item in enums) - { - FieldInfo? fieldInfo = typeof(OutLockStockStatusEnum).GetField(((OutLockStockStatusEnum)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 "receiveOrderTypeEnum": - { - List<object> data = new List<object>(); - - { - Type type = typeof(ReceiveOrderTypeEnum); - List<int> enums = Enum.GetValues(typeof(ReceiveOrderTypeEnum)).Cast<int>().ToList(); - int index = 0; - foreach (var item in enums) - { - FieldInfo? fieldInfo = typeof(ReceiveOrderTypeEnum).GetField(((ReceiveOrderTypeEnum)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 "authorityScope": { if (App.User.IsSuperAdmin) @@ -814,87 +609,6 @@ result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data }; } break; - case "receiveStatus": - { - List<object> data = new List<object>(); - - { - Type type = typeof(ReceiveOrderStatusEnum); - List<int> enums = Enum.GetValues(typeof(ReceiveOrderStatusEnum)).Cast<int>().ToList(); - int index = 0; - foreach (var item in enums) - { - FieldInfo? fieldInfo = typeof(ReceiveOrderStatusEnum).GetField(((ReceiveOrderStatusEnum)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 "purchaseType": - { - List<object> data = new List<object>(); - - { - Type type = typeof(PurchaseOrderTypeEnum); - List<string> enums = Enum.GetValues(typeof(PurchaseOrderTypeEnum)).Cast<string>().ToList(); - int index = 0; - foreach (var item in enums) - { - //FieldInfo? fieldInfo = typeof(PurchaseOrderTypeEnum).GetField(((PurchaseOrderTypeEnum)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 "purchaseOrderStatus": - { - List<object> data = new List<object>(); - - { - Type type = typeof(PurchaseOrderStatusEnum); - List<int> enums = Enum.GetValues(typeof(PurchaseOrderStatusEnum)).Cast<int>().ToList(); - int index = 0; - foreach (var item in enums) - { - FieldInfo? fieldInfo = typeof(PurchaseOrderStatusEnum).GetField(((PurchaseOrderStatusEnum)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 "printStatus": { List<object> data = new List<object>(); @@ -922,87 +636,6 @@ result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data }; } break; - case "checkOrderStatusEnum": - { - List<object> data = new List<object>(); - - { - Type type = typeof(CheckOrderStatusEnum); - List<int> enums = Enum.GetValues(typeof(CheckOrderStatusEnum)).Cast<int>().ToList(); - int index = 0; - foreach (var item in enums) - { - FieldInfo? fieldInfo = typeof(CheckOrderStatusEnum).GetField(((CheckOrderStatusEnum)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 "checkAcceptEnum": - { - List<object> data = new List<object>(); - - { - Type type = typeof(CheckAcceptEnum); - List<string> enumNames = Enum.GetNames(typeof(CheckAcceptEnum)).ToList(); - int index = 0; - foreach (var item in enumNames) - { - FieldInfo? fieldInfo = typeof(CheckAcceptEnum).GetField((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 "checkUploadEnum": - { - List<object> data = new List<object>(); - - { - Type type = typeof(CheckUploadEnum); - List<int> enums = Enum.GetValues(typeof(CheckUploadEnum)).Cast<int>().ToList(); - int index = 0; - foreach (var item in enums) - { - FieldInfo? fieldInfo = typeof(CheckUploadEnum).GetField(((CheckUploadEnum)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>(); @@ -1014,33 +647,6 @@ foreach (var item in enums) { FieldInfo? fieldInfo = typeof(ProStockAttributeEnum).GetField(((ProStockAttributeEnum)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 "materielSourceTypeEnum": - { - List<object> data = new List<object>(); - - { - Type type = typeof(MaterielSourceTypeEnum); - List<int> enums = Enum.GetValues(typeof(MaterielSourceTypeEnum)).Cast<int>().ToList(); - int index = 0; - foreach (var item in enums) - { - FieldInfo? fieldInfo = typeof(MaterielSourceTypeEnum).GetField(((MaterielSourceTypeEnum)item).ToString()); DescriptionAttribute? description = fieldInfo.GetCustomAttribute<DescriptionAttribute>(); if (description != null) { -- Gitblit v1.9.3