Beispiel #1
0
        public static string ReadLocalRegitFile(string key)
        {
            KeyConfig loginUserConfig = ConfigManager <KeyConfig> .GetInfo(ConfigTypes.LocalRegit, key);

            if (loginUserConfig == null)
            {
                if (key.Contains("Is"))
                {
                    return("false");
                }
                else if (key.ToUpper().Contains("ID"))
                {
                    return("0");
                }
                else
                {
                    return(string.Empty);
                }
            }
            string returnValue = loginUserConfig.KeyValue;

            if (key.Contains("Time") && Orm.Utilities.Common.IsNumeric(returnValue) && System.Convert.ToInt32(returnValue) < 15000)    //�����ʱ�����ã�����С��30��
            {
                return("15000");
            }
            else
            {
                return(returnValue);
            }
        }
Beispiel #2
0
        public string GetCityName()
        {
            KeyConfig loginUserConfig = ConfigManager <KeyConfig> .GetInfo("WeatherCitySetting", "CityName");

            if (loginUserConfig == null)
            {
                return("");
            }
            string returnValue = loginUserConfig.KeyValue;

            return(returnValue);
        }