Example #1
0
        public string ParseDictionaryValueByCategoryNameAndKey(string categoryName, string key)
        {
            SystemDictionaryEntity dictionaryEntity = this.SelfDataObj.GetDictionaryByCategoryNameAndKey(categoryName,
                                                                                                         key);

            if (dictionaryEntity == null)
            {
                return(key);
            }
            else
            {
                return(dictionaryEntity.SystemDictionaryValue);
            }
        }
Example #2
0
        internal static SystemDictionaryWrapper ConvertEntityToWrapper(SystemDictionaryEntity entity)
        {
            if (entity == null)
            {
                return(null);
            }

            if (entity.SystemDictionaryID == 0)
            {
                return(null);
            }

            return(new SystemDictionaryWrapper(entity));
        }
Example #3
0
 internal SystemDictionaryWrapper(SystemDictionaryEntity entityObj)
 {
     entity = entityObj;
 }
Example #4
0
 internal SystemDictionaryWrapper(SystemDictionaryEntity entityObj)
     : base(entityObj)
 {
 }