• C#基础-技术还债3-枚举【pending】


      /// <summary>
        /// 声明三方查询类型可以关联的查询对象类型
        /// </summary>
        [AttributeUsage(AttributeTargets.Field, Inherited = false, AllowMultiple = true)]
        public sealed class IncludeAttribute : Attribute
        {
            public ThirdInfoCategroyObjectType Detail { get; private set; }
            public IncludeAttribute(ThirdInfoCategroyObjectType detail)
            {
                this.Detail = detail;
            }
        }
    [Flags]
        public enum ThirdInfoCategroyObjectType
        {
    
    
            /// <summary>
            /// 申请人ID
            /// </summary>
            [Description("申请人ID")]
            ApplyID = 1,
            /// <summary>
            /// 配偶ID
            /// </summary>
            [Description("配偶ID")]
            SpouseID = 2,
            /// <summary>
            /// 企业名称
            /// </summary>
            [Description("企业名称")]
            EnterpriseName = 3,
            /// <summary>
            /// 企业地址
            /// </summary>
            [Description("企业地址")]
            EnterpriseAddress = 4,
            /// <summary>
            /// 申请人号码
            /// </summary>
            [Description("申请人号码")]
            ApplyPhone = 5,
            /// <summary>
            /// 单位固话
            /// </summary>
            [Description("单位固话")]
            FixedUnit = 6,
            /// <summary>
            /// 家庭固话
            /// </summary>
            [Description("家庭固话")]
            FamilyFixed = 7,
            /// <summary>
            /// 家人联系人号码
            /// </summary>
            [Description("家人联系人号码")]
            FamilyContractNumber = 8,
            /// <summary>
            /// 工作证明人号码
            /// </summary>
            [Description("工作证明人号码")]
            WorkCertNumber = 9,
            /// <summary>
            /// 紧急联系人号码
            /// </summary>
            [Description("紧急联系人号码")]
            EmergencyNumber = 10,
    
    
        }
    View Code
     /// <summary>
        /// 第三方信息查询类型
        /// </summary>
        public enum ThirdInfoType
        {
            /// <summary>
            /// 人法网
            /// </summary>
            [Description("人法网")]
            [Include(ThirdInfoCategroyObjectType.ApplyID)]
            [Include(ThirdInfoCategroyObjectType.SpouseID)]
            [Include(ThirdInfoCategroyObjectType.EnterpriseName)]
            HumanNet = 1,
    
            /// <summary>
            /// 工商网
            /// </summary>
            [Description("工商网")]
            [Include(ThirdInfoCategroyObjectType.EnterpriseName)]
            IndustrialCommercialNet = 2,
            /// <summary>
            /// 网络查询
            /// </summary>
            [Description("网络查询")]
            [Include(ThirdInfoCategroyObjectType.ApplyID)]
            [Include(ThirdInfoCategroyObjectType.SpouseID)]
            [Include(ThirdInfoCategroyObjectType.EnterpriseName)]
            [Include(ThirdInfoCategroyObjectType.EnterpriseAddress)]
            [Include(ThirdInfoCategroyObjectType.ApplyPhone)]
            [Include(ThirdInfoCategroyObjectType.FixedUnit)]
            [Include(ThirdInfoCategroyObjectType.FamilyFixed)]
            [Include(ThirdInfoCategroyObjectType.FamilyContractNumber)]
            [Include(ThirdInfoCategroyObjectType.WorkCertNumber)]
            [Include(ThirdInfoCategroyObjectType.EmergencyNumber)]
            InfoNet = 3,
        }
  • 相关阅读:
    solr6.5搭建以及使用经验
    Intellij IDEA svn的使用记录
    初次从eclipse转到intellij idea上的一些经验
    Linux一键安装PHP/JAVA环境OneinStack
    CentOS下yum安装mysql,jdk以及tomcat
    centos yum换阿里云源
    ehcache配置:使用Spring+SpringMVC+Mybatis或者有shiro
    微博短链接的生成算法(Java版本)
    手把手教你使用Git
    工作中有关分布式缓存的使用和需要注意的问题梳理
  • 原文地址:https://www.cnblogs.com/x-poior/p/6002739.html
Copyright © 2020-2023  润新知