From f14dcfd967404e197e7ec995ca8d6f2b090d3b7d Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期五, 11 九月 2020 09:16:59 +0800 Subject: [PATCH] 优化多功能面板:绑定温湿度传感器目标,和设备列表回路显示。优化数据矫正功能温湿度度不设置的情况。优化门锁时间设置最后一天和最后最后一个月的时间显示等 细节 --- ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceGeneralInformationForm.cs | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceGeneralInformationForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceGeneralInformationForm.cs index 1ec0c90..0276008 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceGeneralInformationForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceGeneralInformationForm.cs @@ -51,11 +51,20 @@ bodyFrameLayout.AddChidren(listView); //璁惧鍚嶇О + var myInfoType = Common.LocalDevice.Current.GetMyDeviceEnumInfo(listDevice); var rowName = new FrameRowControl(listView.rowSpace / 2); rowName.UseClickStatu = false; listView.AddChidren(rowName); - rowName.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uDeviceName), 400); - rowName.AddMostRightView(Common.LocalDevice.Current.GetDeviceObjectText(listDevice), 600); + rowName.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uDeviceName), 400); + if (Common.LocalDevice.Current.IsMiniLight(listDevice[0]) == true) + { + //mini澶滅伅 + rowName.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uMiniNightLight), 600); + } + else + { + rowName.AddMostRightView(myInfoType.ConcreteText, 600); + } rowName.AddBottomLine(); //璁惧鍨嬪彿 @@ -120,11 +129,15 @@ rowMac.AddBottomLine(); //鍒堕�犲晢 - string strProtuct = listDevice[0].DriveCode > 0 ? "HDL" : listDevice[0].ManufacturerName; + string strProtuct = listDevice[0].ManufacturerName; + if (listDevice[0].DriveCode > 0 || Common.LocalDevice.Current.IsHdlDevice(listDevice[0]) == true) + { + strProtuct = "骞垮窞娌充笢绉戞妧鏈夐檺鍏徃"; + } var rowProtuct = new FrameRowControl(listView.rowSpace / 2); rowProtuct.UseClickStatu = false; listView.AddChidren(rowProtuct); - rowProtuct.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uManufacturerName), 400); + rowProtuct.AddLeftCaption(Language.StringByID(R.MyInternationalizationString.uManufacturerName), 600); rowProtuct.AddMostRightView(strProtuct, 600); listView.AdjustRealHeight(Application.GetRealHeight(23)); -- Gitblit v1.8.0