예제 #1
0
        public string GetHighestLevel(String level1, String level2)
        {
            UNIVERSAL_SAL_LEVEL level1SAL = null;
            UNIVERSAL_SAL_LEVEL level2SAL = null;

            DictionarySALs.TryGetValue(level1, out level1SAL);
            DictionarySALs.TryGetValue(level2, out level2SAL);

            if (level1SAL == null && level2SAL == null)
            {
                return(null);
            }
            else if (level1SAL == null)
            {
                return(level2);
            }
            else if (level2SAL == null)
            {
                return(level1);
            }
            else
            {
                return(level1SAL.Sal_Level_Order > level2SAL.Sal_Level_Order ? level1 : level2);
            }
        }
예제 #2
0
        public UNIVERSAL_SAL_LEVEL GetSALLevel(String sallevel)
        {
            if (sallevel == null)
            {
                return(DefaultSalLevel);
            }

            UNIVERSAL_SAL_LEVEL level;

            if (DictionarySALs.TryGetValue(sallevel, out level))
            {
                return(level);
            }
            else
            {
                return(DefaultSalLevel);
            }
        }