| | |
| | | this.RemoveFromParent(); |
| | | return; |
| | | } |
| | | if (OnAppConfig.Instance.appUnlockType.Contains("1")) |
| | | if (UserInfo.Current.appUnlockType.Contains("1")) |
| | | { |
| | | OnAppConfig.Instance.appUnlockType =new System.Collections.Generic.List<string>();//.Remove("1"); |
| | | OnAppConfig.Instance.appUnlockPasswrod = ""; |
| | | OnAppConfig.Instance.SaveUserConfig(); |
| | | UserInfo.Current.appUnlockType =new System.Collections.Generic.List<string>();//.Remove("1"); |
| | | UserInfo.Current.appUnlockPasswrod = ""; |
| | | UserInfo.Current.SaveUserInfo(); |
| | | this.RemoveFromParent(); |
| | | backAction(); |
| | | } |
| | |
| | | { |
| | | if (optionType == "5") |
| | | { |
| | | if (OnAppConfig.Instance.appUnlockType.Contains("3")) |
| | | OnAppConfig.Instance.appUnlockType.Remove("3"); |
| | | if (UserInfo.Current.appUnlockType.Contains("3")) |
| | | UserInfo.Current.appUnlockType.Remove("3"); |
| | | else |
| | | OnAppConfig.Instance.appUnlockType.Add("3"); |
| | | UserInfo.Current.appUnlockType.Add("3"); |
| | | |
| | | OnAppConfig.Instance.SaveUserConfig(); |
| | | UserInfo.Current.SaveUserInfo(); |
| | | this.RemoveFromParent(); |
| | | } |
| | | if (optionType == "6") |
| | | { |
| | | if (OnAppConfig.Instance.appUnlockType.Contains("4")) |
| | | OnAppConfig.Instance.appUnlockType.Remove("4"); |
| | | if (UserInfo.Current.appUnlockType.Contains("4")) |
| | | UserInfo.Current.appUnlockType.Remove("4"); |
| | | else |
| | | OnAppConfig.Instance.appUnlockType.Add("4"); |
| | | UserInfo.Current.appUnlockType.Add("4"); |
| | | |
| | | OnAppConfig.Instance.SaveUserConfig(); |
| | | UserInfo.Current.SaveUserInfo(); |
| | | this.RemoveFromParent(); |
| | | } |
| | | backAction(); |
| | |
| | | { |
| | | if (result) |
| | | { |
| | | if (!OnAppConfig.Instance.appUnlockType.Contains(unlockType)) |
| | | if (!UserInfo.Current.appUnlockType.Contains(unlockType)) |
| | | { |
| | | OnAppConfig.Instance.appUnlockType.Add(unlockType); |
| | | UserInfo.Current.appUnlockType.Add(unlockType); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | if (OnAppConfig.Instance.appUnlockType.Contains(unlockType)) |
| | | if (UserInfo.Current.appUnlockType.Contains(unlockType)) |
| | | { |
| | | OnAppConfig.Instance.appUnlockType.Remove(unlockType); |
| | | UserInfo.Current.appUnlockType.Remove(unlockType); |
| | | } |
| | | } |
| | | backAction(); |
| | | OnAppConfig.Instance.SaveUserConfig(); |
| | | UserInfo.Current.SaveUserInfo(); |
| | | }; |
| | | page.AdditionalOperations(tipMsg, action); |
| | | } |
| | | if (!OnAppConfig.Instance.appUnlockType.Contains("1")) |
| | | if (!UserInfo.Current.appUnlockType.Contains("1")) |
| | | { |
| | | OnAppConfig.Instance.appUnlockType.Add("1"); |
| | | UserInfo.Current.appUnlockType.Add("1"); |
| | | } |
| | | OnAppConfig.Instance.appUnlockPasswrod = passwrod; |
| | | OnAppConfig.Instance.SaveUserConfig(); |
| | | UserInfo.Current.appUnlockPasswrod = passwrod; |
| | | UserInfo.Current.SaveUserInfo(); |
| | | backAction(); |
| | | } |
| | | else |
| | |
| | | var resultObj = new HttpServerRequest().LoginByPassword( UserInfo.Current.AccountString, pw); |
| | | if (resultObj.Code.ToUpper() == StateCode.SUCCESS) |
| | | { |
| | | OnAppConfig.Instance.appUnlockPasswrod = ""; |
| | | OnAppConfig.Instance.appUnlockType = new System.Collections.Generic.List<string>(); |
| | | OnAppConfig.Instance.SaveUserConfig(); |
| | | UserInfo.Current.appUnlockPasswrod = ""; |
| | | UserInfo.Current.appUnlockType = new System.Collections.Generic.List<string>(); |
| | | UserInfo.Current.SaveUserInfo(); |
| | | this.RemoveFromParent(); |
| | | backAction(); |
| | | } |