Пример #1
0
 public bool UpdateSetting(Guid userGuid, Business.AccountSetting settingKey, string value)
 {
     return(ExecuteSPCommand("UpdateSetting",
                             "@UserGuid", userGuid,
                             "@Key", (int)settingKey,
                             "@Value", value));
 }
Пример #2
0
        //public bool UpdateSetting(Guid userGuid, string key, string value)
        //{
        //	return base.ExecuteSPCommand("UpdateSetting",
        //															 "@UserGuid", userGuid,
        //															 "@Key", key,
        //															 "@Value", value);
        //}

        //public bool UpdateShortcut(Guid userGuid, string value)
        //{
        //	return base.ExecuteSPCommand("UpdateShortcut", "@UserGuid", userGuid,
        //																								 "@Value", value);
        //}

        public string GetSettingValue(Guid userGuid, Business.AccountSetting key)
        {
            try
            {
                return(GetSPFieldValue("GetSettingValue", "@UserGuid", userGuid, "@Key", (int)key).ToString());
            }
            catch
            {
                return(string.Empty);
            }
        }
Пример #3
0
 public static string GetSettingValue(Guid userGuid, Business.AccountSetting key)
 {
     Business.UserSetting userSettingController = new Business.UserSetting();
     return(userSettingController.GetSettingValue(userGuid, key));
 }
Пример #4
0
        //public static DataTable GetUserLowCredit()
        //{
        //	Business.UserSetting userSettingController = new Business.UserSetting();
        //	return userSettingController.GetUserLowCredit();
        //}

        public static bool UpdateSetting(Guid userGuid, Business.AccountSetting accountSetting, string value)
        {
            Business.UserSetting userSettingController = new Business.UserSetting();
            return(userSettingController.UpdateSetting(userGuid, accountSetting, value));
        }