Пример #1
0
 private int GetSortDataType(MetaType mdType)
 {
     switch(mdType.Id)
     {
         case 31://ShortString
             return 0;
         case 32://LongString
             return 1;
         case 26://Integer
             return 2;
         case 9://Money
             return 3;
         case 28://Date
             return 4;
         case 4://DateTime
             return 5;
         case 34://DictionarySingleValue
             return 6;
         case 35://DictionaryMultivalue
             return 7;
         case 36://EnumSingleValue
             return 8;
         case 37://EnumMultivalue
             return 9;
         case 38://StringDictionary
             return 10;
         case 27://Boolean
             return 11;
         case 30://URL
             return 12;
         case 33://LongHtmlString
             return 13;
         case 29://Email
             return 14;
         case 39://File
             return 15;
         case 40://ImageFile
             return 16;
         default:
             return 100;
     }
 }
Пример #2
0
 internal void Add(MetaType newItem)
 {
     this.InnerList.Add(newItem);
 }