| | |
| | | }.Show(bodyView); |
| | | return; |
| | | } |
| | | DB_ResidenceData.residenceData.residecenInfo.Name = str; |
| | | //DB_ResidenceData.residenceData.residecenInfo.Name = str; |
| | | |
| | | var waitPage = new Loading(); |
| | | waitPage.Start(Language.StringByID(StringId.PleaseWait)); |
| | |
| | | { |
| | | try |
| | | { |
| | | var responsePack = new HttpServerRequest().EditResidenceInfo(); |
| | | var responsePack = new HttpServerRequest().EditResidenceInfo(0, str); |
| | | |
| | | if (responsePack.StateCode.ToUpper() == StateCode.SUCCESS) |
| | | if (responsePack.Code.ToUpper() == StateCode.SUCCESS) |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | var tipStr = "Server erorr"; |
| | | switch (responsePack.StateCode) |
| | | { |
| | | case "NoLogin": |
| | | tipStr = Language.StringByID(StringId.InvalidLoginCertificate); |
| | | break; |
| | | case "ParameterOrEmpty": |
| | | |
| | | break; |
| | | } |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | //提示原因 |
| | | var tip = new Tip() |
| | | { |
| | | Text = tipStr, |
| | | CloseTime = 1, |
| | | Direction = AMPopTipDirection.None |
| | | }; |
| | | tip.Show(bodyView); |
| | | }); |
| | | IMessageCommon.Current.ShowErrorInfoAlter(responsePack.Code); |
| | | } |
| | | |
| | | } |
| | |
| | | { |
| | | Action<string> callBack = (str) => |
| | | { |
| | | DB_ResidenceData.residenceData.residecenInfo.Address = str; |
| | | var responsePack = new DAL.Server.HttpServerRequest().EditResidenceInfo(); |
| | | |
| | | var responsePack = new DAL.Server.HttpServerRequest().EditResidenceInfo(1 , str); |
| | | |
| | | if (responsePack.StateCode.ToUpper() == StateCode.SUCCESS) |
| | | if (responsePack.Code.ToUpper() == StateCode.SUCCESS) |
| | | { |
| | | btnResidenceAddress.Text = str; |
| | | OnAppConfig.Instance.SaveUserConfig(); |
| | | DB_ResidenceData.residenceData.residecenInfo.Address = str; |
| | | DB_ResidenceData.residenceData.SaveResidenceData(); |
| | | //OnAppConfig.Instance.SaveUserConfig(); |
| | | } |
| | | else |
| | | { |
| | | var tipStr = "Server erorr"; |
| | | switch (responsePack.StateCode) |
| | | { |
| | | case "NoLogin": |
| | | tipStr = Language.StringByID(StringId.InvalidLoginCertificate); |
| | | break; |
| | | case "ParameterOrEmpty": |
| | | |
| | | break; |
| | | } |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | //提示原因 |
| | | var tip = new Tip() |
| | | { |
| | | Text = tipStr, |
| | | CloseTime = 1, |
| | | Direction = AMPopTipDirection.None |
| | | }; |
| | | tip.Show(bodyView); |
| | | }); |
| | | IMessageCommon.Current.ShowErrorInfoAlter(responsePack.Code); |
| | | } |
| | | }; |
| | | new PublicAssmebly().LoadDialog_EditParater(StringId.ResidenceAddress, DB_ResidenceData.residenceData.residecenInfo.Name, callBack, StringId.HouseAddressCannotBeEmpty, 0, new List<string>()); |