| | |
| | | /// <param name="txtMsg">信息控件</param>
|
| | | private void SearchMemberInfo(string accountId)
|
| | | {
|
| | | var pra = new AccountInfoPra();
|
| | | pra.Account = accountId;
|
| | | var byteData = UserCenterLogic.GetByteResponseDataByRequestHttps("ZigbeeUsers/GetSubAccountInfo", false, pra, new List<string> { "NotCheck" });
|
| | | if (byteData == null)
|
| | | //开启进度条
|
| | | this.ShowProgressBar();
|
| | |
|
| | | var result = HdlMemberLogic.Current.SearchNormalInfoByAccount(accountId);
|
| | | //关闭进度条
|
| | | this.CloseProgressBar();
|
| | |
|
| | | if (result == null)
|
| | | {
|
| | | //异常
|
| | | return;
|
| | | }
|
| | | var revertObj = Newtonsoft.Json.JsonConvert.DeserializeObject<Common.ResponseEntity.ResponsePack>(System.Text.Encoding.UTF8.GetString(byteData));
|
| | | if (revertObj.StateCode == "AccountNoExists")
|
| | | if (result.Account == string.Empty)
|
| | | {
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | var infoResult = Newtonsoft.Json.JsonConvert.DeserializeObject<AccountInfoResult>(revertObj.ResponseData.ToString());
|
| | | infoResult.Account = accountId;
|
| | |
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | var form2 = new AddMemberInfoForm();
|
| | | form2.AddForm(infoResult, this.TransferDiv);
|
| | | form2.AddForm(result, this.TransferDiv);
|
| | | });
|
| | | }
|
| | |
|