HDL_ON/UI/UI2/4-PersonalCenter/MemberManagement/MemberManagementPageBLL.cs
@@ -69,7 +69,7 @@
                var responeObj = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ResidenceMemberInfo>>(responePack.Data.ToString());
                foreach (var mInfo in responeObj)
                {
                    ResponsePack memberInfoResponePack = new HttpServerRequest().GetResidenceMemberAccountInfo(mInfo.Account);
                    ResponsePack memberInfoResponePack = new HttpServerRequest().GetResidenceMemberAccountInfo(mInfo.childAccountId);
                    var dataStr = JObject.FromObject(memberInfoResponePack.ResponseData);
                    FileStream fs = null;
                    try
@@ -79,15 +79,15 @@
                        {
                            var jsonString = Newtonsoft.Json.JsonConvert.SerializeObject(headImageString);
                            var headImageBytes = Newtonsoft.Json.JsonConvert.DeserializeObject<byte[]>(jsonString);
                            var filePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "/", mInfo.DistributedMark + ".png");
                            var filePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "/", mInfo.childAccountId + ".png");
                            fs = new FileStream(filePath, FileMode.Create, FileAccess.Write);
                            fs.Write(headImageBytes, 0, headImageBytes.Length);
                            fs.Flush();
                            mInfo.headImagePagePath = filePath;
                        }
                        if(string.IsNullOrEmpty(mInfo.Nickname))
                        if(string.IsNullOrEmpty(mInfo.nickName))
                        {
                            mInfo.Nickname = mInfo.UserName;
                            mInfo.nickName = mInfo.UserName;
                        }
                    }
                    catch (Exception ex)
@@ -131,10 +131,10 @@
        /// <param name="info"></param>
        void LoadMethod_GetMemberSharedDataList(ResidenceMemberInfo info)
        {
            ResponsePack responePack = new HttpServerRequest().GetShareDataByMemberAccount(info.SubAccountDistributedMark);
            if (responePack.StateCode.ToUpper() == StateCode.SUCCESS)
            var responePack = new HttpServerRequest().GetShareDataByMemberAccount(info.childAccountId);
            if (responePack.Code == StateCode.SUCCESS)
            {
                var responeObj = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ShareData>>(responePack.ResponseData.ToString());
                var responeObj = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ShareData>>(responePack.Data.ToString());
                info.CurResidenceShareDate = responeObj;
                foreach (var sd in info.CurResidenceShareDate)
                {
@@ -149,10 +149,10 @@
        /// <param name="info"></param>
        bool LoadMethod_GetMemberSharedData(ShareData sd)
        {
            ResponsePack responePack = new HttpServerRequest().GetShareData(sd.DistributedMark,sd.HouseDistributedMark);
            if (responePack.StateCode.ToUpper() == StateCode.SUCCESS)
            var shareDataBytes = new HttpServerRequest().GetShareData(sd);
            if (shareDataBytes != null)
            {
                sd.ShareDataBytes =  Newtonsoft.Json.JsonConvert.DeserializeObject<ShareData>(responePack.ResponseData.ToString()).ShareDataBytes;
                sd.ShareDataBytes = shareDataBytes;
                return true;
            }
            return false;
@@ -184,37 +184,18 @@
                    {
                        try
                        {
                            var responsePack = new HttpServerRequest().EditSubAccountNickName(str,mInfo.SubAccountDistributedMark);
                            if (responsePack.StateCode.ToUpper() == StateCode.SUCCESS)
                            var responsePack = new HttpServerRequest().EditSubAccountNickName(str, mInfo.childAccountId);
                            if (responsePack.Code.ToUpper() == StateCode.SUCCESS)
                            {
                                Application.RunOnMainThread(() =>
                                {
                                    btn1.Text = str;
                                });
                                mInfo.Nickname = str;
                                mInfo.nickName = str;
                            }
                            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);
                            }
                        }
                        catch (Exception ex)
@@ -231,7 +212,7 @@
                    })
                    { IsBackground = true }.Start();
                };
                new PublicAssmebly().LoadDialog_EditParater(StringId.ModifyMemberNickname, mInfo.Nickname, callBack, StringId.HouseNameCannotBeEmpty, 0, new List<string>());
                new PublicAssmebly().LoadDialog_EditParater(StringId.ModifyMemberNickname, mInfo.nickName, callBack, StringId.HouseNameCannotBeEmpty, 0, new List<string>());
            };
            btn1.MouseUpEventHandler = eventHandler;
            btn2.MouseUpEventHandler = eventHandler;
@@ -248,36 +229,18 @@
                {
                    try
                    {
                        var responsePack = new HttpServerRequest().ChangeCreateSceneState(DB_ResidenceData.residenceData.residecenInfo.RegionID, mInfo.SubAccountDistributedMark);
                        if (responsePack.StateCode.ToUpper() == StateCode.SUCCESS)
                        bool isAllow = !btn1.IsSelected;
                        var responsePack = new HttpServerRequest().ChangeCreateSceneState(isAllow, mInfo.childAccountId);
                        if (responsePack.Code.ToUpper() == StateCode.SUCCESS)
                        {
                            Application.RunOnMainThread(() =>
                            {
                                btn1.IsSelected = !btn1.IsSelected;
                                btn1.IsSelected = isAllow;
                            });
                        }
                        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);
                        }
                    }
                    catch (Exception ex)