From 7ff70bc7c9460c395b59952d55df6e5d6a12a718 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期三, 15 二月 2023 16:27:32 +0800 Subject: [PATCH] Merge branch 'Dev-Wxr' --- HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs index 8564f29..85ff3c3 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs @@ -30,7 +30,7 @@ VerticalScrolViewLayout vv = new VerticalScrolViewLayout { Y = funAllAreaView.frameLayout.Bottom, - Height = Application.GetRealHeight(667 - 64 - 50 * funCount - 8), + Height = Application.GetRealHeight(667 - 64 - 50 * funCount - 8-50), }; viewLayout.AddChidren(vv); if (!MainView.IsGatewayType) @@ -244,12 +244,20 @@ var typeFunctionList = LogicMethod.Current.GetDeviceTypeFunctionList(UserInfo.Current.logicselectedFunction); ///鑾峰彇璁惧鍗曚釜灏忕被鍒楄〃锛堜緥濡傦細鐏厜1,鐏厜2...锛� var lists = LogicMethod.Current.GetShowDeviceList(typeFunctionList, deviceList); + if (string.IsNullOrEmpty(UserInfo.Current.logicselectedRoom.roomName)) + { + UserInfo.Current.logicselectedRoom.roomName = Language.StringByID(StringId.allAreas); + } ///鎴块棿鍚嶇О funAllAreaView.btnText1.Text = UserInfo.Current.logicselectedRoom.roomName; + if (string.IsNullOrEmpty(UserInfo.Current.logicselectedFunction)) + { + UserInfo.Current.logicselectedFunction = Language.StringByID(StringId.allFun); + } ///璁惧澶х被鍚嶇О<鐏厜绫汇�傘�傘�傘�傘��> funAllAreaView.btnText2.Text = UserInfo.Current.logicselectedFunction; this.LoadingDeviceListView(vv, lists); - + } /// <summary> /// 鏄剧ず璁惧鐨刅iew @@ -275,9 +283,10 @@ funView.btnLine.X = Application.GetRealWidth(16); funView.btnLine.Width = Application.GetRealWidth(343); verticalScrolView.AddChidren(funView.FLayoutView()); - funView.btnIcon.UnSelectedImagePath = LogicMethod.Current.GetIconPath(dev.spk); + funView.btnIcon.UnSelectedImagePath = LogicMethod.Current.GetDeviceIconPath(dev); funView.btnDeviceName.Text = dev.name; funView.btnRoomName.Text = dev.GetRoomListName(); + funView.btnClick.MouseUpEventHandler += (sen, e) => { if (if_Type == LogicMethod.condition_if) -- Gitblit v1.8.0