HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2020-09-18 c7df85937f73fb347ee0b19e9c052d2d00a6df6c
ZigbeeApp/Shared/Phone/UserCenter/Transfer/TransferResidenceByIdForm.cs
File was renamed from ZigbeeApp/Shared/Phone/UserCenter/Residence/TransferResidenceByIdForm.cs
@@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;
namespace Shared.Phone.UserCenter.Residence
namespace Shared.Phone.UserCenter.Transfer
{
    /// <summary>
    /// 根据账号名过户的画面
@@ -11,6 +11,11 @@
    {
        #region ■ 变量声明___________________________
        /// <summary>
        /// 1:移交给用户  2:授权给调试人员
        /// </summary>
        private int TransferDiv = 0;
        #endregion
        #region ■ 初始化_____________________________
@@ -18,10 +23,15 @@
        /// <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();
@@ -64,11 +74,6 @@
            bodyFrameLayout.AddChidren(btnBottom);
            btnBottom.ButtonClickEvent += ((sender, e) =>
            {
                //成员ID检测
                if (this.CheckAccountId(txtCode.Text.Trim()) == false)
                {
                    return;
                }
                //检索成员信息
                string strCode = txtCode.Text.Trim();
                HdlThreadLogic.Current.RunThread(() =>
@@ -94,7 +99,7 @@
            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();
@@ -118,16 +123,12 @@
            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