| | |
| | |
|
| | | //请输入需要加入成员的ID(Email/手机号)
|
| | | var txtCode = new TextInputControl(Application.GetRealWidth(900), rowAccount.Height, false);
|
| | | txtCode.X = ControlCommonResourse.XXLeft;
|
| | | txtCode.X = HdlControlResourse.XXLeft;
|
| | | txtCode.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPleaseInputAddMenberID);
|
| | | rowAccount.AddChidren(txtCode, ChidrenBindMode.NotBind);
|
| | | //联动线的状态
|
| | |
| | | //开启进度条
|
| | | this.ShowProgressBar();
|
| | |
|
| | | var pra = new AccountInfoPra();
|
| | | pra.Account = accountId;
|
| | | var byteData = UserCenterLogic.GetByteResponseDataByRequestHttps("ZigbeeUsers/GetSubAccountInfo", false, pra, new System.Collections.Generic.List<string>() { "AccountNoExists" });
|
| | | var result = HdlMemberLogic.Current.SearchNormalInfoByAccount(accountId);
|
| | | //关闭进度条
|
| | | this.CloseProgressBar();
|
| | |
|
| | | if (byteData == null)
|
| | | 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(() =>
|
| | | {
|
| | |
| | | var form = new MemberNotEsixtForm();
|
| | | form.AddForm(Language.StringByID(R.MyInternationalizationString.uMemberInformation));
|
| | | });
|
| | |
|
| | | return;
|
| | | }
|
| | |
|
| | | var infoResult = Newtonsoft.Json.JsonConvert.DeserializeObject<AccountInfoResult>(revertObj.ResponseData.ToString());
|
| | | infoResult.Account = accountId;
|
| | |
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | var form = new AddMemberInfoForm();
|
| | | form.AddForm(infoResult);
|
| | | form.AddForm(result);
|
| | | });
|
| | | }
|
| | |
|