| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using HDL_ON.DAL.Server; |
| | | using Shared; |
| | | |
| | | namespace HDL_ON.UI |
| | | { |
| | |
| | | new PublicAssmebly().TipMsg(StringId.Tip, StringId.ConfirmToRemoveTheMember, action); |
| | | }; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 查询所有子账号分享数据 |
| | | /// </summary> |
| | | void GetShareDataByAccount() |
| | | { |
| | | var waitPage = new Loading(); |
| | | waitPage.Start(Language.StringByID(StringId.PleaseWait)); |
| | | new System.Threading.Thread(() => |
| | | { |
| | | try |
| | | { |
| | | var responePack = new HttpServerRequest().GetShareDataByMemberAccount(memberInfo.childAccountId); |
| | | if (responePack.Code == StateCode.SUCCESS) |
| | | { |
| | | if(responePack.Data != null) |
| | | { |
| | | var responeObj = Newtonsoft.Json.JsonConvert.DeserializeObject<List<ShareData>>(responePack.Data.ToString()); |
| | | memberInfo.CurResidenceShareDate = responeObj; |
| | | } |
| | | else |
| | | { |
| | | memberInfo.CurResidenceShareDate = new List<ShareData>(); |
| | | } |
| | | |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | ShowRoomListView(); |
| | | }); |
| | | } |
| | | else |
| | | { |
| | | memberInfo.CurResidenceShareDate = new List<ShareData>(); |
| | | IMessageCommon.Current.ShowErrorInfoAlter(responePack.Code); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | |
| | | } |
| | | finally |
| | | { |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | //ShowRoomListView(); |
| | | waitPage.Hide(); |
| | | }); |
| | | } |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | } |
| | | |
| | | } |
| | | } |