HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/ResidentialManagePageBLL.cs
@@ -35,7 +35,7 @@
                        }.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));
@@ -43,9 +43,9 @@
                    {
                        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(() =>
                                {
@@ -58,27 +58,7 @@
                            }
                            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);
                            }
                        }
@@ -110,37 +90,19 @@
            {
                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>());