From 2ed75b8b337048e5d75e6d9ec8307633134f02fd Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 10 十月 2019 11:33:04 +0800 Subject: [PATCH] 个人中心添加楼层和创建房间,实装二级验证 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/CommonFormBase.cs | 36 +++++++++++++++++++++++++++++------- 1 files changed, 29 insertions(+), 7 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/CommonFormBase.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/CommonFormBase.cs index b059beb..0d36ad3 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/CommonFormBase.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/CommonFormBase.cs @@ -28,6 +28,8 @@ { //灏嗗綋鍓嶇殑鐢婚潰淇濆瓨鍒板唴瀛樺綋涓� UserCenterLogic.AddActionForm(this); + //Log鍑哄姏 + HdlLogLogic.Current.WriteLog(1, this.FormID + " 鐣岄潰鎵撳紑"); } /// <summary> @@ -74,6 +76,9 @@ /// </summary> public virtual void CloseForm() { + //Log鍑哄姏 + HdlLogLogic.Current.WriteLog(1, this.FormID + " 鐣岄潰鍏抽棴"); + //绉婚櫎鎺ュ彈鍦ㄧ嚎鐘舵�佹帹閫� this.RemoveGatewayOnlinePush(); //绉婚櫎璁惧灞炴�у彉鏇存帹閫� @@ -88,7 +93,6 @@ //浠庡垪琛ㄤ腑绉婚櫎(闃叉鐢婚潰浜岄噸娣诲姞) UserCenterLogic.RemoveActionForm(this); - } /// <summary> @@ -267,8 +271,21 @@ { alert.ConfirmClickEvent += () => { - //鍥炶皟鍑芥暟 - action?.Invoke(); + try + { + //鍥炶皟鍑芥暟 + action?.Invoke(); + } + catch (Exception ex) + { + //鍑虹幇鏈煡閿欒,鏁版嵁涓㈠け + this.ShowMassage(ShowMsgType.Error, Language.StringByID(R.MyInternationalizationString.uUnknownErrorAndDataLost)); + + //Log鍑哄姏 + string errorMsg = ex.Message + "\r\n"; + errorMsg += ex.TargetSite.ToString(); + HdlLogLogic.Current.WriteLog(-1, errorMsg); + } action = null; }; } @@ -357,9 +374,13 @@ } catch (Exception ex) { + //鍑虹幇鏈煡閿欒,鏁版嵁涓㈠け + this.ShowMassage(ShowMsgType.Error, Language.StringByID(R.MyInternationalizationString.uUnknownErrorAndDataLost)); + + //Log鍑哄姏 string msg = ex.Message + "\r\n"; msg += ex.TargetSite.ToString(); - this.ShowMassage(ShowMsgType.Error, msg); + HdlLogLogic.Current.WriteLog(-1, msg); return null; } @@ -382,11 +403,12 @@ #region 鈻� 鐣岄潰閲嶆柊婵�娲讳簨浠禵__________________ /// <summary> - /// 鑷韩鐨勪笂灞傜晫闈㈠叧闂悗,瀹冭嚜韬浜庢渶涓婂眰鏃�,瑙﹀彂鐨勪簨浠� + /// <para>鑷韩鐨勪笂灞傜晫闈㈠叧闂悗,瀹冭嚜韬浜庢渶涓婂眰鏃�,瑙﹀彂鐨勪簨浠�</para> + /// <para>閲嶅啓鐨勬椂鍊欒繑鍥炲�艰杩斿洖1(杩斿洖鍊兼槸缁欏簳灞備娇鐢ㄧ殑)</para> /// </summary> - public virtual void FormActionAgainEvent() + public virtual int FormActionAgainEvent() { - return; + return -1; } #endregion -- Gitblit v1.8.0