zoukankan      html  css  js  c++  java
  • 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,
        }
  • 相关阅读:
    pytorch基础(4)-----搭建模型网络的两种方法
    Java
    Tools
    Maven
    Java
    DevOps
    Linux
    Java
    Java
    Nutch 使用总结
  • 原文地址:https://www.cnblogs.com/x-poior/p/6002739.html
Copyright © 2011-2022 走看看