Пример #1
0
        private static bool AssignSharedComponents(DataDictionaryObject dictObject, string argument, string value)
        {
            if (argument.Equals(DataDictionaryElements.DICT_LABEL, StringComparison.InvariantCultureIgnoreCase))
            {
                ParseLabel(dictObject, value);
                return(true);
            }

            else if (argument.Equals(DataDictionaryElements.DICT_NAME, StringComparison.InvariantCultureIgnoreCase))
            {
                dictObject.Name = value.ToUpper();
                return(true);
            }

            else if (argument.Equals(DataDictionaryElements.DICT_NOTE, StringComparison.InvariantCultureIgnoreCase))
            {
                dictObject.Note = AppendNote(dictObject.Note, value);
                return(true);
            }

            return(false);
        }
Пример #2
0
        private void PrefixDictObjectName(DataDictionary dict, string prefix, DataDictionaryObject ddo)
        {
            string oldName = ddo.Name;
            string newName = prefix + ddo.Name;

            CheckIfValidNewName(dict, newName);

            // change the name
            ddo.Name = newName;
        }
Пример #3
0
 private DataDictionary GetDataDictionaryFromSymbol(DataDictionaryObject symbol)
 {
     return symbol is DataDictionary ? (DataDictionary)symbol :
         symbol is Level ? ( (Level)symbol ).ParentDictionary :
         symbol is Record ? ( (Record)symbol ).ParentDictionary :
         symbol is Item ? ( (Item)symbol ).ParentDictionary :
         symbol is ValueSet ? ( (ValueSet)symbol ).ParentDictionary :
         null;
 }
Пример #4
0
        private static bool AssignSharedComponents(DataDictionaryObject dictObject,string argument,string value)
        {
            if( argument.Equals(DataDictionaryElements.DICT_LABEL,StringComparison.InvariantCultureIgnoreCase) )
            {
                ParseLabel(dictObject,value);
                return true;
            }

            else if( argument.Equals(DataDictionaryElements.DICT_NAME,StringComparison.InvariantCultureIgnoreCase) )
            {
                dictObject.Name = value.ToUpper();
                return true;
            }

            else if( argument.Equals(DataDictionaryElements.DICT_NOTE,StringComparison.InvariantCultureIgnoreCase) )
            {
                dictObject.Note = AppendNote(dictObject.Note,value);
                return true;
            }

            return false;
        }
Пример #5
0
 private void SaveSharedComponents(DataDictionaryObject dictObject)
 {
     SaveOption(DataDictionaryElements.DICT_LABEL,GetSaveLabelText(dictObject));
     SaveOption(DataDictionaryElements.DICT_NAME,dictObject.Name);
     SaveNote(dictObject.Note);
 }
Пример #6
0
 private void SaveSharedComponents(DataDictionaryObject dictObject)
 {
     SaveOption(DataDictionaryElements.DICT_LABEL, GetSaveLabelText(dictObject));
     SaveOption(DataDictionaryElements.DICT_NAME, dictObject.Name);
     SaveNote(dictObject.Note);
 }