1234567891011121314151617181920212223 |
- using CZFW.Core;
- using System;
- namespace CZFW.Framework.Attributes
- {
- public class EnumSrcAttribute:Attribute
- {
- public string Name { get; set; }
- public string SrcUrl { get; set; }
- public string GetSrcUrl()
- {
- if (!string.IsNullOrWhiteSpace(SrcUrl))
- return SrcUrl;
- if (!string.IsNullOrWhiteSpace(Name))
- {
- SrcUrl = ConfigHelper.Configs["Framework:EnumSrcBase"] + "/GetEnumItems?enumstr=" + Name;
- return SrcUrl;
- }
- return null;
- }
- }
- }
|