完善下拉框封装

This commit is contained in:
ChenYi 2025-07-11 16:14:05 +08:00
parent a28e1b371f
commit f8b47e0667

View File

@ -3,6 +3,8 @@ using JiShe.ServicePro.Commons;
using JiShe.ServicePro.Core;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.ComponentModel;
using static FreeSql.Internal.GlobalFilter;
namespace JiShe.IoT.CommonServices
{
@ -21,8 +23,10 @@ namespace JiShe.IoT.CommonServices
foreach (var typeInfoItem in typeList)
{
SelectResultAttribute[] selectResultAttribute =
(SelectResultAttribute[])typeInfoItem.GetCustomAttributes(typeof(SelectResultAttribute), false);
_selectListType.TryAdd(typeInfoItem.Name, CommonHelper.GetEnumAttributeList(typeInfoItem));
_selectListType.TryAdd(typeInfoItem.Name, CommonHelper.GetTypeAttributeList(typeInfoItem, selectResultAttribute[0].IsGetPropertie));
}
}