| | |
| | | result = new VueDictionaryDTO { DicNo = key, Config = "", Data = data }; |
| | | } |
| | | break; |
| | | case "agvStationEnum": |
| | | case "RGVEquipment": |
| | | { |
| | | List<object> data = new List<object>(); |
| | | Type type = typeof(AgvStationEnum); |
| | | List<int> enums = Enum.GetValues(typeof(AgvStationEnum)).Cast<int>().ToList(); |
| | | Type type = typeof(RGVEquipment); |
| | | List<int> enums = Enum.GetValues(typeof(RGVEquipment)).Cast<int>().ToList(); |
| | | int index = 0; |
| | | foreach (var item in enums) |
| | | { |
| | | FieldInfo? fieldInfo = typeof(AgvStationEnum).GetField(((AgvStationEnum)item).ToString()); |
| | | FieldInfo? fieldInfo = typeof(RGVEquipment).GetField(((RGVEquipment)item).ToString()); |
| | | DescriptionAttribute? description = fieldInfo.GetCustomAttribute<DescriptionAttribute>(); |
| | | if (description != null) |
| | | { |