From 9f326f4000847e6167d8166fa2f6a66f53cb3734 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 17 十二月 2020 09:07:13 +0800 Subject: [PATCH] 新云端Ver1.3 --- ZigbeeApp/Shared/Phone/UserCenter/Device/Curtain/SiphonateDirectionAndLimitSettionForm.cs | 52 ++++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 42 insertions(+), 10 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Curtain/SiphonateDirectionAndLimitSettionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Curtain/SiphonateDirectionAndLimitSettionForm.cs index 2c022f5..f0b6459 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Curtain/SiphonateDirectionAndLimitSettionForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Curtain/SiphonateDirectionAndLimitSettionForm.cs @@ -120,7 +120,7 @@ listText.Add(Language.StringByID(R.MyInternationalizationString.uReverseDirection));//鍙嶅悜 var form = new BottomItemSelectForm(); - form.AddForm(Language.StringByID(R.MyInternationalizationString.uDirectionSelect), listText, nowSelectNo); + form.AddForm(Language.StringByID(R.MyInternationalizationString.uDirectionSelect), listText, null, nowSelectNo); form.FinishSelectEvent += (index) => { //鍙樻洿鏂瑰悜 @@ -215,7 +215,7 @@ btnOk.TextColor = UserCenterColor.Current.TextOrangeColor; frameText.AddChidren(btnOk, ChidrenBindMode.BindEvent); //搴曠嚎 - var btnLine1 = new NormalViewControl(this.GetPictrueRealSize(100), ControlCommonResourse.BottomLineHeight, false); + var btnLine1 = new NormalViewControl(this.GetPictrueRealSize(100), HdlControlResourse.BottomLineHeight, false); btnLine1.BackgroundColor = UserCenterColor.Current.TextOrangeColor; btnLine1.Gravity = Gravity.CenterHorizontal; btnLine1.Y = btnOk.Bottom - this.GetPictrueRealSize(8); @@ -230,7 +230,7 @@ frameText.AddChidren(btnDown, ChidrenBindMode.BindEvent); //搴曠嚎 - var btnLine2 = new NormalViewControl(this.GetPictrueRealSize(124), ControlCommonResourse.BottomLineHeight, false); + var btnLine2 = new NormalViewControl(this.GetPictrueRealSize(124), HdlControlResourse.BottomLineHeight, false); btnLine2.BackgroundColor = UserCenterColor.Current.TextOrangeColor; btnLine2.Gravity = Gravity.CenterHorizontal; btnLine2.Y = btnDown.Bottom - this.GetPictrueRealSize(8); @@ -241,6 +241,11 @@ { curtainDevice.CurtainUpDownStopControl(1); }; + //灞曠ず妯℃澘鎴栬�呰櫄鎷熶綇瀹�,鍒欐棤鏁� + if (Config.Instance.Home.IsShowTemplate == true || Config.Instance.Home.IsVirtually == true) + { + frameIconback.CanClick = false; + } //閲嶅啓鎺т欢鐐瑰嚮鏁堟灉 frameIconback.SelectStatuEvent += (select) => { @@ -265,6 +270,11 @@ await HdlDeviceCurtainLogic.Current.CommitCurtainLimitPoint(curtainDevice, Rollershade.CurtainPrivateInstalledLimi.DownLimit, -1, -1); }); }; + //灞曠ず妯℃澘鎴栬�呰櫄鎷熶綇瀹�,鍒欐棤鏁� + if (Config.Instance.Home.IsShowTemplate == true || Config.Instance.Home.IsVirtually == true) + { + frameText.CanClick = false; + } //閲嶅啓鎺т欢鐐瑰嚮鏁堟灉 frameText.SelectStatuEvent += (select) => { @@ -324,7 +334,7 @@ btnOk.TextColor = UserCenterColor.Current.TextOrangeColor; frameText.AddChidren(btnOk, ChidrenBindMode.BindEvent); //搴曠嚎 - var btnLine1 = new NormalViewControl(this.GetPictrueRealSize(100), ControlCommonResourse.BottomLineHeight, false); + var btnLine1 = new NormalViewControl(this.GetPictrueRealSize(100), HdlControlResourse.BottomLineHeight, false); btnLine1.BackgroundColor = UserCenterColor.Current.TextOrangeColor; btnLine1.Gravity = Gravity.CenterHorizontal; btnLine1.Y = btnOk.Bottom - this.GetPictrueRealSize(8); @@ -339,7 +349,7 @@ frameText.AddChidren(btnDown, ChidrenBindMode.BindEvent); //搴曠嚎 - var btnLine2 = new NormalViewControl(this.GetPictrueRealSize(124), ControlCommonResourse.BottomLineHeight, false); + var btnLine2 = new NormalViewControl(this.GetPictrueRealSize(124), HdlControlResourse.BottomLineHeight, false); btnLine2.BackgroundColor = UserCenterColor.Current.TextOrangeColor; btnLine2.Gravity = Gravity.CenterHorizontal; btnLine2.Y = btnDown.Bottom - this.GetPictrueRealSize(8); @@ -350,6 +360,11 @@ { curtainDevice.CurtainUpDownStopControl(0); }; + //灞曠ず妯℃澘鎴栬�呰櫄鎷熶綇瀹�,鍒欐棤鏁� + if (Config.Instance.Home.IsShowTemplate == true || Config.Instance.Home.IsVirtually == true) + { + frameIconback.CanClick = false; + } //閲嶅啓鎺т欢鐐瑰嚮鏁堟灉 frameIconback.SelectStatuEvent += (select) => { @@ -374,6 +389,11 @@ await HdlDeviceCurtainLogic.Current.CommitCurtainLimitPoint(curtainDevice, Rollershade.CurtainPrivateInstalledLimi.UpLimit, -1, -1); }); }; + //灞曠ず妯℃澘鎴栬�呰櫄鎷熶綇瀹�,鍒欐棤鏁� + if (Config.Instance.Home.IsShowTemplate == true || Config.Instance.Home.IsVirtually == true) + { + frameText.CanClick = false; + } //閲嶅啓鎺т欢鐐瑰嚮鏁堟灉 frameText.SelectStatuEvent += (select) => { @@ -429,6 +449,11 @@ }); }); }; + //灞曠ず妯℃澘鎴栬�呰櫄鎷熶綇瀹�,鍒欐棤鏁� + if (Config.Instance.Home.IsShowTemplate == true || Config.Instance.Home.IsVirtually == true) + { + rowReset.CanClick = false; + } } #endregion @@ -441,16 +466,23 @@ /// <returns></returns> private bool InitCurtainDefultData() { + this.curtainData = new CurtainData(); + //濡傛灉褰撳墠鏄櫄鎷熶綇瀹� + if (Common.Config.Instance.Home.IsVirtually == true) + { + var data = HdlTemplateDeviceDataLogic.Current.GetCurtainLimitPoint(curtainDevice); + curtainData.Direction = data.Direction; + return true; + } + //寮�鍚繘搴︽潯 this.ShowProgressBar(); - this.curtainData = new CurtainData(); - bool receiptData = false; - string mainkeys = LocalDevice.Current.GetDeviceMainKeys(curtainDevice); + string mainkeys = HdlDeviceCommonLogic.Current.GetDeviceMainKeys(curtainDevice); HdlGatewayReceiveLogic.Current.AddAttributeEvent("CurtainDeviceAttribute", ReceiveComandDiv.A璁惧灞炴�т笂鎶�, (device) => { - string checkKey = LocalDevice.Current.GetDeviceMainKeys(device); + string checkKey = HdlDeviceCommonLogic.Current.GetDeviceMainKeys(device); if (mainkeys != checkKey || device.DeviceStatusReport.CluterID != 258) { return; @@ -492,7 +524,7 @@ //鑾峰彇绐楀笜鏂瑰悜涓庨檺浣嶈缃け璐� string msg = Language.StringByID(R.MyInternationalizationString.uGetCurtainDirectionAndLimitSettionFail); //鎷兼帴涓娿�愮綉鍏冲洖澶嶈秴鏃躲�戠殑Msg - msg = UserCenterLogic.CombineGatewayTimeOutMsg(msg, null, "鍥炲瓒呮椂"); + msg = HdlCommonLogic.Current.CombineGatewayTimeOutMsg(msg, null, "鍥炲瓒呮椂"); this.ShowMassage(ShowMsgType.Tip, msg); return false; } -- Gitblit v1.8.0