From c1de48884fa145a16a0f8bcee93274dcfaa0ff82 Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期四, 07 五月 2020 10:40:28 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev-tzy' into dev-2020xm --- ZigbeeApp/Home.Ios/Resources/Phone/Device/SensorCeilingGasSelected.png | 0 ZigbeeApp/GateWay.Droid/Assets/Language.ini | 37 ZigbeeApp/GateWay.Droid/Assets/Phone/Device/SensorCeilingGas.png | 0 ZigbeeApp/Shared/Phone/Login/AccountLoginForm.cs | 14 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/SceneControls/SceneRoomControl.cs | 2 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlGatewayReceiveLogic.cs | 4 ZigbeeApp/GateWay.Droid/GateWay.Droid.csproj | 23 ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceAirSwitchRowControl.cs | 8 ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/Base/DeviceRowCommon.cs | 15 ZigbeeApp/Home.Ios/Resources/Phone/RealDevice/SensorCeilingGas.png | 0 ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceColorLightRowControl.cs | 8 ZigbeeApp/Shared/Common/CommonPage.cs | 2 ZigbeeApp/Shared/Phone/Device/Logic/SkipView.cs | 60 ZigbeeApp/Shared/Phone/Category/CategoryMainForm.cs | 44 ZigbeeApp/Shared/Phone/ZigBee/Device/ZbGateway.cs | 420 ------- ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs | 5 ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs | 24 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceObjectControl.cs | 6 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameLayoutStatuControl.cs | 2 ZigbeeApp/Shared/Phone/Device/Logic/SoneLogicList.cs | 133 + ZigbeeApp/Home.Ios/Resources/Phone/Device/SensorCeilingGasSelected2.png | 0 ZigbeeApp/Shared/Phone/UserCenter/Device/Direction/SensorCeilingGasDirectionForm.cs | 90 + ZigbeeApp/GateWay.Droid/Properties/AndroidManifest.xml | 4 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/SceneControls/SceneSimpleSelectControl.cs | 2 ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs | 4 ZigbeeApp/Shared/Phone/ZigBee/Device/ZbGatewayData.cs | 987 ----------------- ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceRelayRowControl.cs | 8 ZigbeeApp/GateWay.Droid/Assets/Phone/Device/SensorCeilingGasSelected2.png | 0 ZigbeeApp/Shared/Phone/MainPage/Controls/DeviceCard/Base/DeviceCardCommon.cs | 2 ZigbeeApp/Shared/Common/ZigbeeColor.cs | 4 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SafetySensorStatuControl.cs | 2 ZigbeeApp/GateWay.Droid/Assets/Phone/Instruct/SensorPMTwoPointFive.png | 0 ZigbeeApp/Home.Ios/Resources/Phone/Device/SensorCeilingGas.png | 0 ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceAcRowControl.cs | 8 ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceSensorRowControl.cs | 8 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceSelectControl.cs | 2 ZigbeeApp/GateWay.Droid/Assets/Phone/Instruct/SensorCeilingGas.png | 0 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/GatewayRowControl.cs | 2 ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceDoorLockRowControl.cs | 3 ZigbeeApp/Shared/Phone/Device/Logic/LogicView/TipView.cs | 415 +++++++ ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceAddSuccessForm.cs | 19 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Resourse/ControlCommonResourse.cs | 14 ZigbeeApp/Home.Ios/Resources/Language.ini | 218 ++- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameCaptionViewControl.cs | 2 ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirButtonSettionForm.cs | 39 ZigbeeApp/Home.Ios/Home.IOS.csproj | 11 ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceCurtainRowControl.cs | 8 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDevicePanelLogic.cs | 16 ZigbeeApp/Shared/R.cs | 208 ++- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/BelongAreaControl.cs | 2 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlExperienceAccountLogic.cs | 21 ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceTemperatureRowControl.cs | 8 ZigbeeApp/Home.Ios/Resources/Phone/Instruct/SensorCeilingGas.png | 0 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceSimpleSelectControl.cs | 2 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/NormalSelectControl.cs | 2 ZigbeeApp/Shared/Phone/MainPage/Controls/DeviceSelectUnallocatedControl.cs | 2 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameCaptionInputControl.cs | 2 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs | 2 ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs | 4 ZigbeeApp/Shared/Common/Device.cs | 71 ZigbeeApp/Shared/Phone/UserCenter/DoorLock/ShowDoorLockMsgControl.cs | 16 ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs | 8 ZigbeeApp/Shared/Phone/UserCenter/DoorLock/DoorLockCommonInfo.cs | 136 +- ZigbeeApp/Shared/Phone/Device/Logic/AddLogicPage.cs | 1 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceRoomControl.cs | 2 ZigbeeApp/Shared/Phone/UserCenter/Residence/LookRoomDeviceListForm.cs | 2 ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs | 58 ZigbeeApp/GateWay.Droid/Assets/Phone/RealDevice/SensorCeilingGas.png | 0 ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirBackLightSettionForm.cs | 50 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs | 8 ZigbeeApp/Shared/Phone/UserCenter/Device/Direction/AddDeviceTypeListForm.cs | 10 ZigbeeApp/Shared/Shared.projitems | 9 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/DeviceFunctionTypeRowControl.cs | 4 ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceFreshAirRowControl.cs | 8 ZigbeeApp/Shared/Phone/UserCenter/Residence/LookRoomSettionForm.cs | 8 ZigbeeApp/GateWay.Droid/Assets/Phone/Device/SensorCeilingGasSelected.png | 0 ZigbeeApp/GateWay.Droid/Assets/Phone/Device/SensorPMTwoPointFive.png | 0 ZigbeeApp/Shared/Phone/UserCenter/Safety/SafetyManagementMainForm.cs | 3 78 files changed, 1,293 insertions(+), 2,029 deletions(-) diff --git a/ZigbeeApp/GateWay.Droid/Assets/Language.ini b/ZigbeeApp/GateWay.Droid/Assets/Language.ini index 926188e..26e0424 100755 --- a/ZigbeeApp/GateWay.Droid/Assets/Language.ini +++ b/ZigbeeApp/GateWay.Droid/Assets/Language.ini @@ -244,7 +244,7 @@ 238=闀挎寜5绉掞紙鎸夐敭锛� 239=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏彉缁裤�侀棯鐑亄0}杩涘叆閰嶇綉鐘舵�併�傜豢鐏唲鐏垯閰嶇綉鎴愬姛 ;涓夋寜閿潰鏉垮叆缃戞搷浣滄寚绀� -241=璁剧疆甯稿紑妯″紡鍚庯紝鎮ㄧ殑闂ㄩ攣灏嗗缁坽0}澶勪簬鎵撳紑鐘舵�侊紝纭寮�鍚紵 +241=璁剧疆甯稿紑妯″紡鍚庯紝鎮ㄧ殑闂ㄩ攣灏嗗缁坽0}澶勪簬鎵撳紑鐘舵�侊紝纭寮�鍚紵 242=鐢甸噺 243=甯稿紑妯″紡宸插紑鍚� 244=澶辨晥璁剧疆 @@ -265,10 +265,10 @@ 259=澶辨晥鏃堕棿涓嶅悎娉曪紝璇烽噸鍐欒缃� 260=闊抽噺璁剧疆澶辫触 261=闊抽噺璁剧疆鎴愬姛 -262=褰撳墠鏃跺尯 +262=褰撳墠鏃跺尯 263=鍖� 264=涓� -265=瑗� +265=瑗� 266=褰撳墠璁惧涓嶅湪绾� 267=鑾峰彇闊抽噺澶辫触 268=纭畾鍙栨秷璇ユ垚鍛樼殑杩滅▼寮�閿佹潈闄� @@ -314,6 +314,8 @@ 309=鏃舵晥鎬у父寮�鍒犻櫎澶辫触锛岀户缁�滃父寮�妯″紡鈥濊鍓嶅線闂ㄩ攣鐢ㄦ埛鐣岄潰璁剧疆; 310=璇疯緭鍏ュ悎娉曠殑鏁板瓧 311=鎵嬪姩 +312= 鑳屽厜鐏鑹� +313=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝淇″彿鍥炬爣{0}蹇棯锛� 杩涘叆閰嶇綉鐘舵�併�備俊鍙峰浘鏍囧父浜垯閰嶇綉鎴愬姛 5097=鍙栨秷 5098=纭畾 @@ -578,7 +580,15 @@ 5387=鍙� 5388=甯稿紑鑷姩鍖� 5389=鏃舵晥鎬у父寮�璁剧疆 - +5390=澶辨晥璁剧疆 +5391=灏忔椂 +5392=闂ㄩ攣濮嬬粓鎵撳紑 +5393=璁剧疆甯稿紑妯″紡鍚庯紝鎮ㄧ殑闂ㄩ攣灏嗗缁坽0}澶勪簬鎵撳紑鐘舵�侊紝纭寮�鍚紵 +5394=涓嶈兘灏忎簬1灏忔椂 +5395=澶т簬12灏忔椂 +5396=鎴� +5397=鏃堕棿涓虹┖ +5398=鍙敮鎸佹暟瀛楄緭鍏� 10000=HDL Home 10001=甯哥敤 @@ -1828,6 +1838,7 @@ 16113=鐏叏寮� 16114=鐏叏鍏� 16115=甯稿紑鑷姩鍖栨墜鍔ㄥ彇娑� +16116=娓稿浣撻獙 ;鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄帴鍙g殑杩斿洖淇℃伅缈昏瘧,浠�18000寮�濮嬧槄鈽呪槄鈽� 18004=鎸囧畾缃戝叧宸茬粡琚粦瀹� @@ -1911,7 +1922,9 @@ ;鏂规偊鐜闈㈡澘鍏ョ綉鎿嶄綔鎸囩ず 21021=鎸変綇闈㈡澘鍔熻兘(function)鎸夐敭锛屾墍鏈夋寜閿畕0}鎸囩ず鐏寒璧凤紝鍒欓厤缃戞垚鍔� ;绐楀笜闈㈡澘鐨勫叆缃戞搷浣滄寚绀� -21022=闀挎寜闈㈡澘宸︿笂瑙掓寜閿紝鎵�鏈夋寜閿畕0}鎸囩ず鐏寒璧凤紝鍒欓厤缃戞垚鍔� +21022=闀挎寜闈㈡澘宸︿笂瑙掓寜閿紝鎵�鏈夋寜閿畕0}鎸囩ず鐏寒璧凤紝鍒欓厤缃戞垚鍔� +;鍚搁《鐕冩皵浼犳劅鍣ㄧ殑鍏ョ綉鎿嶄綔鎸囩ず +21023=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝缁胯壊蹇棯{0}杩涘叆閰嶇綉鐘舵�侊紝缁跨伅甯镐寒鍒欏叆缃戞垚鍔� ;鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄ā鍧桰D鐨勫畼鏂瑰悕瀛�,浠�30000寮�濮嬧槄鈽呪槄鈽� 30000=绱ф�ユ寜閽� @@ -1931,14 +1944,14 @@ 30014=1浠igbee缃戝叧(楂樼骇缃戝叧妗岄潰妯″紡) 30015=璋冭瘯璁惧 30016=Zigbee鏅鸿兘绠$姸鐢垫満 -30017=zigbee涓户鍣� +30017=Zigbee涓户鍣� 30018=12鎸夐敭瑙︽懜闈㈡澘(1璺户鐢靛櫒搴曞骇) 30019=4鎸夐敭瑙︽懜闈㈡澘(鍙甫鐢垫簮搴曞骇) 30020=Zigbee浜轰綋绉诲姩浼犳劅鍣�(鐞冨舰) 30021=1璺皟鍏夊櫒灏忔ā鍧� -30022=zigbee杞珺uspro鍗忚杞崲鍣� -30023=zigbee杞�485鍗忚杞崲鍣� -30024=zigbee绌鸿皟缃戝叧妯″潡 +30022=Zigbee杞珺uspro鍗忚杞崲鍣� +30023=Zigbee杞�485鍗忚杞崲鍣� +30024=Zigbee绌鸿皟缃戝叧妯″潡 30025=H06C 30026=绠�绾�4鎸夐敭闈㈡澘 30027=绠�绾�3鎸夐敭闈㈡澘 @@ -1953,6 +1966,7 @@ 30036=鏂规偊/2璺獥甯橀潰鏉�-Z 30037=S-one 30038=鏂规偊鏂伴灏忔ā鍧� +30039=Zigbee鍚搁《鐕冩皵浼犳劅鍣� ;鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄澶囨墍灞炵绫荤殑缈昏瘧鍚嶅瓧,浠�40000寮�濮嬧槄鈽呪槄鈽� 40000=閬槼 @@ -2015,6 +2029,7 @@ 50036=Zigbee鏂规偊2璺獥甯橀潰鏉� 50037=Zigbee鏅鸿兘闂ㄩ攣 50038=鏂伴鎺у埗灏忔ā鍧� +50039=Zigbee鍚搁《鐕冩皵浼犳劅鍣� ;鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄ā鍧桰D鐨勮澶囩被鍨嬪悕瀛�,浠�60000寮�濮�.娉�:瀹冨苟涓嶉渶瑕佸啀R.cs鏂囦欢涓畾涔夆槄鈽呪槄鈽� 60000=浼犳劅鍣� @@ -2055,4 +2070,6 @@ 70021=闂ㄧ獥浼犳劅鍣� 70022=娓╂箍搴︿紶鎰熷櫒 70023=涓户鍣� -70024=鏅鸿兘绌哄紑 \ No newline at end of file +70024=鏅鸿兘绌哄紑 +70025=鍚搁《鐕冩皵浼犳劅鍣� +70026=PM2.5绌烘皵璐ㄩ噺浼犳劅鍣� diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/Device/SensorCeilingGas.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/Device/SensorCeilingGas.png new file mode 100755 index 0000000..7d014fa --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/Device/SensorCeilingGas.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/Device/SensorCeilingGasSelected.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/Device/SensorCeilingGasSelected.png new file mode 100755 index 0000000..5d94caf --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/Device/SensorCeilingGasSelected.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/Device/SensorCeilingGasSelected2.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/Device/SensorCeilingGasSelected2.png new file mode 100755 index 0000000..5394ed4 --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/Device/SensorCeilingGasSelected2.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/Device/SensorPMTwoPointFive.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/Device/SensorPMTwoPointFive.png new file mode 100755 index 0000000..32335b9 --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/Device/SensorPMTwoPointFive.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/Instruct/SensorCeilingGas.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/Instruct/SensorCeilingGas.png new file mode 100755 index 0000000..dbca94f --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/Instruct/SensorCeilingGas.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/Instruct/SensorPMTwoPointFive.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/Instruct/SensorPMTwoPointFive.png new file mode 100755 index 0000000..b0d1b8e --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/Instruct/SensorPMTwoPointFive.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/Assets/Phone/RealDevice/SensorCeilingGas.png b/ZigbeeApp/GateWay.Droid/Assets/Phone/RealDevice/SensorCeilingGas.png new file mode 100755 index 0000000..4ae7a25 --- /dev/null +++ b/ZigbeeApp/GateWay.Droid/Assets/Phone/RealDevice/SensorCeilingGas.png Binary files differ diff --git a/ZigbeeApp/GateWay.Droid/GateWay.Droid.csproj b/ZigbeeApp/GateWay.Droid/GateWay.Droid.csproj index c075865..043e0c0 100644 --- a/ZigbeeApp/GateWay.Droid/GateWay.Droid.csproj +++ b/ZigbeeApp/GateWay.Droid/GateWay.Droid.csproj @@ -2116,6 +2116,27 @@ <ItemGroup> <AndroidAsset Include="Assets\Phone\FreshAir\FreshAirRealDevicePic.png" /> </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\RealDevice\SensorCeilingGas.png" /> + </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\Device\SensorCeilingGas.png" /> + </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\Device\SensorCeilingGasSelected.png" /> + </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\Device\SensorCeilingGasSelected2.png" /> + </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\Instruct\SensorCeilingGas.png" /> + </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\Device\SensorPMTwoPointFive.png" /> + </ItemGroup> + <ItemGroup> + <AndroidAsset Include="Assets\Phone\Instruct\SensorPMTwoPointFive.png" /> + </ItemGroup> <Import Project="..\Shared\Shared.projitems" Label="Shared" Condition="Exists('..\Shared\Shared.projitems')" /> <Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" /> <Import Project="..\packages\Xamarin.Android.Support.Annotations.26.0.2\build\MonoAndroid80\Xamarin.Android.Support.Annotations.targets" Condition="Exists('..\packages\Xamarin.Android.Support.Annotations.26.0.2\build\MonoAndroid80\Xamarin.Android.Support.Annotations.targets')" /> @@ -2145,4 +2166,4 @@ <Import Project="..\packages\Xamarin.Android.Support.Fragment.25.4.0.1\build\MonoAndroid70\Xamarin.Android.Support.Fragment.targets" Condition="Exists('..\packages\Xamarin.Android.Support.Fragment.25.4.0.1\build\MonoAndroid70\Xamarin.Android.Support.Fragment.targets')" /> <Import Project="..\packages\Xamarin.Android.Support.v4.25.4.0.1\build\MonoAndroid70\Xamarin.Android.Support.v4.targets" Condition="Exists('..\packages\Xamarin.Android.Support.v4.25.4.0.1\build\MonoAndroid70\Xamarin.Android.Support.v4.targets')" /> <Import Project="..\packages\NETStandard.Library.2.0.0\build\netstandard2.0\NETStandard.Library.targets" Condition="Exists('..\packages\NETStandard.Library.2.0.0\build\netstandard2.0\NETStandard.Library.targets')" /> -</Project> \ No newline at end of file +</Project> diff --git a/ZigbeeApp/GateWay.Droid/Properties/AndroidManifest.xml b/ZigbeeApp/GateWay.Droid/Properties/AndroidManifest.xml index f00ee0c..02dbdfd 100644 --- a/ZigbeeApp/GateWay.Droid/Properties/AndroidManifest.xml +++ b/ZigbeeApp/GateWay.Droid/Properties/AndroidManifest.xml @@ -1,5 +1,5 @@ 锘�<?xml version="1.0" encoding="utf-8"?> -<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.hdl.home" android:versionCode="2020042701" android:installLocation="auto" android:versionName="1.0.20042701"> +<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.hdl.home" android:versionCode="2020050601" android:installLocation="auto" android:versionName="1.0.20050601"> <uses-sdk android:minSdkVersion="23" android:targetSdkVersion="26" /> <permission android:name="com.hdl.home.permission.JPUSH_MESSAGE" android:protectionLevel="signature" /> <uses-permission android:name="android.permission.WAKE_LOCK" /> @@ -167,4 +167,4 @@ <!-- 璁剧疆楂樺痉鍦板浘key --> <meta-data android:name="com.amap.api.v2.apikey" android:value="1f753413955012c9594c5df69eaa0aff" /> </application> -</manifest> \ No newline at end of file +</manifest> diff --git a/ZigbeeApp/Home.Ios/Home.IOS.csproj b/ZigbeeApp/Home.Ios/Home.IOS.csproj index 26f4465..4156507 100644 --- a/ZigbeeApp/Home.Ios/Home.IOS.csproj +++ b/ZigbeeApp/Home.Ios/Home.IOS.csproj @@ -231,9 +231,11 @@ <BundleResource Include="Resources\Phone\Instruct\PanelFangyueFourButton.png" /> <BundleResource Include="Resources\Phone\Instruct\PanelFourButton.png" /> <BundleResource Include="Resources\Phone\Instruct\AirConditionerZbGateway.png" /> + <BundleResource Include="Resources\Phone\Instruct\SensorCeilingGas.png" /> <BundleResource Include="Resources\Phone\Instruct\IntelligentLocksH06C.png" /> <BundleResource Include="Resources\Phone\Instruct\SensorDoorWindow.png" /> <BundleResource Include="Resources\Phone\Instruct\SensorFire.png" /> + <BundleResource Include="Resources\Phone\Instruct\SensorPMTwoPointFive.png" /> <BundleResource Include="Resources\Phone\Instruct\PanelThreeButton.png" /> <BundleResource Include="Resources\Phone\Instruct\SensorCarbonMonoxide.png" /> <BundleResource Include="Resources\Phone\Instruct\DimmableLightOneLoad.png" /> @@ -714,6 +716,7 @@ <BundleResource Include="Resources\Phone\Device\SensorCarbonMonoxideSelected.png" /> <BundleResource Include="Resources\Phone\Device\ButtonPanelFour.png" /> <BundleResource Include="Resources\Phone\Device\RelayEpointSelected.png" /> + <BundleResource Include="Resources\Phone\Device\SensorCeilingGasSelected.png" /> <BundleResource Include="Resources\Phone\Device\ButtonPanelSelected.png" /> <BundleResource Include="Resources\Phone\Device\SensorTemperatureHumidity.png" /> <BundleResource Include="Resources\Phone\Device\RepeaterZigbeeSelected2.png" /> @@ -734,6 +737,7 @@ <BundleResource Include="Resources\Phone\Device\Sensor.png" /> <BundleResource Include="Resources\Phone\Device\FreshAirEpointSelected2.png" /> <BundleResource Include="Resources\Phone\Device\RepeaterSelected.png" /> + <BundleResource Include="Resources\Phone\Device\SensorCeilingGasSelected2.png" /> <BundleResource Include="Resources\Phone\Device\AirSwitchSelected2.png" /> <BundleResource Include="Resources\Phone\Device\ConverterSelected2.png" /> <BundleResource Include="Resources\Phone\Device\AirSwitchSelected.png" /> @@ -776,6 +780,7 @@ <BundleResource Include="Resources\Phone\Device\ButtonPanelFourSelected.png" /> <BundleResource Include="Resources\Phone\Device\ButtonPanelOneSelected.png" /> <BundleResource Include="Resources\Phone\Device\SensorPirSelected.png" /> + <BundleResource Include="Resources\Phone\Device\SensorCeilingGas.png" /> <BundleResource Include="Resources\Phone\Device\CurtainSiphonateSelected2.png" /> <BundleResource Include="Resources\Phone\Device\LightSelected2.png" /> <BundleResource Include="Resources\Phone\Device\ButtonPanelThreeSelected.png" /> @@ -801,6 +806,7 @@ <BundleResource Include="Resources\Phone\Device\ButtonPanelThree.png" /> <BundleResource Include="Resources\Phone\Device\SensorInfraredSelected.png" /> <BundleResource Include="Resources\Phone\Device\RepeaterSelected2.png" /> + <BundleResource Include="Resources\Phone\Device\SensorPMTwoPointFive.png" /> <BundleResource Include="Resources\Phone\Device\ConverterSelected.png" /> <BundleResource Include="Resources\Phone\Device\RepeaterZigbeeSelected.png" /> <BundleResource Include="Resources\Phone\Device\SensorCarbonMonoxide.png" /> @@ -992,6 +998,7 @@ <BundleResource Include="Resources\Phone\RealDevice\CommonDevice.png" /> <BundleResource Include="Resources\Phone\RealDevice\ButtonPanelFangyueEnvironment.png" /> <BundleResource Include="Resources\Phone\RealDevice\AirConditionerZbGateway.png" /> + <BundleResource Include="Resources\Phone\RealDevice\SensorCeilingGas.png" /> <BundleResource Include="Resources\Phone\RealDevice\IntelligentLocksH06C.png" /> <BundleResource Include="Resources\Phone\RealDevice\SensorDoorWindow.png" /> <BundleResource Include="Resources\Phone\RealDevice\ButtonPanelFangyueEight.png" /> @@ -1015,9 +1022,7 @@ <BundleResource Include="Resources\Phone\Gateway\WiredGateway.png" /> <BundleResource Include="Resources\Phone\Gateway\WirelessGateway.png" /> <BundleResource Include="Resources\Phone\Gateway\AddGatewaySuccess.png" /> - <BundleResource Include="Resources\Phone\Device\SensorPMTwoPointFive.png" /> - <BundleResource Include="Resources\Phone\Instruct\SensorPMTwoPointFive.png" /> </ItemGroup> <Import Project="..\Shared\Shared.projitems" Label="Shared" Condition="Exists('..\Shared\Shared.projitems')" /> <Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" /> -</Project> \ No newline at end of file +</Project> diff --git a/ZigbeeApp/Home.Ios/Resources/Language.ini b/ZigbeeApp/Home.Ios/Resources/Language.ini index 832366c..e8893a2 100755 --- a/ZigbeeApp/Home.Ios/Resources/Language.ini +++ b/ZigbeeApp/Home.Ios/Resources/Language.ini @@ -237,12 +237,12 @@ 231=鎺ヨ繎鎰熷簲 232=鎺ヨ繎鎰熷簲鍔熻兘璁剧疆缃け璐� 233=鑾峰彇鎺ヨ繎鎰熷簲鍔熻兘澶辫触 -235=鎸変綇闈㈡澘妯″紡锛圡ode)鍜岄閫燂紙Fan)鎸夐敭{0}缁胯壊鎸囩ず鐏寒璧枫�傚垯閰嶇綉鎴愬姛 +235=鎸変綇闈㈡澘妯″紡锛圡ode)鍜岄閫燂紙Fan)鎸夐敭{0}缁胯壊鎸囩ず鐏寒璧枫�傚垯閰嶇綉鎴愬姛 236=缁胯壊鎸囩ず鐏棯鐑� 237=鎸囩ず鐏� 238=闀挎寜5绉掞紙鎸夐敭锛� -239=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏彉缁裤�侀棯鐑亄0}杩涘叆閰嶇綉鐘舵�併�傜豢鐏唲鐏垯閰嶇綉鎴愬姛 -241=璁剧疆甯稿紑妯″紡鍚庯紝鎮ㄧ殑闂ㄩ攣灏嗗缁坽0}澶勪簬鎵撳紑鐘舵�侊紝纭寮�鍚紵 +239=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏彉缁裤�侀棯鐑亄0}杩涘叆閰嶇綉鐘舵�併�傜豢鐏唲鐏垯閰嶇綉鎴愬姛 +241=璁剧疆甯稿紑妯″紡鍚庯紝鎮ㄧ殑闂ㄩ攣灏嗗缁坽0}澶勪簬鎵撳紑鐘舵�侊紝纭寮�鍚紵 242=鐢甸噺 243=甯稿紑妯″紡宸插紑鍚� 244=澶辨晥璁剧疆 @@ -263,10 +263,10 @@ 259=澶辨晥鏃堕棿涓嶅悎娉曪紝璇烽噸鍐欒缃� 260=闊抽噺璁剧疆澶辫触 261=闊抽噺璁剧疆鎴愬姛 -262=褰撳墠鏃跺尯 +262=褰撳墠鏃跺尯 263=鍖� 264=涓� -265=瑗� +265=瑗� 266=褰撳墠璁惧涓嶅湪绾� 267=鑾峰彇闊抽噺澶辫触 268=纭畾鍙栨秷璇ユ垚鍛樼殑杩滅▼寮�閿佹潈闄� @@ -578,7 +578,15 @@ 5387=鍙� 5388=甯稿紑鑷姩鍖� 5389=鏃舵晥鎬у父寮�璁剧疆 - +5390=澶辨晥璁剧疆 +5391=灏忔椂 +5392=闂ㄩ攣濮嬬粓鎵撳紑 +5393=璁剧疆甯稿紑妯″紡鍚庯紝鎮ㄧ殑闂ㄩ攣灏嗗缁坽0}澶勪簬鎵撳紑鐘舵�侊紝纭寮�鍚紵 +5394=涓嶈兘灏忎簬1灏忔椂 +5395=澶т簬12灏忔椂 +5396=鎴� +5397=鏃堕棿涓虹┖ +5398=鍙敮鎸佹暟瀛楄緭鍏� 10000=HDL Home 10001=甯哥敤 @@ -1828,94 +1836,97 @@ 16113=鐏叏寮� 16114=鐏叏鍏� 16115=甯稿紑鑷姩鍖栨墜鍔ㄥ彇娑� +16116=娓稿浣撻獙 -;鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄帴鍙g殑杩斿洖淇℃伅缈昏瘧,浠�18000寮�濮嬧槄鈽呪槄鈽� -18004=鎸囧畾缃戝叧宸茬粡琚粦瀹� -18005=鐢ㄦ埛涓嶅瓨鍦ㄤ簬姝や綇瀹� -18006=璐﹀彿宸茬粡瀛樺湪浜庢浣忓畢 -18009=鎿嶄綔鏉冮檺涓嶈冻 -18010=琚粦瀹氱殑瀛愯处鍙蜂笉瀛樺湪锛岃娉ㄥ唽鍚庡啀璇� -18011=鎿嶄綔鐨勫瓙璐﹀彿涓嶅瓨鍦� -18012=瑙i櫎缁戝畾鐨勫瓙璐﹀彿涓嶅瓨鍦� -18013=楠岃瘉鐮佸彂閫佸け璐� -18015=璐﹀彿宸茬粡瀛樺湪 -18016=楠岃瘉鐮侀敊璇� -18017=楠岃瘉鐮佸凡澶辨晥 -18018=缁戝畾鐨勮处鍙蜂笉瀛樺湪 -18019=鎸囧畾璐﹀彿宸插瓨鍦� -18022=楠岃瘉鐮佸彂閫佸け璐� -18024=鎸囧畾璐﹀彿涓嶅瓨鍦� -18025=鍘熷瘑鐮佸拰鏂板瘑鐮佺浉鍚� -18026=鍘熷瘑鐮侀敊璇� -18034=璐﹀彿鏈敞鍐� -18035=璇锋眰鍙傛暟閿欒 -18036=鏃犳晥鐨勭櫥褰曞瘑鍖� -18039=褰撳墠缂栬緫鐨勪綇瀹呭悕绉板凡缁忓瓨鍦� -18040=褰撳墠娣诲姞鐨勪綇瀹呭悕绉板凡缁忓瓨鍦� -18041=鎸囧畾鐨勪綇瀹呬笉瀛樺湪 -18042=褰撳墠澶囦唤涓嶅睘浜庢偍褰撳墠鐨勪綇瀹� -18043=澶囨敞鍚嶇О宸茬粡瀛樺湪,璇锋洿鎹㈠悗閲嶈瘯锛� -18044=鎸囧畾鐨勭綉鍏矷D骞朵笉瀛樺湪 -18045=褰撳墠浣忓畢涓嬪苟娌℃湁缁戝畾鎸囧畾鐨勭綉鍏� -18046=褰撳墠浣忓畢杩樺瓨鍦ㄧ潃鏈В闄ょ粦瀹氱殑缃戝叧 -18047=鍏变韩鏁版嵁涓嶅瓨鍦� -18048=鍒嗕韩鐨勭洰鏍囪处鍙蜂笉瀛樺湪 -18049=鍒嗕韩鏁版嵁鎿嶄綔澶辫触 -18050=涓嶈兘鎶婅嚜宸辨坊鍔犱负鎴愬憳 -18051=涓嶈兘鎶婁富璐﹀彿娣诲姞涓烘垚鍛� - - -;鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄澶囩殑鍏ョ綉姝ラ,浠�21000寮�濮嬧槄鈽呪槄鈽� -;鏅鸿兘闂ㄩ攣鍏ョ綉鎿嶄綔鎸囩ず -21000=鍞ら啋闂ㄩ攣锛岃緭鍏モ��*鈥濄�佲��#鈥濄�佲�滅鐞嗗憳瀵嗙爜鈥漿0}鎸夎闊虫彁绀猴紝杈撳叆鈥�4鈥濋�夋嫨鍔熻兘鑿滃崟{0}杈撳叆鈥�1鈥濓紝纭璁惧鍏ョ綉 -;3璺户鐢靛櫒鍏ョ綉鎿嶄綔鎸囩ず -21001=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏彉缁裤�侀棯鐑亄0}杩涘叆閰嶇綉鐘舵�併�傜豢鐏唲鐏垯閰嶇綉鎴愬姛 -;1璺皟鍏夊櫒灏忔ā鍧楀叆缃戞搷浣滄寚绀� -21002=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏彉缁裤�侀棯鐑亄0}杩涘叆閰嶇綉鐘舵�併�傜豢鐏唲鐏垯閰嶇綉鎴愬姛 -;浜屾寜閿潰鏉垮叆缃戞搷浣滄寚绀� -21003=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏彉缁裤�侀棯鐑亄0}杩涘叆閰嶇綉鐘舵�併�傜豢鐏揩闂�3绉掑垯閰嶇綉鎴愬姛 -;涓夋寜閿潰鏉垮叆缃戞搷浣滄寚绀� -21004=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏彉缁裤�侀棯鐑亄0}杩涘叆閰嶇綉鐘舵�併�傜豢鐏揩闂�3绉掑垯閰嶇綉鎴愬姛 -;鍥涙寜閿潰鏉垮叆缃戞搷浣滄寚绀� -21005=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏彉缁裤�侀棯鐑亄0}杩涘叆閰嶇綉鐘舵�併�傜豢鐏揩闂�3绉掑垯閰嶇綉鎴愬姛 -;Zigbee鏅鸿兘寮�鍚堝笜鐢垫満鍏ョ綉鎿嶄綔鎸囩ず -21006=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏瘂0}鍙樼豢闂儊锛屽垯杩涘叆閰嶇綉鐘舵�亄0}缁跨伅鐔勭伃鍒欓厤缃戞垚鍔� -;Zigbee鏅鸿兘绠$姸鐢垫満鍏ョ綉鎿嶄綔鎸囩ず -21007=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏瘂0}鍙樼豢闂儊锛屽垯杩涘叆閰嶇綉鐘舵�亄0}缁跨伅鐔勭伃鍒欓厤缃戞垚鍔� -;绾㈠浼犳劅鍣ㄥ叆缃戞搷浣滄寚绀� -21008=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝缁胯壊蹇棯{0}杩涘叆閰嶇綉鐘舵�侊紝缁跨伅甯镐寒鍒欏叆缃戞垚鍔� -;闂ㄧ獥浼犳劅鍣ㄥ叆缃戞搷浣滄寚绀� -21009=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝缁胯壊蹇棯{0}杩涘叆閰嶇綉鐘舵�侊紝缁跨伅甯镐寒鍒欏叆缃戞垚鍔� -;鐕冩皵浼犳劅鍣ㄥ叆缃戞搷浣滄寚绀� -21010=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝缁胯壊蹇棯{0}杩涘叆閰嶇綉鐘舵�侊紝缁跨伅甯镐寒鍒欏叆缃戞垚鍔� -;鐑熼浘浼犳劅鍣ㄥ叆缃戞搷浣滄寚绀� -21011=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝缁胯壊蹇棯{0}杩涘叆閰嶇綉鐘舵�侊紝缁跨伅甯镐寒鍒欏叆缃戞垚鍔� -;姘存蹈浼犳劅鍣ㄥ叆缃戞搷浣滄寚绀� -21012=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝缁胯壊蹇棯{0}杩涘叆閰嶇綉鐘舵�侊紝缁跨伅甯镐寒鍒欏叆缃戞垚鍔� -;绌烘皵寮�鍏冲叆缃戞搷浣滄寚绀� -21013=鎸夐敭浠庡伐浣滄ā寮忔嫧鍒伴厤瀵规ā寮�,5绉掑悗绾㈢伅{0}鎱㈤棯鐑佹椂鎷ㄥ洖宸ヤ綔妯″紡,{0}杩涘叆閰嶇綉妯″紡,绾㈢伅甯镐寒鍒欓厤缃戞垚鍔� -;涓户鍣ㄥ叆缃戞搷浣滄寚绀� -21014=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏彉缁块棯鐑亄0}杩涘叆閰嶇綉鐘舵�侊紝缁跨伅鐔勭伃鍒欏叆缃戞垚鍔� -;绌鸿皟鍏ョ綉鎿嶄綔鎸囩ず -21015=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏瘂0}鍙樼豢闂儊,杩涘叆閰嶇綉鐘舵�亄0}缁跨伅姣�5绉掗棯鐑佷竴娆″垯鍏ョ綉鎴愬姛 -;pir浼犳劅鍣ㄥ叆缃戞搷浣滄寚绀� -21016=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏彉缁裤�亄0}闂儊杩涘叆閰嶇綉鐘舵�併�傜豢鐏唲鐏垯閰嶇綉鎴愬姛 -;娓╂箍搴︿紶鎰熷櫒鍏ョ綉鎿嶄綔鎸囩ず -21017=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝淇″彿鍥炬爣{0}蹇棯锛� 杩涘叆閰嶇綉鐘舵�併�傚浘鏍囧父浜垯閰嶇綉鎴愬姛 -;鏂规偊2鎸夐敭杞昏Е寮忛潰鏉垮叆缃戞搷浣滄寚绀� -21018=鎸変綇闈㈡澘宸︿笂瑙掓寜閿紝鎵�鏈夋寜閿寚绀虹伅{0}浜捣锛屽垯閰嶇綉鎴愬姛 -;鏂规偊4鎸夐敭杞昏Е寮忛潰鏉垮叆缃戞搷浣滄寚绀� -21019=鎸変綇闈㈡澘宸︿笂瑙掓寜閿紝鎵�鏈夋寜閿寚绀虹伅{0}浜捣锛屽垯閰嶇綉鎴愬姛 -;鏂规偊8鎸夐敭杞昏Е寮忛潰鏉垮叆缃戞搷浣滄寚绀� -21020=鎸変綇闈㈡澘宸︿笂瑙掓寜閿紝鎵�鏈夋寜閿寚绀虹伅{0}浜捣锛屽垯閰嶇綉鎴愬姛 -;鏂规偊鐜闈㈡澘鍏ョ綉鎿嶄綔鎸囩ず -21021=鎸変綇闈㈡澘鍔熻兘(function)鎸夐敭锛屾墍鏈夋寜閿畕0}鎸囩ず鐏寒璧凤紝鍒欓厤缃戞垚鍔� -;绐楀笜闈㈡澘鐨勫叆缃戞搷浣滄寚绀� -21022=闀挎寜闈㈡澘宸︿笂瑙掓寜閿紝鎵�鏈夋寜閿畕0}鎸囩ず鐏寒璧凤紝鍒欓厤缃戞垚鍔� - -;鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄ā鍧桰D鐨勫畼鏂瑰悕瀛�,浠�30000寮�濮嬧槄鈽呪槄鈽� -30000=绱ф�ユ寜閽� -30001=鐕冩皵浼犳劅鍣� +;鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄帴鍙g殑杩斿洖淇℃伅缈昏瘧,浠�18000寮�濮嬧槄鈽呪槄鈽� +18004=鎸囧畾缃戝叧宸茬粡琚粦瀹� +18005=鐢ㄦ埛涓嶅瓨鍦ㄤ簬姝や綇瀹� +18006=璐﹀彿宸茬粡瀛樺湪浜庢浣忓畢 +18009=鎿嶄綔鏉冮檺涓嶈冻 +18010=琚粦瀹氱殑瀛愯处鍙蜂笉瀛樺湪锛岃娉ㄥ唽鍚庡啀璇� +18011=鎿嶄綔鐨勫瓙璐﹀彿涓嶅瓨鍦� +18012=瑙i櫎缁戝畾鐨勫瓙璐﹀彿涓嶅瓨鍦� +18013=楠岃瘉鐮佸彂閫佸け璐� +18015=璐﹀彿宸茬粡瀛樺湪 +18016=楠岃瘉鐮侀敊璇� +18017=楠岃瘉鐮佸凡澶辨晥 +18018=缁戝畾鐨勮处鍙蜂笉瀛樺湪 +18019=鎸囧畾璐﹀彿宸插瓨鍦� +18022=楠岃瘉鐮佸彂閫佸け璐� +18024=鎸囧畾璐﹀彿涓嶅瓨鍦� +18025=鍘熷瘑鐮佸拰鏂板瘑鐮佺浉鍚� +18026=鍘熷瘑鐮侀敊璇� +18034=璐﹀彿鏈敞鍐� +18035=璇锋眰鍙傛暟閿欒 +18036=鏃犳晥鐨勭櫥褰曞瘑鍖� +18039=褰撳墠缂栬緫鐨勪綇瀹呭悕绉板凡缁忓瓨鍦� +18040=褰撳墠娣诲姞鐨勪綇瀹呭悕绉板凡缁忓瓨鍦� +18041=鎸囧畾鐨勪綇瀹呬笉瀛樺湪 +18042=褰撳墠澶囦唤涓嶅睘浜庢偍褰撳墠鐨勪綇瀹� +18043=澶囨敞鍚嶇О宸茬粡瀛樺湪,璇锋洿鎹㈠悗閲嶈瘯锛� +18044=鎸囧畾鐨勭綉鍏矷D骞朵笉瀛樺湪 +18045=褰撳墠浣忓畢涓嬪苟娌℃湁缁戝畾鎸囧畾鐨勭綉鍏� +18046=褰撳墠浣忓畢杩樺瓨鍦ㄧ潃鏈В闄ょ粦瀹氱殑缃戝叧 +18047=鍏变韩鏁版嵁涓嶅瓨鍦� +18048=鍒嗕韩鐨勭洰鏍囪处鍙蜂笉瀛樺湪 +18049=鍒嗕韩鏁版嵁鎿嶄綔澶辫触 +18050=涓嶈兘鎶婅嚜宸辨坊鍔犱负鎴愬憳 +18051=涓嶈兘鎶婁富璐﹀彿娣诲姞涓烘垚鍛� + + +;鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄澶囩殑鍏ョ綉姝ラ,浠�21000寮�濮嬧槄鈽呪槄鈽� +;鏅鸿兘闂ㄩ攣鍏ョ綉鎿嶄綔鎸囩ず +21000=鍞ら啋闂ㄩ攣锛岃緭鍏モ��*鈥濄�佲��#鈥濄�佲�滅鐞嗗憳瀵嗙爜鈥漿0}鎸夎闊虫彁绀猴紝杈撳叆鈥�4鈥濋�夋嫨鍔熻兘鑿滃崟{0}杈撳叆鈥�1鈥濓紝纭璁惧鍏ョ綉 +;3璺户鐢靛櫒鍏ョ綉鎿嶄綔鎸囩ず +21001=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏彉缁裤�侀棯鐑亄0}杩涘叆閰嶇綉鐘舵�併�傜豢鐏唲鐏垯閰嶇綉鎴愬姛 +;1璺皟鍏夊櫒灏忔ā鍧楀叆缃戞搷浣滄寚绀� +21002=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏彉缁裤�侀棯鐑亄0}杩涘叆閰嶇綉鐘舵�併�傜豢鐏唲鐏垯閰嶇綉鎴愬姛 +;浜屾寜閿潰鏉垮叆缃戞搷浣滄寚绀� +21003=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏彉缁裤�侀棯鐑亄0}杩涘叆閰嶇綉鐘舵�併�傜豢鐏揩闂�3绉掑垯閰嶇綉鎴愬姛 +;涓夋寜閿潰鏉垮叆缃戞搷浣滄寚绀� +21004=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏彉缁裤�侀棯鐑亄0}杩涘叆閰嶇綉鐘舵�併�傜豢鐏揩闂�3绉掑垯閰嶇綉鎴愬姛 +;鍥涙寜閿潰鏉垮叆缃戞搷浣滄寚绀� +21005=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏彉缁裤�侀棯鐑亄0}杩涘叆閰嶇綉鐘舵�併�傜豢鐏揩闂�3绉掑垯閰嶇綉鎴愬姛 +;Zigbee鏅鸿兘寮�鍚堝笜鐢垫満鍏ョ綉鎿嶄綔鎸囩ず +21006=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏瘂0}鍙樼豢闂儊锛屽垯杩涘叆閰嶇綉鐘舵�亄0}缁跨伅鐔勭伃鍒欓厤缃戞垚鍔� +;Zigbee鏅鸿兘绠$姸鐢垫満鍏ョ綉鎿嶄綔鎸囩ず +21007=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏瘂0}鍙樼豢闂儊锛屽垯杩涘叆閰嶇綉鐘舵�亄0}缁跨伅鐔勭伃鍒欓厤缃戞垚鍔� +;绾㈠浼犳劅鍣ㄥ叆缃戞搷浣滄寚绀� +21008=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝缁胯壊蹇棯{0}杩涘叆閰嶇綉鐘舵�侊紝缁跨伅甯镐寒鍒欏叆缃戞垚鍔� +;闂ㄧ獥浼犳劅鍣ㄥ叆缃戞搷浣滄寚绀� +21009=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝缁胯壊蹇棯{0}杩涘叆閰嶇綉鐘舵�侊紝缁跨伅甯镐寒鍒欏叆缃戞垚鍔� +;鐕冩皵浼犳劅鍣ㄥ叆缃戞搷浣滄寚绀� +21010=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝缁胯壊蹇棯{0}杩涘叆閰嶇綉鐘舵�侊紝缁跨伅甯镐寒鍒欏叆缃戞垚鍔� +;鐑熼浘浼犳劅鍣ㄥ叆缃戞搷浣滄寚绀� +21011=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝缁胯壊蹇棯{0}杩涘叆閰嶇綉鐘舵�侊紝缁跨伅甯镐寒鍒欏叆缃戞垚鍔� +;姘存蹈浼犳劅鍣ㄥ叆缃戞搷浣滄寚绀� +21012=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝缁胯壊蹇棯{0}杩涘叆閰嶇綉鐘舵�侊紝缁跨伅甯镐寒鍒欏叆缃戞垚鍔� +;绌烘皵寮�鍏冲叆缃戞搷浣滄寚绀� +21013=鎸夐敭浠庡伐浣滄ā寮忔嫧鍒伴厤瀵规ā寮�,5绉掑悗绾㈢伅{0}鎱㈤棯鐑佹椂鎷ㄥ洖宸ヤ綔妯″紡,{0}杩涘叆閰嶇綉妯″紡,绾㈢伅甯镐寒鍒欓厤缃戞垚鍔� +;涓户鍣ㄥ叆缃戞搷浣滄寚绀� +21014=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏彉缁块棯鐑亄0}杩涘叆閰嶇綉鐘舵�侊紝缁跨伅鐔勭伃鍒欏叆缃戞垚鍔� +;绌鸿皟鍏ョ綉鎿嶄綔鎸囩ず +21015=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏瘂0}鍙樼豢闂儊,杩涘叆閰嶇綉鐘舵�亄0}缁跨伅姣�5绉掗棯鐑佷竴娆″垯鍏ョ綉鎴愬姛 +;pir浼犳劅鍣ㄥ叆缃戞搷浣滄寚绀� +21016=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝鎸囩ず鐏彉缁裤�亄0}闂儊杩涘叆閰嶇綉鐘舵�併�傜豢鐏唲鐏垯閰嶇綉鎴愬姛 +;娓╂箍搴︿紶鎰熷櫒鍏ョ綉鎿嶄綔鎸囩ず +21017=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝淇″彿鍥炬爣{0}蹇棯锛� 杩涘叆閰嶇綉鐘舵�併�傚浘鏍囧父浜垯閰嶇綉鎴愬姛 +;鏂规偊2鎸夐敭杞昏Е寮忛潰鏉垮叆缃戞搷浣滄寚绀� +21018=鎸変綇闈㈡澘宸︿笂瑙掓寜閿紝鎵�鏈夋寜閿寚绀虹伅{0}浜捣锛屽垯閰嶇綉鎴愬姛 +;鏂规偊4鎸夐敭杞昏Е寮忛潰鏉垮叆缃戞搷浣滄寚绀� +21019=鎸変綇闈㈡澘宸︿笂瑙掓寜閿紝鎵�鏈夋寜閿寚绀虹伅{0}浜捣锛屽垯閰嶇綉鎴愬姛 +;鏂规偊8鎸夐敭杞昏Е寮忛潰鏉垮叆缃戞搷浣滄寚绀� +21020=鎸変綇闈㈡澘宸︿笂瑙掓寜閿紝鎵�鏈夋寜閿寚绀虹伅{0}浜捣锛屽垯閰嶇綉鎴愬姛 +;鏂规偊鐜闈㈡澘鍏ョ綉鎿嶄綔鎸囩ず +21021=鎸変綇闈㈡澘鍔熻兘(function)鎸夐敭锛屾墍鏈夋寜閿畕0}鎸囩ず鐏寒璧凤紝鍒欓厤缃戞垚鍔� +;绐楀笜闈㈡澘鐨勫叆缃戞搷浣滄寚绀� +21022=闀挎寜闈㈡澘宸︿笂瑙掓寜閿紝鎵�鏈夋寜閿畕0}鎸囩ず鐏寒璧凤紝鍒欓厤缃戞垚鍔� +;鍚搁《鐕冩皵浼犳劅鍣ㄧ殑鍏ョ綉鎿嶄綔鎸囩ず +21023=闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝缁胯壊蹇棯{0}杩涘叆閰嶇綉鐘舵�侊紝缁跨伅甯镐寒鍒欏叆缃戞垚鍔� + +;鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄ā鍧桰D鐨勫畼鏂瑰悕瀛�,浠�30000寮�濮嬧槄鈽呪槄鈽� +30000=绱ф�ユ寜閽� +30001=鐕冩皵浼犳劅鍣� 30002=鐑熼浘浼犳劅鍣� 30003=姘翠镜浼犳劅鍣� 30004=閽ュ寵鎵� @@ -1931,14 +1942,14 @@ 30014=1浠igbee缃戝叧(楂樼骇缃戝叧妗岄潰妯″紡) 30015=璋冭瘯璁惧 30016=Zigbee鏅鸿兘绠$姸鐢垫満 -30017=zigbee涓户鍣� +30017=Zigbee涓户鍣� 30018=12鎸夐敭瑙︽懜闈㈡澘(1璺户鐢靛櫒搴曞骇) 30019=4鎸夐敭瑙︽懜闈㈡澘(鍙甫鐢垫簮搴曞骇) 30020=Zigbee浜轰綋绉诲姩浼犳劅鍣�(鐞冨舰) 30021=1璺皟鍏夊櫒灏忔ā鍧� -30022=zigbee杞珺uspro鍗忚杞崲鍣� -30023=zigbee杞�485鍗忚杞崲鍣� -30024=zigbee绌鸿皟缃戝叧妯″潡 +30022=Zigbee杞珺uspro鍗忚杞崲鍣� +30023=Zigbee杞�485鍗忚杞崲鍣� +30024=Zigbee绌鸿皟缃戝叧妯″潡 30025=H06C 30026=绠�绾�4鎸夐敭闈㈡澘 30027=绠�绾�3鎸夐敭闈㈡澘 @@ -1953,6 +1964,7 @@ 30036=鏂规偊/2璺獥甯橀潰鏉�-Z 30037=S-one 30038=鏂规偊鏂伴灏忔ā鍧� +30039=Zigbee鍚搁《鐕冩皵浼犳劅鍣� ;鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄澶囨墍灞炵绫荤殑缈昏瘧鍚嶅瓧,浠�40000寮�濮嬧槄鈽呪槄鈽� 40000=閬槼 @@ -1975,9 +1987,9 @@ 40017=骞叉帴鐐� 40018=鏂伴 -;鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄ā鍧桰D鐨勮澶囬粯璁ゅ娉ㄥ悕瀛�,浠�50000寮�濮�.娉�:瀹冨苟涓嶉渶瑕佸啀R.cs鏂囦欢涓畾涔夆槄鈽呪槄鈽� -50000=绱ф�ユ寜閽� -50001=Zigbee鐕冩皵浼犳劅鍣� +;鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄ā鍧桰D鐨勮澶囬粯璁ゅ娉ㄥ悕瀛�,浠�50000寮�濮�.娉�:瀹冨苟涓嶉渶瑕佸啀R.cs鏂囦欢涓畾涔夆槄鈽呪槄鈽� +50000=绱ф�ユ寜閽� +50001=Zigbee鐕冩皵浼犳劅鍣� 50002=Zigbee鐕冩皵浼犳劅鍣� 50003=Zigbee姘存蹈浼犳劅鍣� 50004=閽ュ寵鎵� @@ -2015,8 +2027,9 @@ 50036=Zigbee鏂规偊2璺獥甯橀潰鏉� 50037=Zigbee鏅鸿兘闂ㄩ攣 50038=鏂伴鎺у埗灏忔ā鍧� +50039=Zigbee鍚搁《鐕冩皵浼犳劅鍣� -;鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄ā鍧桰D鐨勮澶囩被鍨嬪悕瀛�,浠�60000寮�濮�.娉�:瀹冨苟涓嶉渶瑕佸啀R.cs鏂囦欢涓畾涔夆槄鈽呪槄鈽� +;鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄ā鍧桰D鐨勮澶囩被鍨嬪悕瀛�,浠�60000寮�濮�.娉�:瀹冨苟涓嶉渶瑕佸啀R.cs鏂囦欢涓畾涔夆槄鈽呪槄鈽� 60000=浼犳劅鍣� 60001=寮�鍏虫ā鍧� 60002=閬槼妯″潡 @@ -2056,4 +2069,5 @@ 70022=娓╂箍搴︿紶鎰熷櫒 70023=涓户鍣� 70024=鏅鸿兘绌哄紑 -70025=PM2.5绌烘皵璐ㄩ噺浼犳劅鍣� \ No newline at end of file +70025=鍚搁《鐕冩皵浼犳劅鍣� +70026=PM2.5绌烘皵璐ㄩ噺浼犳劅鍣� diff --git a/ZigbeeApp/Home.Ios/Resources/Phone/Device/SensorCeilingGas.png b/ZigbeeApp/Home.Ios/Resources/Phone/Device/SensorCeilingGas.png new file mode 100755 index 0000000..7d014fa --- /dev/null +++ b/ZigbeeApp/Home.Ios/Resources/Phone/Device/SensorCeilingGas.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Resources/Phone/Device/SensorCeilingGasSelected.png b/ZigbeeApp/Home.Ios/Resources/Phone/Device/SensorCeilingGasSelected.png new file mode 100755 index 0000000..5d94caf --- /dev/null +++ b/ZigbeeApp/Home.Ios/Resources/Phone/Device/SensorCeilingGasSelected.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Resources/Phone/Device/SensorCeilingGasSelected2.png b/ZigbeeApp/Home.Ios/Resources/Phone/Device/SensorCeilingGasSelected2.png new file mode 100755 index 0000000..5394ed4 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Resources/Phone/Device/SensorCeilingGasSelected2.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Resources/Phone/Instruct/SensorCeilingGas.png b/ZigbeeApp/Home.Ios/Resources/Phone/Instruct/SensorCeilingGas.png new file mode 100755 index 0000000..dbca94f --- /dev/null +++ b/ZigbeeApp/Home.Ios/Resources/Phone/Instruct/SensorCeilingGas.png Binary files differ diff --git a/ZigbeeApp/Home.Ios/Resources/Phone/RealDevice/SensorCeilingGas.png b/ZigbeeApp/Home.Ios/Resources/Phone/RealDevice/SensorCeilingGas.png new file mode 100755 index 0000000..4ae7a25 --- /dev/null +++ b/ZigbeeApp/Home.Ios/Resources/Phone/RealDevice/SensorCeilingGas.png Binary files differ diff --git a/ZigbeeApp/Shared/Common/CommonPage.cs b/ZigbeeApp/Shared/Common/CommonPage.cs index cbcbd24..aa1c7ba 100755 --- a/ZigbeeApp/Shared/Common/CommonPage.cs +++ b/ZigbeeApp/Shared/Common/CommonPage.cs @@ -57,7 +57,7 @@ /// <summary> /// 鐗堟湰鍙� /// </summary> - public static string CodeIDString = "1.0.20042801"; + public static string CodeIDString = "1.0.20050601"; /// <summary> /// 娉ㄥ唽鏉ユ簮(0:HDL On 1:Zigbee) /// </summary> diff --git a/ZigbeeApp/Shared/Common/Device.cs b/ZigbeeApp/Shared/Common/Device.cs index 8d35da8..30db26d 100644 --- a/ZigbeeApp/Shared/Common/Device.cs +++ b/ZigbeeApp/Shared/Common/Device.cs @@ -271,7 +271,7 @@ //娣诲姞缂撳瓨 this.AddDeviceToMemory(ref device); - //绉婚櫎瀛樺湪鐨勮澶囧唴瀛� + //绉婚櫎瀛樺湪鐨勮澶囧唴瀛� string maikey = this.GetDeviceMainKeys(device); if (dicExist.ContainsKey(maikey) == true) { @@ -1987,9 +1987,19 @@ /// <param name="listMac">璁惧Mac鍦板潃</param> public void DeleteRealDeviceFromRoom(List<string> listMac) { + bool save = false; foreach (var deviceMacAddr in listMac) { - this.dicDeviceRoomId.Remove(deviceMacAddr); + if (this.dicDeviceRoomId.ContainsKey(deviceMacAddr) == true) + { + this.dicDeviceRoomId.Remove(deviceMacAddr); + save = true; + } + } + if (save == false) + { + //娌℃湁鏀瑰彉,涓嶉渶瑕佷繚瀛� + return; } //淇濆瓨璁板綍 string fullName = UserCenterLogic.CombinePath(DirNameResourse.DeviceRoomIdFile); @@ -2069,14 +2079,25 @@ list.Add(DeviceBeloneType.A浼犳劅鍣�); //鍏朵粬鐨勭湅鐫�鍔炲憲,閮芥槸鎺掑湪鍚庨潰鐨�,閮藉綊涓鸿繖涓睘鎬� - list.Add(DeviceBeloneType.A鏈煡璁惧); - + list.Add(DeviceBeloneType.A鏈煡璁惧); + return list; } #endregion #region 鈻� 涓�鑸柟娉昣__________________________ + + /// <summary> + /// 浠庣紦瀛樺彉閲忔娴嬭澶囨槸鍚﹀湪绾� + /// </summary> + /// <param name="i_device"></param> + /// <returns></returns> + public bool CheckDeviceIsOnline(CommonDevice i_device) + { + //0:绂荤嚎 1:鍦ㄧ嚎 2:姝e湪鍒锋柊鐘舵�� + return i_device.IsOnline == 1 || i_device.IsOnline == 2; + } /// <summary> /// 鍒ゆ柇璇ヨ澶囨槸鍚﹀彲浠ユ樉绀哄湪涓婚〉 @@ -2637,21 +2658,20 @@ //=========鈽呪槄瀹夐槻绫讳紶鎰熷櫒绫�(1300-2299)鈽呪槄========= //杩欓噷鏄害涔愬厠鐨� - this.dicDeviceModelIdEnum["MULTI-GASE--EA07"] = "1300-1300-60000";//鐕冩皵浼犳劅鍣� - this.dicDeviceModelIdEnum["MULTI-MECI--EA01"] = "1301-1300-60000";//闂ㄧ獥纾佷紶鎰熷櫒 - this.dicDeviceModelIdEnum["MULTI-FIRE--EA05"] = "1302-1300-60000";//鐑熼浘浼犳劅鍣� - this.dicDeviceModelIdEnum["MULTI-MOTI--EA04"] = "1303-1300-60000";//绾㈠浼犳劅鍣� - this.dicDeviceModelIdEnum["MULTI-WATE--EA02"] = "1304-1300-60000";//姘存蹈浼犳劅鍣� - this.dicDeviceModelIdEnum["MULTI-BURO--EA06"] = "1305-1300-60000";//绱ф�ユ寜閿� + this.dicDeviceModelIdEnum["MULTI-GASE--EA07"] = "1300-1200-60000";//鐕冩皵浼犳劅鍣� + this.dicDeviceModelIdEnum["MULTI-MECI--EA01"] = "1301-1200-60000";//闂ㄧ獥纾佷紶鎰熷櫒 + this.dicDeviceModelIdEnum["MULTI-FIRE--EA05"] = "1302-1200-60000";//鐑熼浘浼犳劅鍣� + this.dicDeviceModelIdEnum["MULTI-MOTI--EA04"] = "1303-1200-60000";//绾㈠浼犳劅鍣� + this.dicDeviceModelIdEnum["MULTI-WATE--EA02"] = "1304-1200-60000";//姘存蹈浼犳劅鍣� + this.dicDeviceModelIdEnum["MULTI-BURO--EA06"] = "1305-1200-60000";//绱ф�ユ寜閿� //杩欓噷鏄渤涓滅殑 - this.dicDeviceModelIdEnum["MSG01/M-ZB.10"] = "1300-1300-60000";//鐕冩皵浼犳劅鍣� - this.dicDeviceModelIdEnum["MSDC01/M-ZB.10"] = "1301-1300-60000";//闂ㄧ獥纾佷紶鎰熷櫒 - this.dicDeviceModelIdEnum["MSS01/M-ZB.10"] = "1302-1300-60000";//鐑熼浘浼犳劅鍣� - this.dicDeviceModelIdEnum["MSPIR01/M-ZB.10"] = "1303-1300-60000";//绾㈠浼犳劅鍣� - this.dicDeviceModelIdEnum["MSW01/M-ZB.10"] = "1304-1300-60000";//姘存蹈浼犳劅鍣� - this.dicDeviceModelIdEnum["MBU01/M-ZB.10"] = "1305-1300-60000";//绱ф�ユ寜閿瓺Z_PM100-V1.6 - - this.dicDeviceModelIdEnum["MSW01/M-ZB.10"] = "1306-1300-60000";//姘存蹈浼犳劅鍣� + this.dicDeviceModelIdEnum["MSG01/M-ZB.10"] = "1300-1200-60000";//鐕冩皵浼犳劅鍣� + this.dicDeviceModelIdEnum["MSDC01/M-ZB.10"] = "1301-1200-60000";//闂ㄧ獥纾佷紶鎰熷櫒 + this.dicDeviceModelIdEnum["MSS01/M-ZB.10"] = "1302-1200-60000";//鐑熼浘浼犳劅鍣� + this.dicDeviceModelIdEnum["MSPIR01/M-ZB.10"] = "1303-1200-60000";//绾㈠浼犳劅鍣� + this.dicDeviceModelIdEnum["MSW01/M-ZB.10"] = "1304-1200-60000";//姘存蹈浼犳劅鍣� + this.dicDeviceModelIdEnum["MBU01/M-ZB.10"] = "1305-1200-60000";//绱ф�ユ寜閿� + this.dicDeviceModelIdEnum["MGCD01/ZB.10"] = "1306-1200-60000";//鍚搁《鐕冩皵浼犳劅鍣� //=========鈽呪槄缁х數鍣ㄧ被(2300-2499)鈽呪槄========= this.dicDeviceModelIdEnum["MPR0310-ZB.10"] = "2300-2300-60001";//3璺户鐢靛櫒灏忔ā鍧� @@ -2698,9 +2718,8 @@ this.dicPictrueShard["ButtonPanel_SimpleFour"] = "ButtonPanel_Four";//绠�绾�4鎸夐敭闈㈡澘 娌跨敤 4鎸夐敭鐨勫浘鏍� this.dicPictrueShard["ButtonPanel_SimpleThree"] = "ButtonPanel_Three";//绠�绾�3鎸夐敭闈㈡澘 娌跨敤 3鎸夐敭鐨勫浘鏍� this.dicPictrueShard["ButtonPanel_SimpleTwo"] = "ButtonPanel_Two";//绠�绾�2鎸夐敭闈㈡澘 娌跨敤 2鎸夐敭鐨勫浘鏍� - this.dicPictrueShard["IntelligentLocks_Sone"] = "IntelligentLocks_H06C";//S-one鐨勯棬閿佸浘鐗囨部鐢℉06C鐨勫浘鏍� - this.dicPictrueShard["Relay_FangyueFreshAirModul"] = "Relay_ThreeLoad";//鏂规偊鏂伴灏忔ā鍧楀浘鐗囨部鐢�3璺户鐢靛櫒鐨勫浘鏍� - + this.dicPictrueShard["IntelligentLocks_Sone"] = "IntelligentLocks_H06C";//S-one鐨勯棬閿佸浘鐗� 娌跨敤 H06C鐨勫浘鏍� + this.dicPictrueShard["Relay_FangyueFreshAirModul"] = "Relay_ThreeLoad";//鏂规偊鏂伴灏忔ā鍧楀浘鐗� 娌跨敤 3璺户鐢靛櫒鐨勫浘鏍� } #endregion @@ -2841,6 +2860,10 @@ /// </summary> Sensor_EmergencyButton = 1305, /// <summary> + /// 鍚搁《鐕冩皵浼犳劅鍣� + /// </summary> + Sensor_CeilingGas = 1306, + /// <summary> /// 杩愬姩浼犳劅鍣� /// </summary> Sensor_Motion = -1306, @@ -2873,9 +2896,9 @@ /// <summary> /// 鏂规偊鏂伴灏忔ā鍧� 闀滃儚id锛�2310 /// </summary> - Relay_FangyueFreshAirModul = 2310, - - //=========鈽呪槄璋冨厜鍣ㄧ被(2500-2799)鈽呪槄========= + Relay_FangyueFreshAirModul = 2310, + + //=========鈽呪槄璋冨厜鍣ㄧ被(2500-2799)鈽呪槄========= /// <summary> /// 璋冨厜鍣� /// </summary> diff --git a/ZigbeeApp/Shared/Common/ZigbeeColor.cs b/ZigbeeApp/Shared/Common/ZigbeeColor.cs index 409e662..7086938 100755 --- a/ZigbeeApp/Shared/Common/ZigbeeColor.cs +++ b/ZigbeeApp/Shared/Common/ZigbeeColor.cs @@ -365,7 +365,9 @@ public uint LogicSecurity1Color = 0xFF35B87F; public uint LogicDelay1Color = 0xFFBF64FB; public uint LogicListWeekTextColor = 0xFF666666; - + public uint LogicTipColor = 0xFF333443; + public uint LogicTipTextColor= 0xFFcccccc; + public uint LogicEditTextBackgroundColor=0xFFD1D1D3; #endregion } } diff --git a/ZigbeeApp/Shared/Phone/Category/CategoryMainForm.cs b/ZigbeeApp/Shared/Phone/Category/CategoryMainForm.cs index 79e9432..5784b2d 100755 --- a/ZigbeeApp/Shared/Phone/Category/CategoryMainForm.cs +++ b/ZigbeeApp/Shared/Phone/Category/CategoryMainForm.cs @@ -248,7 +248,8 @@ //鑷姩鍖� else if (UserCenterResourse.ResidenceOption.CategoryPageSwitchIndex == 2) { - this.ShowAutotion(); + //鑷姩鍖栧姛鑳戒唬鐮佸叆鍙� + Device.Logic.SkipView.ShowAutotionView(functionSceneAutoBodyView); //闅愯棌妤煎眰 floorVisible = false; //鏄剧ず鍙充笂瑙掔殑鍔犲彿 @@ -315,7 +316,7 @@ functionSceneBodyView.Height = functionSceneAutoBodyView.Height - roomSwitchContr.Bottom; functionSceneAutoBodyView.AddChidren(functionSceneBodyView); - //鎵ц鍒濆鍖� + //鎵ц鍒濆鍖� roomSwitchContr.InitControl(); } @@ -506,56 +507,56 @@ //绐楀笜 if (device.Type == DeviceType.WindowCoveringDevice) { - cardContr = new Controls.DeviceCurtainRowControl(listView.rowSpace / 2); + cardContr = new Controls.DeviceCurtainRowControl(); } //缁х數鍣� else if (device.Type == DeviceType.OnOffOutput) { - cardContr = new Controls.DeviceRelayRowControl(listView.rowSpace / 2); + cardContr = new Controls.DeviceRelayRowControl(); } //绌烘皵寮�鍏� else if (device.Type == DeviceType.AirSwitch) { - cardContr = new Controls.DeviceAirSwitchRowControl(listView.rowSpace / 2); + cardContr = new Controls.DeviceAirSwitchRowControl(); } //绌鸿皟 else if (device.Type == DeviceType.Thermostat) { - cardContr = new Controls.DeviceAcRowControl(listView.rowSpace / 2); + cardContr = new Controls.DeviceAcRowControl(); } // 鏂伴 else if (device.Type == DeviceType.FreshAir) { - cardContr = new Controls.DeviceFreshAirRowControl(listView.rowSpace / 2); + cardContr = new Controls.DeviceFreshAirRowControl(); } //褰╃伅(璋冨厜鍣�) else if (device.Type == DeviceType.DimmableLight) { - cardContr = new Controls.DeviceColorLightRowControl(listView.rowSpace / 2); + cardContr = new Controls.DeviceColorLightRowControl(); } //浼犳劅鍣� else if (device.Type == DeviceType.IASZone) { - cardContr = new Controls.DeviceSensorRowControl(listView.rowSpace / 2); + cardContr = new Controls.DeviceSensorRowControl(); } //娓╂箍搴� else if (device.Type == DeviceType.TemperatureSensor) { - cardContr = new Controls.DeviceTemperatureRowControl(listView.rowSpace / 2); + cardContr = new Controls.DeviceTemperatureRowControl(); } //闂ㄩ攣 else if (device.Type == DeviceType.DoorLock) { - cardContr = new Controls.DeviceDoorLockRowControl(listView.rowSpace / 2); + cardContr = new Controls.DeviceDoorLockRowControl(); } //鏃犳硶璇嗗埆 else { - cardContr = new Controls.DeviceRowCommon(listView.rowSpace / 2); + cardContr = new Controls.DeviceRowCommon(); //娌℃湁鐘舵�佸姛鑳� cardContr.hadStatuFunction = false; } - + cardContr.chidrenYaxis = listView.rowSpace / 2; //鍒濆鍖栧崱鐗� listView.AddChidren(cardContr); cardContr.InitControl(device); @@ -639,7 +640,7 @@ listview2 = new VerticalListControl(); functionSceneBodyView.AddChidren(listview2); } - + foreach (var scene in listScene) { //鍦烘櫙鍗$墖鎺т欢 @@ -832,7 +833,8 @@ if (this.dicDeviceRowControl.ContainsKey(mainKeys) == true) { //鍒锋柊鍗$墖鐘舵�� - this.dicDeviceRowControl[mainKeys].SetRowOnlineStatu(report.IsOnline == 1); + bool bolOnline = LocalDevice.Current.CheckDeviceIsOnline(report); + this.dicDeviceRowControl[mainKeys].SetRowOnlineStatu(bolOnline); return; } @@ -1009,18 +1011,6 @@ /// 璁惧鍥炶矾涓婚敭 /// </summary> public List<string> listDeviceKeys = new List<string>(); - } - - #endregion - - #region 鈼� 鑷姩鍖朹_________________________ - - /// <summary> - /// 鑷姩鍖栧姛鑳戒唬鐮佸叆鍙� - /// </summary> - private void ShowAutotion() - { - Shared.Phone.Device.Logic.SkipView.ShowAutotionView(functionSceneAutoBodyView); } #endregion diff --git a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/Base/DeviceRowCommon.cs b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/Base/DeviceRowCommon.cs index afff6e7..54a7aec 100755 --- a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/Base/DeviceRowCommon.cs +++ b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/Base/DeviceRowCommon.cs @@ -61,8 +61,7 @@ /// <summary> /// 鏈垎閰嶇晫闈㈢殑璁惧閫夋嫨鎺т欢 /// </summary> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> - public DeviceRowCommon(int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) + public DeviceRowCommon() { this.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft); this.Width = Application.GetRealWidth(1022); @@ -100,11 +99,12 @@ //璁惧鍚嶅瓧 this.btnDeviceName = new NormalViewControl(600, 60, true); btnDeviceName.X = Application.GetRealWidth(181); - btnDeviceName.Y = Application.GetRealHeight(16) + this.chidrenYaxis; + //褰撴寚瀹氬疄闄呭潗鏍囨椂,杩欓噷闇�瑕佺殑鍋忕Щ閲忎负2鍊� + btnDeviceName.Y = Application.GetRealHeight(16) + this.chidrenYaxis * 2; btnDeviceName.Text = Common.LocalDevice.Current.GetDeviceEpointName(i_device); btnDeviceName.SelectedTextColor = Common.ZigbeeColor.Current.GXCTextSelectedColor; this.frameTable.AddChidren(btnDeviceName, ChidrenBindMode.BindEventOnly); - + if (this.hadStatuFunction == false) { //娌℃湁鐘舵�佸姛鑳�,鍒欐妸璁惧鍚嶅瓧鎺т欢涓� @@ -117,7 +117,8 @@ //鐘舵�� this.btnStatu = new NormalViewControl(600, 50, true); btnStatu.X = Application.GetRealWidth(181); - btnStatu.Y = Application.GetRealHeight(70) + this.chidrenYaxis; + //褰撴寚瀹氬疄闄呭潗鏍囨椂,杩欓噷闇�瑕佺殑鍋忕Щ閲忎负2鍊� + btnStatu.Y = Application.GetRealHeight(70) + this.chidrenYaxis * 2; btnStatu.TextSize = 10; btnStatu.TextColor = UserCenterColor.Current.TextGrayColor1; this.frameTable.AddChidren(btnStatu, ChidrenBindMode.BindEventOnly); @@ -329,7 +330,7 @@ //濡傛灉杩欎釜鍑芥暟琚噸鍐欑殑璇�,鍒欎唬琛ㄨ繖涓澶囨湁寮�鍏冲姛鑳� this.isHadOpenSwitch = false; //榛樿鐢ㄥ湪绾跨姸鎬佹潵鍒ゆ柇 - return i_device.IsOnline == 1; + return Common.LocalDevice.Current.CheckDeviceIsOnline(i_device); } @@ -357,7 +358,7 @@ } } else - { + { //濡傛灉杩欎釜璁惧鏀瑰彉浜嗘埧闂寸殑璇�,鍥炶皟鍗$墖琚垹闄ょ殑鍑芥暟 var nowRoom = HdlRoomLogic.Current.GetRoomByDevice(device); if (nowRoom == null || nowRoom.Id != HdlRoomLogic.Current.CurrentRoom.Id) diff --git a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceAcRowControl.cs b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceAcRowControl.cs index 8de2889..8674a16 100755 --- a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceAcRowControl.cs +++ b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceAcRowControl.cs @@ -14,14 +14,6 @@ #region 鈻� 鍒濆鍖朹____________________________ /// <summary> - /// 鍒嗙被鐣岄潰鐨勭┖璋冭澶囪鎺т欢 - /// </summary> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> - public DeviceAcRowControl(int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) - { - } - - /// <summary> /// 鍒濆鍖栨帶浠� /// </summary> /// <param name="i_device"></param> diff --git a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceAirSwitchRowControl.cs b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceAirSwitchRowControl.cs index 8bad345..d039131 100755 --- a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceAirSwitchRowControl.cs +++ b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceAirSwitchRowControl.cs @@ -14,14 +14,6 @@ #region 鈻� 鍒濆鍖朹____________________________ /// <summary> - /// 鍒嗙被鐣岄潰鐨勭┖姘斿紑鍏宠澶囪鎺т欢 - /// </summary> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> - public DeviceAirSwitchRowControl(int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) - { - } - - /// <summary> /// 鍒濆鍖栨帶浠� /// </summary> /// <param name="i_device"></param> diff --git a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceColorLightRowControl.cs b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceColorLightRowControl.cs index 97018dd..247ce4f 100755 --- a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceColorLightRowControl.cs +++ b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceColorLightRowControl.cs @@ -14,14 +14,6 @@ #region 鈻� 鍒濆鍖朹____________________________ /// <summary> - /// 鍒嗙被鐣岄潰鐨勫僵鐏�(璋冨厜鍣�)璁惧琛屾帶浠� - /// </summary> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> - public DeviceColorLightRowControl(int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) - { - } - - /// <summary> /// 鍒濆鍖栨帶浠� /// </summary> /// <param name="i_device"></param> diff --git a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceCurtainRowControl.cs b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceCurtainRowControl.cs index 72e5900..0d6511b 100755 --- a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceCurtainRowControl.cs +++ b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceCurtainRowControl.cs @@ -35,14 +35,6 @@ #region 鈻� 鍒濆鍖朹____________________________ /// <summary> - /// 鍒嗙被鐣岄潰鐨勭獥甯樿澶囪鎺т欢 - /// </summary> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> - public DeviceCurtainRowControl(int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) - { - } - - /// <summary> /// 鍒濆鍖栨帶浠� /// </summary> /// <param name="i_device"></param> diff --git a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceDoorLockRowControl.cs b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceDoorLockRowControl.cs index 69d12e9..cda4706 100755 --- a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceDoorLockRowControl.cs +++ b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceDoorLockRowControl.cs @@ -15,8 +15,7 @@ /// <summary> /// 鍒嗙被鐣岄潰鐨勯棬閿佽澶囪鎺т欢 /// </summary> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> - public DeviceDoorLockRowControl(int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) + public DeviceDoorLockRowControl() { //闂ㄩ攣鏆傛椂娌℃湁鐘舵�佸姛鑳� this.hadStatuFunction = false; diff --git a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceFreshAirRowControl.cs b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceFreshAirRowControl.cs index 41fd742..3329e2f 100755 --- a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceFreshAirRowControl.cs +++ b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceFreshAirRowControl.cs @@ -10,14 +10,6 @@ public class DeviceFreshAirRowControl : DeviceRowCommon { /// <summary> - /// 鍒嗙被鐣岄潰鐨勬柊椋庤澶囪鎺т欢 - /// </summary> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> - public DeviceFreshAirRowControl(int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) - { - } - - /// <summary> /// 鍒濆鍖栨帶浠� /// </summary> /// <param name="i_device"></param> diff --git a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceRelayRowControl.cs b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceRelayRowControl.cs index 8da00ad..34e1d60 100755 --- a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceRelayRowControl.cs +++ b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceRelayRowControl.cs @@ -14,14 +14,6 @@ #region 鈻� 鍒濆鍖朹____________________________ /// <summary> - /// 鍒嗙被鐣岄潰鐨勭户鐢靛櫒璁惧琛屾帶浠� - /// </summary> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> - public DeviceRelayRowControl(int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) - { - } - - /// <summary> /// 鍒濆鍖栨帶浠� /// </summary> /// <param name="i_device"></param> diff --git a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceSensorRowControl.cs b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceSensorRowControl.cs index ef2d347..8415787 100755 --- a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceSensorRowControl.cs +++ b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceSensorRowControl.cs @@ -12,14 +12,6 @@ { #region 鈻� 鍒濆鍖朹____________________________ - /// <summary> - /// 鍒嗙被鐣岄潰鐨勪紶鎰熷櫒璁惧琛屾帶浠� - /// </summary> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> - public DeviceSensorRowControl(int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) - { - } - #endregion } } diff --git a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceTemperatureRowControl.cs b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceTemperatureRowControl.cs index 3fa9a7c..587d275 100755 --- a/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceTemperatureRowControl.cs +++ b/ZigbeeApp/Shared/Phone/Category/Controls/DeviceRow/DeviceTemperatureRowControl.cs @@ -12,14 +12,6 @@ { #region 鈻� 鍒濆鍖朹____________________________ - /// <summary> - /// 鍒嗙被鐣岄潰鐨勬俯婀垮害浼犳劅鍣ㄨ澶囪鎺т欢 - /// </summary> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> - public DeviceTemperatureRowControl(int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) - { - } - #endregion #region 鈻� 鍙戦�佽幏鍙栫姸鎬佸懡浠__________________ diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/AddLogicPage.cs b/ZigbeeApp/Shared/Phone/Device/Logic/AddLogicPage.cs index dcc6be2..51f374d 100755 --- a/ZigbeeApp/Shared/Phone/Device/Logic/AddLogicPage.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/AddLogicPage.cs @@ -490,6 +490,7 @@ /// </summary> void TimeView() { + UserView.HomePage.Instance.ScrollEnabled = false; Dictionary<string, string> SecurityConditionsInfo = new Dictionary<string, string>(); #region ------鐣岄潰甯冨眬閮ㄥ垎 diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/LogicView/TipView.cs b/ZigbeeApp/Shared/Phone/Device/Logic/LogicView/TipView.cs new file mode 100755 index 0000000..0a63986 --- /dev/null +++ b/ZigbeeApp/Shared/Phone/Device/Logic/LogicView/TipView.cs @@ -0,0 +1,415 @@ +锘縰sing System; +using Shared.Common; + +namespace Shared.Phone.Device.Logic.LogicView +{ + public class TipView + { + /// <summary> + /// 纭畾妗� + /// </summary> + /// <param name="action"></param> + public static void ShowConfrimTip(Action action) + { + ///涓绘帶浠� + Dialog dialog = new Dialog(); + dialog.Show(); + ///鑳屾櫙鐨勭埗鎺т欢 + FrameLayout fLayout = new FrameLayout { BackgroundColor = ZigbeeColor.Current.LogicTranslucentColor }; + dialog.AddChidren(fLayout); + fLayout.MouseUpEventHandler += (sender, e) => + { + dialog.Close(); + }; + ///寮规鐖舵帶浠� + FrameLayout tipFLayout = new FrameLayout + { + X = Application.GetRealWidth(144), + Y = Application.GetRealHeight(706), + Width = Application.GetRealWidth(792), + Height = Application.GetRealHeight(351 + 127), + BackgroundColor = ZigbeeColor.Current.LogicBlankBackgroundColor, + Radius = (uint)Application.GetRealHeight(17) + }; + fLayout.AddChidren(tipFLayout); + ///涓婇潰蹇殑鐖舵帶浠� + FrameLayout topFrame = new FrameLayout + { + Width = Application.GetRealWidth(792), + Height = Application.GetRealHeight(351), + }; + tipFLayout.AddChidren(topFrame); + ///鎻愮ず鎺т欢 + Button tipBtn = new Button + { + TextID = R.MyInternationalizationString.Tip, + TextAlignment = TextAlignment.Center, + TextColor = ZigbeeColor.Current.LogicTipColor, + TextSize = 16, + Y = Application.GetRealHeight(69), + X = Application.GetRealWidth(150), + Height = Application.GetRealHeight(63), + Width = Application.GetRealWidth(492), + }; + topFrame.AddChidren(tipBtn); + ///鑷畾涔夋枃鏈帶浠� + Button tipTextBtn = new Button + { + Text = Language.StringByID(R.MyInternationalizationString.SetDoorLockNomallyOpen).Replace("{0}", "\r\n"), + TextAlignment = TextAlignment.Center, + TextColor = ZigbeeColor.Current.LogicTipTextColor, + TextSize = 14, + Y = tipBtn.Bottom + Application.GetRealHeight(35), + X = Application.GetRealWidth(60), + Height = Application.GetRealHeight(115), + Width = Application.GetRealWidth(674), + IsMoreLines = true, + }; + topFrame.AddChidren(tipTextBtn); + ///涓嬮潰蹇殑鐖舵帶浠� + FrameLayout bottomFrame = new FrameLayout + { + Y = topFrame.Bottom, + Width = Application.GetRealWidth(792), + Height = Application.GetRealHeight(127), + }; + tipFLayout.AddChidren(bottomFrame); + + ///鍙栨秷鎺т欢 + Button cancelBtn = new Button + { + TextAlignment = TextAlignment.Center, + TextColor = ZigbeeColor.Current.LogicBtnCancelColor, + TextSize = 14, + Height = Application.GetRealHeight(127), + Width = Application.GetRealWidth(397), + BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor, + TextID = R.MyInternationalizationString.cancel, + }; + bottomFrame.AddChidren(cancelBtn); + cancelBtn.SetCornerWithSameRadius(Application.GetRealHeight(17), HDLUtils.RectCornerBottomLeft); + ///纭鎺т欢 + Button okBtn = new Button + { + TextAlignment = TextAlignment.Center, + TextColor = ZigbeeColor.Current.LogicBlankBackgroundColor, + TextSize = 14, + X = cancelBtn.Right, + Height = Application.GetRealHeight(127), + Width = bottomFrame.Width - cancelBtn.Width, + BackgroundColor = ZigbeeColor.Current.LogicBtnTypeColor, + TextID = R.MyInternationalizationString.confrim, + }; + bottomFrame.AddChidren(okBtn); + okBtn.SetCornerWithSameRadius(Application.GetRealHeight(17), HDLUtils.RectCornerBottomRight); + ///鍙栨秷鐐瑰嚮浜嬩欢 + cancelBtn.MouseUpEventHandler += (sender, e) => + { + dialog.Close(); + }; + ///纭鐐瑰嚮浜嬩欢 + okBtn.MouseUpEventHandler += (sender, e) => + { + dialog.Close(); + action(); + }; + } + /// <summary> + /// 杈撳叆妗� + /// </summary> + /// <param name="_if">鏄惁闇�瑕佸彇娑堟寜閽�</param> + /// <param name="action"></param> + public static void ShowInputTip(bool _if, Action<string> action) + { + + ///涓绘帶浠� + Dialog dialog = new Dialog(); + dialog.Show(); + ///鑳屾櫙鐨勭埗鎺т欢 + FrameLayout fLayout = new FrameLayout { BackgroundColor = ZigbeeColor.Current.LogicTranslucentColor }; + dialog.AddChidren(fLayout); + fLayout.MouseUpEventHandler += (sender, e) => + { + dialog.Close(); + }; + ///寮规鐖舵帶浠� + FrameLayout tipFLayout = new FrameLayout + { + X = Application.GetRealWidth(144), + Y = Application.GetRealHeight(706), + Width = Application.GetRealWidth(792), + Height = Application.GetRealHeight(351 + 127), + BackgroundColor = ZigbeeColor.Current.LogicBlankBackgroundColor, + Radius = (uint)Application.GetRealHeight(17) + }; + fLayout.AddChidren(tipFLayout); + ///涓婇潰蹇殑鐖舵帶浠� + FrameLayout topFrame = new FrameLayout + { + Width = Application.GetRealWidth(792), + Height = Application.GetRealHeight(351), + }; + tipFLayout.AddChidren(topFrame); + ///鎻愮ず鎺т欢 + Button tipBtn = new Button + { + Y = Application.GetRealHeight(69), + X = Application.GetRealWidth(150), + Height = Application.GetRealHeight(63), + Width = Application.GetRealWidth(492), + TextID = R.MyInternationalizationString.invalidSetting, + TextAlignment = TextAlignment.Center, + TextColor = ZigbeeColor.Current.LogicTipColor, + TextSize = 16, + + }; + topFrame.AddChidren(tipBtn); + ///鏂囨湰1鎺т欢 + Button Text1Btn = new Button + { + Y = Application.GetRealHeight(187), + X = Application.GetRealWidth(50), + Height = Application.GetRealHeight(58), + Width = Application.GetRealWidth(242 + 94), + TextID = R.MyInternationalizationString.lockOpen, + TextAlignment = TextAlignment.CenterRight, + TextColor = ZigbeeColor.Current.LogicBtnCancelColor, + TextSize = 14, + + }; + topFrame.AddChidren(Text1Btn); + ///杈撳叆鏂囨湰妗� + EditText editTime = new EditText() + { + X = Application.GetRealWidth(409), + Y = Application.GetRealHeight(173), + Height = Application.GetRealHeight(81), + Width = Application.GetRealWidth(132), + Radius = (uint)Application.GetMinRealAverage(17), + BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor, + TextColor = ZigbeeColor.Current.LogicTextBlackColor, + TextAlignment = TextAlignment.Center, + TextSize = 14, + Text = "12", + IsNumberKeyboardType=true,//鍙緭鍏ユ暟瀛楃殑灞炴�� + }; + topFrame.AddChidren(editTime); + ///鏂囨湰2鎺т欢 + Button Text2Btn = new Button + { + Y = Application.GetRealHeight(187), + X = Application.GetRealWidth(564), + Height = Application.GetRealHeight(58), + Width = Application.GetRealWidth(51 + 100), + TextID = R.MyInternationalizationString.hour, + TextAlignment = TextAlignment.CenterLeft, + TextColor = ZigbeeColor.Current.LogicBtnCancelColor, + TextSize = 14, + + }; + topFrame.AddChidren(Text2Btn); + + ///涓嬮潰蹇殑鐖舵帶浠� + FrameLayout bottomFrame = new FrameLayout + { + Y = topFrame.Bottom, + Width = Application.GetRealWidth(792), + Height = Application.GetRealHeight(127), + }; + tipFLayout.AddChidren(bottomFrame); + ///鍙栨秷鎺т欢 + Button cancelBtn = new Button + { + TextAlignment = TextAlignment.Center, + TextColor = ZigbeeColor.Current.LogicBtnCancelColor, + TextSize = 14, + Height = Application.GetRealHeight(127), + Width = Application.GetRealWidth(397), + BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor, + TextID = R.MyInternationalizationString.cancel, + }; + bottomFrame.AddChidren(cancelBtn); + ///纭鎺т欢 + Button okBtn = new Button + { + TextAlignment = TextAlignment.Center, + TextColor = ZigbeeColor.Current.LogicBlankBackgroundColor, + TextSize = 14, + X = cancelBtn.Right, + Height = Application.GetRealHeight(127), + Width = bottomFrame.Width - cancelBtn.Width, + BackgroundColor = ZigbeeColor.Current.LogicBtnTypeColor, + TextID = R.MyInternationalizationString.confrim, + }; + bottomFrame.AddChidren(okBtn); + + if (_if) { + cancelBtn.X = Application.GetRealWidth(0); + cancelBtn.Width = Application.GetRealWidth(0); + okBtn.X = Application.GetRealWidth(0); + okBtn.Width = Application.GetRealWidth(792); + okBtn.SetCornerWithSameRadius(Application.GetRealHeight(17), HDLUtils.RectCornerBottomLeft | HDLUtils.RectCornerBottomRight); + } + else + { + cancelBtn.X = Application.GetRealWidth(0); + cancelBtn.Width = Application.GetRealWidth(397); + okBtn.X = Application.GetRealWidth(397); + okBtn.Width = bottomFrame.Width - cancelBtn.Width; + cancelBtn.SetCornerWithSameRadius(Application.GetRealHeight(17), HDLUtils.RectCornerBottomLeft); + okBtn.SetCornerWithSameRadius(Application.GetRealHeight(17), HDLUtils.RectCornerBottomRight); + + } + ///鍙栨秷鐐瑰嚮浜嬩欢 + cancelBtn.MouseUpEventHandler += (sender, e) => + { + dialog.Close(); + }; + ///纭鐐瑰嚮浜嬩欢 + okBtn.MouseUpEventHandler += (sender, e) => + { + if (string.IsNullOrEmpty(editTime.Text)) + { + ShowTip(Language.StringByID(R.MyInternationalizationString.timeNull),true); + return; + } + if (int.Parse(editTime.Text) < 1 || int.Parse(editTime.Text) > 12) + { ///闄愬埗杈撳叆鏁板瓧鑼冨洿; + string str = Language.StringByID(R.MyInternationalizationString.less) + Language.StringByID(R.MyInternationalizationString.or) + Language.StringByID(R.MyInternationalizationString.more); + ShowTip(str, true); + return; + + + } + dialog.Close(); + action(editTime.Text); + }; + + } + /// <summary> + /// 鎻愮ず妗� + /// </summary> + public static void ShowTip(string tipText,bool _if ) + { + ///涓绘帶浠� + Dialog dialog = new Dialog(); + dialog.Show(); + ///鑳屾櫙鐨勭埗鎺т欢 + FrameLayout fLayout = new FrameLayout { BackgroundColor = ZigbeeColor.Current.LogicTranslucentColor }; + dialog.AddChidren(fLayout); + fLayout.MouseUpEventHandler += (sender, e) => + { + dialog.Close(); + }; + ///寮规鐖舵帶浠� + FrameLayout tipFLayout = new FrameLayout + { + X = Application.GetRealWidth(144), + Y = Application.GetRealHeight(706), + Width = Application.GetRealWidth(792), + Height = Application.GetRealHeight(351 + 127), + BackgroundColor = ZigbeeColor.Current.LogicBlankBackgroundColor, + Radius = (uint)Application.GetRealHeight(17) + }; + fLayout.AddChidren(tipFLayout); + ///涓婇潰蹇殑鐖舵帶浠� + FrameLayout topFrame = new FrameLayout + { + Width = Application.GetRealWidth(792), + Height = Application.GetRealHeight(351), + }; + tipFLayout.AddChidren(topFrame); + ///鎻愮ず鎺т欢 + Button tipBtn = new Button + { + Y = Application.GetRealHeight(69), + X = Application.GetRealWidth(150), + Height = Application.GetRealHeight(63), + Width = Application.GetRealWidth(492), + TextID = R.MyInternationalizationString.tip, + TextAlignment = TextAlignment.Center, + TextColor = ZigbeeColor.Current.LogicTipColor, + TextSize = 16, + + }; + topFrame.AddChidren(tipBtn); + ///鏂囨湰鎺т欢 + Button Text1Btn = new Button + { + Y = Application.GetRealHeight(187), + X = Application.GetRealWidth(50), + Height = Application.GetRealHeight(58), + Width = Application.GetRealWidth(792-100), + Text= tipText, + TextAlignment = TextAlignment.Center, + TextColor = ZigbeeColor.Current.LogicBtnCancelColor, + TextSize = 14, + + }; + topFrame.AddChidren(Text1Btn); + + ///涓嬮潰蹇殑鐖舵帶浠� + FrameLayout bottomFrame = new FrameLayout + { + Y = topFrame.Bottom, + Width = Application.GetRealWidth(792), + Height = Application.GetRealHeight(127), + }; + tipFLayout.AddChidren(bottomFrame); + ///鍙栨秷鎺т欢 + Button cancelBtn = new Button + { + TextAlignment = TextAlignment.Center, + TextColor = ZigbeeColor.Current.LogicBtnCancelColor, + TextSize = 14, + Height = Application.GetRealHeight(127), + Width = Application.GetRealWidth(397), + BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor, + TextID = R.MyInternationalizationString.cancel, + }; + bottomFrame.AddChidren(cancelBtn); + ///纭鎺т欢 + Button okBtn = new Button + { + TextAlignment = TextAlignment.Center, + TextColor = ZigbeeColor.Current.LogicBlankBackgroundColor, + TextSize = 14, + X = cancelBtn.Right, + Height = Application.GetRealHeight(127), + Width = bottomFrame.Width - cancelBtn.Width, + BackgroundColor = ZigbeeColor.Current.LogicBtnTypeColor, + TextID = R.MyInternationalizationString.confrim, + }; + bottomFrame.AddChidren(okBtn); + + if (_if) + { + cancelBtn.X = Application.GetRealWidth(0); + cancelBtn.Width = Application.GetRealWidth(0); + okBtn.X = Application.GetRealWidth(0); + okBtn.Width = Application.GetRealWidth(792); + okBtn.SetCornerWithSameRadius(Application.GetRealHeight(17), HDLUtils.RectCornerBottomLeft | HDLUtils.RectCornerBottomRight); + } + else + { + cancelBtn.X = Application.GetRealWidth(0); + cancelBtn.Width = Application.GetRealWidth(397); + okBtn.X = Application.GetRealWidth(397); + okBtn.Width = bottomFrame.Width - cancelBtn.Width; + cancelBtn.SetCornerWithSameRadius(Application.GetRealHeight(17), HDLUtils.RectCornerBottomLeft); + okBtn.SetCornerWithSameRadius(Application.GetRealHeight(17), HDLUtils.RectCornerBottomRight); + + } + ///鍙栨秷鐐瑰嚮浜嬩欢 + cancelBtn.MouseUpEventHandler += (sender, e) => + { + dialog.Close(); + }; + ///纭鐐瑰嚮浜嬩欢 + okBtn.MouseUpEventHandler += (sender, e) => + { + dialog.Close(); + }; + } + } +} diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/SkipView.cs b/ZigbeeApp/Shared/Phone/Device/Logic/SkipView.cs index ca15989..e358680 100755 --- a/ZigbeeApp/Shared/Phone/Device/Logic/SkipView.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/SkipView.cs @@ -8,7 +8,7 @@ namespace Shared.Phone.Device.Logic { - public class SkipView + public class SkipView:FrameLayout { /// <summary> /// 鍏跺畠鐣岄潰璺宠繘鏉ョ殑鍏ュ彛 @@ -20,8 +20,10 @@ { case 0: { - //new涓�涓柊閫昏緫瀵硅薄锛� - //鏂板姝e父鑷姩鍖栧叆鍙� + + + ////new涓�涓柊閫昏緫瀵硅薄锛� + ////鏂板姝e父鑷姩鍖栧叆鍙� Common.Logic.CurrentLogic = new Common.Logic(); Common.Logic.CurrentLogic.IsEnable = 1;//榛樿涓哄紑 Common.Logic.CurrentLogic.LogicType = 0;//鏍囪閫昏緫绫诲瀷 @@ -60,28 +62,7 @@ doorLockLogicList.Show(); } break; - case 2: - { - ///Sone闂ㄩ攣涓诲叆鍙� - if (doorLock == null) - { - ///闃叉鎶涘紓甯� - doorLock = new DoorLock(); - } - Send.CurrentDoorLock = doorLock; - ///杩涙潵鍒锋柊涓�娆¤澶囧垪琛紱 - Common.Logic.LogicDviceList.Clear(); - if (Common.Logic.LogicDviceList.Count == 0) - { - Common.Logic.LogicDviceList.AddRange(LocalDevice.Current.listAllDevice.ToArray()); - } - var addLogicPage = new SoneLogicList(); - UserView.HomePage.Instance.AddChidren(addLogicPage); - UserView.HomePage.Instance.PageIndex += 1; - addLogicPage.Show(); - - } - break; + } } @@ -417,7 +398,7 @@ //瀹炵幇android鏄剧ず閫昏緫鍒楄〃鐨勫渾瑙�; fLayout.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft); logicRowlayout.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft); - + } i++; var logicnameBtn = new Button @@ -698,7 +679,7 @@ #endregion /// <summary> - /// 闂ㄩ攣鍙栨秷璁剧疆鐢ㄧ殑鏂规硶(鐩稿綋涓�涓叧闂父寮�妯″紡鎸夐挳,鍒嗙被-鑷姩鍖�-涓嶉渶瑕佹樉绀鸿鑷姩鍖�) + /// 闂ㄩ攣澶辨晥璁剧疆鐢ㄧ殑鏂规硶(鐩稿綋涓�涓叧闂父寮�妯″紡鎸夐挳,鍒嗙被-鑷姩鍖�-涓嶉渶瑕佹樉绀鸿鑷姩鍖�) /// </summary> /// <param name="timeVlaue">鏃堕棿鍊�</param> /// <param name="common">璁惧</param> @@ -776,6 +757,29 @@ } return logic; } + + ///<summary> + ///鍒犻櫎鎵�鏈夋椂鏁堟�ц嚜鍔ㄥ寲 + /// 杩斿洖鍊硷細true鎴愬姛;false澶辫触; + /// </summary> + public static async System.Threading.Tasks.Task<bool> GetLogicAll() + { + bool _if = false; + var Idlist = await Send.GetLogicId(3); + if (Idlist.Count != 0) + { + _if = true; + + for (int i = 0; i < Idlist.Count; i++) + { + int id = Idlist[i]; + //鏈潵鍙湁涓�鏉℃椂鏁堟�ц嚜鍔ㄥ寲锛� + //闃叉鐗规畩鎯呭喌,鎵惧埌灏卞垹闄ゆ帀; + Send.DelLogic(id); + } + } + return _if; + } + } } - diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/SoneLogicList.cs b/ZigbeeApp/Shared/Phone/Device/Logic/SoneLogicList.cs index 57a5a58..c083b5c 100755 --- a/ZigbeeApp/Shared/Phone/Device/Logic/SoneLogicList.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/SoneLogicList.cs @@ -8,12 +8,23 @@ { public class SoneLogicList : FrameLayout { + /// <summary> + /// 缁橲one闂ㄩ攣寰愭鏇存柊鐣岄潰鐢ㄧ殑 + /// </summary> + /// public SoneLogicList() { Tag = "SoneLogic"; } + /// <summary> + /// + /// </summary> + /// <param name="action">缁欏緪姊呭埛鏂扮晫闈㈢敤鐨�</param> + /// <param name="bool_If"></param> + public Action<bool> action; public async void Show() { + #region 鐣岄潰鐨勫竷灞�浠g爜 UserView.HomePage.Instance.ScrollEnabled = false;//閿佷綇宸︽粦 TopView view = new TopView(); @@ -22,7 +33,13 @@ view.clickBtn.MouseDownEventHandler += (sender, e) => { UserView.HomePage.Instance.ScrollEnabled = true; + if (action != null) + { + action(Send.CurrentDoorLock.IsDoorLockNormallyMode); + } + RemoveFromParent(); + }; var middle = new FrameLayout @@ -54,10 +71,11 @@ SelectedImagePath = "ZigeeLogic/openMode.png", }; fLayout.AddChidren(modeIconBtn); - var logic = await SkipView.GetLogicIfon(); - if (logic != null) - { + if (Send.CurrentDoorLock.IsDoorLockNormallyMode) + { + /// 鏌ユ壘鏄惁瀛樺湪鏃舵晥鎬ц嚜鍔ㄥ寲锛涙湁鐨勮瘽灏辫繑鍥炶嚜鍔ㄥ寲瀵硅薄; + var logic = await SkipView.GetLogicIfon(); fLayout.Height = Application.GetRealHeight(780);//鏀瑰彉楂樺害 modeIconBtn.IsSelected = true;//鏀瑰彉鍥炬爣鐘舵�� @@ -82,26 +100,33 @@ TextSize = 16, }; openModeFl.AddChidren(closeBtn); - closeBtn.MouseUpEventHandler += (sender,e) => { - - - var alert = new UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Confirm, - Language.StringByID(MyInternationalizationString.doyouwanttodelete), - Language.StringByID(MyInternationalizationString.confrim)); - alert.Show(); - alert.ConfirmClickEvent += () => + closeBtn.MouseUpEventHandler += async (sender, e) => + { + var result = await UserCenter.DoorLock.DoorLockCommonInfo.DelNormallyOpenMode(Send.CurrentDoorLock); + if (result) { - Send.DelLogic(logic.LogicId); + if (logic != null) + { + ///鏈夊彲鑳藉彧鏈夊父寮�妯″紡锛屾病鏈夋椂鏁堟�ц嚜鍔ㄥ寲 + ///娌℃湁鍒ゆ柇鐨勮瘽锛岄�昏緫浼氫负绌猴紝鎶涘嚭寮傚父; + Send.DelLogic(logic.LogicId); + } + Send.CurrentDoorLock.IsDoorLockNormallyMode = false; this.RemoveFromParent(); var soneLogicList = new SoneLogicList(); UserView.HomePage.Instance.AddChidren(soneLogicList); UserView.HomePage.Instance.PageIndex += 1; soneLogicList.Show(); - }; + } + else + { + ///鎻愮ず澶辫触 + } + }; ///鏄剧ず澶辨晥璁剧疆鏃堕棿鏂囨湰鎺т欢 - var timeTextBtn= new Button + var timeTextBtn = new Button { Y = Application.GetRealHeight(127 + 69), X = Application.GetRealWidth(225), @@ -111,19 +136,23 @@ TextColor = ZigbeeColor.Current.LogicTextBlackColor, Text = "鏃舵晥鎬у父寮�璁剧疆12:20", }; - openModeFl.AddChidren(timeTextBtn); + if (logic != null) + { + ///鏈夋椂鏁堟�у父寮�鎵嶆樉绀烘椂闂存潯浠舵枃鏈� + openModeFl.AddChidren(timeTextBtn); + } ///鏃舵晥鎬у父寮�鍙湁涓�涓潯浠�; try { var y = DateTime.Now.ToString("yy");//閭d竴骞� var m = DateTime.Now.ToString("mm");//閭d竴鏈� var d = DateTime.Now.ToString("dd");//閭d竴澶� - var h =int.Parse(DateTime.Now.ToString("HH"));//褰撳墠绯荤粺鏃堕棿 + var h = int.Parse(DateTime.Now.ToString("HH"));//褰撳墠绯荤粺鏃堕棿 var me = DateTime.Now.ToLongDateString(); var timeInt = int.Parse(logic.Conditions[0]["DoorLockOpenDelayTime"]); - int dayInt = (h + timeInt)/ 24;//绠楀嚭鍑犲ぉ鍚庢墽琛� + int dayInt = (h + timeInt) / 24;//绠楀嚭鍑犲ぉ鍚庢墽琛� int hour = (h + timeInt) % 24;//绠楀嚭鍑犲ぉ鍚庨偅涓椂闂存墽琛� - timeTextBtn.Text = "鏃舵晥鎬у父寮�璁剧疆" + y + "骞�" + m + "鏈�" + d + dayInt + "鍙�" + timeInt + "鏃�"+ "鎵ц"; + timeTextBtn.Text = "鏃舵晥鎬у父寮�璁剧疆" + y + "骞�" + m + "鏈�" + d + dayInt + "鍙�" + timeInt + "鏃�" + "鎵ц"; } catch { } @@ -155,8 +184,8 @@ TextSize = 15, TextColor = ZigbeeColor.Current.LogicTextBlackColor, TextAlignment = TextAlignment.CenterLeft, - // Text = "鏃舵晥鎬у父寮�璁剧疆", - TextID=MyInternationalizationString.timeSetSone, + // Text = "鏃舵晥鎬у父寮�璁剧疆", + TextID = MyInternationalizationString.timeSetSone, }; modeFl.AddChidren(modeTextBtn); ///涓嬩竴绾ц彍鍗曞浘鏍囨帶浠� @@ -170,20 +199,54 @@ }; modeFl.AddChidren(nextIconBtn); - var clickBtn = new Button - { - Y = Application.GetRealHeight(478), - X = Application.GetRealWidth(58), - Height = Application.GetRealHeight(138), - Width = Application.GetRealWidth(1022), - }; - modeFl.AddChidren(clickBtn); - clickBtn.MouseUpEventHandler += async (sender, e) => - { - var d = await SkipView.LockAddModifyLogic(12, Send.CurrentDoorLock); - }; + nextIconBtn.MouseUpEventHandler += (sender, e) => + { + LogicView.TipView.ShowConfrimTip(() => + {///鍐嶆纭 + LogicView.TipView.ShowInputTip(true, async (str) => + {///纭鍙戦�佸懡浠� + try + { + ///xm + var result = await UserCenter.DoorLock.DoorLockCommonInfo.SetNormallyOpenModeFuncAsync(Send.CurrentDoorLock); + if (!result) + { + Application.RunOnMainThread(() => + { + ///鎻愮ず澶辫触 + }); + return; + } + else + { + ///鍥犱负鏈夊父寮�妯″紡涓嬫墠鍙互鍒涘缓澶辨晥閫昏緫锛� + SkipView.GetLogicAll();//鍒犻櫎涔嬪墠鎵�鏈夊け鏁堥�昏緫 + var addResult = await SkipView.LockAddModifyLogic(int.Parse(str), Send.CurrentDoorLock);//娣诲姞涓�鏉″け鏁堥�昏緫 + if (!addResult) + { + ///鎻愮ず澶辫触 + return; + } + Send.CurrentDoorLock.IsDoorLockNormallyMode = true; + this.RemoveFromParent(); + var soneLogicList = new SoneLogicList(); + UserView.HomePage.Instance.AddChidren(soneLogicList); + UserView.HomePage.Instance.PageIndex += 1; + soneLogicList.Show(); + + } + } + catch + { + + } + }); + + }); + + }; } #endregion @@ -234,7 +297,7 @@ addLogicfL.AddChidren(addIconBtn); addIconBtn.MouseUpEventHandler += (sender, e) => { - + //璇诲彇绯荤粺褰撳墠鏃堕棿锛氭椂-鍒� //璇诲彇绯荤粺褰撳墠鏃堕棿锛氭椂-鍒� var h = DateTime.Now.ToString("HH"); @@ -337,11 +400,7 @@ private void RefreshView(VerticalRefreshLayout verticalRefresh) { verticalRefresh.RemoveAll(); - for (int i = 0; i < 6; i++) - { - Common.Logic.SoneLogicList.Add(new Common.Logic { LogicName = i.ToString() }); - } foreach (var logic in Common.Logic.SoneLogicList) { #region 鑷姩鍖栧竷灞�View diff --git a/ZigbeeApp/Shared/Phone/Login/AccountLoginForm.cs b/ZigbeeApp/Shared/Phone/Login/AccountLoginForm.cs index 1def82e..859f605 100755 --- a/ZigbeeApp/Shared/Phone/Login/AccountLoginForm.cs +++ b/ZigbeeApp/Shared/Phone/Login/AccountLoginForm.cs @@ -189,10 +189,10 @@ var btnTiyan = new NormalViewControl(300, 100, true); btnTiyan.Y = btnLoginByCode.Y; btnTiyan.TextAlignment = TextAlignment.Center; - btnTiyan.TextColor = UserCenterColor.Current.TextGrayColor3; + btnTiyan.TextColor = UserCenterColor.Current.TextOrangeColor; btnTiyan.TextSize = 12; btnTiyan.Gravity = Gravity.CenterHorizontal; - btnTiyan.Text = "娓稿浣撻獙"; + btnTiyan.TextID = R.MyInternationalizationString.uExperienceAccount; frameMidBack.AddChidren(btnTiyan); btnTiyan.ButtonClickEvent += (sender, e) => { @@ -637,14 +637,10 @@ //瀛椾綋鎬诲搴� int fontWidth = 0; int btnWidth = 0; -#if Android + //鐗规畩鐨勮宸�� - int speceilValue = Application.GetRealWidth(20); -#endif -#if iOS - //鐗规畩鐨勮宸�� - int speceilValue = Application.GetRealWidth(10); -#endif + int speceilValue = ControlCommonResourse.TwoTextSpace; + //鎴戝凡闃呰骞跺悓鎰� var btnMsg1 = new NormalViewControl(100, 90, true); btnMsg1.Gravity = Gravity.CenterVertical; diff --git a/ZigbeeApp/Shared/Phone/MainPage/Controls/DeviceCard/Base/DeviceCardCommon.cs b/ZigbeeApp/Shared/Phone/MainPage/Controls/DeviceCard/Base/DeviceCardCommon.cs index fbc388a..721b112 100755 --- a/ZigbeeApp/Shared/Phone/MainPage/Controls/DeviceCard/Base/DeviceCardCommon.cs +++ b/ZigbeeApp/Shared/Phone/MainPage/Controls/DeviceCard/Base/DeviceCardCommon.cs @@ -296,7 +296,7 @@ //濡傛灉杩欎釜鍑芥暟琚噸鍐欑殑璇�,鍒欎唬琛ㄨ繖涓澶囨湁寮�鍏冲姛鑳� this.isHadOpenSwitch = false; //榛樿鐢ㄥ湪绾跨姸鎬佹潵鍒ゆ柇 - return i_device.IsOnline == 1; + return Common.LocalDevice.Current.CheckDeviceIsOnline(i_device); } diff --git a/ZigbeeApp/Shared/Phone/MainPage/Controls/DeviceSelectUnallocatedControl.cs b/ZigbeeApp/Shared/Phone/MainPage/Controls/DeviceSelectUnallocatedControl.cs index aa87c60..a778781 100755 --- a/ZigbeeApp/Shared/Phone/MainPage/Controls/DeviceSelectUnallocatedControl.cs +++ b/ZigbeeApp/Shared/Phone/MainPage/Controls/DeviceSelectUnallocatedControl.cs @@ -64,7 +64,7 @@ /// <summary> /// 鏈垎閰嶇晫闈㈢殑璁惧閫夋嫨鎺т欢 /// </summary> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> + /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(銆愬垪琛ㄦ帶浠剁殑rowSpace/2銆戝嵆鍙�,涓嶆噦榛樿涓�0鍗冲彲)</param> public DeviceSelectUnallocatedControl(int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) { this.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft); diff --git a/ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs b/ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs index c091f84..cb99f85 100644 --- a/ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs +++ b/ZigbeeApp/Shared/Phone/MainPage/HomeMainPageForm.cs @@ -1143,7 +1143,7 @@ { //绌鸿皟鏄壒娈婄殑,瀹冪殑寮�鍏虫槸灞炴�т笂鎶ユ潵鐫�.宸茬粡鎺ユ敹鍒扮綉鍏崇殑鍙嶉 this.dicDeviceCardControl[mainKeys].SetHadGetResponeResultStatu(); - } + } if (report.DeviceStatusReport.CluterID == 514 && report.DeviceStatusReport.AttriBute[0].AttributeId == 0) { //鏂伴鏄壒娈婄殑,瀹冪殑寮�鍏虫槸灞炴�т笂鎶ユ潵鐫�.宸茬粡鎺ユ敹鍒扮綉鍏崇殑鍙嶉 @@ -1163,7 +1163,8 @@ if (this.dicDeviceCardControl.ContainsKey(mainKeys) == true) { //鍒锋柊鍗$墖鐘舵�� - this.dicDeviceCardControl[mainKeys].SetCardOnlineStatu(report.IsOnline == 1); + bool bolOnline = Common.LocalDevice.Current.CheckDeviceIsOnline(report); + this.dicDeviceCardControl[mainKeys].SetCardOnlineStatu(bolOnline); return; } diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/BelongAreaControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/BelongAreaControl.cs index 267b219..4bd0902 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/BelongAreaControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/BelongAreaControl.cs @@ -47,7 +47,7 @@ /// <summary> /// 鎵�灞炲尯鍩熺殑鎺т欢 /// </summary> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> + /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(銆愬垪琛ㄦ帶浠剁殑rowSpace/2銆戝嵆鍙�,涓嶆噦榛樿涓�0鍗冲彲)</param> public BelongAreaControl(int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) { //鍒濆鍖栨暟鎹� diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/NormalSelectControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/NormalSelectControl.cs index dbc3daa..63d9ce0 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/NormalSelectControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/NormalSelectControl.cs @@ -58,7 +58,7 @@ /// 鍋氭垚涓�涓畝鍗曠殑閫夋嫨鎺т欢 /// </summary> /// <param name="i_text">鏄剧ず鏂囨湰</param> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> + /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(銆愬垪琛ㄦ帶浠剁殑rowSpace/2銆戝嵆鍙�,涓嶆噦榛樿涓�0鍗冲彲)</param> public NormalSelectControl(string i_text, int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) { this.textValue = i_text; diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SafetySensorStatuControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SafetySensorStatuControl.cs index 01d604f..1abe160 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SafetySensorStatuControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SafetySensorStatuControl.cs @@ -81,7 +81,7 @@ btnOnline.X = this.Width - Application.GetRealWidth(200 + 46); btnOnline.Y = btnDeviceName.Y; btnOnline.TextAlignment = TextAlignment.CenterRight; - this.SetOnlineStatu(device.IsOnline == 1); + this.SetOnlineStatu(Common.LocalDevice.Current.CheckDeviceIsOnline(device)); this.AddChidren(btnOnline); } diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceObjectControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceObjectControl.cs index 9a6ce1c..fcecdb3 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceObjectControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceObjectControl.cs @@ -62,7 +62,7 @@ /// 鍋氭垚涓�涓樉绀鸿澶囩被鍨�+璁惧MAC澶囨敞鐨凴owLayout /// </summary> /// <param name="i_deviceMac">璁惧鐨凪ac鍦板潃</param> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> + /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(銆愬垪琛ㄦ帶浠剁殑rowSpace/2銆戝嵆鍙�,涓嶆噦榛樿涓�0鍗冲彲)</param> public DeviceObjectControl(string i_deviceMac, int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) { this.deviceMac = i_deviceMac; @@ -96,7 +96,7 @@ frameTable.AddBottomLine(); //璁剧疆鍦ㄧ嚎鐘舵�佺殑鐗规晥 - this.isOnline = listDevice[0].IsOnline == 1; + this.isOnline = Common.LocalDevice.Current.CheckDeviceIsOnline(listDevice[0]); } #endregion @@ -144,7 +144,7 @@ //璁惧鎴块棿 btnDeviceRoom.Text = Common.LocalDevice.Current.GeteRealDeviceRoomName(listDevice[0]); //璁剧疆鍦ㄧ嚎鐘舵�佺殑鐗规晥 - this.isOnline = listDevice[0].IsOnline == 1; + this.isOnline = Common.LocalDevice.Current.CheckDeviceIsOnline(listDevice[0]); } diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceRoomControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceRoomControl.cs index f6e6474..9dcce0d 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceRoomControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceRoomControl.cs @@ -61,7 +61,7 @@ /// 鍋氭垚涓�涓樉绀鸿澶囧洖璺�+鎴块棿鐨凴owLayout /// </summary> /// <param name="i_device">璁惧瀵硅薄</param> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> + /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(銆愬垪琛ㄦ帶浠剁殑rowSpace/2銆戝嵆鍙�,涓嶆噦榛樿涓�0鍗冲彲)</param> public DeviceRoomControl(CommonDevice i_device, int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) { this.mainKey = Common.LocalDevice.Current.GetDeviceMainKeys(i_device); diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceSelectControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceSelectControl.cs index bcd071a..1059d0e 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceSelectControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceSelectControl.cs @@ -63,7 +63,7 @@ /// </summary> /// <param name="i_device">璁惧瀵硅薄</param> /// <param name="autoSelect">褰撶偣鍑绘鎺т欢鏃�,鏄惁鑷姩璁剧疆閫夋嫨鐘舵��</param> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> + /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(銆愬垪琛ㄦ帶浠剁殑rowSpace/2銆戝嵆鍙�,涓嶆噦榛樿涓�0鍗冲彲)</param> public DeviceSelectControl(CommonDevice i_device, bool autoSelect, int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) { this.MainKeys = Common.LocalDevice.Current.GetDeviceMainKeys(i_device); diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceSimpleSelectControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceSimpleSelectControl.cs index 369ccba..4c36649 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceSimpleSelectControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceSimpleSelectControl.cs @@ -63,7 +63,7 @@ /// </summary> /// <param name="i_device">璁惧瀵硅薄</param> /// <param name="autoSelect">褰撶偣鍑绘鎺т欢鏃�,鏄惁鑷姩璁剧疆閫夋嫨鐘舵��</param> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> + /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(銆愬垪琛ㄦ帶浠剁殑rowSpace/2銆戝嵆鍙�,涓嶆噦榛樿涓�0鍗冲彲)</param> public DeviceSimpleSelectControl(CommonDevice i_device, bool autoSelect, int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) { this.MainKeys = Common.LocalDevice.Current.GetDeviceMainKeys(i_device); diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/GatewayRowControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/GatewayRowControl.cs index dbf5e20..b61989d 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/GatewayRowControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/GatewayRowControl.cs @@ -71,7 +71,7 @@ /// 鍋氭垚涓�涓樉绀虹綉鍏充俊鎭殑RowLayout,娣诲姞姝ゆ帶浠跺埌瀹瑰櫒鍚庯紝璋冪敤銆怚nitControl()銆戝畬鎴愬垵濮嬪寲 /// </summary> /// <param name="i_zbGateway">缃戝叧瀵硅薄</param> - /// <param name="ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> + /// <param name="ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(銆愬垪琛ㄦ帶浠剁殑rowSpace/2銆戝嵆鍙�,涓嶆噦榛樿涓�0鍗冲彲)</param> public GatewayRowControl(ZbGateway i_zbGateway, int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) { this.zbGatewayId = HdlGatewayLogic.Current.GetGatewayId(i_zbGateway); diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameCaptionInputControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameCaptionInputControl.cs index 261a095..fabd33b 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameCaptionInputControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameCaptionInputControl.cs @@ -37,7 +37,7 @@ /// </summary> /// <param name="i_caption">鏍囬鏂囨湰</param> /// <param name="i_text">杈撳叆妗嗙殑鍊�</param> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> + /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(銆愬垪琛ㄦ帶浠剁殑rowSpace/2銆戝嵆鍙�,涓嶆噦榛樿涓�0鍗冲彲)</param> public FrameCaptionInputControl(string i_caption, string i_text, int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) { this.UseClickStatu = false; diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameCaptionViewControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameCaptionViewControl.cs index 7038321..9844dcb 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameCaptionViewControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameCaptionViewControl.cs @@ -37,7 +37,7 @@ /// </summary> /// <param name="i_caption">鏍囬鏂囨湰</param> /// <param name="i_text">鏄剧ず鏂囨湰鐨勫��</param> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> + /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(銆愬垪琛ㄦ帶浠剁殑rowSpace/2銆戝嵆鍙�,涓嶆噦榛樿涓�0鍗冲彲)</param> public FrameCaptionViewControl(string i_caption, string i_text, int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) { btnCaption = new NormalViewControl(270, 58, true); diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameLayoutStatuControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameLayoutStatuControl.cs index c1b169c..3ba4da1 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameLayoutStatuControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameLayoutStatuControl.cs @@ -54,7 +54,7 @@ /// <summary> /// 鍋氭垚涓�涓偣鍑诲悗鑳藉鏄剧ず鐐瑰嚮鐘舵�佺殑鎺т欢 /// </summary> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> + /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(銆愬垪琛ㄦ帶浠剁殑rowSpace/2銆戝嵆鍙�,涓嶆噦榛樿涓�0鍗冲彲)</param> public FrameLayoutStatuControl(int i_ChidrenYaxis = 0) { this.chidrenYaxis = i_ChidrenYaxis; diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs index 9fff52d..8905b4b 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs @@ -42,7 +42,7 @@ /// <summary> /// 鍋氭垚涓�涓猂owLayout鍨嬬殑FrameLayout /// </summary> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> + /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(銆愬垪琛ㄦ帶浠剁殑rowSpace/2銆戝嵆鍙�,涓嶆噦榛樿涓�0鍗冲彲)</param> public FrameRowControl(int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) { this.Height = ControlCommonResourse.ListViewRowHeight; @@ -331,7 +331,8 @@ } var contr = this.AddLeftCaption(i_caption, i_width, Application.GetRealHeight(60), false); contr.TextSize = 15; - contr.Y = Application.GetRealHeight(12) + this.chidrenYaxis; + //褰撴寚瀹氬疄闄呭潗鏍囨椂,杩欓噷闇�瑕佺殑鍋忕Щ閲忎负2鍊� + contr.Y = Application.GetRealHeight(12) + this.chidrenYaxis * 2; this.AddChidren(contr, ChidrenBindMode.BindEventOnly); return contr; @@ -355,7 +356,8 @@ i_width = Application.GetRealWidth(i_width); } var contr = this.AddLeftCaption(i_caption, i_width, Application.GetRealHeight(50), false); - contr.Y = Application.GetRealHeight(72) + this.chidrenYaxis; + //褰撴寚瀹氬疄闄呭潗鏍囨椂,杩欓噷闇�瑕佺殑鍋忕Щ閲忎负2鍊� + contr.Y = Application.GetRealHeight(72) + this.chidrenYaxis * 2; contr.TextSize = 12; contr.TextColor = UserCenterColor.Current.TextGrayColor1; this.AddChidren(contr, ChidrenBindMode.BindEventOnly); diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/DeviceFunctionTypeRowControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/DeviceFunctionTypeRowControl.cs index 20ed70e..25e2cdc 100644 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/DeviceFunctionTypeRowControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/DeviceFunctionTypeRowControl.cs @@ -30,7 +30,7 @@ /// </summary> public bool SetCanSelect { - set + set { m_SetCanSelect = value; } @@ -52,7 +52,7 @@ /// 璁惧鍔熻兘绫诲瀷鐨勮嚜瀹氫箟琛屾帶浠�(閫夋嫨鍔熻兘涔嬪悗,鏃犳潯浠剁洿鎺ュ彉鏇寸被鍨�) /// </summary> /// <param name="i_device">璁惧鐨勫璞�</param> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> + /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(銆愬垪琛ㄦ帶浠剁殑rowSpace/2銆戝嵆鍙�,涓嶆噦榛樿涓�0鍗冲彲)</param> public DeviceFunctionTypeRowControl(CommonDevice i_device, int i_ChidrenYaxis = 0) : base("", "", i_ChidrenYaxis) { this.device = i_device; diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs index 668b90c..0998463 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/RowLayoutControl.cs @@ -41,7 +41,7 @@ /// <summary> /// 鍋氭垚涓�涓偣鍑昏兘澶熸樉绀洪�変腑鐘舵�佽儗鏅壊鐨凴owLayout(鎷ユ湁妗屽竷) /// </summary> - /// <param name="ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> + /// <param name="ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(銆愬垪琛ㄦ帶浠剁殑rowSpace/2銆戝嵆鍙�,涓嶆噦榛樿涓�0鍗冲彲)</param> public RowLayoutControl(int i_ChidrenYaxis = 0) { this.LineColor = UserCenterColor.Current.Transparent; diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/SceneControls/SceneRoomControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/SceneControls/SceneRoomControl.cs index f9d213d..a1719ae 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/SceneControls/SceneRoomControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/SceneControls/SceneRoomControl.cs @@ -39,7 +39,7 @@ /// </summary> /// <param name="i_SceneId">鍦烘櫙ID</param> /// <param name="i_SceneName">鍦烘櫙鍚�</param> - /// <param name="i_chidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> + /// <param name="i_chidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(銆愬垪琛ㄦ帶浠剁殑rowSpace/2銆戝嵆鍙�,涓嶆噦榛樿涓�0鍗冲彲)</param> public SceneRoomControl(int i_SceneId, string i_SceneName, int i_chidrenYaxis) : base(i_chidrenYaxis) { this.SceneId = i_SceneId; diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/SceneControls/SceneSimpleSelectControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/SceneControls/SceneSimpleSelectControl.cs index c44566f..4c2b4d5 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/SceneControls/SceneSimpleSelectControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/SceneControls/SceneSimpleSelectControl.cs @@ -65,7 +65,7 @@ /// 鍋氭垚涓�涓畝鍗曞満鏅�夋嫨鐨勮鎺т欢(瀹冧細鑷姩璁剧疆閫夋嫨鐘舵��) /// </summary> /// <param name="i_Scene">鍦烘櫙瀵硅薄</param> - /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param> + /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(銆愬垪琛ㄦ帶浠剁殑rowSpace/2銆戝嵆鍙�,涓嶆噦榛樿涓�0鍗冲彲)</param> public SceneSimpleSelectControl(Common.SceneUI i_Scene, int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis) { this.SceneId = i_Scene.Id; diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDevicePanelLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDevicePanelLogic.cs index e2bd15a..858ce2a 100644 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDevicePanelLogic.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDevicePanelLogic.cs @@ -139,8 +139,8 @@ //澶囦唤璁惧 await HdlGatewayLogic.Current.UpLoadDeviceBackupDataToGateway(panel, GatewayBackupEnum.A骞叉帴鐐归鑹茶皟鑺�, colorData); return true; - } - + } + /// <summary> /// 璁剧疆闈㈡澘棰滆壊 /// </summary> @@ -170,8 +170,8 @@ //澶囦唤璁惧 await HdlGatewayLogic.Current.UpLoadDeviceBackupDataToGateway(panel, GatewayBackupEnum.A骞叉帴鐐归鑹茶皟鑺�, colorData); return true; - } - + } + #endregion #region 鈻� 浜害璋冭妭___________________________ @@ -302,7 +302,7 @@ /// 閰嶇疆鎺ヨ繎浼犳劅 /// </summary> /// <param name="device">璁惧瀵硅薄</param> - /// <para>sensorEnable:浼犳劅鍣ㄤ娇鑳�</para> + /// <para>sensorEnable:浼犳劅鍣ㄤ娇鑳�</para> /// <returns></returns> public async Task<bool> SetProximitySensorStatus(CommonDevice device, bool sensorEnable) { @@ -576,15 +576,15 @@ /// </summary> /// <param name="panel">鎸夐敭闈㈡澘鐨勬煇涓�涓洖璺�</param> /// <param name="parameter"> - /// <para>鏂规硶1锛氬綋int[]浼犵┖锛岃繑鍥炲�兼槸鈥滈潰鏉垮叿鏈夌殑鍔熻兘澶х被,鍗宠繑鍥炩�滅涓�绾у埆銆�1024:鐏被锛�256:鎸夐敭绫伙紝768:PIR绫�</para> + /// <para>鏂规硶1锛氬綋int[]浼犵┖锛岃繑鍥炲�兼槸鈥滈潰鏉垮叿鏈夌殑鍔熻兘澶х被,鍗宠繑鍥炩�滅涓�绾у埆銆�1024:鐏被锛�256:鎸夐敭绫伙紝768:PIR绫�</para> /// <para>鏂规硶2锛氥�佸綋int[]鍊间负绗竴绾у埆PrivateFuncTypeFir涓�夋嫨涓�涓��</para> /// <para>杩斿洖鍊兼槸鈥滈潰鎸夐敭鍙戦�佸姛鑳界被鈥濓紝鍗宠繑鍥炩�滅浜岀骇鍒��</para> /// <para>100:Switch,寮�鍏筹紙鎸夐敭绫伙級;200:Dimmer,璋冨厜锛堟寜閿被锛�;300:Curtain,绐楀笜锛堟寜閿被锛�</para> /// <para>0:EnergySavingMode,鑺傝兘妯″紡锛堢伅绫伙級;1:SleepMode,鐫$湢妯″紡锛堢伅绫伙級;100:WhiteBalance,鐧藉钩琛★紙鐏被锛�;101:RGBColor,RGB鎸囩ず鐏鑹诧紙鐏被锛�;102:RGBLevel,RGB鎸囩ず鐏寒搴︼紙鐏被锛�</para> /// <para>鏂规硶3锛氬綋int[]鍊间负绗竴绾у埆PrivateFuncTypeFir涓�夋嫨涓�涓紝鎺ョ潃鍐嶉�夌浜岀骇鍒玃rivateFunTypeSec涓�夋嫨涓�涓� </para> /// <para>杩斿洖鍊兼槸鈥滈潰鎸夐敭鍏蜂綋鍔熻兘閰嶇疆鈥濓紝鍗宠繑鍥炩�滅浜岀骇鍒��</para> - /// <para>100:SwitchOpen,寮�鍏冲紑锛堟寜閿被锛�;101:SwitchClose,寮�鍏冲叧锛堟寜閿被锛�;102:SwitchChange,寮�鍏冲垏鎹紙鎸夐敭绫伙級</para> - /// <para>200:DimmerStepUp,澧炲ぇ璋冨厜锛堟寜閿被锛�;201:DimmerStepDown,闄嶄綆璋冨厜锛堟寜閿被锛�;202:DimmerStepChange,璋冨厜鍒囨崲锛堟寜閿被锛�</para> + /// <para>100:SwitchOpen,寮�鍏冲紑锛堟寜閿被锛�;101:SwitchClose,寮�鍏冲叧锛堟寜閿被锛�;102:SwitchChange,寮�鍏冲垏鎹紙鎸夐敭绫伙級</para> + /// <para>200:DimmerStepUp,澧炲ぇ璋冨厜锛堟寜閿被锛�;201:DimmerStepDown,闄嶄綆璋冨厜锛堟寜閿被锛�;202:DimmerStepChange,璋冨厜鍒囨崲锛堟寜閿被锛�</para> /// <para>300:CurtainOpen,绐楀笜寮�锛堟寜閿被锛�;301:CurtainClose,绐楀笜鍏筹紙鎸夐敭绫伙級;302:CurtainStop,绐楀笜鍋�;303:CurtainUpStop,绐楀笜涓婂崌鍋�;304:CurtainDownstop,绐楀笜涓嬮檷鍋�</para> /// </param> /// <returns></returns> diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlExperienceAccountLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlExperienceAccountLogic.cs index d181a06..6a0fd93 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlExperienceAccountLogic.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlExperienceAccountLogic.cs @@ -234,13 +234,13 @@ list.Add(new AddDevicePra { DeviceType = VirtualDeviceEnum.A绌烘皵寮�鍏�, RoomId = floorKey + "_XuanGuan", DeviceCount = 1 }); list.Add(new AddDevicePra { DeviceType = VirtualDeviceEnum.A1璺皟鍏夊櫒, RoomId = floorKey + "_XuanGuan", DeviceCount = 1 }); list.Add(new AddDevicePra { DeviceType = VirtualDeviceEnum.A闂ㄧ獥纾佷紶鎰熷櫒, RoomId = floorKey + "_XuanGuan", DeviceCount = 1 }); - list.Add(new AddDevicePra { DeviceType = VirtualDeviceEnum.A鏅鸿兘闂ㄩ攣, RoomId = floorKey + "_XuanGuan", DeviceCount = 1 }); //鍘ㄦ埧 list.Add(new AddDevicePra { DeviceType = VirtualDeviceEnum.A4鎸夐敭闈㈡澘, RoomId = floorKey + "_ChuFang", DeviceCount = 1 }); list.Add(new AddDevicePra { DeviceType = VirtualDeviceEnum.A姘存蹈浼犳劅鍣�, RoomId = floorKey + "_ChuFang", DeviceCount = 1 }); list.Add(new AddDevicePra { DeviceType = VirtualDeviceEnum.A鐑熼浘浼犳劅鍣�, RoomId = floorKey + "_ChuFang", DeviceCount = 1 }); list.Add(new AddDevicePra { DeviceType = VirtualDeviceEnum.A鐕冩皵浼犳劅鍣�, RoomId = floorKey + "_ChuFang", DeviceCount = 1 }); + list.Add(new AddDevicePra { DeviceType = VirtualDeviceEnum.A鍚搁《鐕冩皵浼犳劅鍣�, RoomId = floorKey + "_ChuFang", DeviceCount = 1 }); //璧板粖 list.Add(new AddDevicePra { DeviceType = VirtualDeviceEnum.A4鎸夐敭闈㈡澘, RoomId = floorKey + "_ZouLang", DeviceCount = 1 }); @@ -255,6 +255,9 @@ { //鍏堝埛鏂板鍣� LocalDevice.Current.ReFreshByLocal(); + //椤轰究涔熸暣涓�涓嬬綉鍏�(鏈夊彲鑳藉畠鏄粠瀹炰綋璐﹀彿杞负铏氭嫙鏃�,娌℃湁娓呯┖) + HdlGatewayLogic.Current.ReFreshByLocal(); + HdlGatewayLogic.Current.RefreshAppOldSelectGatewayId(); Type thisType = m_Current.GetType(); //鑾峰彇闇�瑕佸垱寤虹殑铏氭嫙璁惧鍒楄〃 @@ -580,6 +583,19 @@ device.IasDeviceType = 43; //璁剧疆璁惧鐨勫熀鏈俊鎭� this.SetBaseDataToDevice(device, 1300, 1300, "MSG01/M-ZB.10", i_RoomId); + + this.DeviceNumber++; + } + } + + public void Zigbee鍚搁《鐕冩皵浼犳劅鍣�(int i_DeviceCount, string i_RoomId) + { + for (int i = 0; i < i_DeviceCount; i++) + { + var device = new IASZone() { DeviceAddr = "DeviceAddr" + this.DeviceNumber, DeviceEpoint = 1 }; + device.IasDeviceType = 43; + //璁剧疆璁惧鐨勫熀鏈俊鎭� + this.SetBaseDataToDevice(device, 1300, 1300, "MGCD01/ZB.10", i_RoomId); this.DeviceNumber++; } @@ -933,7 +949,8 @@ A鏂规偊鍙屽紑鍥涙帶闈㈡澘 = 23, A鏂规偊鍥涘紑鍏帶闈㈡澘 = 24, A鏂规偊鏂伴闈㈡澘 = 25, - A鏂规偊鏂伴灏忔ā鍧� = 26 + A鏂规偊鏂伴灏忔ā鍧� = 26, + A鍚搁《鐕冩皵浼犳劅鍣� = 27, } #endregion diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlGatewayReceiveLogic.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlGatewayReceiveLogic.cs index 67a7a09..4c2b01e 100644 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlGatewayReceiveLogic.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlGatewayReceiveLogic.cs @@ -507,6 +507,8 @@ if (locadevice != null) { ((IASZone)locadevice).iASInfo = ias.iASInfo; + //濡傛灉鎺ユ敹鍒颁笂鎶�,鍗宠鏄庤繖涓紶鎰熷櫒鏄湪绾跨殑 + locadevice.IsOnline = 1; //璁板綍鍥炲鏃堕棿 locadevice.LastDateTime = DateTime.Now; } @@ -544,7 +546,7 @@ { HdlThreadLogic.Current.RunThread(async () => { - //娓╁眳鍩庣殑瑕佺綉鍏充腑鏄惁鏈夐�昏緫瀛樺湪 + //娓╁眳鍩庣殑瑕佺綉鍏充腑鏄惁鏈夐�昏緫瀛樺湪 //鍙傛暟:2-甯稿紑鑷姩鍖�;3-澶辨晥鏃堕棿鑷姩鍖� var result = await Shared.Phone.Device.Logic.SkipView.Exist(2); HdlThreadLogic.Current.RunMain(() => diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Resourse/ControlCommonResourse.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Resourse/ControlCommonResourse.cs index 6959990..97a3d37 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Resourse/ControlCommonResourse.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Resourse/ControlCommonResourse.cs @@ -34,7 +34,7 @@ /// </summary> public static int BodyFrameHeight { - get { return UserView.HomePage.Instance.Height - Application.GetRealHeight(184); } + get { return UserView.HomePage.Instance.Height - TopMenuFrameHeight - TopFrameHeight; } } /// <summary> /// 鐢婚潰BottomFrameLayout鐨勯珮搴�(楂樺害锛�141 娉細姝ゅ彉閲忓湪涓汉涓績涓嶄娇鐢�) @@ -68,5 +68,17 @@ /// 寰愭鐨勯棬閿佺晫闈㈡槸鍚︽槸鎵撳紑鐨勭姸鎬� /// </summary> public static bool IsDoorLockPageOpen = false; +#if Android + /// <summary> + /// 涓や釜鏂囨湰鎷兼帴鏃�,涓轰簡鐪嬭捣鏉ユ槸姝e父鐨勶紝闇�瑕佸噺鍘诲畠浠箣闂寸殑闂撮殧璇樊 + /// </summary> + public static int TwoTextSpace = Application.GetRealWidth(20); +#endif +#if iOS + /// <summary> + /// 涓や釜鏂囨湰鎷兼帴鏃�,涓轰簡鐪嬭捣鏉ユ槸姝e父鐨勶紝闇�瑕佸噺鍘诲畠浠箣闂寸殑闂撮殧璇樊 + /// </summary> + public static int TwoTextSpace = Application.GetRealWidth(10); +#endif } } diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceAddSuccessForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceAddSuccessForm.cs index cf2a242..cfdf0b0 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceAddSuccessForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceAddSuccessForm.cs @@ -55,6 +55,8 @@ this.SetAllEpointName(); // 璁剧疆缃戝叧鎵�鍦ㄧ殑鏃跺尯鐨勬椂闂寸粰闂ㄩ攣鏃堕棿 this.SetDoorTime(); + //鏂板叆缃戠殑璁惧,娓呯┖鎺夊畠鐨勬埧闂� + this.ClearDeviceFromRoom(); } /// <summary> @@ -306,6 +308,23 @@ #endregion + #region 鈻� 涓�鑸柟娉昣__________________________ + + /// <summary> + /// 鏂板叆缃戠殑璁惧,娓呯┖鎺夊畠鐨勬埧闂� + /// </summary> + private void ClearDeviceFromRoom() + { + foreach (var device in this.listNewDevice) + { + HdlRoomLogic.Current.DeleteDevice(device); + HdlRoomLogic.Current.DeleteLoveDevice(device); + } + Common.LocalDevice.Current.DeleteRealDeviceFromRoom(this.listNewDevice[0]); + } + + #endregion + #region 鈻� 鐢婚潰鍏抽棴___________________________ /// <summary> diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs index 4bd8639..4d4c692 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceListMainForm.cs @@ -348,7 +348,7 @@ //鍙崇澶� rowDevice.frameTable.AddRightArrow(); //鍦ㄧ嚎鐘舵�� - rowDevice.isOnline = device.IsOnline == 1; + rowDevice.isOnline = Common.LocalDevice.Current.CheckDeviceIsOnline(device); //淇濆瓨鎺т欢 string maikey = Common.LocalDevice.Current.GetDeviceMainKeys(device); @@ -792,7 +792,7 @@ { if (rowInfo != null) { - rowInfo.MenuRow.isOnline = device.IsOnline == 1; + rowInfo.MenuRow.isOnline = Common.LocalDevice.Current.CheckDeviceIsOnline(device); if (rowInfo.dicDetailRow != null) { foreach (var detailRow in rowInfo.dicDetailRow.Values) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs index e0ea8f3..2d8c35d 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceSearchForm.cs @@ -96,11 +96,13 @@ this.ClearBodyFrame(); //鍥剧墖 - var btnPic = new PicViewControl(878, 478); - btnPic.Y = Application.GetRealHeight(251); - btnPic.Gravity = Gravity.CenterHorizontal; - btnPic.UnSelectedImagePath = "Instruct/DeviceSearch.png"; - bodyFrameLayout.AddChidren(btnPic); + var framePic = new FrameLayout(); + framePic.Width = this.GetPictrueRealSize(878); + framePic.Height = this.GetPictrueRealSize(478); + framePic.Y = Application.GetRealHeight(251); + framePic.Gravity = Gravity.CenterHorizontal; + framePic.BackgroundImagePath = "Instruct/DeviceSearch.png"; + bodyFrameLayout.AddChidren(framePic); //姝e湪鎼滅储璁惧锛岃绋嶅�欌�� var btnSearch = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(58), false); @@ -150,7 +152,7 @@ this.realGateway.GwResDataAction += this.AdjustGatewayResultData; } //寮�鍚繛鎺ョ殑鍋囨兂鍔ㄧ敾鏁堟灉绾跨▼ - this.StartConcetionAnimeteThread(); + this.StartConcetionAnimeteThread(framePic); } #endregion @@ -211,7 +213,7 @@ //娣诲姞璁惧鐨勭紦瀛� device.IsOnline = 1; Common.LocalDevice.Current.AddDeviceToMemory(ref device); - + if (this.dicNewDevice.ContainsKey(device.DeviceAddr) == false) { this.dicNewDevice[device.DeviceAddr] = new List<CommonDevice>(); @@ -312,7 +314,7 @@ /// <summary> /// 寮�鍚繛鎺ョ殑鍋囨兂鍔ㄧ敾鏁堟灉绾跨▼ /// </summary> - private void StartConcetionAnimeteThread() + private void StartConcetionAnimeteThread(FrameLayout framePic) { int iconSize = this.GetPictrueRealSize(23); @@ -320,15 +322,15 @@ for (int i = 0; i < 9; i++) { //X杞�+Index*(鍥炬爣澶у皬+闂磋窛) - listPoint.Add(this.GetPictrueRealSize(394) + i * (iconSize + this.GetPictrueRealSize(10))); + listPoint.Add(this.GetPictrueRealSize(300) + i * (iconSize + this.GetPictrueRealSize(10))); } var btnRound = new PicViewControl(iconSize, iconSize, false); btnRound.Radius = (uint)iconSize / 2; btnRound.BackgroundColor = UserCenterColor.Current.ConcetionRoundColor; btnRound.X = listPoint[0]; - btnRound.Y = this.GetPictrueRealSize(475); - bodyFrameLayout.AddChidren(btnRound); + btnRound.Y = this.GetPictrueRealSize(225); + framePic.AddChidren(btnRound); HdlThreadLogic.Current.RunThread(() => { diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Direction/AddDeviceTypeListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Direction/AddDeviceTypeListForm.cs index 8a983a6..7c87699 100644 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Direction/AddDeviceTypeListForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Direction/AddDeviceTypeListForm.cs @@ -152,6 +152,11 @@ unSelectPic = "Device/SensorCarbonMonoxide.png"; this.AddMenuRow(objectText, unSelectPic, "SensorCarbonMonoxideDirectionForm"); + //鍚搁《鐕冩皵浼犳劅鍣� + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName26); + unSelectPic = "Device/SensorCarbonMonoxide.png"; + this.AddMenuRow(objectText, unSelectPic, "SensorCeilingGasDirectionForm"); + //鐑熼浘浼犳劅鍣� objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName20); unSelectPic = "Device/SensorFire.png"; @@ -171,6 +176,11 @@ objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName23); unSelectPic = "Device/SensorTemperatureHumidity.png"; this.AddMenuRow(objectText, unSelectPic, "SensorTemperatureHumidityForm"); + + //PM2.5绌烘皵璐ㄩ噺浼犳劅鍣� + objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName27); + unSelectPic = "Device/SensorPMTwoPointFive.png"; + this.AddMenuRow(objectText, unSelectPic, "SensorPMTwoPointFiveForm"); //PM2.5绌烘皵璐ㄩ噺浼犳劅鍣� objectText = Language.StringByID(R.MyInternationalizationString.uDeviceDirectionName26); diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Direction/SensorCeilingGasDirectionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Direction/SensorCeilingGasDirectionForm.cs new file mode 100755 index 0000000..8c530e0 --- /dev/null +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Direction/SensorCeilingGasDirectionForm.cs @@ -0,0 +1,90 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Text; + +namespace Shared.Phone.UserCenter.DeviceDirection +{ + /// <summary> + /// 鍚搁《鐕冩皵浼犳劅鍣ㄧ殑娣诲姞姝ラ鐣岄潰 + /// </summary> + public class SensorCeilingGasDirectionForm : DirectionCommonForm + { + #region 鈻� 鍒濆鍖朹____________________________ + + /// <summary> + /// 鐢婚潰鏄剧ず(搴曞眰浼氬浐瀹氳皟鐢ㄦ鏂规硶锛屽�熶互瀹屾垚鐢婚潰鍒涘缓) + /// </summary> + public void ShowForm() + { + //璁剧疆澶撮儴淇℃伅 + base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uAddDevice)); + + //鍒濆鍖栦腑閮ㄤ俊鎭� + this.InitMiddleFrame(); + } + + /// <summary> + /// 鍒濆鍖栦腑閮ㄤ俊鎭� + /// </summary> + private void InitMiddleFrame() + { + //鍥剧墖 + var framePic = new FrameLayout(); + framePic.Width = this.GetPictrueRealSize(948); + framePic.Height = this.GetPictrueRealSize(702); + framePic.Gravity = Gravity.CenterHorizontal; + framePic.Y = Application.GetRealHeight(138); + bodyFrameLayout.AddChidren(framePic); + var btnPic = new PicViewControl(framePic.Width, framePic.Height, false); + btnPic.UnSelectedImagePath = "Instruct/SensorCeilingGas.png"; + framePic.AddChidren(btnPic); + + //缁胯壊鎸囩ず鐏揩閫熼棯鐑� + var btnGreanLinght = new NormalViewControl(this.GetPictrueRealSize(501), this.GetPictrueRealSize(45), false); + btnGreanLinght.X = this.GetPictrueRealSize(447); + btnGreanLinght.Y = this.GetPictrueRealSize(326); + btnGreanLinght.TextAlignment = TextAlignment.Center; + btnGreanLinght.TextColor = UserCenterColor.Current.TextGrayColor3; + btnGreanLinght.TextSize = 10; + btnGreanLinght.TextID = R.MyInternationalizationString.uGreanPilotLampLinghtQuickly; + framePic.AddChidren(btnGreanLinght); + + //闀挎寜5绉� + //(鎸夐敭) + string textMsg = Language.StringByID(R.MyInternationalizationString.uLongClickPanelSomeSecond); + if (textMsg.Contains("{0}") == true) + { + textMsg = string.Format(textMsg, "5"); + } + var btnSecond2 = new NormalViewControl(this.GetPictrueRealSize(463), this.GetPictrueRealSize(45), false); + btnSecond2.Y = this.GetPictrueRealSize(222); + btnSecond2.TextColor = UserCenterColor.Current.TextGrayColor3; + btnSecond2.TextSize = 10; + btnSecond2.TextAlignment = TextAlignment.Center; + btnSecond2.Text = textMsg; + framePic.AddChidren(btnSecond2); + + //闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝缁胯壊蹇棯 + //杩涘叆閰嶇綉鐘舵�侊紝缁跨伅甯镐寒鍒欏叆缃戞垚鍔� + string[] msgArry = Language.StringByID(R.MyInternationalizationString.uAddSensorCeilingGasMsg).Split(new string[] { "{0}" }, StringSplitOptions.RemoveEmptyEntries); + + var msg1 = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(60), false); + msg1.Y = Application.GetRealHeight(1037); + msg1.Text = msgArry[0]; + msg1.TextColor = UserCenterColor.Current.TextGrayColor3; + msg1.TextAlignment = TextAlignment.Center; + bodyFrameLayout.AddChidren(msg1); + var msg2 = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(60), false); + msg2.Y = msg1.Bottom; + if (msgArry.Length > 1) + { + msg2.Text = msgArry[1]; + } + msg2.TextColor = UserCenterColor.Current.TextGrayColor3; + msg2.TextAlignment = TextAlignment.Center; + bodyFrameLayout.AddChidren(msg2); + } + + #endregion + } +} diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirBackLightSettionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirBackLightSettionForm.cs index 569d187..6e9b3c9 100644 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirBackLightSettionForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirBackLightSettionForm.cs @@ -98,7 +98,7 @@ #endregion - #region 鈻� 灞忓箷浜害绾у埆_______________________ + #region 鈻� 灞忓箷浜害绾у埆_______________________ /// <summary> /// 娣诲姞灞忓箷浜害绾у埆鎺т欢 /// </summary> @@ -281,17 +281,17 @@ btnLevelView.Y = Application.GetRealHeight(54); btnLevelView.Gravity = Gravity.CenterVertical; btnLevelView.TextID = R.MyInternationalizationString.BackgroundLightColor; - frameBack.AddChidren(btnLevelView); - + frameBack.AddChidren(btnLevelView); + var frameColor = new FrameLayoutStatuControl(); frameColor.UseClickStatu = false; frameColor.Width = Application.GetRealHeight(262); frameColor.Height = this.GetPictrueRealSize(79); frameColor.Gravity = Gravity.CenterVertical; frameColor.X = frameBack.Width - ControlCommonResourse.XXLeft - Application.GetRealHeight(262); - frameBack.AddChidren(frameColor); - - //棰滆壊 + frameBack.AddChidren(frameColor); + + //棰滆壊 var btnColorView = new NormalViewControl(Application.GetRealHeight(110), this.GetPictrueRealSize(49), false); btnColorView.Gravity = Gravity.CenterVertical; btnColorView.TextAlignment = TextAlignment.CenterRight; @@ -299,14 +299,14 @@ btnColorView.Y = Application.GetRealHeight(5); btnColorView.TextColor = UserCenterColor.Current.TextGrayColor1; btnColorView.TextID = R.MyInternationalizationString.uColor; - frameColor.AddChidren(btnColorView, ChidrenBindMode.BindEventOnly); - + frameColor.AddChidren(btnColorView, ChidrenBindMode.BindEventOnly); + int R1 = Convert.ToInt32(this.keyColorData.OpenColorR, 16); int G1 = Convert.ToInt32(this.keyColorData.OpenColorG, 16); int B1 = Convert.ToInt32(this.keyColorData.OpenColorB, 16); uint backColor = this.GetColorByRGB((byte)R1, (byte)G1, (byte)B1); - //棰滆壊澶栨 + //棰滆壊澶栨 var btnColorLine = new FrameLayoutStatuControl(); btnColorLine.Width = Application.GetRealHeight(79); btnColorLine.Height = this.GetPictrueRealSize(79); @@ -314,14 +314,14 @@ btnColorLine.Radius = (uint)this.GetPictrueRealSize(79) / 2; btnColorLine.BorderWidth = 1; btnColorLine.BorderColor = 0xffcccccc; - frameColor.AddChidren(btnColorLine, ChidrenBindMode.BindEventOnly); - + frameColor.AddChidren(btnColorLine, ChidrenBindMode.BindEventOnly); + var btnColor = new NormalViewControl(this.GetPictrueRealSize(69), this.GetPictrueRealSize(69), false); btnColor.Gravity = Gravity.Center; btnColor.Radius = (uint)this.GetPictrueRealSize(69) / 2; btnColor.BackgroundColor = backColor; - btnColorLine.AddChidren(btnColor, ChidrenBindMode.BindEventOnly); - + btnColorLine.AddChidren(btnColor, ChidrenBindMode.BindEventOnly); + var btnRight = new NormalViewControl(this.GetPictrueRealSize(58), this.GetPictrueRealSize(58), false); btnRight.UnSelectedImagePath = "Item/RightNext.png"; btnRight.Y = Application.GetRealHeight(5); @@ -330,7 +330,7 @@ btnRight.Y += this.GetPictrueRealSize(8); frameColor.ButtonClickEvent += (sender, e) => - { + { var form = new PanelColorSelectForm(); form.AddForm(R1, G1, B1); form.FinishSelectColorEvent += (Rcolor, Gcolor, Bcolor) => @@ -350,7 +350,7 @@ #endregion - #region 鈻� 鑺傝兘妯″紡琛宊________________________ + #region 鈻� 鑺傝兘妯″紡琛宊________________________ /// <summary> /// 娣诲姞鑺傝兘妯″紡琛� /// </summary> @@ -513,18 +513,18 @@ //鍏抽棴杩涘害鏉� this.CloseProgressBar(ShowReLoadMode.YES); return false; - } + } keyColorData = await HdlDevicePanelLogic.Current.GetPanelColorInfo(panelDevice); if (this.keyColorData == null) { //鍏抽棴杩涘害鏉� this.CloseProgressBar(ShowReLoadMode.YES); return false; - } - //鍏抽棴杩涘害鏉� + } + //鍏抽棴杩涘害鏉� this.CloseProgressBar(); - return true; + return true; } #endregion @@ -561,9 +561,9 @@ { this.CloseProgressBar(); return; - } - - //璁剧疆鎸夐敭闈㈡澘棰滆壊鐨勪俊鎭� + } + + //璁剧疆鎸夐敭闈㈡澘棰滆壊鐨勪俊鎭� result = await HdlDevicePanelLogic.Current.SetPanelColorInfo(panelDevice, this.keyColorData); this.CloseProgressBar(); if (result == false) @@ -572,10 +572,10 @@ } //鍏抽棴鑷韩 this.CloseForm(); - } + } #endregion - - #region 鈻� 琛ュ厖瀹瑰櫒___________________________ + + #region 鈻� 琛ュ厖瀹瑰櫒___________________________ /// <summary> /// 琛屾暟瓒呰繃瀹瑰櫒鏃讹紝琛ヤ竴涓┖鐧紽rameLayout锛屼娇涔嬭兘婊戝姩 /// </summary> diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirButtonSettionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirButtonSettionForm.cs index 68aa327..17e06f4 100644 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirButtonSettionForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirButtonSettionForm.cs @@ -1,6 +1,5 @@ 锘縰sing System; using System.Collections.Generic; -using Org.BouncyCastle.Bcpg.OpenPgp; using Shared.Common; using ZigBee.Common; using ZigBee.Device; @@ -40,7 +39,7 @@ private string bindPmName = string.Empty; #endregion - + #region 鈻� 鍒濆鍖朹____________________________ /// <summary> @@ -50,8 +49,8 @@ public void ShowForm(CommonDevice i_device) { this.deviceObj = i_device; - //鑾峰彇鏁版嵁 - ReadDoorLockUserInfo(deviceObj); + //鑾峰彇鏁版嵁 + ReadDoorLockUserInfo(deviceObj); //璁剧疆澶撮儴淇℃伅 base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uPanelSettion)); @@ -87,9 +86,9 @@ this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 1028); //鍒濆鍖栬彍鍗曡 - this.InitMenuRow(); - - //鍒濆鍖栨甯冨畬鎴� + this.InitMenuRow(); + + //鍒濆鍖栨甯冨畬鎴� tableContr.FinishInitControl(); tableContr = null; @@ -101,14 +100,14 @@ { //鍏抽棴鑷韩 this.CloseForm(); - }; + }; } /// <summary> /// 鍒濆鍖栬彍鍗曡 /// </summary> private void InitMenuRow() - { + { this.listview.RemoveAll(); //娣诲姞鏂伴鐩爣 this.AddFreshAirRow(); @@ -123,7 +122,7 @@ } #endregion - #region 鈻� 鍒濆鍖栨暟鎹甠________________________ + #region 鈻� 鍒濆鍖栨暟鎹甠________________________ /// <summary> /// 鍒濆鍖栨暟鎹� @@ -164,8 +163,8 @@ }); } #endregion - - #region 鈻� 鏂伴鐩爣_________________________ + + #region 鈻� 鏂伴鐩爣_________________________ /// <summary> /// 鏂伴鐩爣琛� /// </summary> @@ -178,15 +177,15 @@ //搴曠嚎 rowNewWind.AddBottomLine(); //鍙崇澶� - rowNewWind.AddRightArrow(); + rowNewWind.AddRightArrow(); - var msg = Language.StringByID(R.MyInternationalizationString.nothing); + var msg = Language.StringByID(R.MyInternationalizationString.nothing); if (!string.IsNullOrEmpty(bindFreshAirName)) { msg = bindFreshAirName; } var btnNewWindStatu = rowNewWind.AddMostRightView(msg, 700); - + rowNewWind.ButtonClickEvent += (sender, e) => { var addDevicePage = new Shared.Phone.UserCenter.DeviceBind.PanelFangyueFreshAirTargetsForm(this.deviceObj, 1); @@ -262,7 +261,7 @@ return result; } - #region 鈻� PM2.5鏉ユ簮_________________________ + #region 鈻� PM2.5鏉ユ簮_________________________ /// <summary> /// PM2.5鏉ユ簮琛� /// </summary> @@ -307,7 +306,7 @@ } #endregion - #region 鈻� 娓╁害鏉ユ簮_________________________ + #region 鈻� 娓╁害鏉ユ簮_________________________ /// <summary> /// 娓╁害鏉ユ簮琛� /// </summary> @@ -352,7 +351,7 @@ } #endregion - #region 鈻� 婀垮害鏉ユ簮_________________________ + #region 鈻� 婀垮害鏉ユ簮_________________________ /// <summary> /// 婀垮害鏉ユ簮琛� /// </summary> @@ -397,7 +396,7 @@ } #endregion - #region 鈻� 浜害璋冭妭_________________________ + #region 鈻� 浜害璋冭妭_________________________ /// <summary> /// 浜害璋冭妭琛� /// </summary> @@ -424,7 +423,7 @@ } #endregion - #region 鈻� 鍙充笂瑙掕彍鍗昣________________________ + #region 鈻� 鍙充笂瑙掕彍鍗昣________________________ /// <summary> /// 鍒濆鍖栧彸涓婅鑿滃崟 /// </summary> diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/DoorLockCommonInfo.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/DoorLockCommonInfo.cs index d312134..9d2ce5c 100644 --- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/DoorLockCommonInfo.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/DoorLockCommonInfo.cs @@ -101,10 +101,10 @@ #region 甯稿紑妯″紡 API /// <summary> - /// 鑾峰彇褰撳墠闂ㄩ攣鐨勫父寮�妯″紡 + /// 鑾峰彇褰撳墠闂ㄩ攣鐨勫父寮�妯″紡 /// </summary> - /// <param name="doorLock:褰撳墠闂ㄩ攣"></param> - /// <returns>null:娌℃湁鍥炲 锛� true:闂ㄩ攣甯稿紑锛沠alse锛氶棬閿佸父鍏�</returns> + /// <param name="doorLock:褰撳墠闂ㄩ攣"></param> + /// <returns>null:娌℃湁鍥炲 锛� true:闂ㄩ攣甯稿紑锛沠alse锛氶棬閿佸父鍏�</returns> public static async System.Threading.Tasks.Task<bool?> GetNormallyOpenMode(ZigBee.Device.DoorLock doorLock) { bool? IsDoorLockNormallyMode = null; @@ -131,8 +131,8 @@ /// <summary> /// 闂ㄩ攣鏄惁鏀寔甯稿紑[杩欓噷鏆傛椂鍙湁S-One闂ㄩ攣鏀寔锛孒06C涓嶆敮鎸�, 鍚庢湡閫氳繃鑳藉姏鍊兼敮鎸乚 /// </summary> - /// <param name="doorLock:褰撳墠闂ㄩ攣"></param> - /// <returns>true:鏀寔甯稿紑锛沠alse锛� 涓嶆敮鎸佸父寮�</returns> + /// <param name="doorLock:褰撳墠闂ㄩ攣"></param> + /// <returns>true:鏀寔甯稿紑锛沠alse锛� 涓嶆敮鎸佸父寮�</returns> public static bool CanNormallyOpen(ZigBee.Device.DoorLock doorLock) { var listDevice = new List<CommonDevice> { }; @@ -194,7 +194,7 @@ { if (doorLockMessType == DoorLockMessType.DeviceReport || doorLockMessType == DoorLockMessType.ServicePush) { - //涓婃姤鈥滃父寮�妯″紡鈥濆凡琚彇娑堬紝app榛樿浜嗏�滃父寮�妯″紡鈥濊鍙栨秷 + //涓婃姤鈥滃父寮�妯″紡鈥濆凡琚彇娑堬紝app榛樿浜嗏�滃父寮�妯″紡鈥濊鍙栨秷 DoorLockCommonInfo.NormallyOpenModeValue(doorLock, false); } else @@ -243,7 +243,7 @@ } else { - //鍒涘缓甯稿紑妯″紡鐨勭壒娈婇�昏緫 + //鍒涘缓甯稿紑妯″紡鐨勭壒娈婇�昏緫 var resu = await Shared.Phone.Device.Logic.SkipView.LockAddModifyLogic(DoorLockCommonInfo.NormallyOpenModeInvalidTime, doorLock); Application.RunOnMainThread(() => { @@ -256,7 +256,7 @@ } else { - //app鎿嶄綔涓嶅彇娑堚�滃父寮�妯″紡鈥� + //app鎿嶄綔涓嶅彇娑堚�滃父寮�妯″紡鈥� DoorLockCommonInfo.NormallyOpenModeValue(doorLock, true); } action?.Invoke(); @@ -303,14 +303,14 @@ { //娣诲姞App寮�鍚父寮�妯″紡鐨勫巻鍙茶褰� HdlDeviceDoorLockLogic.Current.AddDoorHistoryLog(doorLock, 9002, string.Empty); - //app纭鍙栨秷鈥滃父寮�妯″紡鈥濇垚鍔� + //app纭鍙栨秷鈥滃父寮�妯″紡鈥濇垚鍔� NormallyOpenModeValue(doorLock, false); //鍒犻櫎璁剧疆甯稿紑妯″紡鍒涘缓鐨勯�昏緫 if (haveLogic) { var resTemp1 = await Shared.Phone.Device.Logic.SkipView.Exist(3); //娓╁眳鍩庢柟娉曪紵锛燂紵 - //姝ゅ鏄惁瑕佸垹闄ゆ俯灞呭煄鐨勭壒娈婇�昏緫 + //姝ゅ鏄惁瑕佸垹闄ゆ俯灞呭煄鐨勭壒娈婇�昏緫 } Application.RunOnMainThread(() => { @@ -324,54 +324,54 @@ }; } - /// <summary> - /// 鍒犻櫎甯稿紑妯″紡 - /// </summary> - /// <param name="doorLock">褰撳墠闂ㄩ攣</param> - /// <param name="action">鍥炶皟澶勭悊鏇存柊鍐呭</param> - /// <returns></returns> - public static async System.Threading.Tasks.Task<bool> DelNormallyOpenMode(ZigBee.Device.DoorLock doorLock, Action action = null) - { - //app鎿嶄綔鍙栨秷鈥滃父寮�妯″紡鈥� - var result = await doorLock.SetNormallyOpenModeFuncAsync(false); - if (result == null || result.defaultControlResponseData == null || result.defaultControlResponseData.status != 0) - { - action?.Invoke(); - return false; - } - - if (result.defaultControlResponseData.status == 0) - { - //app纭鍙栨秷鈥滃父寮�妯″紡鈥濇垚鍔� - NormallyOpenModeValue(doorLock, false); - action?.Invoke(); - return true; - } - return false; - } - - /// <summary> - /// 璁剧疆甯稿紑妯″紡 - /// </summary> - /// <param name="doorLock">褰撳墠闂ㄩ攣</param> - /// <param name="action">鍥炶皟澶勭悊鏇存柊鍐呭</param> - /// <returns></returns> - public static async System.Threading.Tasks.Task<bool> SetNormallyOpenModeFuncAsync(ZigBee.Device.DoorLock doorLock) - { - //app璁剧疆鈥滃父寮�妯″紡鈥濆け璐� - var result = await doorLock.SetNormallyOpenModeFuncAsync(false); - if (result == null || result.defaultControlResponseData == null || result.defaultControlResponseData.status != 0) - { - return false; - } - - if (result.defaultControlResponseData.status == 0) - { - //app璁剧疆鈥滃父寮�妯″紡鈥濇垚鍔� - NormallyOpenModeValue(doorLock, false); - return true; - } - return false; + /// <summary> + /// 鍒犻櫎甯稿紑妯″紡 + /// </summary> + /// <param name="doorLock">褰撳墠闂ㄩ攣</param> + /// <param name="action">鍥炶皟澶勭悊鏇存柊鍐呭</param> + /// <returns></returns> + public static async System.Threading.Tasks.Task<bool> DelNormallyOpenMode(ZigBee.Device.DoorLock doorLock, Action action = null) + { + //app鎿嶄綔鍙栨秷鈥滃父寮�妯″紡鈥� + var result = await doorLock.SetNormallyOpenModeFuncAsync(false); + if (result == null || result.defaultControlResponseData == null || result.defaultControlResponseData.status != 0) + { + action?.Invoke(); + return false; + } + + if (result.defaultControlResponseData.status == 0) + { + //app纭鍙栨秷鈥滃父寮�妯″紡鈥濇垚鍔� + NormallyOpenModeValue(doorLock, false); + action?.Invoke(); + return true; + } + return false; + } + + /// <summary> + /// 璁剧疆甯稿紑妯″紡 + /// </summary> + /// <param name="doorLock">褰撳墠闂ㄩ攣</param> + /// <param name="action">鍥炶皟澶勭悊鏇存柊鍐呭</param> + /// <returns></returns> + public static async System.Threading.Tasks.Task<bool> SetNormallyOpenModeFuncAsync(ZigBee.Device.DoorLock doorLock) + { + //app璁剧疆鈥滃父寮�妯″紡鈥濆け璐� + var result = await doorLock.SetNormallyOpenModeFuncAsync(false); + if (result == null || result.defaultControlResponseData == null || result.defaultControlResponseData.status != 0) + { + return false; + } + + if (result.defaultControlResponseData.status == 0) + { + //app璁剧疆鈥滃父寮�妯″紡鈥濇垚鍔� + NormallyOpenModeValue(doorLock, false); + return true; + } + return false; } /// <summary> @@ -392,7 +392,7 @@ return; } - //璁剧疆甯稿紑妯″紡鍚庯紝鎮ㄧ殑闂ㄩ攣灏嗗缁堝浜庢墦寮�鐘舵�侊紝纭寮�鍚紵 + //璁剧疆甯稿紑妯″紡鍚庯紝鎮ㄧ殑闂ㄩ攣灏嗗缁堝浜庢墦寮�鐘舵�侊紝纭寮�鍚紵 string msg = Language.StringByID(R.MyInternationalizationString.SetDoorLockNomallyOpen).Replace("{0}", "\r\n"); var confirm = Language.StringByID(R.MyInternationalizationString.Confrim); var alert = new ShowDoorLockMsgControl(ShowDoorLockMsgControl.DoorLockMsgType.Confirm, msg, confirm); @@ -409,7 +409,7 @@ /// </summary> public static async void NomallyOpenModeInvalidTimeDialog(ZigBee.Device.DoorLock doorLock, Action action) { - //澶辨晥璁剧疆 + //澶辨晥璁剧疆 string msgTimeInValidSetting = Language.StringByID(R.MyInternationalizationString.DoorLockOpenAllTheTime); var timeConfrim = Language.StringByID(R.MyInternationalizationString.Confrim); var alertTimeInValidSetting = new ShowDoorLockMsgControl(ShowDoorLockMsgControl.DoorLockMsgType.InValid, msgTimeInValidSetting, timeConfrim); @@ -465,8 +465,8 @@ /// <summary> /// 闂ㄩ攣鏄惁鏀寔闊抽噺[杩欓噷鏆傛椂鍙湁S-One闂ㄩ攣鏀寔锛孒06C涓嶆敮鎸侊紝鍚庢湡閫氳繃鑳藉姏鍊兼敮鎸乚 /// </summary> - /// <param name="doorLock:褰撳墠闂ㄩ攣"></param> - /// <returns></returns> + /// <param name="doorLock:褰撳墠闂ㄩ攣"></param> + /// <returns></returns> public static bool CanVolume(ZigBee.Device.DoorLock doorLock) { var listDevice = new List<CommonDevice> { }; @@ -481,7 +481,7 @@ #endregion - #region 浠庝簯绔幏鍙栫殑鏂规硶 + #region 浠庝簯绔幏鍙栫殑鏂规硶 /// <summary> /// 鑾峰彇褰撳墠璐︽埛闂ㄩ攣鎿嶄綔鏉冮檺锛堟槸鍚﹁鍐荤粨锛� /// </summary> @@ -633,7 +633,7 @@ } - //2銆佽鍙栦簯绔棬閿佷俊鎭� + //2銆佽鍙栦簯绔棬閿佷俊鎭� var getDoorLockInfoAllList = new List<ZigBee.Device.DoorLock.CloudDoorLockObj> { }; var getDoorLockInfoList = await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetDoorLockAllAccountInfolist(doorLock); if (getDoorLockInfoList != null) @@ -1119,7 +1119,7 @@ /// <returns></returns> public static DateTime GetDoorLockZoneTime() { - //閫氳繃缁忓害鑾峰彇鏃跺尯 + //閫氳繃缁忓害鑾峰彇鏃跺尯 var gwZone = int.Parse(CaculateTimeZone(Common.Config.Instance.Home.Longitude)); //灏嗘湰鍦版椂闂磋浆鎹㈡垚涓栫晫鏃� var utc = DateTime.Now.AddHours(-gwZone); @@ -1133,7 +1133,7 @@ } /// <summary> - /// 鑾峰彇鏃跺尯 + /// 鑾峰彇鏃跺尯 /// </summary> /// <param name="currentLon">currentLon:"+"涓轰笢鍖猴紝鈥�-鈥濅负瑗垮尯</param> /// <returns></returns> @@ -1194,7 +1194,7 @@ #endregion - #region 涓�鑸柟娉� + #region 涓�鑸柟娉� /// <summary> /// 鏄剧ず閿欒淇℃伅绐楀彛 /// </summary> @@ -1221,6 +1221,6 @@ }); } - #endregion + #endregion } } diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs index e31c7df..5831374 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs @@ -28,7 +28,7 @@ #endregion /// <summary> - /// UI鏄剧ず + /// UI鏄剧ず /// </summary> public void Show() { @@ -133,8 +133,8 @@ } else { - ///澶囨敞锛歐JC鐨� - ///璁板綍褰撳墠鐢ㄦ埛淇℃伅 + ///璁板綍褰撳墠鐢ㄦ埛淇℃伅H06C + ///wjc Shared.Phone.Device.Logic.SkipView.SkipAddLogic(1, doorLock, accountObj); } @@ -145,4 +145,4 @@ } } } -} \ No newline at end of file +} diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/ShowDoorLockMsgControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/ShowDoorLockMsgControl.cs index 30d7a5f..9a42055 100644 --- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/ShowDoorLockMsgControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/ShowDoorLockMsgControl.cs @@ -112,9 +112,9 @@ ((ViewGroup)nowForm).AddChidren(MsgControlFrameLayout); MsgControlFrameLayout.MouseDownEventHandler += (sender, e) => { - if (msgType == DoorLockMsgType.InValid) - { - return; + if (msgType == DoorLockMsgType.InValid) + { + return; } //绉婚櫎鐣岄潰 @@ -236,7 +236,7 @@ /// <param name="frameBack"></param> private void InitInValidTimeDialog(FrameLayout frameBack) { - //娑堟伅 + //娑堟伅 string[] msgArray = msgText.Split(new string[] { "{0}" }, StringSplitOptions.RemoveEmptyEntries); var btnMsg1 = new Button() { @@ -343,16 +343,16 @@ this.InvalidClickEvent?.Invoke(); this.InvalidClickEvent = null; }; - } - + } + /// <summary> /// 澶辨晥鏃堕棿鐨勫簳閮ㄦ寜閽� /// </summary> /// <param name="frameMain"></param> /// <param name="frameBack"></param> private void InitBottomInvalidTimeButton(FrameLayout frameMain, FrameLayout frameBack) - { - //纭畾鎸夐挳 + { + //纭畾鎸夐挳 var btnConfirm = new BottomRightClickButton(frameBack.Width, Application.GetRealHeight(127)); frameBack.AddChidren(btnConfirm); btnConfirm.InitControl(buttonOkText); diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs index 61f363c..39a423b 100644 --- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs @@ -182,7 +182,7 @@ #endregion /// <summary> - /// UI鏄剧ず + /// UI鏄剧ず /// </summary> public void Show() { @@ -218,7 +218,7 @@ ClickHandle(); - if (doorLock.IsOnline == 1) + if (Common.LocalDevice.Current.CheckDeviceIsOnline(doorLock) == true) { ReadDoorLockUserInfo(); } @@ -510,7 +510,7 @@ TextAlignment = TextAlignment.CenterLeft, }; btnCurrentFrameLayout.AddChidren(btnCurrentRoomName); - #endregion + #endregion } #region 闊抽噺寮圭獥 @@ -565,7 +565,7 @@ ThumbImagePath = "DoorLock/UnLockButton.png",//杩涘害鏉℃寜閽浘鏍� ThumbImageHeight = Application.GetRealHeight(81),//杩涘害鏉℃寜閽浘鏍囩殑楂樺害锛堥粯璁ゆ鏂瑰舰锛氬鍜岄珮涓�鏍凤級 ProgressTextColor = ZigbeeColor.Current.LogicBtnCancelColor, - ProgressTextSize = 12,//鏄剧ず鐧惧垎姣斿瓧浣撳ぇ灏� + ProgressTextSize = 12,//鏄剧ず鐧惧垎姣斿瓧浣撳ぇ灏� SeekBarViewHeight = Application.GetRealHeight(17),//杩涘害鏉$殑瀹藉害 Progress = currentVolume, }; @@ -605,8 +605,8 @@ { return; } - if (doorLock.IsDoorLockNormallyMode) - { + if (doorLock.IsDoorLockNormallyMode) + { if (canOpenNormallyMode) { Application.RunOnMainThread(() => { NomallyOpenModeInvalidDialog(true); }); @@ -708,7 +708,7 @@ canVolume = DoorLockCommonInfo.CanVolume(doorLock); if (canVolume) { - //璇诲彇闊抽噺 + //璇诲彇闊抽噺 var resultRes = await doorLock.GetVolumeAsync(); if (resultRes == null || resultRes.volumeResponseData == null) { @@ -764,9 +764,9 @@ #endregion - #region 鍏叡浜嬩欢澶勭悊 + #region 鍏叡浜嬩欢澶勭悊 /// <summary> - /// 浜嬩欢澶勭悊 + /// 浜嬩欢澶勭悊 /// </summary> public void ClickHandle() { @@ -832,11 +832,11 @@ btnCollect.IsSelected = !btnCollect.IsSelected; if (btnCollect.IsSelected) { - HdlRoomLogic.Current.AddLoveDevice(deviceUI);//鏀惰棌 + HdlRoomLogic.Current.AddLoveDevice(deviceUI);//鏀惰棌 } else { - HdlRoomLogic.Current.DeleteLoveDevice(deviceUI);//鍙栨秷鏀惰棌 + HdlRoomLogic.Current.DeleteLoveDevice(deviceUI);//鍙栨秷鏀惰棌 } }; btnCollectFrameLayout.MouseDownEventHandler += handerCollect; @@ -847,15 +847,15 @@ { if (doorLock.IsDoorLockNormallyMode) { - if (canOpenNormallyMode) - { - NomallyOpenModeInvalidDialog(false); + if (canOpenNormallyMode) + { + NomallyOpenModeInvalidDialog(false); } else { OpenDoorLockHandle(progressButton, btnDoorLockPic, btnStatus); } - } + } else { OpenDoorLockHandle(progressButton, btnDoorLockPic, btnStatus); @@ -943,7 +943,7 @@ } #endregion - #region 闊抽噺 + #region 闊抽噺 /// <summary> /// 鏇存柊闊抽噺 /// </summary> @@ -1018,7 +1018,7 @@ } #endregion - #region 甯稿紑妯″紡 + #region 甯稿紑妯″紡 /// <summary> /// 甯稿紑妯″紡澶勭悊 /// </summary> @@ -1050,7 +1050,7 @@ //}; }; HdlCheckLogic.Current.CheckSecondarySecurity(action); - #endregion + #endregion #region 鏆傛椂鐗堟湰 (鏈�缁堝幓鎺夛級 if (!btnNormallyOpen.IsSelected) @@ -1144,7 +1144,7 @@ { if (IsFromReport) { - //涓婃姤鈥滃父寮�妯″紡鈥濆凡琚彇娑堬紝app榛樿浜嗏�滃父寮�妯″紡鈥濊鍙栨秷 + //涓婃姤鈥滃父寮�妯″紡鈥濆凡琚彇娑堬紝app榛樿浜嗏�滃父寮�妯″紡鈥濊鍙栨秷 DoorLockCommonInfo.NormallyOpenModeValue(doorLock, false); Application.RunOnMainThread(() => { @@ -1163,7 +1163,7 @@ } else { - //app榛樿鈥滃父寮�妯″紡鈥濊繕鏄紑鍚� + //app榛樿鈥滃父寮�妯″紡鈥濊繕鏄紑鍚� DoorLockCommonInfo.NormallyOpenModeValue(doorLock, true); Application.RunOnMainThread(() => { @@ -1215,14 +1215,14 @@ } else { - //淇濇寔鈥滃父寮�鎴愬姛鈥� + //淇濇寔鈥滃父寮�鎴愬姛鈥� DoorLockCommonInfo.NormallyOpenModeValue(doorLock, true); Application.RunOnMainThread(() => { UpdateNomallyOpenStatus(); }); - //鍒涘缓甯稿紑妯″紡鐨勭壒娈婇�昏緫 + //鍒涘缓甯稿紑妯″紡鐨勭壒娈婇�昏緫 var resu = await Shared.Phone.Device.Logic.SkipView.LockAddModifyLogic(DoorLockCommonInfo.NormallyOpenModeInvalidTime, doorLock); //if (!resu) //{ @@ -1235,7 +1235,7 @@ } else { - //app鎿嶄綔涓嶅彇娑堚�滃父寮�妯″紡鈥� + //app鎿嶄綔涓嶅彇娑堚�滃父寮�妯″紡鈥� DoorLockCommonInfo.NormallyOpenModeValue(doorLock, true); Application.RunOnMainThread(() => { @@ -1248,7 +1248,7 @@ { if (IsFromReport) { - //涓婃姤闂ㄩ攣鈥滃父寮�妯″紡鈥濆凡缁忓彇娑堬紝鐜板湪app纭鈥滃父寮�妯″紡鈥濆彇娑� + //涓婃姤闂ㄩ攣鈥滃父寮�妯″紡鈥濆凡缁忓彇娑堬紝鐜板湪app纭鈥滃父寮�妯″紡鈥濆彇娑� DoorLockCommonInfo.NormallyOpenModeValue(doorLock, false); Application.RunOnMainThread(() => { @@ -1288,7 +1288,7 @@ //娣诲姞App寮�鍚父寮�妯″紡鐨勫巻鍙茶褰� HdlDeviceDoorLockLogic.Current.AddDoorHistoryLog(this.doorLock, 9002, string.Empty); - //app纭鍙栨秷鈥滃父寮�妯″紡鈥濇垚鍔� + //app纭鍙栨秷鈥滃父寮�妯″紡鈥濇垚鍔� DoorLockCommonInfo.NormallyOpenModeValue(doorLock, false); Application.RunOnMainThread(() => { @@ -1329,7 +1329,7 @@ alertNomallyModeIsTurnOn.Show(); alertNomallyModeIsTurnOn.MsgControlClickEvent += async () => { - //榛樿鍒涘缓甯稿紑妯″紡鐨勭壒娈婇�昏緫 + //榛樿鍒涘缓甯稿紑妯″紡鐨勭壒娈婇�昏緫 var res = await Shared.Phone.Device.Logic.SkipView.LockAddModifyLogic(DoorLockCommonInfo.NormallyOpenModeInvalidTime, doorLock); //if (!res) //{ @@ -1357,7 +1357,7 @@ /// </summary> private void NomallyOpenModeInvalidTimeDialog() { - //澶辨晥璁剧疆 + //澶辨晥璁剧疆 string msgTimeInValidSetting = Language.StringByID(R.MyInternationalizationString.DoorLockOpenAllTheTime); var timeConfrim = Language.StringByID(R.MyInternationalizationString.Confrim); var alertTimeInValidSetting = new ShowDoorLockMsgControl(ShowDoorLockMsgControl.DoorLockMsgType.InValid, msgTimeInValidSetting, timeConfrim); @@ -1368,7 +1368,7 @@ //甯稿紑妯″紡澶辨晥鏃堕棿璁剧疆鎴愬姛 var temp = int.Parse(obj); DoorLockCommonInfo.NormallyOpenModeInvalidTime = temp; - //榛樿鍒涘缓甯稿紑妯″紡鐨勭壒娈婇�昏緫 + //榛樿鍒涘缓甯稿紑妯″紡鐨勭壒娈婇�昏緫 var res = await Shared.Phone.Device.Logic.SkipView.LockAddModifyLogic(DoorLockCommonInfo.NormallyOpenModeInvalidTime, doorLock); if (!res) { @@ -1410,7 +1410,7 @@ } #endregion - #region 寮�閿佸鐞� + #region 寮�閿佸鐞� /// <summary> /// 寮�閿佸鐞� /// </summary> diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Residence/LookRoomDeviceListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Residence/LookRoomDeviceListForm.cs index c848958..26abce9 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Residence/LookRoomDeviceListForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Residence/LookRoomDeviceListForm.cs @@ -95,7 +95,7 @@ //璁惧鍚嶅瓧 var btnName = frameRow.AddLeftCaption(Common.LocalDevice.Current.GetDeviceEpointName(device), 700); btnName.TextSize = 15; - if (device.IsOnline == 0) + if (Common.LocalDevice.Current.CheckDeviceIsOnline(device) == false) { btnName.TextColor = UserCenterColor.Current.TextGrayColor1; } diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Residence/LookRoomSettionForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Residence/LookRoomSettionForm.cs index 194c955..756134f 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Residence/LookRoomSettionForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Residence/LookRoomSettionForm.cs @@ -287,7 +287,7 @@ { for (int j = 0; j < list.Count; j++) { - string mainkeys = Common.LocalDevice.Current.GetDeviceMainKeys(list[i]); + string mainkeys = Common.LocalDevice.Current.GetDeviceMainKeys(list[j]); if (listView.Parent == null || dicData.ContainsKey(mainkeys) == false || listCheck.Contains(mainkeys) == true) { return; @@ -295,13 +295,13 @@ listCheck.Add(mainkeys); var localDevice = Common.LocalDevice.Current.GetDevice(mainkeys); - if (localDevice != null && localDevice.IsOnline != list[i].IsOnline) + if (localDevice != null && localDevice.IsOnline != list[j].IsOnline) { //鍦ㄧ嚎鐘舵�佷竴鏍风殑璇濓紝涓嶉渶瑕佸埛鏂� - localDevice.IsOnline = list[i].IsOnline; + localDevice.IsOnline = list[j].IsOnline; localDevice.ReSave(); } - if (list[i].IsOnline == 1) + if (Common.LocalDevice.Current.CheckDeviceIsOnline(list[j]) == true) { dicData[mainkeys].OnlineCount += 1; dicData[mainkeys].btnOnline.Text = dicData[mainkeys].OnlineCount + "/" + dicData[mainkeys].listDeviceKeys.Count; diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Safety/SafetyManagementMainForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Safety/SafetyManagementMainForm.cs index 6bafbed..5799375 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Safety/SafetyManagementMainForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Safety/SafetyManagementMainForm.cs @@ -599,7 +599,8 @@ Application.RunOnMainThread(() => { //璁剧疆鎺т欢鐨勫湪绾跨姸鎬佹枃鏈晥鏋� - control?.SetOnlineStatu(device.IsOnline == 1); + bool bolOnline = Common.LocalDevice.Current.CheckDeviceIsOnline(device); + control?.SetOnlineStatu(bolOnline); }); } } diff --git a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs index c94de76..4fa2c8c 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs @@ -415,10 +415,8 @@ UserCenterResourse.HideOption.CenterHideMenu = 1; } } - if (textValue == "0001a") + if (textValue == "1") { - var form = new Guide.GuideHouseForm(); - form.ShowFrom(); } if (textValue == "12349") { diff --git a/ZigbeeApp/Shared/Phone/ZigBee/Device/ZbGateway.cs b/ZigbeeApp/Shared/Phone/ZigBee/Device/ZbGateway.cs index 09952d0..05f1cf9 100644 --- a/ZigbeeApp/Shared/Phone/ZigBee/Device/ZbGateway.cs +++ b/ZigbeeApp/Shared/Phone/ZigBee/Device/ZbGateway.cs @@ -101,7 +101,7 @@ } } - #region variable + #region variable /// <summary> /// 杩滅▼杩炴帴鎴愬姛鏃剁殑鏃堕棿 /// </summary> @@ -600,422 +600,6 @@ return d; }); - } - #endregion - - #region 鑾峰彇宸插叆缃戣澶囦俊鎭� - /// <summary> - /// 鑾峰彇缃戝叧璁惧淇℃伅(娉ㄦ剰锛岃繖涓帴鍙d細琚幓鎺夛級 - /// </summary> - public async System.Threading.Tasks.Task<List<CommonDevice>> GetGwDeviceList() - { - DeviceList.Clear(); - return await System.Threading.Tasks.Task.Run((Func<System.Threading.Tasks.Task<List<CommonDevice>>>)(async () => - { - var dateTime = DateTime.Now; - bool canBreak = false; - Action<string, string> action = (topic, message) => - { - var gatewayID = topic.Split('/')[0]; - var jobject = Newtonsoft.Json.Linq.JObject.Parse(message); - - if (topic == gatewayID + "/" + "DeviceInfoRespon") - { - dateTime = DateTime.Now; - var totalNum = Newtonsoft.Json.JsonConvert.DeserializeObject<int>(jobject["Data"]["TotalNum"].ToString()); - if (totalNum == 0) - { - canBreak = true; - return; - } - var deviceID = jobject.Value<int>("Device_ID"); - switch ((DeviceType)(deviceID)) - { - //case DeviceType.DimmableLight: - // var dimmableLight = new DimmableLight() { DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = this.getGatewayBaseInfo?.gwID }; - // dimmableLight.DeviceInfo = Newtonsoft.Json.JsonConvert.DeserializeObject<DimmableLight.DeviceInfoData>(jobject["Data"].ToString()); - // if (dimmableLight.DeviceInfo == null) - // { - // return; - // } - // var light = DeviceList.Find(obj => obj.DeviceID == dimmableLight.DeviceID && obj.DeviceAddr == dimmableLight.DeviceAddr && obj.DeviceEpoint == dimmableLight.DeviceEpoint); - // if (light == null) - // { - // DeviceList.Add(dimmableLight); - // dimmableLight.DeviceName = dimmableLight.DeviceInfo.MacName; - // dimmableLight.DeviceEpointName = dimmableLight.DeviceInfo.DeviceName; - // dimmableLight.ImgVersion = dimmableLight.DeviceInfo.ImgVersion; - // dimmableLight.HwVersion = dimmableLight.DeviceInfo.HwVersion; - // dimmableLight.IsOnline = dimmableLight.DeviceInfo.IsOnline; - // dimmableLight.DriveCode = dimmableLight.DeviceInfo.DriveCode; - // dimmableLight.ImgTypeId = dimmableLight.DeviceInfo.ImgTypeId; - // dimmableLight.IasDeviceType = dimmableLight.DeviceInfo.DeviceType; - // dimmableLight.Profile = dimmableLight.DeviceInfo.Profile; - // dimmableLight.InClusterList = dimmableLight.DeviceInfo.InClusterList; - // dimmableLight.OutClusterList = dimmableLight.DeviceInfo.OutClusterList; - // dimmableLight.AttributeStatus = dimmableLight.DeviceInfo.AttributeStatus; - // //dimmableLight.Save(); - // } - // else - // { - // light.DeviceInfo = dimmableLight.DeviceInfo; - // light.DeviceName = dimmableLight.DeviceInfo.MacName; - // light.DeviceEpointName = dimmableLight.DeviceInfo.DeviceName; - // light.ImgVersion = dimmableLight.DeviceInfo.ImgVersion; - // light.HwVersion = dimmableLight.DeviceInfo.HwVersion; - // light.IsOnline = dimmableLight.DeviceInfo.IsOnline; - // light.DriveCode = dimmableLight.DeviceInfo.DriveCode; - // light.ImgTypeId = dimmableLight.DeviceInfo.ImgTypeId; - // light.IasDeviceType = dimmableLight.DeviceInfo.DeviceType; - // light.Profile = dimmableLight.DeviceInfo.Profile; - // light.InClusterList = dimmableLight.DeviceInfo.InClusterList; - // light.OutClusterList = dimmableLight.DeviceInfo.OutClusterList; - // light.AttributeStatus = dimmableLight.DeviceInfo.AttributeStatus; - // //dimmableLight.ReSave(); - // } - // DebugPrintLog($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - - // break; - //case DeviceType.OnOffSwitch: - // var panel = new Panel() { Time = jobject.Value<int>("Time"), DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = this.getGatewayBaseInfo?.gwID }; - // panel.DeviceInfo = Newtonsoft.Json.JsonConvert.DeserializeObject<Panel.DeviceInfoData>(jobject["Data"].ToString()); - // if (panel.DeviceInfo == null) - // { - // return; - // } - // var panelInfo = DeviceList.Find(obj => obj.DeviceID == panel.DeviceID && obj.DeviceAddr == panel.DeviceAddr && obj.DeviceEpoint == panel.DeviceEpoint); - // if (panelInfo == null) - // { - // DeviceList.Add(panel); - // panel.DeviceName = panel.DeviceInfo.MacName; - // panel.DeviceEpointName = panel.DeviceInfo.DeviceName; - // panel.ImgTypeId = panel.DeviceInfo.ImgTypeId; - // panel.ImgVersion = panel.DeviceInfo.ImgVersion; - // panel.HwVersion = panel.DeviceInfo.HwVersion; - // panel.IasDeviceType = panel.DeviceInfo.DeviceType; - // panel.IsOnline = panel.DeviceInfo.IsOnline; - // panel.DriveCode = panel.DeviceInfo.DriveCode; - // panel.Profile = panel.DeviceInfo.Profile; - // panel.InClusterList = panel.DeviceInfo.InClusterList; - // panel.OutClusterList = panel.DeviceInfo.OutClusterList; - // panel.AttributeStatus = panel.DeviceInfo.AttributeStatus; - // //panel.Save(); - // } - // else - // { - // panelInfo.DeviceInfo = panel.DeviceInfo; - // panelInfo.DeviceName = panel.DeviceInfo.MacName; - // panelInfo.DeviceEpointName = panel.DeviceInfo.DeviceName; - // panelInfo.ImgVersion = panel.DeviceInfo.ImgVersion; - // panelInfo.HwVersion = panel.DeviceInfo.HwVersion; - // panelInfo.IsOnline = panel.DeviceInfo.IsOnline; - // panelInfo.DriveCode = panel.DeviceInfo.DriveCode; - // panelInfo.IasDeviceType = panel.DeviceInfo.DeviceType; - // panelInfo.Profile = panel.DeviceInfo.Profile; - // panelInfo.ImgTypeId = panel.DeviceInfo.ImgTypeId; - // panelInfo.InClusterList = panel.DeviceInfo.InClusterList; - // panelInfo.OutClusterList = panel.DeviceInfo.OutClusterList; - // panelInfo.AttributeStatus = panel.DeviceInfo.AttributeStatus; - // //panel.ReSave(); - // } - // DebugPrintLog($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - - // break; - //case DeviceType.OnOffOutput: - // var toggleLight = new ToggleLight() { Time = jobject.Value<int>("Time"), DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = this.getGatewayBaseInfo?.gwID }; - // toggleLight.DeviceInfo = Newtonsoft.Json.JsonConvert.DeserializeObject<ToggleLight.DeviceInfoData>(jobject["Data"].ToString()); - // if (toggleLight.DeviceInfo == null) - // { - // return; - // } - // var toggleLightInfo = DeviceList.Find(obj => obj.DeviceID == toggleLight.DeviceID && obj.DeviceAddr == toggleLight.DeviceAddr && obj.DeviceEpoint == toggleLight.DeviceEpoint); - // if (toggleLightInfo == null) - // { - // DeviceList.Add(toggleLight); - // toggleLight.DeviceName = toggleLight.DeviceInfo.MacName; - // toggleLight.DeviceEpointName = toggleLight.DeviceInfo.DeviceName; - // toggleLight.ImgVersion = toggleLight.DeviceInfo.ImgVersion; - // toggleLight.HwVersion = toggleLight.DeviceInfo.HwVersion; - // toggleLight.IsOnline = toggleLight.DeviceInfo.IsOnline; - // toggleLight.DriveCode = toggleLight.DeviceInfo.DriveCode; - // toggleLight.IasDeviceType = toggleLight.DeviceInfo.DeviceType; - // toggleLight.Profile = toggleLight.DeviceInfo.Profile; - // toggleLight.ImgTypeId = toggleLight.DeviceInfo.ImgTypeId; - // toggleLight.InClusterList = toggleLight.DeviceInfo.InClusterList; - // toggleLight.OutClusterList = toggleLight.DeviceInfo.OutClusterList; - // toggleLight.AttributeStatus = toggleLight.DeviceInfo.AttributeStatus; - // //toggleLight.Save(); - // } - // else - // { - // toggleLightInfo.DeviceName = toggleLight.DeviceInfo.MacName; - // toggleLightInfo.DeviceEpointName = toggleLight.DeviceInfo.DeviceName; - // toggleLightInfo.ImgVersion = toggleLight.DeviceInfo.ImgVersion; - // toggleLightInfo.HwVersion = toggleLight.DeviceInfo.HwVersion; - // toggleLightInfo.IsOnline = toggleLight.DeviceInfo.IsOnline; - // toggleLightInfo.DriveCode = toggleLight.DeviceInfo.DriveCode; - // toggleLightInfo.IasDeviceType = toggleLight.DeviceInfo.DeviceType; - // toggleLightInfo.Profile = toggleLight.DeviceInfo.Profile; - // toggleLightInfo.ImgTypeId = toggleLight.DeviceInfo.ImgTypeId; - // toggleLightInfo.InClusterList = toggleLight.DeviceInfo.InClusterList; - // toggleLightInfo.OutClusterList = toggleLight.DeviceInfo.OutClusterList; - // toggleLightInfo.AttributeStatus = toggleLight.DeviceInfo.AttributeStatus; - // toggleLightInfo.DeviceInfo = toggleLight.DeviceInfo; - // //toggleLightInfo.ReSave(); - // } - // DebugPrintLog($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - - // break; - //case DeviceType.AirSwitch: - // var airSwitch = new AirSwitch() { Time = jobject.Value<int>("Time"), DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = this.getGatewayBaseInfo?.gwID }; - // airSwitch.DeviceInfo = Newtonsoft.Json.JsonConvert.DeserializeObject<AirSwitch.DeviceInfoData>(jobject["Data"].ToString()); - // if (airSwitch.DeviceInfo == null) - // { - // return; - // } - // var airSwitchInfo = DeviceList.Find(obj => obj.DeviceID == airSwitch.DeviceID && obj.DeviceAddr == airSwitch.DeviceAddr && obj.DeviceEpoint == airSwitch.DeviceEpoint); - // if (airSwitchInfo == null) - // { - // DeviceList.Add(airSwitch); - // airSwitch.DeviceName = airSwitch.DeviceInfo.MacName; - // airSwitch.DeviceEpointName = airSwitch.DeviceInfo.DeviceName; - // airSwitch.ImgVersion = airSwitch.DeviceInfo.ImgVersion; - // airSwitch.HwVersion = airSwitch.DeviceInfo.HwVersion; - // airSwitch.IsOnline = airSwitch.DeviceInfo.IsOnline; - // airSwitch.DriveCode = airSwitch.DeviceInfo.DriveCode; - // airSwitch.IasDeviceType = airSwitch.DeviceInfo.DeviceType; - // airSwitch.Profile = airSwitch.DeviceInfo.Profile; - // airSwitch.ImgTypeId = airSwitch.DeviceInfo.ImgTypeId; - // airSwitch.InClusterList = airSwitch.DeviceInfo.InClusterList; - // airSwitch.OutClusterList = airSwitch.DeviceInfo.OutClusterList; - // airSwitch.AttributeStatus = airSwitch.DeviceInfo.AttributeStatus; - // //airSwitch.Save(); - // } - // else - // { - // airSwitchInfo.DeviceName = airSwitch.DeviceInfo.MacName; - // airSwitchInfo.DeviceEpointName = airSwitch.DeviceInfo.DeviceName; - // airSwitchInfo.ImgVersion = airSwitch.DeviceInfo.ImgVersion; - // airSwitchInfo.HwVersion = airSwitch.DeviceInfo.HwVersion; - // airSwitchInfo.IsOnline = airSwitch.DeviceInfo.IsOnline; - // airSwitchInfo.DriveCode = airSwitch.DeviceInfo.DriveCode; - // airSwitchInfo.IasDeviceType = airSwitch.DeviceInfo.DeviceType; - // airSwitchInfo.Profile = airSwitch.DeviceInfo.Profile; - // airSwitchInfo.ImgTypeId = airSwitch.DeviceInfo.ImgTypeId; - // airSwitchInfo.InClusterList = airSwitch.DeviceInfo.InClusterList; - // airSwitchInfo.OutClusterList = airSwitch.DeviceInfo.OutClusterList; - // airSwitchInfo.AttributeStatus = airSwitch.DeviceInfo.AttributeStatus; - // airSwitchInfo.DeviceInfo = airSwitch.DeviceInfo; - // // airSwitchInfo.ReSave(); - // } - // DebugPrintLog($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - - // break; - //case DeviceType.WindowCoveringDevice: - // var windowCovering = new Rollershade() { DeviceID = jobject.Value<int>((object)"Device_ID"), DeviceAddr = jobject.Value<string>((object)"DeviceAddr"), DeviceEpoint = jobject.Value<int>((object)"Epoint"), DataID = jobject.Value<int>((object)"Data_ID"), CurrentGateWayId = this.getGatewayBaseInfo?.gwID }; - // windowCovering.DeviceInfo = Newtonsoft.Json.JsonConvert.DeserializeObject<Rollershade.DeviceInfoData>(jobject["Data"].ToString()); - // if (windowCovering.DeviceInfo == null) - // { - // return; - // } - // var wc = DeviceList.Find(obj => obj.DeviceID == windowCovering.DeviceID && obj.DeviceAddr == windowCovering.DeviceAddr && obj.DeviceEpoint == windowCovering.DeviceEpoint); - // if (wc == null) - // { - // DeviceList.Add(windowCovering); - // windowCovering.DeviceName = windowCovering.DeviceInfo.MacName; - // windowCovering.DeviceEpointName = windowCovering.DeviceInfo.DeviceName; - // windowCovering.ImgVersion = windowCovering.DeviceInfo.ImgVersion; - // windowCovering.HwVersion = windowCovering.DeviceInfo.HwVersion; - // windowCovering.IsOnline = windowCovering.DeviceInfo.IsOnline; - // windowCovering.DriveCode = windowCovering.DeviceInfo.DriveCode; - // windowCovering.IasDeviceType = windowCovering.DeviceInfo.DeviceType; - // windowCovering.Profile = windowCovering.DeviceInfo.Profile; - // windowCovering.ImgTypeId = windowCovering.DeviceInfo.ImgTypeId; - // windowCovering.InClusterList = windowCovering.DeviceInfo.InClusterList; - // windowCovering.OutClusterList = windowCovering.DeviceInfo.OutClusterList; - // windowCovering.AttributeStatus = windowCovering.DeviceInfo.AttributeStatus; - // //windowCovering.Save(); - // } - // else - // { - // wc.DeviceName = windowCovering.DeviceInfo.MacName; - // wc.DeviceEpointName = windowCovering.DeviceInfo.DeviceName; - // wc.DeviceInfo = windowCovering.DeviceInfo; - // wc.ImgVersion = windowCovering.DeviceInfo.ImgVersion; - // wc.HwVersion = windowCovering.DeviceInfo.HwVersion; - // wc.IsOnline = windowCovering.DeviceInfo.IsOnline; - // wc.DriveCode = windowCovering.DeviceInfo.DriveCode; - // wc.IasDeviceType = windowCovering.DeviceInfo.DeviceType; - // wc.Profile = windowCovering.DeviceInfo.Profile; - // wc.ImgTypeId = windowCovering.DeviceInfo.ImgTypeId; - // wc.InClusterList = windowCovering.DeviceInfo.InClusterList; - // wc.OutClusterList = windowCovering.DeviceInfo.OutClusterList; - // wc.AttributeStatus = windowCovering.DeviceInfo.AttributeStatus; - // // wc.ReSave(); - // } - // DebugPrintLog($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - // break; - //case DeviceType.IASZone: - // var ias = new IASZone() { Time = jobject.Value<int>("Time"), DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = this.getGatewayBaseInfo?.gwID }; - // ias.DeviceInfo = Newtonsoft.Json.JsonConvert.DeserializeObject<IASZone.DeviceInfoData>(jobject["Data"].ToString()); - // if (ias.DeviceInfo == null) - // { - // return; - // } - // var infoIAS = DeviceList.Find(obj => obj.DeviceID == ias.DeviceID && obj.DeviceAddr == ias.DeviceAddr && obj.DeviceEpoint == ias.DeviceEpoint); - // if (infoIAS == null) - // { - // DeviceList.Add(ias); - // ias.DeviceName = ias.DeviceInfo.MacName; - // ias.DeviceEpointName = ias.DeviceInfo.DeviceName; - // ias.ImgVersion = ias.DeviceInfo.ImgVersion; - // ias.HwVersion = ias.DeviceInfo.HwVersion; - // ias.IsOnline = ias.DeviceInfo.IsOnline; - // ias.DriveCode = ias.DeviceInfo.DriveCode; - // ias.IasDeviceType = ias.DeviceInfo.DeviceType; - // ias.Profile = ias.DeviceInfo.Profile; - // ias.ImgTypeId = ias.DeviceInfo.ImgTypeId; - // ias.InClusterList = ias.DeviceInfo.InClusterList; - // ias.OutClusterList = ias.DeviceInfo.OutClusterList; - // ias.AttributeStatus = ias.DeviceInfo.AttributeStatus; - // //ias.Save(); - // } - // else - // { - // infoIAS.DeviceName = ias.DeviceInfo.MacName; - // infoIAS.DeviceEpointName = ias.DeviceInfo.DeviceName; - // infoIAS.DeviceEpointName = ias.DeviceInfo.DeviceName; - // infoIAS.ImgVersion = ias.DeviceInfo.ImgVersion; - // infoIAS.HwVersion = ias.DeviceInfo.HwVersion; - // infoIAS.IsOnline = ias.DeviceInfo.IsOnline; - // infoIAS.DriveCode = ias.DeviceInfo.DriveCode; - // infoIAS.IasDeviceType = ias.DeviceInfo.DeviceType; - // infoIAS.Profile = ias.DeviceInfo.Profile; - // infoIAS.ImgTypeId = ias.DeviceInfo.ImgTypeId; - // infoIAS.InClusterList = ias.DeviceInfo.InClusterList; - // infoIAS.OutClusterList = ias.DeviceInfo.OutClusterList; - // infoIAS.AttributeStatus = ias.DeviceInfo.AttributeStatus; - // infoIAS.DeviceInfo = ias.DeviceInfo; - // //ias.ReSave(); - // } - // DebugPrintLog($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - // break; - //case DeviceType.OtaDevice: - //case DeviceType.OtaPanelDevice: - //var ota = new OTADevice() { Time = jobject.Value<int>("Time"), DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = this.getGatewayBaseInfo?.gwID }; - //ota.DeviceInfo = Newtonsoft.Json.JsonConvert.DeserializeObject<DeviceInfoData>(jobject["Data"].ToString()); - //if (ota.DeviceInfo == null) - //{ - // return; - //} - //var infoOta = DeviceList.Find(obj => obj.DeviceID == ota.DeviceID && obj.DeviceAddr == ota.DeviceAddr && obj.DeviceEpoint == ota.DeviceEpoint); - //if (infoOta == null) - //{ - // DeviceList.Add(ota); - // ota.DeviceName = ota.DeviceInfo.MacName; - // ota.DeviceEpointName = ota.DeviceInfo.DeviceName; - // ota.ImgVersion = ota.DeviceInfo.ImgVersion; - // ota.HwVersion = ota.DeviceInfo.HwVersion; - // ota.IsOnline = ota.DeviceInfo.IsOnline; - // ota.DriveCode = ota.DeviceInfo.DriveCode; - // ota.IasDeviceType = ota.DeviceInfo.DeviceType; - // ota.Profile = ota.DeviceInfo.Profile; - // ota.ImgTypeId = ota.DeviceInfo.ImgTypeId; - // ota.InClusterList = ota.DeviceInfo.InClusterList; - // ota.OutClusterList = ota.DeviceInfo.OutClusterList; - // ota.AttributeStatus = ota.DeviceInfo.AttributeStatus; - // //ota.Save(); - //} - //else - //{ - // infoOta.DeviceName = ota.DeviceInfo.MacName; - // infoOta.DeviceEpointName = ota.DeviceInfo.DeviceName; - // infoOta.DeviceEpointName = ota.DeviceInfo.DeviceName; - // infoOta.ImgVersion = ota.DeviceInfo.ImgVersion; - // infoOta.HwVersion = ota.DeviceInfo.HwVersion; - // infoOta.IsOnline = ota.DeviceInfo.IsOnline; - // infoOta.DriveCode = ota.DeviceInfo.DriveCode; - // infoOta.IasDeviceType = ota.DeviceInfo.DeviceType; - // infoOta.Profile = ota.DeviceInfo.Profile; - // infoOta.ImgTypeId = ota.DeviceInfo.ImgTypeId; - // infoOta.InClusterList = ota.DeviceInfo.InClusterList; - // infoOta.OutClusterList = ota.DeviceInfo.OutClusterList; - // infoOta.AttributeStatus = ota.DeviceInfo.AttributeStatus; - // infoOta.DeviceInfo = ota.DeviceInfo; - // //ota.ReSave(); - //} - //DebugPrintLog($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - //break; - //case DeviceType.Thermostat: - //var thermostat = new ThermostatObj() { DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = gateway.getGatewayBaseInfo.gwID }; - //thermostat.DeviceInfo = Newtonsoft.Json.JsonConvert.DeserializeObject<ThermostatObj.DeviceInfoData>(jobject["Data"].ToString()); - //if (thermostat.DeviceInfo == null) - //{ - // return; - //} - //var ther = gateway.DeviceList.Find(obj => obj.DeviceID == thermostat.DeviceID && obj.DeviceAddr == thermostat.DeviceAddr && obj.DeviceEpoint == thermostat.DeviceEpoint); - //if (ther == null) - //{ - // gateway.DeviceList.Add(thermostat); - // thermostat.DeviceName = thermostat.DeviceInfo.DeviceName; - // IO.LocalFileUtils.SaveDeviceInfo(thermostat, thermostat.DeviceEpoint.ToString()); - //} - //else - //{ - // ther.DeviceName = thermostat.DeviceInfo.DeviceName; - // ther.DeviceInfo = thermostat.DeviceInfo; - // ZigBee.IO.LocalFileUtils.SaveDeviceInfo(ther, ther.DeviceEpoint.ToString()); - //} - //break; - //case DeviceType.TemperatureSensor: - //var temperatureSensor = new TemperatureSensor() { DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = gateway.getGatewayBaseInfo.gwID }; - //temperatureSensor.DeviceInfo = Newtonsoft.Json.JsonConvert.DeserializeObject<TemperatureSensor.DeviceInfoData>(jobject["Data"].ToString()); - //if (temperatureSensor.DeviceInfo == null) - //{ - // return; - //} - //var ts = gateway.DeviceList.Find(obj => obj.DeviceID == temperatureSensor.DeviceID && obj.DeviceAddr == temperatureSensor.DeviceAddr && obj.DeviceEpoint == temperatureSensor.DeviceEpoint); - //if (ts == null) - //{ - // gateway.DeviceList.Add(temperatureSensor); - // temperatureSensor.DeviceName = temperatureSensor.DeviceInfo.DeviceName; - // IO.LocalFileUtils.SaveDeviceInfo(temperatureSensor, temperatureSensor.DeviceEpoint.ToString()); - //} - //else - //{ - // ts.DeviceName = temperatureSensor.DeviceInfo.DeviceName; - // ts.DeviceInfo = temperatureSensor.DeviceInfo; - // IO.LocalFileUtils.SaveDeviceInfo(ts, ts.DeviceEpoint.ToString()); - //} - //break; - - } - } - else if (topic == gatewayID + "/" + "DeviceInfoResponEnd") - { - canBreak = true; - } - }; - - Actions += action; - DebugPrintLog("DeviceInfo Actions 鍚姩" + "_" + System.DateTime.Now.ToString()); - - try - { - var jObject = new JObject { { "Cluster_ID", 0 }, { "Command", 93 } }; - Send("GetDeviceInfo", jObject.ToString()); - } - catch { } - - while (canBreak == false && (DateTime.Now - dateTime).TotalMilliseconds < 6000) - { - await System.Threading.Tasks.Task.Delay(10); - } - - Actions -= action; - DebugPrintLog("DeviceInfo_Actions 閫�鍑�" + System.DateTime.Now.ToString()); - return DeviceList; - })); } #endregion @@ -3527,7 +3111,7 @@ await RemoteMqttClient.DisconnectAsync(); } } - catch (Exception e) + catch (Exception e) { DebugPrintLog($"Remote鏂紑閫氳杩炴帴鍑哄紓甯�:{e.Message}"); } diff --git a/ZigbeeApp/Shared/Phone/ZigBee/Device/ZbGatewayData.cs b/ZigbeeApp/Shared/Phone/ZigBee/Device/ZbGatewayData.cs index d063079..e77d781 100755 --- a/ZigbeeApp/Shared/Phone/ZigBee/Device/ZbGatewayData.cs +++ b/ZigbeeApp/Shared/Phone/ZigBee/Device/ZbGatewayData.cs @@ -443,355 +443,6 @@ } #endregion - #region 鑾峰彇鎵�鏈夌綉鍏崇殑鑺傜偣璁惧淇℃伅锛堢敤浜庝富缃戝叧锛� - ///// <summary> - ///// 鑾峰彇鎵�鏈夌綉鍏崇殑鑺傜偣璁惧淇℃伅锛堢敤浜庝富缃戝叧锛� - ///// </summary> - //public static async System.Threading.Tasks.Task<List<CommonDevice>> GetAllGatewayDeviceInfoList() - //{ - // if (ZbGateway.MainGateWay == null) - // { - // return null; - // } - // ZbGateway.MainGateWay.AllGatewayDeviceList.Clear(); - // return await System.Threading.Tasks.Task.Run((Func<System.Threading.Tasks.Task<List<CommonDevice>>>)(async () => - // { - // var dateTime = DateTime.Now; - // Action<string, string> action = (topic, message) => - // { - - // var gatewayID = topic.Split('/')[0]; - // var jobject = Newtonsoft.Json.Linq.JObject.Parse(message); - // if (topic == gatewayID + "/" + "DeviceInfoRespon") - // { - // dateTime = DateTime.Now; - // var deviceID = jobject.Value<int>("Device_ID"); - // switch ((DeviceType)(deviceID)) - // { - // case DeviceType.ColorDimmableLight: - // var dimmableLight = new ColorDimmableLight() { DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID") }; - // dimmableLight.getAllGatewayDeviceInfo = Newtonsoft.Json.JsonConvert.DeserializeObject<ColorDimmableLight.AllGatewayDeviceInfo>(jobject["Data"].ToString()); - // if (dimmableLight.getAllGatewayDeviceInfo == null) - // { - // return; - // } - // dimmableLight.CurrentGateWayId = dimmableLight.getAllGatewayDeviceInfo.GwId; - // var light = ZbGateway.MainGateWay.AllGatewayDeviceList.Find(obj => obj.DeviceID == dimmableLight.DeviceID && obj.DeviceAddr == dimmableLight.DeviceAddr && obj.DeviceEpoint == dimmableLight.DeviceEpoint); - // if (light == null) - // { - // ZbGateway.MainGateWay.AllGatewayDeviceList.Add(dimmableLight); - // dimmableLight.DeviceName = dimmableLight.getAllGatewayDeviceInfo.MacName; - // dimmableLight.DeviceEpointName = dimmableLight.getAllGatewayDeviceInfo.DeviceName; - // dimmableLight.ImgVersion = dimmableLight.getAllGatewayDeviceInfo.ImgVersion; - // dimmableLight.IsOnline = dimmableLight.getAllGatewayDeviceInfo.IsOnline; - // dimmableLight.IasDeviceType = dimmableLight.getAllGatewayDeviceInfo.DeviceType; - // dimmableLight.Profile = dimmableLight.getAllGatewayDeviceInfo.Profile; - // dimmableLight.ImgTypeId = dimmableLight.getAllGatewayDeviceInfo.ImgTypeId; - // dimmableLight.InClusterList = dimmableLight.getAllGatewayDeviceInfo.InClusterList; - // dimmableLight.OutClusterList = dimmableLight.getAllGatewayDeviceInfo.OutClusterList; - // dimmableLight.AttributeStatus = dimmableLight.getAllGatewayDeviceInfo.AttributeStatus; - // dimmableLight.Save(); - // } - // else - // { - // light.getAllGatewayDeviceInfo = dimmableLight.getAllGatewayDeviceInfo; - // light.DeviceName = dimmableLight.getAllGatewayDeviceInfo.MacName; - // light.DeviceEpointName = dimmableLight.getAllGatewayDeviceInfo.DeviceName; - // light.ImgVersion = dimmableLight.getAllGatewayDeviceInfo.ImgVersion; - // light.IsOnline = dimmableLight.getAllGatewayDeviceInfo.IsOnline; - // light.IasDeviceType = dimmableLight.getAllGatewayDeviceInfo.DeviceType; - // light.Profile = dimmableLight.getAllGatewayDeviceInfo.Profile; - // light.ImgTypeId = dimmableLight.getAllGatewayDeviceInfo.ImgTypeId; - // light.InClusterList = dimmableLight.getAllGatewayDeviceInfo.InClusterList; - // light.OutClusterList = dimmableLight.getAllGatewayDeviceInfo.OutClusterList; - // light.AttributeStatus = dimmableLight.getAllGatewayDeviceInfo.AttributeStatus; - // light.ReSave(); - // } - // System.Console.WriteLine($"鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - - // break; - // case DeviceType.OnOffOutput: - // var toggleLight = new ToggleLight() { Time = jobject.Value<int>("Time"), DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID") }; - // toggleLight.getAllGatewayDeviceInfo = Newtonsoft.Json.JsonConvert.DeserializeObject<ToggleLight.AllGatewayDeviceInfo>(jobject["Data"].ToString()); - // if (toggleLight.getAllGatewayDeviceInfo == null) - // { - // return; - // } - // toggleLight.CurrentGateWayId = toggleLight.getAllGatewayDeviceInfo.GwId; - - // var localToggleLight = ZbGateway.MainGateWay.AllGatewayDeviceList.Find(obj => obj.DeviceID == toggleLight.DeviceID && obj.DeviceAddr == toggleLight.DeviceAddr && obj.DeviceEpoint == toggleLight.DeviceEpoint); - // if (localToggleLight == null) - // { - // toggleLight.DeviceName = toggleLight.getAllGatewayDeviceInfo.MacName; - // toggleLight.DeviceEpointName = toggleLight.getAllGatewayDeviceInfo.DeviceName; - // toggleLight.ImgVersion = toggleLight.getAllGatewayDeviceInfo.ImgVersion; - // toggleLight.IsOnline = toggleLight.getAllGatewayDeviceInfo.IsOnline; - // toggleLight.IasDeviceType = toggleLight.getAllGatewayDeviceInfo.DeviceType; - // toggleLight.Profile = toggleLight.getAllGatewayDeviceInfo.Profile; - // toggleLight.ImgTypeId = toggleLight.getAllGatewayDeviceInfo.ImgTypeId; - // toggleLight.InClusterList = toggleLight.getAllGatewayDeviceInfo.InClusterList; - // toggleLight.OutClusterList = toggleLight.getAllGatewayDeviceInfo.OutClusterList; - // toggleLight.AttributeStatus = toggleLight.getAllGatewayDeviceInfo.AttributeStatus; - // ZbGateway.MainGateWay.AllGatewayDeviceList.Add(toggleLight); - // toggleLight.Save(); - - // } - // else - // { - // localToggleLight.getAllGatewayDeviceInfo = toggleLight.getAllGatewayDeviceInfo; - // localToggleLight.DeviceName = toggleLight.getAllGatewayDeviceInfo.MacName; - // localToggleLight.DeviceEpointName = toggleLight.getAllGatewayDeviceInfo.DeviceName; - // localToggleLight.ImgVersion = toggleLight.getAllGatewayDeviceInfo.ImgVersion; - // localToggleLight.IsOnline = toggleLight.getAllGatewayDeviceInfo.IsOnline; - // localToggleLight.IasDeviceType = toggleLight.getAllGatewayDeviceInfo.DeviceType; - // localToggleLight.Profile = toggleLight.getAllGatewayDeviceInfo.Profile; - // localToggleLight.ImgTypeId = toggleLight.getAllGatewayDeviceInfo.ImgTypeId; - // localToggleLight.InClusterList = toggleLight.getAllGatewayDeviceInfo.InClusterList; - // localToggleLight.OutClusterList = toggleLight.getAllGatewayDeviceInfo.OutClusterList; - // localToggleLight.AttributeStatus = toggleLight.getAllGatewayDeviceInfo.AttributeStatus; - // localToggleLight.ReSave(); - // } - // System.Console.WriteLine($"鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - - // break; - // case DeviceType.OnOffSwitch: - // var panel = new Panel() { Time = jobject.Value<int>("Time"), DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID") }; - // panel.getAllGatewayDeviceInfo = Newtonsoft.Json.JsonConvert.DeserializeObject<Panel.AllGatewayDeviceInfo>(jobject["Data"].ToString()); - // if (panel.getAllGatewayDeviceInfo == null) - // { - // return; - // } - // panel.CurrentGateWayId = panel.getAllGatewayDeviceInfo.GwId; - - // var localPanel = ZbGateway.MainGateWay.AllGatewayDeviceList.Find(obj => obj.DeviceID == panel.DeviceID && obj.DeviceAddr == panel.DeviceAddr && obj.DeviceEpoint == panel.DeviceEpoint); - // if (localPanel == null) - // { - // panel.DeviceName = panel.getAllGatewayDeviceInfo.MacName; - // panel.DeviceEpointName = panel.getAllGatewayDeviceInfo.DeviceName; - // panel.ImgVersion = panel.getAllGatewayDeviceInfo.ImgVersion; - // panel.IsOnline = panel.getAllGatewayDeviceInfo.IsOnline; - // panel.IasDeviceType = panel.getAllGatewayDeviceInfo.DeviceType; - // panel.Profile = panel.getAllGatewayDeviceInfo.Profile; - // panel.ImgTypeId = panel.getAllGatewayDeviceInfo.ImgTypeId; - // panel.InClusterList = panel.getAllGatewayDeviceInfo.InClusterList; - // panel.OutClusterList = panel.getAllGatewayDeviceInfo.OutClusterList; - // panel.AttributeStatus = panel.getAllGatewayDeviceInfo.AttributeStatus; - // if (panel.DeviceAddr != null) - // { - // ZbGateway.MainGateWay.AllGatewayDeviceList.Add(panel); - // } - // panel.Save(); - // } - // else - // { - // localPanel.getAllGatewayDeviceInfo = panel.getAllGatewayDeviceInfo; - // localPanel.DeviceName = panel.getAllGatewayDeviceInfo.MacName; - // localPanel.DeviceEpointName = panel.getAllGatewayDeviceInfo.DeviceName; - // localPanel.ImgVersion = panel.getAllGatewayDeviceInfo.ImgVersion; - // localPanel.IsOnline = panel.getAllGatewayDeviceInfo.IsOnline; - // localPanel.IasDeviceType = panel.getAllGatewayDeviceInfo.DeviceType; - // localPanel.Profile = panel.getAllGatewayDeviceInfo.Profile; - // localPanel.ImgTypeId = panel.getAllGatewayDeviceInfo.ImgTypeId; - // localPanel.InClusterList = panel.getAllGatewayDeviceInfo.InClusterList; - // localPanel.OutClusterList = panel.getAllGatewayDeviceInfo.OutClusterList; - // localPanel.AttributeStatus = panel.getAllGatewayDeviceInfo.AttributeStatus; - // localPanel.ReSave(); - // } - // System.Console.WriteLine($"鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - - // break; - // case DeviceType.WindowCoveringDevice: - // var windowCovering = new Rollershade() { DeviceID = jobject.Value<int>((object)"Device_ID"), DeviceAddr = jobject.Value<string>((object)"DeviceAddr"), DeviceEpoint = jobject.Value<int>((object)"Epoint"), DataID = jobject.Value<int>((object)"Data_ID") }; - // windowCovering.getAllGatewayDeviceInfo = Newtonsoft.Json.JsonConvert.DeserializeObject<Rollershade.AllGatewayDeviceInfo>(jobject["Data"].ToString()); - // if (windowCovering.getAllGatewayDeviceInfo == null) - // { - // return; - // } - // windowCovering.CurrentGateWayId = windowCovering.getAllGatewayDeviceInfo.GwId; - - // var wc = ZbGateway.MainGateWay.AllGatewayDeviceList.Find(obj => obj.DeviceID == windowCovering.DeviceID && obj.DeviceAddr == windowCovering.DeviceAddr && obj.DeviceEpoint == windowCovering.DeviceEpoint); - // if (wc == null) - // { - // windowCovering.DeviceName = windowCovering.getAllGatewayDeviceInfo.MacName; - // windowCovering.DeviceEpointName = windowCovering.getAllGatewayDeviceInfo.DeviceName; - // windowCovering.ImgVersion = windowCovering.getAllGatewayDeviceInfo.ImgVersion; - // windowCovering.IsOnline = windowCovering.getAllGatewayDeviceInfo.IsOnline; - // windowCovering.IasDeviceType = windowCovering.getAllGatewayDeviceInfo.DeviceType; - // windowCovering.Profile = windowCovering.getAllGatewayDeviceInfo.Profile; - // windowCovering.ImgTypeId = windowCovering.getAllGatewayDeviceInfo.ImgTypeId; - // windowCovering.InClusterList = windowCovering.getAllGatewayDeviceInfo.InClusterList; - // windowCovering.OutClusterList = windowCovering.getAllGatewayDeviceInfo.OutClusterList; - // windowCovering.AttributeStatus = windowCovering.getAllGatewayDeviceInfo.AttributeStatus; - // ZbGateway.MainGateWay.AllGatewayDeviceList.Add(windowCovering); - // windowCovering.Save(); - - // } - // else - // { - // wc.getAllGatewayDeviceInfo = windowCovering.getAllGatewayDeviceInfo; - // wc.DeviceName = windowCovering.getAllGatewayDeviceInfo.MacName; - // wc.DeviceEpointName = windowCovering.getAllGatewayDeviceInfo.DeviceName; - // wc.ImgVersion = windowCovering.getAllGatewayDeviceInfo.ImgVersion; - // wc.IsOnline = windowCovering.getAllGatewayDeviceInfo.IsOnline; - // wc.IasDeviceType = windowCovering.getAllGatewayDeviceInfo.DeviceType; - // wc.Profile = windowCovering.getAllGatewayDeviceInfo.Profile; - // wc.ImgTypeId = windowCovering.getAllGatewayDeviceInfo.ImgTypeId; - // wc.InClusterList = windowCovering.getAllGatewayDeviceInfo.InClusterList; - // wc.OutClusterList = windowCovering.getAllGatewayDeviceInfo.OutClusterList; - // wc.AttributeStatus = windowCovering.getAllGatewayDeviceInfo.AttributeStatus; - // wc.ReSave(); - // } - // System.Console.WriteLine($"鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - - // break; - // case DeviceType.IASZone: - // var ias = new IASZone() { Time = jobject.Value<int>("Time"), DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID") }; - // ias.getAllGatewayDeviceInfo = Newtonsoft.Json.JsonConvert.DeserializeObject<IASZone.AllGatewayDeviceInfo>(jobject["Data"].ToString()); - // if (ias.getAllGatewayDeviceInfo == null) - // { - // return; - // } - // ias.CurrentGateWayId = ias.getAllGatewayDeviceInfo.GwId; - - // var infoIAS = ZbGateway.MainGateWay.AllGatewayDeviceList.Find(obj => obj.DeviceID == ias.DeviceID && obj.DeviceAddr == ias.DeviceAddr && obj.DeviceEpoint == ias.DeviceEpoint); - // if (infoIAS == null) - // { - // ZbGateway.MainGateWay.AllGatewayDeviceList.Add(ias); - // ias.DeviceName = ias.getAllGatewayDeviceInfo.MacName; - // ias.DeviceEpointName = ias.getAllGatewayDeviceInfo.DeviceName; - // ias.ImgVersion = ias.getAllGatewayDeviceInfo.ImgVersion; - // ias.IsOnline = ias.getAllGatewayDeviceInfo.IsOnline; - // ias.IasDeviceType = ias.getAllGatewayDeviceInfo.DeviceType; - // ias.Profile = ias.getAllGatewayDeviceInfo.Profile; - // ias.ImgTypeId = ias.getAllGatewayDeviceInfo.ImgTypeId; - // ias.InClusterList = ias.getAllGatewayDeviceInfo.InClusterList; - // ias.OutClusterList = ias.getAllGatewayDeviceInfo.OutClusterList; - // ias.AttributeStatus = ias.getAllGatewayDeviceInfo.AttributeStatus; - // ias.Save(); - // } - // else - // { - // infoIAS.DeviceName = ias.getAllGatewayDeviceInfo.MacName; - // infoIAS.DeviceEpointName = ias.getAllGatewayDeviceInfo.DeviceName; - // infoIAS.getAllGatewayDeviceInfo = ias.getAllGatewayDeviceInfo; - // infoIAS.ImgVersion = ias.getAllGatewayDeviceInfo.ImgVersion; - // infoIAS.IsOnline = ias.getAllGatewayDeviceInfo.IsOnline; - // infoIAS.IasDeviceType = ias.getAllGatewayDeviceInfo.DeviceType; - // infoIAS.Profile = ias.getAllGatewayDeviceInfo.Profile; - // infoIAS.ImgTypeId = ias.getAllGatewayDeviceInfo.ImgTypeId; - // infoIAS.InClusterList = ias.getAllGatewayDeviceInfo.InClusterList; - // infoIAS.OutClusterList = ias.getAllGatewayDeviceInfo.OutClusterList; - // infoIAS.AttributeStatus = ias.getAllGatewayDeviceInfo.AttributeStatus; - // ias.ReSave(); - // } - // System.Console.WriteLine($"鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - // break; - // case DeviceType.OtaDevice: - // case DeviceType.OtaPanelDevice: - // var ota = new OTADevice() { Time = jobject.Value<int>("Time"), DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID") }; - // ota.getAllGatewayDeviceInfo = Newtonsoft.Json.JsonConvert.DeserializeObject<AllGatewayDeviceInfo>(jobject["Data"].ToString()); - // if (ota.getAllGatewayDeviceInfo == null) - // { - // return; - // } - // ota.CurrentGateWayId = ota.getAllGatewayDeviceInfo.GwId; - - // var infoOta = ZbGateway.MainGateWay.AllGatewayDeviceList.Find(obj => obj.DeviceID == ota.DeviceID && obj.DeviceAddr == ota.DeviceAddr && obj.DeviceEpoint == ota.DeviceEpoint); - // if (infoOta == null) - // { - // ZbGateway.MainGateWay.AllGatewayDeviceList.Add(ota); - // ota.DeviceName = ota.getAllGatewayDeviceInfo.MacName; - // ota.DeviceEpointName = ota.getAllGatewayDeviceInfo.DeviceName; - // ota.ImgVersion = ota.getAllGatewayDeviceInfo.ImgVersion; - // ota.IsOnline = ota.getAllGatewayDeviceInfo.IsOnline; - // ota.IasDeviceType = ota.getAllGatewayDeviceInfo.DeviceType; - // ota.Profile = ota.getAllGatewayDeviceInfo.Profile; - // ota.ImgTypeId = ota.getAllGatewayDeviceInfo.ImgTypeId; - // ota.InClusterList = ota.getAllGatewayDeviceInfo.InClusterList; - // ota.OutClusterList = ota.getAllGatewayDeviceInfo.OutClusterList; - // ota.AttributeStatus = ota.getAllGatewayDeviceInfo.AttributeStatus; - // ota.Save(); - // } - // else - // { - // infoOta.DeviceName = ota.getAllGatewayDeviceInfo.MacName; - // infoOta.DeviceEpointName = ota.getAllGatewayDeviceInfo.DeviceName; - // infoOta.getAllGatewayDeviceInfo = ota.getAllGatewayDeviceInfo; - // infoOta.ImgVersion = ota.getAllGatewayDeviceInfo.ImgVersion; - // infoOta.IsOnline = ota.getAllGatewayDeviceInfo.IsOnline; - // infoOta.IasDeviceType = ota.getAllGatewayDeviceInfo.DeviceType; - // infoOta.Profile = ota.getAllGatewayDeviceInfo.Profile; - // infoOta.ImgTypeId = ota.getAllGatewayDeviceInfo.ImgTypeId; - // infoOta.InClusterList = ota.getAllGatewayDeviceInfo.InClusterList; - // infoOta.OutClusterList = ota.getAllGatewayDeviceInfo.OutClusterList; - // infoOta.AttributeStatus = ota.getAllGatewayDeviceInfo.AttributeStatus; - // ota.ReSave(); - // } - // System.Console.WriteLine($"鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - // break; - // //case DeviceType.Thermostat: - // //var thermostat = new ThermostatObj() { DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = ZbGateway.MainGateWay.getGatewayBaseInfo.gwID }; - // //thermostat.DeviceInfo = Newtonsoft.Json.JsonConvert.DeserializeObject<ThermostatObj.DeviceInfoData>(jobject["Data"].ToString()); - // //if (thermostat.DeviceInfo == null) - // //{ - // // return; - // //} - // // var ther = ZbGateway.MainGateWay.AllGatewayDeviceList.Find(obj => obj.DeviceID == thermostat.DeviceID && obj.DeviceAddr == thermostat.DeviceAddr && obj.DeviceEpoint == thermostat.DeviceEpoint); - // //if (ther == null) - // //{ - // // thermostat.DeviceName = thermostat.DeviceInfo.DeviceName; - // // ZbGateway.MainGateWay.AllGatewayDeviceList.Add(thermostat); - // //} - // //else - // //{ - // // thermostat.DeviceName = thermostat.DeviceInfo.DeviceName; - // // ZigBee.IO.LocalFileUtils.SaveDeviceInfo(thermostat, thermostat.DeviceEpoint.ToString()); - // //} - // //break; - // //case DeviceType.TemperatureSensor: - // // var temperatureSensor = new TemperatureSensor() { DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = ZbGateway.MainGateWay.getGatewayBaseInfo.gwID }; - // // temperatureSensor.DeviceInfo = Newtonsoft.Json.JsonConvert.DeserializeObject<TemperatureSensor.DeviceInfoData>(jobject["Data"].ToString()); - // // if (temperatureSensor.DeviceInfo == null) - // // { - // // return; - // // } - // // var ts = ZbGateway.MainGateWay.AllGatewayDeviceList.Find(obj => obj.DeviceID == temperatureSensor.DeviceID && obj.DeviceAddr == temperatureSensor.DeviceAddr && obj.DeviceEpoint == temperatureSensor.DeviceEpoint); - // // if (ts == null) - // // { - // // temperatureSensor.DeviceName = temperatureSensor.DeviceInfo.DeviceName; - // // ZbGateway.MainGateWay.AllGatewayDeviceList.Add(temperatureSensor); - - // // } - // // else - // // { - // // temperatureSensor.DeviceName = temperatureSensor.DeviceInfo.DeviceName; - // // IO.LocalFileUtils.SaveDeviceInfo(temperatureSensor, temperatureSensor.DeviceEpoint.ToString()); - // // } - // // break; - - // } - // } - // }; - - // ZbGateway.MainGateWay.Actions += action; - // System.Console.WriteLine("MainGatewayDeviceInfo_Actions 鍚姩" + System.DateTime.Now.ToString()); - - // var jObject = new JObject { { "Cluster_ID", 0 }, { "Command", 90 } }; - // ZbGateway.MainGateWay.CurrentGateWayId = ZbGateway.MainGateWay.getGatewayBaseInfo?.gwID; - // ZbGateway.MainGateWay.Send("GetAllDeviceInfo", Common.SecuritySet.Encryption(jObject.ToString())); - - // while ((DateTime.Now - dateTime).TotalMilliseconds < 4000) - // { - // await System.Threading.Tasks.Task.Delay(100); - // } - - // ZbGateway.MainGateWay.Actions -= action; - // System.Console.WriteLine("MainGatewayDeviceInfo_Actions 閫�鍑�" + System.DateTime.Now.ToString()); - // return ZbGateway.MainGateWay.AllGatewayDeviceList; - // })); - //} - #endregion - #region 缃戝叧鎭㈠鍑哄巶璁剧疆 /// <summary> /// 缃戝叧鎭㈠鍑哄巶璁剧疆杩斿洖鐨勬暟鎹�. @@ -1240,414 +891,6 @@ } #endregion - //#region 鑾峰彇鍗忚皟鍣ㄨ幏鍙栧崗璋冨櫒褰撳墠鍙戝皠鍔熺巼. - /////<summary > - ///// 鑾峰彇鍗忚皟鍣ㄨ幏鍙栧崗璋冨櫒褰撳墠鍙戝皠鍔熺巼 - ///// </summary> - //public static async System.Threading.Tasks.Task<GwGetPowerResponData> GetPowerAsync(ZigBee.Device.ZbGateway gateway) - //{ - // if (gateway == null) - // { - // return null; - // } - // return await System.Threading.Tasks.Task.Run(async () => - // { - // GwGetPowerResponData d = null; - // Action<string, string> action = (topic, message) => - // { - // var gatewayID = topic.Split('/')[0]; - // var jobject = Newtonsoft.Json.Linq.JObject.Parse(message); - - // if (topic == gatewayID + "/" + "Error_Respon") - // { - // var gatewayTemp = new ZbGateway() { Time = jobject.Value<int>("Time"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = gateway.getGatewayBaseInfo.gwID }; - // var temp = Newtonsoft.Json.JsonConvert.DeserializeObject<ZbGateway.ErrorResponData>(jobject["Data"].ToString()); - - // if (temp == null) - // { - // d = new GwGetPowerResponData { errorMessageBase = "缃戝叧閿欒鍥炲锛屼笖鏁版嵁鏄┖" }; - // } - // else - // { - // d = new GwGetPowerResponData { errorResponData = temp, errorMessageBase = ErrorMess(temp.Error) }; - - // } - // } - - // if (topic == gatewayID + "/" + "ZbGw/GetPower_Respon") - // { - // var gatewayTemp = new ZbGateway() { DataID = jobject.Value<int>("Data_ID") }; - // var power = Newtonsoft.Json.JsonConvert.DeserializeObject<int>(jobject["Data"]["Power"].ToString()); - - // if (power == 0) - // { - // d = new GwGetPowerResponData { errorMessageBase = "缃戝叧杩斿洖鐨勬暟鎹负绌�" }; - // } - // else - // { - // d = new GwGetPowerResponData { power = power }; - // DebugPrintLog($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - // } - // } - // }; - - // gateway.Actions += action; - // System.Console.WriteLine("GetPower_Actions 鍚姩" + "_" + System.DateTime.Now.ToString()); - - // var jObject = new JObject { { "Cluster_ID", 64512 }, { "Command", 10 } }; - // gateway.Send(("ZbGw/GetPower"), Common.SecuritySet.Encryption((jObject.ToString()))); - - // var dateTime = DateTime.Now; - // while ((DateTime.Now - dateTime).TotalMilliseconds < 1000) - // { - // await System.Threading.Tasks.Task.Delay(10); - // if (d != null) - // { - // break; - // } - // } - // if ((DateTime.Now - dateTime).TotalMilliseconds > 1000) - // { - // d = new GwGetPowerResponData { errorMessageBase = " 鍥炲瓒呮椂锛岃閲嶆柊鎿嶄綔" }; - - // } - // gateway.Actions -= action; - // System.Console.WriteLine("GetPower_Actions 閫�鍑�" + "_" + System.DateTime.Now.ToString()); - - // return d; - // }); - //} - - ///// <summary> - ///// 鑾峰彇鍗忚皟鍣ㄨ幏鍙栧崗璋冨櫒褰撳墠鍙戝皠鍔熺巼,缃戝叧鍙嶉鍏蜂綋淇℃伅 - ///// </summary> - //public GwGetPowerResponData gwGetPowerResponData; - ///// <summary> - ///// 鑾峰彇鍗忚皟鍣ㄨ幏鍙栧崗璋冨櫒褰撳墠鍙戝皠鍔熺巼,缃戝叧鍙嶉鍏蜂綋淇℃伅 - ///// </summary> - //[System.Serializable] - //public class GwGetPowerResponData - //{ - // /// <summary> - // /// 閿欒淇℃伅 - // /// </summary> - // public string errorMessageBase; - // /// <summary> - // /// 缃戝叧淇℃伅閿欒鍙嶉 - // /// <para>褰撶綉鍏虫帴鏀跺埌瀹㈡埛绔俊鎭悗锛屽嚭鐜颁互涓嬪紓甯告儏鍐靛皢鍙嶉閿欒銆�</para> - // /// </summary> - // public ErrorResponData errorResponData; - // /// <summary> - // /// 鍗忚皟鍣ㄥ彂灏勫姛鐜� - // /// </summary> - // public int power = 999; - //} - - //#endregion - - //#region 璁剧疆鍙戝皠鍔�. - /////<summary > - /////璁剧疆鍙戝皠鍔熺巼 - ///// <para>power:瑕佹洿鏀圭殑璁惧鍙戝皠鍔熺巼锛屽彲璁剧疆8,10,11,13,15,16,18,19,20,21,22(dBm)</para> - ///// </summary> - //public static async System.Threading.Tasks.Task<SetPowerResponAllData> GwSetPowerAsync(ZigBee.Device.ZbGateway gateway, int power) - //{ - // if (gateway == null) - // { - // return null; - // } - // return await System.Threading.Tasks.Task.Run(async () => - // { - // SetPowerResponAllData d = null; - // Action<string, string> action = (topic, message) => - // { - // var gatewayID = topic.Split('/')[0]; - // var jobject = Newtonsoft.Json.Linq.JObject.Parse(message); - - // if (topic == gatewayID + "/" + "Error_Respon") - // { - // var gatewayTemp = new ZbGateway() { Time = jobject.Value<int>("Time"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = gateway.getGatewayBaseInfo.gwID }; - // var temp = Newtonsoft.Json.JsonConvert.DeserializeObject<ZbGateway.ErrorResponData>(jobject["Data"].ToString()); - - // if (temp == null) - // { - // d = new SetPowerResponAllData { errorMessageBase = "缃戝叧閿欒鍥炲锛屼笖鏁版嵁鏄┖" }; - // } - // else - // { - // d = new SetPowerResponAllData { errorResponData = temp, errorMessageBase = ErrorMess(temp.Error) }; - // } - // } - - // if (topic == gatewayID + "/" + "ZbGw/SetPower_Respon") - // { - // var gatewayTemp = new ZbGateway() { DataID = jobject.Value<int>("Data_ID") }; - // var tempInfo = Newtonsoft.Json.JsonConvert.DeserializeObject<SetPoweResponData>(jobject["Data"].ToString()); - - // if (tempInfo == null) - // { - // d = new SetPowerResponAllData { errorMessageBase = "缃戝叧杩斿洖鐨勬暟鎹负绌�" }; - // } - // else - // { - // d = new SetPowerResponAllData { setPoweResponData = tempInfo }; - // DebugPrintLog($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - // } - // } - // }; - - // gateway.Actions += action; - // System.Console.WriteLine("ZbGw/SetPower_Actions 鍚姩" + "_" + System.DateTime.Now.ToString()); - - // var jObject = new JObject { { "Cluster_ID", 64512 }, { "Command", 11 } }; - // var data = new JObject { { "Power", power } }; - // jObject.Add("Data", data); - // gateway.Send(("ZbGw/SetPower"), Common.SecuritySet.Encryption(jObject.ToString(),Password)); - - // var dateTime = DateTime.Now; - // while ((DateTime.Now - dateTime).TotalMilliseconds < 1000) - // { - // await System.Threading.Tasks.Task.Delay(10); - // if (d != null) - // { - // break; - // } - // } - // if ((DateTime.Now - dateTime).TotalMilliseconds > 1000) - // { - // d = new SetPowerResponAllData { errorMessageBase = " 鍥炲瓒呮椂锛岃閲嶆柊鎿嶄綔" }; - // } - // gateway.Actions -= action; - // System.Console.WriteLine("ZbGw/SetPower_Actions閫�鍑�" + "_" + System.DateTime.Now.ToString()); - - // return d; - // }); - //} - - ///// <summary> - ///// 璁剧疆鍙戝皠鍔熺巼,缃戝叧鍙嶉鍏蜂綋淇℃伅 - ///// </summary> - //public SetPowerResponAllData setPoweResponAllData; - ///// <summary> - ///// 璁剧疆鍙戝皠鍔熺巼,缃戝叧鍙嶉鍏蜂綋淇℃伅 - ///// </summary> - //[System.Serializable] - //public class SetPowerResponAllData - //{ - // /// <summary> - // /// 閿欒淇℃伅 - // /// </summary> - // public string errorMessageBase; - // /// <summary> - // /// 缃戝叧淇℃伅閿欒鍙嶉 - // /// <para>褰撶綉鍏虫帴鏀跺埌瀹㈡埛绔俊鎭悗锛屽嚭鐜颁互涓嬪紓甯告儏鍐靛皢鍙嶉閿欒銆�</para> - // /// </summary> - // public ErrorResponData errorResponData; - // /// <summary> - // /// 璁剧疆鍙戝皠鍔熺巼鏁版嵁 - // /// </summary> - // public SetPoweResponData setPoweResponData; - //} - - ///// <summary> - ///// 璁剧疆鍙戝皠鍔熺巼鏁版嵁 - ///// </summary> - //public SetPoweResponData setPoweResponData; - ///// <summary> - ///// 璁剧疆鍙戝皠鍔熺巼鏁版嵁 - ///// </summary> - //[System.Serializable] - //public class SetPoweResponData - //{ - // /// <summary> - // /// 鏄惁閰嶇疆鎴愬姛 - // ///<para>0锛氭垚鍔�</para> - // ///<para>2锛氶厤缃殑淇¢亾涓烘棤鏁堝��</para> - // /// </summary> - // public int Status = 999; - // /// <summary> - // /// 鍔熺巼 - // /// </summary> - // public int Power = 999; - //} - //#endregion - - //#region 璇诲彇褰撳墠灞�鍩熺綉鐨凱ANID. - /////<summary > - ///// 璇诲彇褰撳墠灞�鍩熺綉鐨凱ANID - ///// </summary> - //public static async System.Threading.Tasks.Task<GetPanIdResponData> ReadPanIdAsync(ZigBee.Device.ZbGateway gateway) - //{ - // if (gateway == null) - // { - // return null; - // } - // return await System.Threading.Tasks.Task.Run(async () => - // { - // GetPanIdResponData d = null; - // Action<string, string> action = (topic, message) => - // { - // var gatewayID = topic.Split('/')[0]; - // var jobject = Newtonsoft.Json.Linq.JObject.Parse(message); - - // if (topic == gatewayID + "/" + "Error_Respon") - // { - // var gatewayTemp = new ZbGateway() { Time = jobject.Value<int>("Time"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = gateway.getGatewayBaseInfo.gwID }; - // var temp = Newtonsoft.Json.JsonConvert.DeserializeObject<ZbGateway.ErrorResponData>(jobject["Data"].ToString()); - - // if (temp == null) - // { - // d = new GetPanIdResponData { errorMessageBase = "缃戝叧閿欒鍥炲锛屼笖鏁版嵁鏄┖" }; - // } - // else - // { - // d = new GetPanIdResponData { errorResponData = temp, errorMessageBase = ErrorMess(temp.Error) }; - // } - // } - - // if (topic == gatewayID + "/" + "ZbGw/GetPanId_Respon") - // { - // var gatewayTemp = new ZbGateway() { DataID = jobject.Value<int>("Data_ID") }; - // var panID = Newtonsoft.Json.JsonConvert.DeserializeObject<int>(jobject["Data"]["PANID"].ToString()); - - // if (panID == null) - // { - // d = new GetPanIdResponData { errorMessageBase = "缃戝叧杩斿洖鐨勬暟鎹负绌�" }; - - // } - // else - // { - // d = new GetPanIdResponData { panID = panID }; - // DebugPrintLog($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - // } - // } - // }; - - // gateway.Actions += action; - // System.Console.WriteLine("ZbGw/GetPanId_Actions 鍚姩" + "_" + System.DateTime.Now.ToString()); - - // var jObject = new JObject { { "Cluster_ID", 64512 }, { "Command", 12 } }; - // gateway.Send(("ZbGw/GetPanId"), Common.SecuritySet.Encryption((jObject.ToString()))); - - // var dateTime = DateTime.Now; - // while ((DateTime.Now - dateTime).TotalMilliseconds < 1000) - // { - // await System.Threading.Tasks.Task.Delay(10); - // if (d != null) - // { - // break; - // } - // } - // if ((DateTime.Now - dateTime).TotalMilliseconds > 1000) - // { - // d = new GetPanIdResponData { errorMessageBase = " 鍥炲瓒呮椂锛岃閲嶆柊鎿嶄綔" }; - // } - // gateway.Actions -= action; - // System.Console.WriteLine("ZbGw/GetPanId_Actions 閫�鍑�" + "_" + System.DateTime.Now.ToString()); - - // return d; - // }); - //} - - ///// <summary> - ///// 璇诲彇褰撳墠灞�鍩熺綉鐨凱ANID,缃戝叧鍙嶉鍏蜂綋淇℃伅 - ///// </summary> - //public GetPanIdResponData getPanIdResponData; - ///// <summary> - ///// 璇诲彇褰撳墠灞�鍩熺綉鐨凱ANID,缃戝叧鍙嶉鍏蜂綋淇℃伅 - ///// </summary> - //[System.Serializable] - //public class GetPanIdResponData - //{ - // /// <summary> - // /// 閿欒淇℃伅 - // /// </summary> - // public string errorMessageBase; - // /// <summary> - // /// 缃戝叧淇℃伅閿欒鍙嶉 - // /// <para>褰撶綉鍏虫帴鏀跺埌瀹㈡埛绔俊鎭悗锛屽嚭鐜颁互涓嬪紓甯告儏鍐靛皢鍙嶉閿欒銆�</para> - // /// </summary> - // public ErrorResponData errorResponData; - // /// <summary> - // /// 褰撳墠缃戠粶鐨凱ANID - // /// </summary> - // public int panID = 999; - //} - - //#endregion - - //#region 璇诲彇鍗忚皟鍣∕AC鍦板潃. - /////<summary > - ///// 璇诲彇鍗忚皟鍣∕AC鍦板潃 - ///// </summary> - //public static async System.Threading.Tasks.Task<GetMacResponData> ReadMacAsync(ZigBee.Device.ZbGateway gateway) - //{ - // if (gateway == null) - // { - // return null; - // } - // return await System.Threading.Tasks.Task.Run(async () => - // { - // GetMacResponData d = null; - // Action<string, string> action = (topic, message) => - // { - // var gatewayID = topic.Split('/')[0]; - // var jobject = Newtonsoft.Json.Linq.JObject.Parse(message); - - // if (topic == gatewayID + "/" + "Error_Respon") - // { - // var gatewayTemp = new ZbGateway() { Time = jobject.Value<int>("Time"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = gateway.getGatewayBaseInfo.gwID }; - // var temp = Newtonsoft.Json.JsonConvert.DeserializeObject<ZbGateway.ErrorResponData>(jobject["Data"].ToString()); - - // if (temp == null) - // { - // d = new GetMacResponData { errorMessageBase = "缃戝叧閿欒鍥炲锛屼笖鏁版嵁鏄┖" }; - // } - // else - // { - // d = new GetMacResponData { errorResponData = temp, errorMessageBase = ErrorMess(temp.Error) }; - // } - // } - - // if (topic == gatewayID + "/" + "ZbGw/GetMac_Respon") - // { - // var gatewayTemp = new ZbGateway() { DataID = jobject.Value<int>("Data_ID") }; - // var tempData = Newtonsoft.Json.JsonConvert.DeserializeObject<MacAddrData>(jobject["Data"].ToString()); - - // if (tempData == null) - // { - // d = new GetMacResponData { errorMessageBase = "缃戝叧杩斿洖鐨勬暟鎹负绌�" }; - // } - // else - // { - // d = new GetMacResponData { macAddrData = tempData }; - // DebugPrintLog($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - // } - // } - // }; - - // gateway.Actions += action; - // var jObject = new JObject { { "Cluster_ID", 64512 }, { "Command", 13 } }; - // gateway.Send(("ZbGw/GetMac"), Common.SecuritySet.Encryption((jObject.ToString()))); - - // var dateTime = DateTime.Now; - // while ((DateTime.Now - dateTime).TotalMilliseconds < 1000) - // { - // await System.Threading.Tasks.Task.Delay(10); - // if (d != null) - // { - // break; - // } - // } - // if ((DateTime.Now - dateTime).TotalMilliseconds > 10000) - // { - // d = new GetMacResponData { errorMessageBase = " 鍥炲瓒呮椂锛岃閲嶆柊鎿嶄綔" }; - // } - // gateway.Actions -= action; - // return d; - // }); - //} - /// <summary> /// 璇诲彇鍗忚皟鍣∕AC鍦板潃,缃戝叧鍙嶉鍏蜂綋淇℃伅 /// </summary> @@ -1686,108 +929,6 @@ //#endregion - #region 娣诲姞Install Codes鐮� - /////<summary > - /////娣诲姞Install Codes鐮� - ///// <para>installCode:InstallCode鐮� 36涓瓧绗�</para> - ///// <para>installCodeAddr:InstallCodes鐮佽澶囩殑mac鍦板潃16涓瓧绗�</para> - ///// </summary> - //public static async System.Threading.Tasks.Task<InstallCodeResponData> InstallCodeAsync(ZigBee.Device.ZbGateway gateway, string installCode, string installCodeAddr) - //{ - // if (gateway == null) - // { - // return null; - // } - // return await System.Threading.Tasks.Task.Run(async () => - // { - // var d = new InstallCodeResponData { }; - // Action<string, string> action = (topic, message) => - // { - // var gatewayID = topic.Split('/')[0]; - // var jobject = Newtonsoft.Json.Linq.JObject.Parse(message); - - // if (topic == gatewayID + "/" + "Error_Respon") - // { - // var gatewayTemp = new ZbGateway() { Time = jobject.Value<int>("Time"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = gateway.getGatewayBaseInfo.gwID }; - // var temp = Newtonsoft.Json.JsonConvert.DeserializeObject<ZbGateway.ErrorResponData>(jobject["Data"].ToString()); - - // if (temp == null) - // { - // d.errorMessageBase = "缃戝叧閿欒鍥炲锛屼笖鏁版嵁鏄┖"; - // } - // else - // { - // d.errorResponData = temp; - // d.errorMessageBase = ErrorMess(temp.Error); - // } - // } - - // if (topic == gatewayID + "/" + "ZbGw/InstallCode_Respon") - // { - // var gatewayTemp = new ZbGateway() { DataID = jobject.Value<int>("Data_ID") }; - // var code = Newtonsoft.Json.JsonConvert.DeserializeObject<int>(jobject["Data"].ToString()); - - // if (code == null) - // { - // d.errorMessageBase = "缃戝叧杩斿洖鐨勬暟鎹负绌�"; - // } - // else - // { - // d.Status = code; - // DebugPrintLog($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - // } - // } - // }; - - // gateway.Actions += action; - // var jObject = new JObject { { "Cluster_ID", 64512 }, { "Command", 13 } }; - // gateway.Send(("ZbGw/GetMac"), Common.SecuritySet.Encryption((jObject.ToString()))); - - // var dateTime = DateTime.Now; - // while ((DateTime.Now - dateTime).TotalMilliseconds < 1000) - // { - // await System.Threading.Tasks.Task.Delay(10); - // //if (d.Status != 999) - // //{ - // // break; - // //} - // } - // if ((DateTime.Now - dateTime).TotalMilliseconds > 1000) - // { - // d.errorMessageBase = " 鍥炲瓒呮椂锛岃閲嶆柊鎿嶄綔"; - // } - // gateway.Actions -= action; - // return d; - // }); - //} - - /// <summary> - /// 娣诲姞Install Codes鐮�,缃戝叧鍙嶉鍏蜂綋淇℃伅 - /// </summary> - public InstallCodeResponData installCodeResponData; - /// <summary> - /// 娣诲姞Install Codes鐮�,缃戝叧鍙嶉鍏蜂綋淇℃伅 - /// </summary> - [System.Serializable] - public class InstallCodeResponData - { - /// <summary> - /// 閿欒淇℃伅 - /// </summary> - public string errorMessageBase; - /// <summary> - /// 缃戝叧淇℃伅閿欒鍙嶉 - /// <para>褰撶綉鍏虫帴鏀跺埌瀹㈡埛绔俊鎭悗锛屽嚭鐜颁互涓嬪紓甯告儏鍐靛皢鍙嶉閿欒銆�</para> - /// </summary> - public ErrorResponData errorResponData; - /// <summary> - /// 0:鎴愬姛锛�1:澶辫触 - /// </summary> - public int Status = 999; - } - - #endregion - #region 鍚敤鎴栧叧闂�忎紶鏁版嵁涓婁紶鎺ュ彛 /// <summary> /// 閫忎紶鏁版嵁涓婁紶鎺ュ彛,缃戝叧鍙嶉淇℃伅 @@ -1814,134 +955,6 @@ public string passData; } #endregion - - //#region 鍗忚皟鍣ㄩ�氱敤鍔熻兘鎿嶄綔鎺ュ彛 - ///// <summary> - ///// 鍗忚皟鍣ㄩ�氱敤鍔熻兘鎿嶄綔鎺ュ彛 - ///// </summary> - ///// <returns>The or get all data async.</returns> - ///// <param name="gateway">Gateway.</param> - ///// <param name="commandID">Command identifier.</param> - ///// <param name="payload">Payload.</param> - //public static async System.Threading.Tasks.Task<SetOrGetAllData> SetOrGetAllDataAsync(ZigBee.Device.ZbGateway gateway, int commandID, string payload) - //{ - // if (gateway == null) - // { - // return null; - // } - // return await System.Threading.Tasks.Task.Run(async () => - // { - // var d = new SetOrGetAllData { }; - // Action<string, string> action = (topic, message) => - // { - // var gatewayID = topic.Split('/')[0]; - // var jobject = Newtonsoft.Json.Linq.JObject.Parse(message); - - // if (topic == gatewayID + "/" + "Error_Respon") - // { - // var gatewayTemp = new ZbGateway() { DeviceID = jobject.Value<int>("Device_ID"), DeviceAddr = jobject.Value<string>("DeviceAddr"), DeviceEpoint = jobject.Value<int>("Epoint"), DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = gateway.getGatewayBaseInfo.gwID }; - // var temp = Newtonsoft.Json.JsonConvert.DeserializeObject<ZbGateway.ErrorResponData>(jobject["Data"].ToString()); - - // if (temp == null) - // { - // d.errorMessageBase = "缃戝叧閿欒鍥炲锛屼笖鏁版嵁鏄┖"; - // } - // else - // { - // d.errorResponData = temp; - // d.errorMessageBase = ErrorMess(temp.Error); - // } - // } - - // if (topic == gatewayID + "/" + "ZbGw/SetOrGetData_Respon") - // { - // var gatewayTemp = new ZbGateway() { DataID = jobject.Value<int>("Data_ID"), CurrentGateWayId = gateway.getGatewayBaseInfo.gwID }; - // var temp = Newtonsoft.Json.JsonConvert.DeserializeObject<SetOrGetData>(jobject["Data"].ToString()); - - // if (gatewayTemp.getGwVersion == null) - // { - // d.errorMessageBase = "缃戝叧杩斿洖鐨勬暟鎹负绌�"; - // } - // else - // { - // d.setOrGetData = temp; - // DebugPrintLog($"UI鏀跺埌閫氱煡鍚庣殑涓婚_{ topic}"); - // } - // } - // }; - // gateway.Actions += action; - // System.Console.WriteLine("ZbDataPassthrough_Actions 鍚姩" + "_" + System.DateTime.Now.ToString()); - - // var jObject = new JObject { { "Cluster_ID", 64512 }, { "Command", 2 } }; - // var data = new JObject { { "Command_ID", commandID }, { "Payload", payload } }; - // jObject.Add("Data", data); - // gateway.Send("ZbGw/SetOrGetData", Common.SecuritySet.Encryption(jObject.ToString())); - // var dateTime = DateTime.Now; - // while ((DateTime.Now - dateTime).TotalMilliseconds < 1000) - // { - // await System.Threading.Tasks.Task.Delay(10); - // if (d.setOrGetData != null) - // { - // break; - // } - // } - // if ((DateTime.Now - dateTime).TotalMilliseconds > 10000) - // { - // d.errorMessageBase = " 鍥炲瓒呮椂锛岃閲嶆柊鎿嶄綔"; - // } - // gateway.Actions -= action; - // System.Console.WriteLine("GetGwVersionData_Actions 閫�鍑�" + System.DateTime.Now.ToString()); - - // return d; - // }); - //} - - ///// <summary> - ///// BDB鎺ュ彛,缃戝叧鍙嶉淇℃伅 - ///// </summary> - //public SetOrGetAllData setOrGetAllData; - ///// <summary> - ///// BDB鎺ュ彛,缃戝叧鍙嶉淇℃伅 - ///// </summary> - //[System.Serializable] - //public class SetOrGetAllData - //{ - // /// <summary> - // /// 閿欒淇℃伅 - // /// </summary> - // public string errorMessageBase; - // /// <summary> - // /// 缃戝叧淇℃伅閿欒鍙嶉 - // /// <para>褰撶綉鍏虫帴鏀跺埌瀹㈡埛绔俊鎭悗锛屽嚭鐜颁互涓嬪紓甯告儏鍐靛皢鍙嶉閿欒銆�</para> - // /// </summary> - // public ErrorResponData errorResponData; - // /// <summary> - // /// BDB鏁版嵁 - // /// </summary> - // public SetOrGetData setOrGetData; - - //} - - ///// <summary> - ///// BDB鏁版嵁 - ///// </summary> - //public SetOrGetData setOrGetData; - ///// <summary> - ///// BDB鏁版嵁 - ///// </summary> - //[System.Serializable] - //public class SetOrGetData - //{ - // /// <summary> - // /// 鍗忚皟鍣ㄦ寚浠ょ殑command_ID銆傚搴斻�婂崗璋冨櫒涓插彛閫氫俊鍗忚瑙勮寖銆嬬2绔犺妭鎸囦护鐨刢ommand_ID - // /// </summary> - // public int commandID; - // /// <summary> - // /// 宸茬粡杞崲鎴愬瓧绗︽牸寮忕殑16杩涘埗鐨刣ata鏁版嵁銆傚搴斻�婂崗璋冨櫒涓插彛閫氫俊鍗忚瑙勮寖銆嬬2绔犺妭鎸囦护鐨勨�滄暟鎹�濆唴瀹� - // /// </summary> - // public string payload; - //} - //#endregion #region 瀹㈡埛绔彂閫佹枃浠舵祦鍒扮綉鍏� /// <summary> diff --git a/ZigbeeApp/Shared/R.cs b/ZigbeeApp/Shared/R.cs index 7f9f8c6..a3747df 100644 --- a/ZigbeeApp/Shared/R.cs +++ b/ZigbeeApp/Shared/R.cs @@ -350,7 +350,7 @@ /// </summary> public const int AddFreshAirModulPanelMsg = 239; /// <summary> - /// 璁剧疆甯稿紑妯″紡鍚庯紝鎮ㄧ殑闂ㄩ攣灏嗗缁坽0}澶勪簬鎵撳紑鐘舵�侊紝纭寮�鍚紵 + /// 璁剧疆甯稿紑妯″紡鍚庯紝鎮ㄧ殑闂ㄩ攣灏嗗缁坽0}澶勪簬鎵撳紑鐘舵�侊紝纭寮�鍚紵 /// </summary> public const int SetDoorLockNomallyOpen = 241; /// <summary> @@ -562,9 +562,9 @@ /// 鑳屽厜鐏鑹� /// </summary> public const int BackgroundLightColor = 312; - /// <summary> - /// PM2.5鎰熷櫒 -> 闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝淇″彿鍥炬爣{0}蹇棯锛� 杩涘叆閰嶇綉鐘舵�併�備俊鍙峰浘鏍囧父浜垯閰嶇綉鎴愬姛 - /// </summary> + /// <summary> + /// PM2.5鎰熷櫒 -> 闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝淇″彿鍥炬爣{0}蹇棯锛� 杩涘叆閰嶇綉鐘舵�併�備俊鍙峰浘鏍囧父浜垯閰嶇綉鎴愬姛 + /// </summary> public const int AddSensorPMMsg = 313; public readonly static int cancel = 5097; @@ -829,8 +829,16 @@ public readonly static int daySone = 5386; public readonly static int numberSone = 5387; public readonly static int openAutomationSone = 5388; - public readonly static int timeSetSone = 5389; - + public readonly static int timeSetSone= 5389; + public readonly static int invalidSetting = 5390; + public readonly static int hour = 5391; + public readonly static int lockOpen = 5392; + public readonly static int setDoorLockOpen = 5393; + public readonly static int less = 5394; + public readonly static int more = 5395; + public readonly static int or = 5396; + public readonly static int timeNull = 5397; + public readonly static int numberInput = 5398; #region 鐧诲綍娉ㄥ唽 /// <summary> @@ -1144,90 +1152,90 @@ /// 鍔熻兘璁剧疆 /// </summary> public const int FunctionSetting = 11012; - /// <summary> - /// 淇℃伅缂栬緫 - /// </summary> - public const int EditInfo = 11013; - /// <summary> - /// 鍔熻兘鍚嶇О - /// </summary> - public const int FunctionName = 11014; - /// <summary> - /// 鎵�灞炲尯鍩� - /// </summary> - public const int BelongZone = 11015; - /// <summary> - /// 鎵�灞炶澶� - /// </summary> - public const int BelongDevice = 11016; - /// <summary> - /// 鏈煡 - /// </summary> - public const int UNKnown = 11017; - /// <summary> - /// 鍒嗕韩 - /// </summary> - public const int Share = 11018; - /// <summary> - /// 鍒嗕韩鐨� - /// </summary> - public const int Shared = 11019; - /// <summary> - /// 閫夋嫨鍥炬爣 - /// </summary> - public const int SelectIcon = 11020; - /// <summary> - /// 淇濆瓨 - /// </summary> - public const int Save = 11021; - /// <summary> - /// 鎻愰啋 - /// </summary> - public const int TIP = 11022; - /// <summary> - /// 鍙栨秷 - /// </summary> - public const int Cancel = 11023; - /// <summary> - /// 娌℃湁鍦烘櫙 {\r\n} 璇风偣鍑诲彸涓婅娣诲姞 - /// </summary> - public const int NoScene = 11024; - /// <summary> - /// 璁剧疆 - /// </summary> - public const int Setting = 11025; - /// <summary> - /// 寤舵椂 - /// </summary> - public const int Delay = 11026; - /// <summary> - /// 纭畾鍒犻櫎鍚楋紵 - /// </summary> - public const int ConfirmDelete = 11027; - /// <summary> - /// 娣诲姞鍦烘櫙 - /// </summary> - public const int AddScence = 11028; - /// <summary> - /// 鍦烘櫙鍚嶇О - /// </summary> - public const int SceneName = 11029; - /// <summary> - /// 璇疯緭鍏ュ満鏅悕绉� - /// </summary> - public const int PleaseInputSceneName = 11030; - /// <summary> - /// 娣诲姞鎵ц鐩爣 - /// </summary> - public const int AddScentTargetAction = 11031; - /// <summary> - /// 閫夋嫨鍖哄煙 - /// </summary> - public const int SelectZone = 11032; - /// <summary> - /// 閫夋嫨鍦烘櫙鍥剧墖 - /// </summary> - public const int SelectScenePic = 11033; + /// <summary> + /// 淇℃伅缂栬緫 + /// </summary> + public const int EditInfo = 11013; + /// <summary> + /// 鍔熻兘鍚嶇О + /// </summary> + public const int FunctionName = 11014; + /// <summary> + /// 鎵�灞炲尯鍩� + /// </summary> + public const int BelongZone = 11015; + /// <summary> + /// 鎵�灞炶澶� + /// </summary> + public const int BelongDevice = 11016; + /// <summary> + /// 鏈煡 + /// </summary> + public const int UNKnown = 11017; + /// <summary> + /// 鍒嗕韩 + /// </summary> + public const int Share = 11018; + /// <summary> + /// 鍒嗕韩鐨� + /// </summary> + public const int Shared = 11019; + /// <summary> + /// 閫夋嫨鍥炬爣 + /// </summary> + public const int SelectIcon = 11020; + /// <summary> + /// 淇濆瓨 + /// </summary> + public const int Save = 11021; + /// <summary> + /// 鎻愰啋 + /// </summary> + public const int TIP = 11022; + /// <summary> + /// 鍙栨秷 + /// </summary> + public const int Cancel = 11023; + /// <summary> + /// 娌℃湁鍦烘櫙 {\r\n} 璇风偣鍑诲彸涓婅娣诲姞 + /// </summary> + public const int NoScene = 11024; + /// <summary> + /// 璁剧疆 + /// </summary> + public const int Setting = 11025; + /// <summary> + /// 寤舵椂 + /// </summary> + public const int Delay = 11026; + /// <summary> + /// 纭畾鍒犻櫎鍚楋紵 + /// </summary> + public const int ConfirmDelete = 11027; + /// <summary> + /// 娣诲姞鍦烘櫙 + /// </summary> + public const int AddScence = 11028; + /// <summary> + /// 鍦烘櫙鍚嶇О + /// </summary> + public const int SceneName = 11029; + /// <summary> + /// 璇疯緭鍏ュ満鏅悕绉� + /// </summary> + public const int PleaseInputSceneName = 11030; + /// <summary> + /// 娣诲姞鎵ц鐩爣 + /// </summary> + public const int AddScentTargetAction = 11031; + /// <summary> + /// 閫夋嫨鍖哄煙 + /// </summary> + public const int SelectZone = 11032; + /// <summary> + /// 閫夋嫨鍦烘櫙鍥剧墖 + /// </summary> + public const int SelectScenePic = 11033; /// <summary> /// 纭畾瑕佺Щ闄よ鍔熻兘锛� /// </summary> @@ -5738,6 +5746,10 @@ /// 甯稿紑鑷姩鍖栨墜鍔ㄥ彇娑� /// </summary> public const int uNormallyOpenLogicManualClose = 16115; + /// <summary> + /// 娓稿浣撻獙 + /// </summary> + public const int uExperienceAccount = 16116; //鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄帴鍙g殑杩斿洖淇℃伅缈昏瘧,浠�18000寮�濮嬧槄鈽呪槄鈽� @@ -5966,9 +5978,13 @@ /// </summary> public const int uAddFangyueEnvironmentPanelMsg = 21021; /// <summary> - /// 绐楀笜闈㈡澘 -> 闀挎寜闈㈡澘宸︿笂瑙掓寜閿紝鎵�鏈夋寜閿畕0}鎸囩ず鐏寒璧凤紝鍒欓厤缃戞垚鍔� + /// 绐楀笜闈㈡澘 -> 闀挎寜闈㈡澘宸︿笂瑙掓寜閿紝鎵�鏈夋寜閿畕0}鎸囩ず鐏寒璧凤紝鍒欓厤缃戞垚鍔� /// </summary> public const int uAddCurtaunPanelMsg = 21022; + /// <summary> + /// 鍚搁《鐕冩皵浼犳劅鍣� -> 闀挎寜鍥剧ず鎸夐敭5绉掍互涓婏紝缁胯壊蹇棯{0}杩涘叆閰嶇綉鐘舵�侊紝缁跨伅甯镐寒鍒欏叆缃戞垚鍔� + /// </summary> + public const int uAddSensorCeilingGasMsg = 21023; //鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄ā鍧桰D鐨勫畼鏂瑰悕瀛�,浠�30000寮�濮嬧槄鈽呪槄鈽� @@ -6128,6 +6144,10 @@ /// 闀滃儚ID涓�2310鐨勮澶囩殑榛樿鍚嶅瓧锛氭柟鎮︽柊椋庡皬妯″潡 /// </summary> public const int uDeviceModelId2310 = 30038; + /// <summary> + /// 闀滃儚ID涓�1306鐨勮澶囩殑榛樿鍚嶅瓧锛歓igbee鍚搁《鐕冩皵浼犳劅鍣� + /// </summary> + public const int uDeviceModelId1306 = 30039; //鈽呪槄鈽呪槄涓嬮潰杩欎簺鏄澶囨墍灞炵绫荤殑缈昏瘧鍚嶅瓧,浠�40000寮�濮嬧槄鈽呪槄鈽� /// <summary> @@ -6312,8 +6332,12 @@ /// </summary> public const int uDeviceDirectionName25 = 70024; /// <summary> - /// PM2.5绌烘皵璐ㄩ噺浼犳劅鍣� + /// 鍚搁《鐕冩皵浼犳劅鍣� /// </summary> public const int uDeviceDirectionName26 = 70025; + /// <summary> + /// PM2.5绌烘皵璐ㄩ噺浼犳劅鍣� + /// </summary> + public const int uDeviceDirectionName27 = 70026; } } diff --git a/ZigbeeApp/Shared/Shared.projitems b/ZigbeeApp/Shared/Shared.projitems index 22a8f54..6f6d9b4 100644 --- a/ZigbeeApp/Shared/Shared.projitems +++ b/ZigbeeApp/Shared/Shared.projitems @@ -42,6 +42,7 @@ <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\LogicView\mFunView.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\LogicView\SaveView.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\LogicView\SelectedDeviceView.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\LogicView\TipView.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\LogicView\TopView.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\LogicView\TypeView.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\Device\Logic\Method.cs" /> @@ -96,6 +97,7 @@ <Compile Include="$(MSBuildThisFileDirectory)Phone\MainPage\ControlForm\DeviceCurtainDetailCardForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\MainPage\ControlForm\DeviceFreshAirDetailCardForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\MainPage\ControlForm\DeviceRelayDetailCardForm.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)Phone\MainPage\Controls\DeviceCard\DeviceFreshAirCardControl.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\MainPage\Controls\DeviceFunctionUnallocatedControl.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\MainPage\Controls\DeviceSelectUnallocatedControl.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\MainPage\SelectLocalDeviceImageForm.cs" /> @@ -185,10 +187,12 @@ <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\Direction\PanelFangyueTwoButtonDirectionForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\Direction\RepeaterZigbeeDirectionForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\Direction\SensorCarbonMonoxideDirectionForm.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\Direction\SensorCeilingGasDirectionForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\Direction\SensorDoorWindowDirectionForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\Direction\SensorFireDirectionForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\Direction\SensorInfraredDirectionForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\Direction\SensorPirDirectionForm.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\Direction\SensorPMTwoPointFiveForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\Direction\SensorTemperatureHumidityForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\Direction\SensorWaterDirectionForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\Panel\PanelBackLighWithSensorForm.cs" /> @@ -196,6 +200,7 @@ <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\Panel\PanelFangyueEnvironmentButtonSettionForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\Panel\PanelFangyueEnvironmentLightSettionForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\Panel\PanelFangyueEnvironmentTargetForm.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\Panel\PanelFangyueFreshAirBackLightSettionForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\Panel\PanelFangyueFreshAirButtonSettionForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\Panel\PanelFangyueFreshAirTargetsForm.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\Device\Panel\PanelFangyueFunctionSettionForm.cs" /> @@ -210,6 +215,7 @@ <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\DoorLock\FunctionSetting.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\DoorLock\MasterManagementPage.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\DoorLock\MemberFrozenPage.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\DoorLock\ShowDoorLockMsgControl.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\DoorLock\TemporaryPassword.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\DoorLock\TimeSettignPage.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\UserCenter\DoorLock\UndistributeDoorlockUserPage.cs" /> @@ -391,6 +397,7 @@ <Compile Include="$(MSBuildThisFileDirectory)Phone\UserView\LoginLoading.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\ZigBee\Device\AC.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\ZigBee\Device\DimmableLight.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)Phone\ZigBee\Device\DoorLock.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\ZigBee\Device\FreshAir.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\ZigBee\Device\HumiditySensor.cs" /> <Compile Include="$(MSBuildThisFileDirectory)Phone\ZigBee\Device\Repeater.cs" /> @@ -509,4 +516,4 @@ <None Include="$(MSBuildThisFileDirectory)DLL\ZigBee.Droid.dll" /> <None Include="$(MSBuildThisFileDirectory)DLL\ZigBee.Ios.xml" /> </ItemGroup> -</Project> \ No newline at end of file +</Project> -- Gitblit v1.8.0