/// <summary>
        /// 获取下拉框枚举
        /// </summary>
        /// <param name="fullKey"></param>
        /// <returns></returns>
        public List <EnumerationViewData> GetRegionStoreEnumerationViewData(string fullKey)
        {
            var lstEntityTemp = Singleton <RedisEnumOperatorBLL> .Instance.GetEnumRedisDataEntitys <RegionStoreRedisEntity>();

            var lstEntity = lstEntityTemp.OrderBy(e => e.DisplayOrder).ToList();

            List <EnumerationViewData> list     = new List <EnumerationViewData>();
            EnumerationViewData        viewData = null;

            foreach (var entity in lstEntityTemp)
            {
                viewData               = new EnumerationViewData();
                viewData.ID            = entity.Id;
                viewData.Name          = entity.Name;
                viewData.ParentID      = entity.ParentId;
                viewData.IsEnable      = entity.IsActive;
                viewData.GroupbyName   = fullKey;
                viewData.FullKey       = entity.Key;
                viewData.ParentFullKey = entity.ParentFullKey;
                list.Add(viewData);
            }

            return(list);
        }
        /// <summary>
        /// 获取下拉框枚举
        /// </summary>
        /// <param name="fullKey"></param>
        /// <param name="lstEnumRedisDataEntity"></param>
        /// <returns></returns>
        public List <EnumerationViewData> GetEnumerationViewData(string fullKey, List <EnumRedisDataEntity> lstEnumRedisDataEntity)
        {
            if (lstEnumRedisDataEntity == null || lstEnumRedisDataEntity.Count == 0)
            {
                return(new List <EnumerationViewData>());
            }

            string key = fullKey;

            if (SysConst.LENDINGGROUP == fullKey ||
                SysConst.SERVICEGROUP == fullKey ||
                SysConst.GUARANTEEGROUP == fullKey ||
                SysConst.FORELENDINGGROUP == fullKey)
            {
                key = SysConst.COMPANY;
            }

            List <EnumRedisDataEntity> lstEntityTemp = new List <EnumRedisDataEntity>();
            List <EnumRedisDataEntity> lstEntity     = lstEnumRedisDataEntity
                                                       .Where(x => x.SuperFullKey == key && x.IsDisable).OrderBy(e => e.DisplayOrder).ToList();

            switch (fullKey)
            {
            case SysConst.LENDINGGROUP:
                lstEntityTemp = lstEntity.Where(x => x.Value.Contains("IsLending=1")).OrderBy(e => e.Name).ToList();
                break;

            case SysConst.SERVICEGROUP:
                lstEntityTemp = lstEntity.Where(x => x.Value.Contains("IsService=1")).OrderBy(e => e.Name).ToList();
                break;

            case SysConst.GUARANTEEGROUP:
                lstEntityTemp = lstEntity.Where(x => x.Value.Contains("IsGuarantee=1")).OrderBy(e => e.Name).ToList();
                break;

            case SysConst.FORELENDINGGROUP:
                lstEntityTemp = lstEntity.Where(x => x.Value.Contains("IsLending=1"))
                                .Where(o => o.Key == SysConst.COMPANY_DWJM_LENDING).OrderBy(p => p.Name).ToList();
                break;

            default:
                lstEntityTemp = lstEntity;
                break;
            }

            string keyFieldName = "Key";

            if (SysConst.BUSINESSSTATUS == fullKey ||
                SysConst.CLOANSTATUS == fullKey ||
                SysConst.BILLSTATUS == fullKey ||
                SysConst.LAWSUITSTATUS == fullKey)
            {
                keyFieldName = "Value";
            }

            List <EnumerationViewData> list     = new List <EnumerationViewData>();
            EnumerationViewData        viewData = null;

            foreach (var entity in lstEntityTemp)
            {
                viewData             = new EnumerationViewData();
                viewData.ID          = entity.EnumID;
                viewData.Description = entity.Description;
                if (keyFieldName == "Key")
                {
                    viewData.FullKey = entity.Key;
                }
                else if (keyFieldName == "Value")
                {
                    viewData.FullKey = entity.Value;
                }

                //viewData.FullKey = GetFullKey(keyFieldName, entity);
                viewData.Name          = entity.Name;
                viewData.IsEnable      = entity.IsDisable == true ? 0 : 1;
                viewData.ParentFullKey = fullKey;
                viewData.GroupbyName   = fullKey;
                list.Add(viewData);
            }

            return(list);
        }