File was renamed from ZigbeeApp/Shared/Phone/UserCenter/Residence/TransferResidenceByIdForm.cs |
| | |
| | | using System.Collections.Generic;
|
| | | using System.Text;
|
| | |
|
| | | namespace Shared.Phone.UserCenter.Residence
|
| | | namespace Shared.Phone.UserCenter.Transfer
|
| | | {
|
| | | /// <summary>
|
| | | /// 根据账号名过户的画面
|
| | |
| | | {
|
| | | #region ■ 变量声明___________________________
|
| | |
|
| | | /// <summary>
|
| | | /// 1:移交给用户 2:授权给调试人员
|
| | | /// </summary>
|
| | | private int TransferDiv = 0;
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 初始化_____________________________
|
| | |
| | | /// <summary>
|
| | | /// 画面显示(底层会固定调用此方法,借以完成画面创建)
|
| | | /// </summary>
|
| | | public void ShowForm()
|
| | | /// <param name="i_TransferDiv">1:移交给用户 2:授权给调试人员</param>
|
| | | public void ShowForm(int i_TransferDiv)
|
| | | {
|
| | | this.TransferDiv = i_TransferDiv;
|
| | |
|
| | | //设置标题信息
|
| | | base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uTransferResidenceAccount));
|
| | | base.SetTitleText(i_TransferDiv == 1
|
| | | ? Language.StringByID(R.MyInternationalizationString.uTransferResidenceAccount)
|
| | | : Language.StringByID(R.MyInternationalizationString.uAuthorizedAccount));
|
| | |
|
| | | //初始化中部控件
|
| | | this.InitMiddleFrame();
|
| | |
| | | bodyFrameLayout.AddChidren(btnBottom);
|
| | | btnBottom.ButtonClickEvent += ((sender, e) =>
|
| | | {
|
| | | //成员ID检测
|
| | | if (this.CheckAccountId(txtCode.Text.Trim()) == false)
|
| | | {
|
| | | return;
|
| | | }
|
| | | //检索成员信息
|
| | | string strCode = txtCode.Text.Trim();
|
| | | HdlThreadLogic.Current.RunThread(() =>
|
| | |
| | |
|
| | | var pra = new AccountInfoPra();
|
| | | pra.Account = accountId;
|
| | | var byteData = UserCenterLogic.GetByteResponseDataByRequestHttps("ZigbeeUsers/GetSubAccountInfo", false, pra, new System.Collections.Generic.List<string>() { "AccountNoExists" });
|
| | | var byteData = UserCenterLogic.GetByteResponseDataByRequestHttps("ZigbeeUsers/GetSubAccountInfo", false, pra, new List<string> { "NotCheck" });
|
| | | //关闭进度条
|
| | | this.CloseProgressBar();
|
| | |
|
| | |
| | |
|
| | | var infoResult = Newtonsoft.Json.JsonConvert.DeserializeObject<AccountInfoResult>(revertObj.ResponseData.ToString());
|
| | | infoResult.Account = accountId;
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 检查输入的成员ID
|
| | | /// </summary>
|
| | | /// <param name="accountId"></param>
|
| | | /// <returns></returns>
|
| | | private bool CheckAccountId(string accountId)
|
| | | {
|
| | | return true;
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | var form2 = new AddMemberInfoForm();
|
| | | form2.AddForm(infoResult, this.TransferDiv);
|
| | | });
|
| | | }
|
| | |
|
| | | #endregion
|